]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/configure
This commit was generated by cvs2svn to compensate for changes in r173682,
[FreeBSD/FreeBSD.git] / contrib / cvs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for Concurrent Versions System (CVS) 1.11.17.
4 #
5 # Report bugs to <bug-cvs@gnu.org>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
46   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
50   fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
100
101
102   as_lineno_1=$LINENO
103   as_lineno_2=$LINENO
104   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105   test "x$as_lineno_1" != "x$as_lineno_2" &&
106   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107   # Find who we are.  Look in the path if we contain no path at all
108   # relative or not.
109   case $0 in
110     *[\\/]* ) as_myself=$0 ;;
111     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119        ;;
120   esac
121   # We did not find ourselves, most probably we were run as `sh COMMAND'
122   # in which case we are not to be found in the path.
123   if test "x$as_myself" = x; then
124     as_myself=$0
125   fi
126   if test ! -f "$as_myself"; then
127     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128    { (exit 1); exit 1; }; }
129   fi
130   case $CONFIG_SHELL in
131   '')
132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135   IFS=$as_save_IFS
136   test -z "$as_dir" && as_dir=.
137   for as_base in sh bash ksh sh5; do
138          case $as_dir in
139          /*)
140            if ("$as_dir/$as_base" -c '
141   as_lineno_1=$LINENO
142   as_lineno_2=$LINENO
143   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144   test "x$as_lineno_1" != "x$as_lineno_2" &&
145   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148              CONFIG_SHELL=$as_dir/$as_base
149              export CONFIG_SHELL
150              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151            fi;;
152          esac
153        done
154 done
155 ;;
156   esac
157
158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159   # uniformly replaced by the line number.  The first 'sed' inserts a
160   # line-number line before each line; the second 'sed' does the real
161   # work.  The second script uses 'N' to pair each line-number line
162   # with the numbered line, and appends trailing '-' during
163   # substitution so that $LINENO is not a special case at line end.
164   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166   sed '=' <$as_myself |
167     sed '
168       N
169       s,$,-,
170       : loop
171       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172       t loop
173       s,-$,,
174       s,^['$as_cr_digits']*\n,,
175     ' >$as_me.lineno &&
176   chmod +x $as_me.lineno ||
177     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178    { (exit 1); exit 1; }; }
179
180   # Don't try to exec as it changes $[0], causing all sort of problems
181   # (the dirname of $[0] is not the place where we might find the
182   # original and so on.  Autoconf is especially sensible to this).
183   . ./$as_me.lineno
184   # Exit status is that of the last command.
185   exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='Concurrent Versions System (CVS)'
271 PACKAGE_TARNAME='cvs'
272 PACKAGE_VERSION='1.11.17'
273 PACKAGE_STRING='Concurrent Versions System (CVS) 1.11.17'
274 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
275
276 ac_unique_file="src/cvs.h"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 YACC LN_S PERL CSH MKTEMP SENDMAIL PR ROFF PS2PDF TEXI2DVI MAKE_TARGETS_IN_VPATH_TRUE MAKE_TARGETS_IN_VPATH_FALSE LIBOBJS KRB4 includeopt EDITOR LTLIBOBJS'
315 ac_subst_files='MKTEMP_SH_FUNCTION'
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775 ac_env_EDITOR_set=${EDITOR+set}
776 ac_env_EDITOR_value=$EDITOR
777 ac_cv_env_EDITOR_set=${EDITOR+set}
778 ac_cv_env_EDITOR_value=$EDITOR
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784   # Omit some internal or obsolete options to make the list less imposing.
785   # This message is too long to be a string in the A/UX 3.1 sh.
786   cat <<_ACEOF
787 \`configure' configures Concurrent Versions System (CVS) 1.11.17 to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE.  See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797   -h, --help              display this help and exit
798       --help=short        display options specific to this package
799       --help=recursive    display the short help of all the included packages
800   -V, --version           display version information and exit
801   -q, --quiet, --silent   do not print \`checking...' messages
802       --cache-file=FILE   cache test results in FILE [disabled]
803   -C, --config-cache      alias for \`--cache-file=config.cache'
804   -n, --no-create         do not create output files
805       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809   cat <<_ACEOF
810 Installation directories:
811   --prefix=PREFIX         install architecture-independent files in PREFIX
812                           [$ac_default_prefix]
813   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
814                           [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824   --bindir=DIR           user executables [EPREFIX/bin]
825   --sbindir=DIR          system admin executables [EPREFIX/sbin]
826   --libexecdir=DIR       program executables [EPREFIX/libexec]
827   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
828   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
829   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
830   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
831   --libdir=DIR           object code libraries [EPREFIX/lib]
832   --includedir=DIR       C header files [PREFIX/include]
833   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
834   --infodir=DIR          info documentation [PREFIX/info]
835   --mandir=DIR           man documentation [PREFIX/man]
836 _ACEOF
837
838   cat <<\_ACEOF
839
840 Program names:
841   --program-prefix=PREFIX            prepend PREFIX to installed program names
842   --program-suffix=SUFFIX            append SUFFIX to installed program names
843   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.11.17:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --enable-maintainer-mode enable make rules and dependencies not useful
857                           (and sometimes confusing) to the casual installer
858   --disable-dependency-tracking Speeds up one-time builds
859   --enable-dependency-tracking  Do not reject slow dependency extractors
860   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
861                           than attempting to use a system NDBM library.
862                           Disabling this may not work. (default)
863   --enable-client         Include code for running as a remote client
864                           (default)
865   --enable-password-authenticated-client
866                           Enable pserver as a remote access method in the CVS
867                           client (default)
868   --enable-server         Include code for running as a server (default)
869   --enable-server-flow-control
870                           If you are working with a large remote repository
871                           and a 'cvs checkout' is swamping your network and
872                           memory, define these to enable flow control. You may
873                           optionally pass a low water mark in bytes and a high
874                           water mark in bytes, separated by commas. (default
875                           is enabled 1M,2M)
876   --enable-case-sensitivity
877                           Force CVS to expect a case sensitive file system.
878                           Enabling this on a case insensitive system should
879                           have little effect on the server or client
880                           operation, though client users may ocassionally be
881                           suprised that the CVS server appears to be case
882                           sensitive. Disabling this for a case sensitive
883                           server disables server support for case insensitive
884                           clients, which can confuse all users of case
885                           insensitive clients contacting the server. Disabling
886                           this for a case sensitive client will cause the
887                           client to ask servers to behave case insensitively,
888                           which could cause confusion for users, but also
889                           probably no real harm. (default autoselects based on
890                           the case sensitivity of the file system containing
891                           the current working directory)
892   --enable-encryption     Enable encryption support (disabled by default)
893   --enable-force-editor   When committing or importing files, you must enter a
894                           log message. Normally, you can do this either via
895                           the -m flag on the command line, the -F flag on the
896                           command line, or an editor will be started for you.
897                           If you like to use logging templates (the rcsinfo
898                           file within the $CVSROOT/CVSROOT directory), you
899                           might want to force people to use the editor even if
900                           they specify a message with -m or -F.
901                           --enable-force-editor will cause the -m or -F
902                           message to be appended to the temp file when the
903                           editor is started. (disabled by default)
904   --enable-rootcommit     Allow the root user to commit files (disabled by
905                           default)
906
907 Optional Packages:
908   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
909   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
910   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
911   --with-gssapi           GSSAPI directory (default autoselects)
912   --with-editor           The default text editor CVS should use for log
913                           messages (default autoselects)
914   --with-tmpdir           The temporary directory CVS should use as a default
915                           (default autoselects)
916   --with-umask            Set the umask CVS will use by default in the
917                           repository (default 002)
918   --with-cvs-admin-group=GROUP
919                           The CVS admin command is restricted to the members
920                           of this group. If this group does not exist, all
921                           users are allowed to run CVS admin. To disable the
922                           CVS admin command for all users, create an empty
923                           group by specifying the --with-cvs-admin-group=
924                           option. To disable access control for CVS admin, run
925                           configure with the --without-cvs-admin-group option.
926                           (default 'cvsadmin')
927
928 Some influential environment variables:
929   CC          C compiler command
930   CFLAGS      C compiler flags
931   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
932               nonstandard directory <lib dir>
933   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
934               headers in a nonstandard directory <include dir>
935   CPP         C preprocessor
936   EDITOR      The text editor CVS will use by default for log messages.
937
938 Use these variables to override the choices made by `configure' or to help
939 it to find libraries and programs with nonstandard names/locations.
940
941 Report bugs to <bug-cvs@gnu.org>.
942 _ACEOF
943 fi
944
945 if test "$ac_init_help" = "recursive"; then
946   # If there are subdirs, report their specific --help.
947   ac_popdir=`pwd`
948   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
949     test -d $ac_dir || continue
950     ac_builddir=.
951
952 if test "$ac_dir" != .; then
953   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
954   # A "../" for each directory in $ac_dir_suffix.
955   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
956 else
957   ac_dir_suffix= ac_top_builddir=
958 fi
959
960 case $srcdir in
961   .)  # No --srcdir option.  We are building in place.
962     ac_srcdir=.
963     if test -z "$ac_top_builddir"; then
964        ac_top_srcdir=.
965     else
966        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
967     fi ;;
968   [\\/]* | ?:[\\/]* )  # Absolute path.
969     ac_srcdir=$srcdir$ac_dir_suffix;
970     ac_top_srcdir=$srcdir ;;
971   *) # Relative path.
972     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
973     ac_top_srcdir=$ac_top_builddir$srcdir ;;
974 esac
975 case "$ac_dir" in
976 .) ac_abs_builddir=$ac_builddir;;
977 *)
978   case $ac_builddir in
979   .) ac_abs_builddir="$ac_dir";;
980   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
981   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
982   esac;;
983 esac
984 case "$ac_dir" in
985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
986 *)
987   case ${ac_top_builddir}. in
988   .) ac_abs_top_builddir="$ac_dir";;
989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
990   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
991   esac;;
992 esac
993 case "$ac_dir" in
994 .) ac_abs_srcdir=$ac_srcdir;;
995 *)
996   case $ac_srcdir in
997   .) ac_abs_srcdir="$ac_dir";;
998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
999   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1000   esac;;
1001 esac
1002 case "$ac_dir" in
1003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1004 *)
1005   case $ac_top_srcdir in
1006   .) ac_abs_top_srcdir="$ac_dir";;
1007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1008   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1009   esac;;
1010 esac
1011
1012     cd $ac_dir
1013     # Check for guested configure; otherwise get Cygnus style configure.
1014     if test -f $ac_srcdir/configure.gnu; then
1015       echo
1016       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1017     elif test -f $ac_srcdir/configure; then
1018       echo
1019       $SHELL $ac_srcdir/configure  --help=recursive
1020     elif test -f $ac_srcdir/configure.ac ||
1021            test -f $ac_srcdir/configure.in; then
1022       echo
1023       $ac_configure --help
1024     else
1025       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1026     fi
1027     cd $ac_popdir
1028   done
1029 fi
1030
1031 test -n "$ac_init_help" && exit 0
1032 if $ac_init_version; then
1033   cat <<\_ACEOF
1034 Concurrent Versions System (CVS) configure 1.11.17
1035 generated by GNU Autoconf 2.58
1036
1037 Copyright (C) 2003 Free Software Foundation, Inc.
1038 This configure script is free software; the Free Software Foundation
1039 gives unlimited permission to copy, distribute and modify it.
1040 _ACEOF
1041   exit 0
1042 fi
1043 exec 5>config.log
1044 cat >&5 <<_ACEOF
1045 This file contains any messages produced by compilers while
1046 running configure, to aid debugging if configure makes a mistake.
1047
1048 It was created by Concurrent Versions System (CVS) $as_me 1.11.17, which was
1049 generated by GNU Autoconf 2.58.  Invocation command line was
1050
1051   $ $0 $@
1052
1053 _ACEOF
1054 {
1055 cat <<_ASUNAME
1056 ## --------- ##
1057 ## Platform. ##
1058 ## --------- ##
1059
1060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1065
1066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1067 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1068
1069 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1070 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1072 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1073 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1074 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1075 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1076
1077 _ASUNAME
1078
1079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1080 for as_dir in $PATH
1081 do
1082   IFS=$as_save_IFS
1083   test -z "$as_dir" && as_dir=.
1084   echo "PATH: $as_dir"
1085 done
1086
1087 } >&5
1088
1089 cat >&5 <<_ACEOF
1090
1091
1092 ## ----------- ##
1093 ## Core tests. ##
1094 ## ----------- ##
1095
1096 _ACEOF
1097
1098
1099 # Keep a trace of the command line.
1100 # Strip out --no-create and --no-recursion so they do not pile up.
1101 # Strip out --silent because we don't want to record it for future runs.
1102 # Also quote any args containing shell meta-characters.
1103 # Make two passes to allow for proper duplicate-argument suppression.
1104 ac_configure_args=
1105 ac_configure_args0=
1106 ac_configure_args1=
1107 ac_sep=
1108 ac_must_keep_next=false
1109 for ac_pass in 1 2
1110 do
1111   for ac_arg
1112   do
1113     case $ac_arg in
1114     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116     | -silent | --silent | --silen | --sile | --sil)
1117       continue ;;
1118     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1119       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1120     esac
1121     case $ac_pass in
1122     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1123     2)
1124       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1125       if test $ac_must_keep_next = true; then
1126         ac_must_keep_next=false # Got value, back to normal.
1127       else
1128         case $ac_arg in
1129           *=* | --config-cache | -C | -disable-* | --disable-* \
1130           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1131           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1132           | -with-* | --with-* | -without-* | --without-* | --x)
1133             case "$ac_configure_args0 " in
1134               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1135             esac
1136             ;;
1137           -* ) ac_must_keep_next=true ;;
1138         esac
1139       fi
1140       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1141       # Get rid of the leading space.
1142       ac_sep=" "
1143       ;;
1144     esac
1145   done
1146 done
1147 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1148 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1149
1150 # When interrupted or exit'd, cleanup temporary files, and complete
1151 # config.log.  We remove comments because anyway the quotes in there
1152 # would cause problems or look ugly.
1153 # WARNING: Be sure not to use single quotes in there, as some shells,
1154 # such as our DU 5.0 friend, will then `close' the trap.
1155 trap 'exit_status=$?
1156   # Save into config.log some information that might help in debugging.
1157   {
1158     echo
1159
1160     cat <<\_ASBOX
1161 ## ---------------- ##
1162 ## Cache variables. ##
1163 ## ---------------- ##
1164 _ASBOX
1165     echo
1166     # The following way of writing the cache mishandles newlines in values,
1167 {
1168   (set) 2>&1 |
1169     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1170     *ac_space=\ *)
1171       sed -n \
1172         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1173           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1174       ;;
1175     *)
1176       sed -n \
1177         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1178       ;;
1179     esac;
1180 }
1181     echo
1182
1183     cat <<\_ASBOX
1184 ## ----------------- ##
1185 ## Output variables. ##
1186 ## ----------------- ##
1187 _ASBOX
1188     echo
1189     for ac_var in $ac_subst_vars
1190     do
1191       eval ac_val=$`echo $ac_var`
1192       echo "$ac_var='"'"'$ac_val'"'"'"
1193     done | sort
1194     echo
1195
1196     if test -n "$ac_subst_files"; then
1197       cat <<\_ASBOX
1198 ## ------------- ##
1199 ## Output files. ##
1200 ## ------------- ##
1201 _ASBOX
1202       echo
1203       for ac_var in $ac_subst_files
1204       do
1205         eval ac_val=$`echo $ac_var`
1206         echo "$ac_var='"'"'$ac_val'"'"'"
1207       done | sort
1208       echo
1209     fi
1210
1211     if test -s confdefs.h; then
1212       cat <<\_ASBOX
1213 ## ----------- ##
1214 ## confdefs.h. ##
1215 ## ----------- ##
1216 _ASBOX
1217       echo
1218       sed "/^$/d" confdefs.h | sort
1219       echo
1220     fi
1221     test "$ac_signal" != 0 &&
1222       echo "$as_me: caught signal $ac_signal"
1223     echo "$as_me: exit $exit_status"
1224   } >&5
1225   rm -f core *.core &&
1226   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1227     exit $exit_status
1228      ' 0
1229 for ac_signal in 1 2 13 15; do
1230   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1231 done
1232 ac_signal=0
1233
1234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1235 rm -rf conftest* confdefs.h
1236 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1237 echo >confdefs.h
1238
1239 # Predefined preprocessor variables.
1240
1241 cat >>confdefs.h <<_ACEOF
1242 #define PACKAGE_NAME "$PACKAGE_NAME"
1243 _ACEOF
1244
1245
1246 cat >>confdefs.h <<_ACEOF
1247 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1248 _ACEOF
1249
1250
1251 cat >>confdefs.h <<_ACEOF
1252 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1253 _ACEOF
1254
1255
1256 cat >>confdefs.h <<_ACEOF
1257 #define PACKAGE_STRING "$PACKAGE_STRING"
1258 _ACEOF
1259
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1263 _ACEOF
1264
1265
1266 # Let the site file select an alternate cache file if it wants to.
1267 # Prefer explicitly selected file to automatically selected ones.
1268 if test -z "$CONFIG_SITE"; then
1269   if test "x$prefix" != xNONE; then
1270     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1271   else
1272     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1273   fi
1274 fi
1275 for ac_site_file in $CONFIG_SITE; do
1276   if test -r "$ac_site_file"; then
1277     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1278 echo "$as_me: loading site script $ac_site_file" >&6;}
1279     sed 's/^/| /' "$ac_site_file" >&5
1280     . "$ac_site_file"
1281   fi
1282 done
1283
1284 if test -r "$cache_file"; then
1285   # Some versions of bash will fail to source /dev/null (special
1286   # files actually), so we avoid doing that.
1287   if test -f "$cache_file"; then
1288     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1289 echo "$as_me: loading cache $cache_file" >&6;}
1290     case $cache_file in
1291       [\\/]* | ?:[\\/]* ) . $cache_file;;
1292       *)                      . ./$cache_file;;
1293     esac
1294   fi
1295 else
1296   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1297 echo "$as_me: creating cache $cache_file" >&6;}
1298   >$cache_file
1299 fi
1300
1301 # Check that the precious variables saved in the cache have kept the same
1302 # value.
1303 ac_cache_corrupted=false
1304 for ac_var in `(set) 2>&1 |
1305                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1306   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1307   eval ac_new_set=\$ac_env_${ac_var}_set
1308   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1309   eval ac_new_val="\$ac_env_${ac_var}_value"
1310   case $ac_old_set,$ac_new_set in
1311     set,)
1312       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1314       ac_cache_corrupted=: ;;
1315     ,set)
1316       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1317 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1318       ac_cache_corrupted=: ;;
1319     ,);;
1320     *)
1321       if test "x$ac_old_val" != "x$ac_new_val"; then
1322         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1323 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1324         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1325 echo "$as_me:   former value:  $ac_old_val" >&2;}
1326         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1327 echo "$as_me:   current value: $ac_new_val" >&2;}
1328         ac_cache_corrupted=:
1329       fi;;
1330   esac
1331   # Pass precious variables to config.status.
1332   if test "$ac_new_set" = set; then
1333     case $ac_new_val in
1334     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1335       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1336     *) ac_arg=$ac_var=$ac_new_val ;;
1337     esac
1338     case " $ac_configure_args " in
1339       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1340       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1341     esac
1342   fi
1343 done
1344 if $ac_cache_corrupted; then
1345   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1346 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1347   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1348 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1349    { (exit 1); exit 1; }; }
1350 fi
1351
1352 ac_ext=c
1353 ac_cpp='$CPP $CPPFLAGS'
1354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 am__api_version="1.7"
1386 ac_aux_dir=
1387 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1388   if test -f $ac_dir/install-sh; then
1389     ac_aux_dir=$ac_dir
1390     ac_install_sh="$ac_aux_dir/install-sh -c"
1391     break
1392   elif test -f $ac_dir/install.sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install.sh -c"
1395     break
1396   elif test -f $ac_dir/shtool; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/shtool install -c"
1399     break
1400   fi
1401 done
1402 if test -z "$ac_aux_dir"; then
1403   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1404 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1405    { (exit 1); exit 1; }; }
1406 fi
1407 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1408 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1409 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1410
1411 # Find a good install program.  We prefer a C program (faster),
1412 # so one script is as good as another.  But avoid the broken or
1413 # incompatible versions:
1414 # SysV /etc/install, /usr/sbin/install
1415 # SunOS /usr/etc/install
1416 # IRIX /sbin/install
1417 # AIX /bin/install
1418 # AmigaOS /C/install, which installs bootblocks on floppy discs
1419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1422 # OS/2's system install, which has a completely different semantic
1423 # ./install, which can be erroneously created by make from ./install.sh.
1424 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1425 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1426 if test -z "$INSTALL"; then
1427 if test "${ac_cv_path_install+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   # Account for people who put trailing slashes in PATH elements.
1436 case $as_dir/ in
1437   ./ | .// | /cC/* | \
1438   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1439   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1440   /usr/ucb/* ) ;;
1441   *)
1442     # OSF1 and SCO ODT 3.0 have their own names for install.
1443     # Don't use installbsd from OSF since it installs stuff as root
1444     # by default.
1445     for ac_prog in ginstall scoinst install; do
1446       for ac_exec_ext in '' $ac_executable_extensions; do
1447         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1448           if test $ac_prog = install &&
1449             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1450             # AIX install.  It has an incompatible calling convention.
1451             :
1452           elif test $ac_prog = install &&
1453             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1454             # program-specific install script used by HP pwplus--don't use.
1455             :
1456           else
1457             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1458             break 3
1459           fi
1460         fi
1461       done
1462     done
1463     ;;
1464 esac
1465 done
1466
1467
1468 fi
1469   if test "${ac_cv_path_install+set}" = set; then
1470     INSTALL=$ac_cv_path_install
1471   else
1472     # As a last resort, use the slow shell script.  We don't cache a
1473     # path for INSTALL within a source directory, because that will
1474     # break other packages using the cache if that directory is
1475     # removed, or if the path is relative.
1476     INSTALL=$ac_install_sh
1477   fi
1478 fi
1479 echo "$as_me:$LINENO: result: $INSTALL" >&5
1480 echo "${ECHO_T}$INSTALL" >&6
1481
1482 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1483 # It thinks the first close brace ends the variable substitution.
1484 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1485
1486 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1487
1488 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1489
1490 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1491 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1492 # Just in case
1493 sleep 1
1494 echo timestamp > conftest.file
1495 # Do `set' in a subshell so we don't clobber the current shell's
1496 # arguments.  Must try -L first in case configure is actually a
1497 # symlink; some systems play weird games with the mod time of symlinks
1498 # (eg FreeBSD returns the mod time of the symlink's containing
1499 # directory).
1500 if (
1501    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1502    if test "$*" = "X"; then
1503       # -L didn't work.
1504       set X `ls -t $srcdir/configure conftest.file`
1505    fi
1506    rm -f conftest.file
1507    if test "$*" != "X $srcdir/configure conftest.file" \
1508       && test "$*" != "X conftest.file $srcdir/configure"; then
1509
1510       # If neither matched, then we have a broken ls.  This can happen
1511       # if, for instance, CONFIG_SHELL is bash and it inherits a
1512       # broken ls alias from the environment.  This has actually
1513       # happened.  Such a system could not be considered "sane".
1514       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1515 alias in your environment" >&5
1516 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1517 alias in your environment" >&2;}
1518    { (exit 1); exit 1; }; }
1519    fi
1520
1521    test "$2" = conftest.file
1522    )
1523 then
1524    # Ok.
1525    :
1526 else
1527    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1528 Check your system clock" >&5
1529 echo "$as_me: error: newly created file is older than distributed files!
1530 Check your system clock" >&2;}
1531    { (exit 1); exit 1; }; }
1532 fi
1533 echo "$as_me:$LINENO: result: yes" >&5
1534 echo "${ECHO_T}yes" >&6
1535 test "$program_prefix" != NONE &&
1536   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1537 # Use a double $ so make ignores it.
1538 test "$program_suffix" != NONE &&
1539   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1540 # Double any \ or $.  echo might interpret backslashes.
1541 # By default was `s,x,x', remove it if useless.
1542 cat <<\_ACEOF >conftest.sed
1543 s/[\\$]/&&/g;s/;s,x,x,$//
1544 _ACEOF
1545 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1546 rm conftest.sed
1547
1548
1549 # expand $ac_aux_dir to an absolute path
1550 am_aux_dir=`cd $ac_aux_dir && pwd`
1551
1552 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1553 # Use eval to expand $SHELL
1554 if eval "$MISSING --run true"; then
1555   am_missing_run="$MISSING --run "
1556 else
1557   am_missing_run=
1558   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1559 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1560 fi
1561
1562 for ac_prog in gawk mawk nawk awk
1563 do
1564   # Extract the first word of "$ac_prog", so it can be a program name with args.
1565 set dummy $ac_prog; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_AWK+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$AWK"; then
1572   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_AWK="$ac_prog"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 AWK=$ac_cv_prog_AWK
1591 if test -n "$AWK"; then
1592   echo "$as_me:$LINENO: result: $AWK" >&5
1593 echo "${ECHO_T}$AWK" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   test -n "$AWK" && break
1600 done
1601
1602 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1603 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1604 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1605 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1606   echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608   cat >conftest.make <<\_ACEOF
1609 all:
1610         @echo 'ac_maketemp="$(MAKE)"'
1611 _ACEOF
1612 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1613 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1614 if test -n "$ac_maketemp"; then
1615   eval ac_cv_prog_make_${ac_make}_set=yes
1616 else
1617   eval ac_cv_prog_make_${ac_make}_set=no
1618 fi
1619 rm -f conftest.make
1620 fi
1621 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1622   echo "$as_me:$LINENO: result: yes" >&5
1623 echo "${ECHO_T}yes" >&6
1624   SET_MAKE=
1625 else
1626   echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628   SET_MAKE="MAKE=${MAKE-make}"
1629 fi
1630
1631 rm -rf .tst 2>/dev/null
1632 mkdir .tst 2>/dev/null
1633 if test -d .tst; then
1634   am__leading_dot=.
1635 else
1636   am__leading_dot=_
1637 fi
1638 rmdir .tst 2>/dev/null
1639
1640  # test to see if srcdir already configured
1641 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1642    test -f $srcdir/config.status; then
1643   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1644 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1645    { (exit 1); exit 1; }; }
1646 fi
1647
1648 # test whether we have cygpath
1649 if test -z "$CYGPATH_W"; then
1650   if (cygpath --version) >/dev/null 2>/dev/null; then
1651     CYGPATH_W='cygpath -w'
1652   else
1653     CYGPATH_W=echo
1654   fi
1655 fi
1656
1657
1658 # Define the identity of the package.
1659  PACKAGE='cvs'
1660  VERSION='1.11.17'
1661
1662
1663 # Some tools Automake needs.
1664
1665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1666
1667
1668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1669
1670
1671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1672
1673
1674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1675
1676
1677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1678
1679
1680 AMTAR=${AMTAR-"${am_missing_run}tar"}
1681
1682 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1683
1684 # Installed binaries are usually stripped using `strip' when the user
1685 # run `make install-strip'.  However `strip' might not be the right
1686 # tool to use in cross-compilation environments, therefore Automake
1687 # will honor the `STRIP' environment variable to overrule this program.
1688 if test "$cross_compiling" != no; then
1689   if test -n "$ac_tool_prefix"; then
1690   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1691 set dummy ${ac_tool_prefix}strip; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_STRIP+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$STRIP"; then
1698   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 STRIP=$ac_cv_prog_STRIP
1717 if test -n "$STRIP"; then
1718   echo "$as_me:$LINENO: result: $STRIP" >&5
1719 echo "${ECHO_T}$STRIP" >&6
1720 else
1721   echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 fi
1726 if test -z "$ac_cv_prog_STRIP"; then
1727   ac_ct_STRIP=$STRIP
1728   # Extract the first word of "strip", so it can be a program name with args.
1729 set dummy strip; ac_word=$2
1730 echo "$as_me:$LINENO: checking for $ac_word" >&5
1731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1733   echo $ECHO_N "(cached) $ECHO_C" >&6
1734 else
1735   if test -n "$ac_ct_STRIP"; then
1736   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1737 else
1738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739 for as_dir in $PATH
1740 do
1741   IFS=$as_save_IFS
1742   test -z "$as_dir" && as_dir=.
1743   for ac_exec_ext in '' $ac_executable_extensions; do
1744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745     ac_cv_prog_ac_ct_STRIP="strip"
1746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1747     break 2
1748   fi
1749 done
1750 done
1751
1752   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1753 fi
1754 fi
1755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1756 if test -n "$ac_ct_STRIP"; then
1757   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1758 echo "${ECHO_T}$ac_ct_STRIP" >&6
1759 else
1760   echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1762 fi
1763
1764   STRIP=$ac_ct_STRIP
1765 else
1766   STRIP="$ac_cv_prog_STRIP"
1767 fi
1768
1769 fi
1770 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1771
1772 # We need awk for the "check" target.  The system "awk" is bad on
1773 # some platforms.
1774
1775
1776
1777
1778
1779 if test "x$prefix" = xNONE; then
1780   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1781   # Extract the first word of "cvs", so it can be a program name with args.
1782 set dummy cvs; ac_word=$2
1783 echo "$as_me:$LINENO: checking for $ac_word" >&5
1784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1786   echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788   case $ac_prefix_program in
1789   [\\/]* | ?:[\\/]*)
1790   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1791   ;;
1792   *)
1793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796   IFS=$as_save_IFS
1797   test -z "$as_dir" && as_dir=.
1798   for ac_exec_ext in '' $ac_executable_extensions; do
1799   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802     break 2
1803   fi
1804 done
1805 done
1806
1807   ;;
1808 esac
1809 fi
1810 ac_prefix_program=$ac_cv_path_ac_prefix_program
1811
1812 if test -n "$ac_prefix_program"; then
1813   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1814 echo "${ECHO_T}$ac_prefix_program" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   if test -n "$ac_prefix_program"; then
1821     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1822 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1823          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1824          X"$ac_prefix_program" : 'X\(//\)$' \| \
1825          X"$ac_prefix_program" : 'X\(/\)' \| \
1826          .     : '\(.\)' 2>/dev/null ||
1827 echo X"$ac_prefix_program" |
1828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1829           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1830           /^X\(\/\/\)$/{ s//\1/; q; }
1831           /^X\(\/\).*/{ s//\1/; q; }
1832           s/.*/./; q'`
1833     prefix=`(dirname "$prefix") 2>/dev/null ||
1834 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1835          X"$prefix" : 'X\(//\)[^/]' \| \
1836          X"$prefix" : 'X\(//\)$' \| \
1837          X"$prefix" : 'X\(/\)' \| \
1838          .     : '\(.\)' 2>/dev/null ||
1839 echo X"$prefix" |
1840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1842           /^X\(\/\/\)$/{ s//\1/; q; }
1843           /^X\(\/\).*/{ s//\1/; q; }
1844           s/.*/./; q'`
1845   fi
1846 fi
1847
1848           ac_config_headers="$ac_config_headers config.h"
1849
1850 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1851 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1852     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1853 if test "${enable_maintainer_mode+set}" = set; then
1854   enableval="$enable_maintainer_mode"
1855   USE_MAINTAINER_MODE=$enableval
1856 else
1857   USE_MAINTAINER_MODE=no
1858 fi;
1859   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1860 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1861
1862
1863 if test $USE_MAINTAINER_MODE = yes; then
1864   MAINTAINER_MODE_TRUE=
1865   MAINTAINER_MODE_FALSE='#'
1866 else
1867   MAINTAINER_MODE_TRUE='#'
1868   MAINTAINER_MODE_FALSE=
1869 fi
1870
1871   MAINT=$MAINTAINER_MODE_TRUE
1872
1873
1874
1875 ac_ext=c
1876 ac_cpp='$CPP $CPPFLAGS'
1877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880 if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "gcc", so it can be a program name with args.
1920 set dummy gcc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="gcc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 if test -z "$CC"; then
1960   if test -n "$ac_tool_prefix"; then
1961   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972 for as_dir in $PATH
1973 do
1974   IFS=$as_save_IFS
1975   test -z "$as_dir" && as_dir=.
1976   for ac_exec_ext in '' $ac_executable_extensions; do
1977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978     ac_cv_prog_CC="${ac_tool_prefix}cc"
1979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980     break 2
1981   fi
1982 done
1983 done
1984
1985 fi
1986 fi
1987 CC=$ac_cv_prog_CC
1988 if test -n "$CC"; then
1989   echo "$as_me:$LINENO: result: $CC" >&5
1990 echo "${ECHO_T}$CC" >&6
1991 else
1992   echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1994 fi
1995
1996 fi
1997 if test -z "$ac_cv_prog_CC"; then
1998   ac_ct_CC=$CC
1999   # Extract the first word of "cc", so it can be a program name with args.
2000 set dummy cc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$ac_ct_CC"; then
2007   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_ac_ct_CC="cc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2026 if test -n "$ac_ct_CC"; then
2027   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2028 echo "${ECHO_T}$ac_ct_CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034   CC=$ac_ct_CC
2035 else
2036   CC="$ac_cv_prog_CC"
2037 fi
2038
2039 fi
2040 if test -z "$CC"; then
2041   # Extract the first word of "cc", so it can be a program name with args.
2042 set dummy cc; ac_word=$2
2043 echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   if test -n "$CC"; then
2049   ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051   ac_prog_rejected=no
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2054 do
2055   IFS=$as_save_IFS
2056   test -z "$as_dir" && as_dir=.
2057   for ac_exec_ext in '' $ac_executable_extensions; do
2058   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2060        ac_prog_rejected=yes
2061        continue
2062      fi
2063     ac_cv_prog_CC="cc"
2064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065     break 2
2066   fi
2067 done
2068 done
2069
2070 if test $ac_prog_rejected = yes; then
2071   # We found a bogon in the path, so make sure we never use it.
2072   set dummy $ac_cv_prog_CC
2073   shift
2074   if test $# != 0; then
2075     # We chose a different compiler from the bogus one.
2076     # However, it has the same basename, so the bogon will be chosen
2077     # first if we set CC to just the basename; use the full file name.
2078     shift
2079     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2080   fi
2081 fi
2082 fi
2083 fi
2084 CC=$ac_cv_prog_CC
2085 if test -n "$CC"; then
2086   echo "$as_me:$LINENO: result: $CC" >&5
2087 echo "${ECHO_T}$CC" >&6
2088 else
2089   echo "$as_me:$LINENO: result: no" >&5
2090 echo "${ECHO_T}no" >&6
2091 fi
2092
2093 fi
2094 if test -z "$CC"; then
2095   if test -n "$ac_tool_prefix"; then
2096   for ac_prog in cl
2097   do
2098     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2100 echo "$as_me:$LINENO: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_CC+set}" = set; then
2103   echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105   if test -n "$CC"; then
2106   ac_cv_prog_CC="$CC" # Let the user override the test.
2107 else
2108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   for ac_exec_ext in '' $ac_executable_extensions; do
2114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117     break 2
2118   fi
2119 done
2120 done
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6
2128 else
2129   echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6
2131 fi
2132
2133     test -n "$CC" && break
2134   done
2135 fi
2136 if test -z "$CC"; then
2137   ac_ct_CC=$CC
2138   for ac_prog in cl
2139 do
2140   # Extract the first word of "$ac_prog", so it can be a program name with args.
2141 set dummy $ac_prog; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145   echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147   if test -n "$ac_ct_CC"; then
2148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155   for ac_exec_ext in '' $ac_executable_extensions; do
2156   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157     ac_cv_prog_ac_ct_CC="$ac_prog"
2158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159     break 2
2160   fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171   echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175   test -n "$ac_ct_CC" && break
2176 done
2177
2178   CC=$ac_ct_CC
2179 fi
2180
2181 fi
2182
2183
2184 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: no acceptable C compiler found in \$PATH
2187 See \`config.log' for more details." >&2;}
2188    { (exit 1); exit 1; }; }
2189
2190 # Provide some information about the compiler.
2191 echo "$as_me:$LINENO:" \
2192      "checking for C compiler version" >&5
2193 ac_compiler=`set X $ac_compile; echo $2`
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2195   (eval $ac_compiler --version </dev/null >&5) 2>&5
2196   ac_status=$?
2197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198   (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2200   (eval $ac_compiler -v </dev/null >&5) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }
2204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2205   (eval $ac_compiler -V </dev/null >&5) 2>&5
2206   ac_status=$?
2207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208   (exit $ac_status); }
2209
2210 cat >conftest.$ac_ext <<_ACEOF
2211 /* confdefs.h.  */
2212 _ACEOF
2213 cat confdefs.h >>conftest.$ac_ext
2214 cat >>conftest.$ac_ext <<_ACEOF
2215 /* end confdefs.h.  */
2216
2217 int
2218 main ()
2219 {
2220
2221   ;
2222   return 0;
2223 }
2224 _ACEOF
2225 ac_clean_files_save=$ac_clean_files
2226 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2227 # Try to create an executable without -o first, disregard a.out.
2228 # It will help us diagnose broken compilers, and finding out an intuition
2229 # of exeext.
2230 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2231 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2232 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2233 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2234   (eval $ac_link_default) 2>&5
2235   ac_status=$?
2236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237   (exit $ac_status); }; then
2238   # Find the output, starting from the most likely.  This scheme is
2239 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2240 # resort.
2241
2242 # Be careful to initialize this variable, since it used to be cached.
2243 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2244 ac_cv_exeext=
2245 # b.out is created by i960 compilers.
2246 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2247 do
2248   test -f "$ac_file" || continue
2249   case $ac_file in
2250     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2251         ;;
2252     conftest.$ac_ext )
2253         # This is the source file.
2254         ;;
2255     [ab].out )
2256         # We found the default executable, but exeext='' is most
2257         # certainly right.
2258         break;;
2259     *.* )
2260         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261         # FIXME: I believe we export ac_cv_exeext for Libtool,
2262         # but it would be cool to find out if it's true.  Does anybody
2263         # maintain Libtool? --akim.
2264         export ac_cv_exeext
2265         break;;
2266     * )
2267         break;;
2268   esac
2269 done
2270 else
2271   echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2273
2274 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: C compiler cannot create executables
2277 See \`config.log' for more details." >&2;}
2278    { (exit 77); exit 77; }; }
2279 fi
2280
2281 ac_exeext=$ac_cv_exeext
2282 echo "$as_me:$LINENO: result: $ac_file" >&5
2283 echo "${ECHO_T}$ac_file" >&6
2284
2285 # Check the compiler produces executables we can run.  If not, either
2286 # the compiler is broken, or we cross compile.
2287 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2288 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2289 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2290 # If not cross compiling, check that we can run a simple program.
2291 if test "$cross_compiling" != yes; then
2292   if { ac_try='./$ac_file'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298     cross_compiling=no
2299   else
2300     if test "$cross_compiling" = maybe; then
2301         cross_compiling=yes
2302     else
2303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2304 If you meant to cross compile, use \`--host'.
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&2;}
2309    { (exit 1); exit 1; }; }
2310     fi
2311   fi
2312 fi
2313 echo "$as_me:$LINENO: result: yes" >&5
2314 echo "${ECHO_T}yes" >&6
2315
2316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2317 ac_clean_files=$ac_clean_files_save
2318 # Check the compiler produces executables we can run.  If not, either
2319 # the compiler is broken, or we cross compile.
2320 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2322 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2323 echo "${ECHO_T}$cross_compiling" >&6
2324
2325 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328   (eval $ac_link) 2>&5
2329   ac_status=$?
2330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331   (exit $ac_status); }; then
2332   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2333 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2334 # work properly (i.e., refer to `conftest.exe'), while it won't with
2335 # `rm'.
2336 for ac_file in conftest.exe conftest conftest.*; do
2337   test -f "$ac_file" || continue
2338   case $ac_file in
2339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2340     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2341           export ac_cv_exeext
2342           break;;
2343     * ) break;;
2344   esac
2345 done
2346 else
2347   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2348 See \`config.log' for more details." >&5
2349 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2350 See \`config.log' for more details." >&2;}
2351    { (exit 1); exit 1; }; }
2352 fi
2353
2354 rm -f conftest$ac_cv_exeext
2355 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2356 echo "${ECHO_T}$ac_cv_exeext" >&6
2357
2358 rm -f conftest.$ac_ext
2359 EXEEXT=$ac_cv_exeext
2360 ac_exeext=$EXEEXT
2361 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2362 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2363 if test "${ac_cv_objext+set}" = set; then
2364   echo $ECHO_N "(cached) $ECHO_C" >&6
2365 else
2366   cat >conftest.$ac_ext <<_ACEOF
2367 /* confdefs.h.  */
2368 _ACEOF
2369 cat confdefs.h >>conftest.$ac_ext
2370 cat >>conftest.$ac_ext <<_ACEOF
2371 /* end confdefs.h.  */
2372
2373 int
2374 main ()
2375 {
2376
2377   ;
2378   return 0;
2379 }
2380 _ACEOF
2381 rm -f conftest.o conftest.obj
2382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383   (eval $ac_compile) 2>&5
2384   ac_status=$?
2385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386   (exit $ac_status); }; then
2387   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2388   case $ac_file in
2389     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2390     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2391        break;;
2392   esac
2393 done
2394 else
2395   echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2397
2398 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2399 See \`config.log' for more details." >&5
2400 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2401 See \`config.log' for more details." >&2;}
2402    { (exit 1); exit 1; }; }
2403 fi
2404
2405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2406 fi
2407 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2408 echo "${ECHO_T}$ac_cv_objext" >&6
2409 OBJEXT=$ac_cv_objext
2410 ac_objext=$OBJEXT
2411 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2412 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2413 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2414   echo $ECHO_N "(cached) $ECHO_C" >&6
2415 else
2416   cat >conftest.$ac_ext <<_ACEOF
2417 /* confdefs.h.  */
2418 _ACEOF
2419 cat confdefs.h >>conftest.$ac_ext
2420 cat >>conftest.$ac_ext <<_ACEOF
2421 /* end confdefs.h.  */
2422
2423 int
2424 main ()
2425 {
2426 #ifndef __GNUC__
2427        choke me
2428 #endif
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.$ac_objext
2435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2436   (eval $ac_compile) 2>conftest.er1
2437   ac_status=$?
2438   grep -v '^ *+' conftest.er1 >conftest.err
2439   rm -f conftest.er1
2440   cat conftest.err >&5
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); } &&
2443          { ac_try='test -z "$ac_c_werror_flag"
2444                          || test ! -s conftest.err'
2445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446   (eval $ac_try) 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; } &&
2450          { ac_try='test -s conftest.$ac_objext'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; }; then
2456   ac_compiler_gnu=yes
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 ac_compiler_gnu=no
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2465
2466 fi
2467 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 CFLAGS="-g"
2473 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476   echo $ECHO_N "(cached) $ECHO_C" >&6
2477 else
2478   cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h.  */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h.  */
2484
2485 int
2486 main ()
2487 {
2488
2489   ;
2490   return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2495   (eval $ac_compile) 2>conftest.er1
2496   ac_status=$?
2497   grep -v '^ *+' conftest.er1 >conftest.err
2498   rm -f conftest.er1
2499   cat conftest.err >&5
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -z "$ac_c_werror_flag"
2503                          || test ! -s conftest.err'
2504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505   (eval $ac_try) 2>&5
2506   ac_status=$?
2507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508   (exit $ac_status); }; } &&
2509          { ac_try='test -s conftest.$ac_objext'
2510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511   (eval $ac_try) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }; }; then
2515   ac_cv_prog_cc_g=yes
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_cv_prog_cc_g=no
2521 fi
2522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2523 fi
2524 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2525 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2526 if test "$ac_test_CFLAGS" = set; then
2527   CFLAGS=$ac_save_CFLAGS
2528 elif test $ac_cv_prog_cc_g = yes; then
2529   if test "$GCC" = yes; then
2530     CFLAGS="-g -O2"
2531   else
2532     CFLAGS="-g"
2533   fi
2534 else
2535   if test "$GCC" = yes; then
2536     CFLAGS="-O2"
2537   else
2538     CFLAGS=
2539   fi
2540 fi
2541 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2542 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2543 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   ac_cv_prog_cc_stdc=no
2547 ac_save_CC=$CC
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h.  */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h.  */
2554 #include <stdarg.h>
2555 #include <stdio.h>
2556 #include <sys/types.h>
2557 #include <sys/stat.h>
2558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2559 struct buf { int x; };
2560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2561 static char *e (p, i)
2562      char **p;
2563      int i;
2564 {
2565   return p[i];
2566 }
2567 static char *f (char * (*g) (char **, int), char **p, ...)
2568 {
2569   char *s;
2570   va_list v;
2571   va_start (v,p);
2572   s = g (p, va_arg (v,int));
2573   va_end (v);
2574   return s;
2575 }
2576
2577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2578    function prototypes and stuff, but not '\xHH' hex character constants.
2579    These don't provoke an error unfortunately, instead are silently treated
2580    as 'x'.  The following induces an error, until -std1 is added to get
2581    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2582    array size at least.  It's necessary to write '\x00'==0 to get something
2583    that's true only with -std1.  */
2584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2585
2586 int test (int i, double x);
2587 struct s1 {int (*f) (int a);};
2588 struct s2 {int (*f) (double a);};
2589 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2590 int argc;
2591 char **argv;
2592 int
2593 main ()
2594 {
2595 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 # Don't try gcc -ansi; that turns off useful extensions and
2601 # breaks some systems' header files.
2602 # AIX                   -qlanglvl=ansi
2603 # Ultrix and OSF/1      -std1
2604 # HP-UX 10.20 and later -Ae
2605 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2606 # SVR4                  -Xc -D__EXTENSIONS__
2607 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2608 do
2609   CC="$ac_save_CC $ac_arg"
2610   rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612   (eval $ac_compile) 2>conftest.er1
2613   ac_status=$?
2614   grep -v '^ *+' conftest.er1 >conftest.err
2615   rm -f conftest.er1
2616   cat conftest.err >&5
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -z "$ac_c_werror_flag"
2620                          || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   ac_cv_prog_cc_stdc=$ac_arg
2633 break
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 fi
2639 rm -f conftest.err conftest.$ac_objext
2640 done
2641 rm -f conftest.$ac_ext conftest.$ac_objext
2642 CC=$ac_save_CC
2643
2644 fi
2645
2646 case "x$ac_cv_prog_cc_stdc" in
2647   x|xno)
2648     echo "$as_me:$LINENO: result: none needed" >&5
2649 echo "${ECHO_T}none needed" >&6 ;;
2650   *)
2651     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2653     CC="$CC $ac_cv_prog_cc_stdc" ;;
2654 esac
2655
2656 # Some people use a C++ compiler to compile C.  Since we use `exit',
2657 # in C++ we need to declare it.  In case someone uses the same compiler
2658 # for both compiling C and C++ we need to have the C++ compiler decide
2659 # the declaration of exit, since it's the most demanding environment.
2660 cat >conftest.$ac_ext <<_ACEOF
2661 #ifndef __cplusplus
2662   choke me
2663 #endif
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_c_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   for ac_declaration in \
2688    '' \
2689    'extern "C" void std::exit (int) throw (); using std::exit;' \
2690    'extern "C" void std::exit (int); using std::exit;' \
2691    'extern "C" void exit (int) throw ();' \
2692    'extern "C" void exit (int);' \
2693    'void exit (int);'
2694 do
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 $ac_declaration
2702 #include <stdlib.h>
2703 int
2704 main ()
2705 {
2706 exit (42);
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   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 continue
2739 fi
2740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747 $ac_declaration
2748 int
2749 main ()
2750 {
2751 exit (42);
2752   ;
2753   return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758   (eval $ac_compile) 2>conftest.er1
2759   ac_status=$?
2760   grep -v '^ *+' conftest.er1 >conftest.err
2761   rm -f conftest.er1
2762   cat conftest.err >&5
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); } &&
2765          { ac_try='test -z "$ac_c_werror_flag"
2766                          || test ! -s conftest.err'
2767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768   (eval $ac_try) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); }; } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   break
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 done
2786 rm -f conftest*
2787 if test -n "$ac_declaration"; then
2788   echo '#ifdef __cplusplus' >>confdefs.h
2789   echo $ac_declaration      >>confdefs.h
2790   echo '#endif'             >>confdefs.h
2791 fi
2792
2793 else
2794   echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2796
2797 fi
2798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 DEPDIR="${am__leading_dot}deps"
2805
2806           ac_config_commands="$ac_config_commands depfiles"
2807
2808
2809 am_make=${MAKE-make}
2810 cat > confinc << 'END'
2811 am__doit:
2812         @echo done
2813 .PHONY: am__doit
2814 END
2815 # If we don't find an include directive, just comment out the code.
2816 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2817 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2818 am__include="#"
2819 am__quote=
2820 _am_result=none
2821 # First try GNU make style include.
2822 echo "include confinc" > confmf
2823 # We grep out `Entering directory' and `Leaving directory'
2824 # messages which can occur if `w' ends up in MAKEFLAGS.
2825 # In particular we don't look at `^make:' because GNU make might
2826 # be invoked under some other name (usually "gmake"), in which
2827 # case it prints its new name instead of `make'.
2828 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2829    am__include=include
2830    am__quote=
2831    _am_result=GNU
2832 fi
2833 # Now try BSD make style include.
2834 if test "$am__include" = "#"; then
2835    echo '.include "confinc"' > confmf
2836    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2837       am__include=.include
2838       am__quote="\""
2839       _am_result=BSD
2840    fi
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: result: $_am_result" >&5
2845 echo "${ECHO_T}$_am_result" >&6
2846 rm -f confinc confmf
2847
2848 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2849 if test "${enable_dependency_tracking+set}" = set; then
2850   enableval="$enable_dependency_tracking"
2851
2852 fi;
2853 if test "x$enable_dependency_tracking" != xno; then
2854   am_depcomp="$ac_aux_dir/depcomp"
2855   AMDEPBACKSLASH='\'
2856 fi
2857
2858
2859 if test "x$enable_dependency_tracking" != xno; then
2860   AMDEP_TRUE=
2861   AMDEP_FALSE='#'
2862 else
2863   AMDEP_TRUE='#'
2864   AMDEP_FALSE=
2865 fi
2866
2867
2868
2869
2870 depcc="$CC"   am_compiler_list=
2871
2872 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2873 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2874 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2875   echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2878   # We make a subdir and do the tests there.  Otherwise we can end up
2879   # making bogus files that we don't know about and never remove.  For
2880   # instance it was reported that on HP-UX the gcc test will end up
2881   # making a dummy file named `D' -- because `-MD' means `put the output
2882   # in D'.
2883   mkdir conftest.dir
2884   # Copy depcomp to subdir because otherwise we won't find it if we're
2885   # using a relative directory.
2886   cp "$am_depcomp" conftest.dir
2887   cd conftest.dir
2888   # We will build objects and dependencies in a subdirectory because
2889   # it helps to detect inapplicable dependency modes.  For instance
2890   # both Tru64's cc and ICC support -MD to output dependencies as a
2891   # side effect of compilation, but ICC will put the dependencies in
2892   # the current directory while Tru64 will put them in the object
2893   # directory.
2894   mkdir sub
2895
2896   am_cv_CC_dependencies_compiler_type=none
2897   if test "$am_compiler_list" = ""; then
2898      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2899   fi
2900   for depmode in $am_compiler_list; do
2901     # Setup a source with many dependencies, because some compilers
2902     # like to wrap large dependency lists on column 80 (with \), and
2903     # we should not choose a depcomp mode which is confused by this.
2904     #
2905     # We need to recreate these files for each test, as the compiler may
2906     # overwrite some of them when testing with obscure command lines.
2907     # This happens at least with the AIX C compiler.
2908     : > sub/conftest.c
2909     for i in 1 2 3 4 5 6; do
2910       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2911       : > sub/conftst$i.h
2912     done
2913     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2914
2915     case $depmode in
2916     nosideeffect)
2917       # after this tag, mechanisms are not by side-effect, so they'll
2918       # only be used when explicitly requested
2919       if test "x$enable_dependency_tracking" = xyes; then
2920         continue
2921       else
2922         break
2923       fi
2924       ;;
2925     none) break ;;
2926     esac
2927     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2928     # mode.  It turns out that the SunPro C++ compiler does not properly
2929     # handle `-M -o', and we need to detect this.
2930     if depmode=$depmode \
2931        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2932        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2933        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2934          >/dev/null 2>conftest.err &&
2935        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2936        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2937        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2938       # icc doesn't choke on unknown options, it will just issue warnings
2939       # (even with -Werror).  So we grep stderr for any message
2940       # that says an option was ignored.
2941       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2942         am_cv_CC_dependencies_compiler_type=$depmode
2943         break
2944       fi
2945     fi
2946   done
2947
2948   cd ..
2949   rm -rf conftest.dir
2950 else
2951   am_cv_CC_dependencies_compiler_type=none
2952 fi
2953
2954 fi
2955 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2956 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2957 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2958
2959
2960
2961 if
2962   test "x$enable_dependency_tracking" != xno \
2963   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2964   am__fastdepCC_TRUE=
2965   am__fastdepCC_FALSE='#'
2966 else
2967   am__fastdepCC_TRUE='#'
2968   am__fastdepCC_FALSE=
2969 fi
2970
2971
2972 if test "x$CC" != xcc; then
2973   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2974 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2975 else
2976   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2977 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2978 fi
2979 set dummy $CC; ac_cc=`echo $2 |
2980                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2981 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2982   echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984   cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h.  */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h.  */
2990
2991 int
2992 main ()
2993 {
2994
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 # Make sure it works both with $CC and with simple cc.
3000 # We do the test twice because some compilers refuse to overwrite an
3001 # existing .o file with -o, though they will create one.
3002 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3003 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3004   (eval $ac_try) 2>&5
3005   ac_status=$?
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009   (eval $ac_try) 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); };
3013 then
3014   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3015   if test "x$CC" != xcc; then
3016     # Test first that cc exists at all.
3017     if { ac_try='cc -c conftest.$ac_ext >&5'
3018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3019   (eval $ac_try) 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3024       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025   (eval $ac_try) 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); } &&
3029          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030   (eval $ac_try) 2>&5
3031   ac_status=$?
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); };
3034       then
3035         # cc works too.
3036         :
3037       else
3038         # cc exists but doesn't like -o.
3039         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3040       fi
3041     fi
3042   fi
3043 else
3044   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3045 fi
3046 rm -f conftest*
3047
3048 fi
3049 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3050   echo "$as_me:$LINENO: result: yes" >&5
3051 echo "${ECHO_T}yes" >&6
3052 else
3053   echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055
3056 cat >>confdefs.h <<\_ACEOF
3057 #define NO_MINUS_C_MINUS_O 1
3058 _ACEOF
3059
3060 fi
3061
3062 # FIXME: we rely on the cache variable name because
3063 # there is no other way.
3064 set dummy $CC
3065 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3066 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3067    # Losing compiler, so override with the script.
3068    # FIXME: It is wrong to rewrite CC.
3069    # But if we don't then we get into trouble of one sort or another.
3070    # A longer-term fix would be to have automake use am__CC in this case,
3071    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3072    CC="$am_aux_dir/compile $CC"
3073 fi
3074
3075
3076
3077 ac_ext=c
3078 ac_cpp='$CPP $CPPFLAGS'
3079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3082 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3083 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3084 # On Suns, sometimes $CPP names a directory.
3085 if test -n "$CPP" && test -d "$CPP"; then
3086   CPP=
3087 fi
3088 if test -z "$CPP"; then
3089   if test "${ac_cv_prog_CPP+set}" = set; then
3090   echo $ECHO_N "(cached) $ECHO_C" >&6
3091 else
3092       # Double quotes because CPP needs to be expanded
3093     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3094     do
3095       ac_preproc_ok=false
3096 for ac_c_preproc_warn_flag in '' yes
3097 do
3098   # Use a header file that comes with gcc, so configuring glibc
3099   # with a fresh cross-compiler works.
3100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3101   # <limits.h> exists even on freestanding compilers.
3102   # On the NeXT, cc -E runs the code through the compiler's parser,
3103   # not just through cpp. "Syntax error" is here to catch this case.
3104   cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110 #ifdef __STDC__
3111 # include <limits.h>
3112 #else
3113 # include <assert.h>
3114 #endif
3115                      Syntax error
3116 _ACEOF
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119   ac_status=$?
3120   grep -v '^ *+' conftest.er1 >conftest.err
3121   rm -f conftest.er1
3122   cat conftest.err >&5
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); } >/dev/null; then
3125   if test -s conftest.err; then
3126     ac_cpp_err=$ac_c_preproc_warn_flag
3127     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128   else
3129     ac_cpp_err=
3130   fi
3131 else
3132   ac_cpp_err=yes
3133 fi
3134 if test -z "$ac_cpp_err"; then
3135   :
3136 else
3137   echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140   # Broken: fails on valid input.
3141 continue
3142 fi
3143 rm -f conftest.err conftest.$ac_ext
3144
3145   # OK, works on sane cases.  Now check whether non-existent headers
3146   # can be detected and how.
3147   cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153 #include <ac_nonexistent.h>
3154 _ACEOF
3155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157   ac_status=$?
3158   grep -v '^ *+' conftest.er1 >conftest.err
3159   rm -f conftest.er1
3160   cat conftest.err >&5
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); } >/dev/null; then
3163   if test -s conftest.err; then
3164     ac_cpp_err=$ac_c_preproc_warn_flag
3165     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166   else
3167     ac_cpp_err=
3168   fi
3169 else
3170   ac_cpp_err=yes
3171 fi
3172 if test -z "$ac_cpp_err"; then
3173   # Broken: success on invalid input.
3174 continue
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179   # Passes both tests.
3180 ac_preproc_ok=:
3181 break
3182 fi
3183 rm -f conftest.err conftest.$ac_ext
3184
3185 done
3186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3187 rm -f conftest.err conftest.$ac_ext
3188 if $ac_preproc_ok; then
3189   break
3190 fi
3191
3192     done
3193     ac_cv_prog_CPP=$CPP
3194
3195 fi
3196   CPP=$ac_cv_prog_CPP
3197 else
3198   ac_cv_prog_CPP=$CPP
3199 fi
3200 echo "$as_me:$LINENO: result: $CPP" >&5
3201 echo "${ECHO_T}$CPP" >&6
3202 ac_preproc_ok=false
3203 for ac_c_preproc_warn_flag in '' yes
3204 do
3205   # Use a header file that comes with gcc, so configuring glibc
3206   # with a fresh cross-compiler works.
3207   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3208   # <limits.h> exists even on freestanding compilers.
3209   # On the NeXT, cc -E runs the code through the compiler's parser,
3210   # not just through cpp. "Syntax error" is here to catch this case.
3211   cat >conftest.$ac_ext <<_ACEOF
3212 /* confdefs.h.  */
3213 _ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h.  */
3217 #ifdef __STDC__
3218 # include <limits.h>
3219 #else
3220 # include <assert.h>
3221 #endif
3222                      Syntax error
3223 _ACEOF
3224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3226   ac_status=$?
3227   grep -v '^ *+' conftest.er1 >conftest.err
3228   rm -f conftest.er1
3229   cat conftest.err >&5
3230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231   (exit $ac_status); } >/dev/null; then
3232   if test -s conftest.err; then
3233     ac_cpp_err=$ac_c_preproc_warn_flag
3234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3235   else
3236     ac_cpp_err=
3237   fi
3238 else
3239   ac_cpp_err=yes
3240 fi
3241 if test -z "$ac_cpp_err"; then
3242   :
3243 else
3244   echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247   # Broken: fails on valid input.
3248 continue
3249 fi
3250 rm -f conftest.err conftest.$ac_ext
3251
3252   # OK, works on sane cases.  Now check whether non-existent headers
3253   # can be detected and how.
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3260 #include <ac_nonexistent.h>
3261 _ACEOF
3262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264   ac_status=$?
3265   grep -v '^ *+' conftest.er1 >conftest.err
3266   rm -f conftest.er1
3267   cat conftest.err >&5
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); } >/dev/null; then
3270   if test -s conftest.err; then
3271     ac_cpp_err=$ac_c_preproc_warn_flag
3272     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3273   else
3274     ac_cpp_err=
3275   fi
3276 else
3277   ac_cpp_err=yes
3278 fi
3279 if test -z "$ac_cpp_err"; then
3280   # Broken: success on invalid input.
3281 continue
3282 else
3283   echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3285
3286   # Passes both tests.
3287 ac_preproc_ok=:
3288 break
3289 fi
3290 rm -f conftest.err conftest.$ac_ext
3291
3292 done
3293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3294 rm -f conftest.err conftest.$ac_ext
3295 if $ac_preproc_ok; then
3296   :
3297 else
3298   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3301 See \`config.log' for more details." >&2;}
3302    { (exit 1); exit 1; }; }
3303 fi
3304
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310
3311
3312 echo "$as_me:$LINENO: checking for egrep" >&5
3313 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3314 if test "${ac_cv_prog_egrep+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3318     then ac_cv_prog_egrep='grep -E'
3319     else ac_cv_prog_egrep='egrep'
3320     fi
3321 fi
3322 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3323 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3324  EGREP=$ac_cv_prog_egrep
3325
3326
3327
3328 echo "$as_me:$LINENO: checking for AIX" >&5
3329 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336 #ifdef _AIX
3337   yes
3338 #endif
3339
3340 _ACEOF
3341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3342   $EGREP "yes" >/dev/null 2>&1; then
3343   echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6
3345 cat >>confdefs.h <<\_ACEOF
3346 #define _ALL_SOURCE 1
3347 _ACEOF
3348
3349 else
3350   echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6
3352 fi
3353 rm -f conftest*
3354
3355
3356 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3357 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3358 if test "${ac_cv_header_stdc+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #include <stdlib.h>
3368 #include <stdarg.h>
3369 #include <string.h>
3370 #include <float.h>
3371
3372 int
3373 main ()
3374 {
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 rm -f conftest.$ac_objext
3381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382   (eval $ac_compile) 2>conftest.er1
3383   ac_status=$?
3384   grep -v '^ *+' conftest.er1 >conftest.err
3385   rm -f conftest.er1
3386   cat conftest.err >&5
3387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388   (exit $ac_status); } &&
3389          { ac_try='test -z "$ac_c_werror_flag"
3390                          || test ! -s conftest.err'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; } &&
3396          { ac_try='test -s conftest.$ac_objext'
3397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398   (eval $ac_try) 2>&5
3399   ac_status=$?
3400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401   (exit $ac_status); }; }; then
3402   ac_cv_header_stdc=yes
3403 else
3404   echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3406
3407 ac_cv_header_stdc=no
3408 fi
3409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410
3411 if test $ac_cv_header_stdc = yes; then
3412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3413   cat >conftest.$ac_ext <<_ACEOF
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <string.h>
3420
3421 _ACEOF
3422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3423   $EGREP "memchr" >/dev/null 2>&1; then
3424   :
3425 else
3426   ac_cv_header_stdc=no
3427 fi
3428 rm -f conftest*
3429
3430 fi
3431
3432 if test $ac_cv_header_stdc = yes; then
3433   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3434   cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440 #include <stdlib.h>
3441
3442 _ACEOF
3443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444   $EGREP "free" >/dev/null 2>&1; then
3445   :
3446 else
3447   ac_cv_header_stdc=no
3448 fi
3449 rm -f conftest*
3450
3451 fi
3452
3453 if test $ac_cv_header_stdc = yes; then
3454   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455   if test "$cross_compiling" = yes; then
3456   :
3457 else
3458   cat >conftest.$ac_ext <<_ACEOF
3459 /* confdefs.h.  */
3460 _ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h.  */
3464 #include <ctype.h>
3465 #if ((' ' & 0x0FF) == 0x020)
3466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3468 #else
3469 # define ISLOWER(c) \
3470                    (('a' <= (c) && (c) <= 'i') \
3471                      || ('j' <= (c) && (c) <= 'r') \
3472                      || ('s' <= (c) && (c) <= 'z'))
3473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3474 #endif
3475
3476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3477 int
3478 main ()
3479 {
3480   int i;
3481   for (i = 0; i < 256; i++)
3482     if (XOR (islower (i), ISLOWER (i))
3483         || toupper (i) != TOUPPER (i))
3484       exit(2);
3485   exit (0);
3486 }
3487 _ACEOF
3488 rm -f conftest$ac_exeext
3489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490   (eval $ac_link) 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495   (eval $ac_try) 2>&5
3496   ac_status=$?
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); }; }; then
3499   :
3500 else
3501   echo "$as_me: program exited with status $ac_status" >&5
3502 echo "$as_me: failed program was:" >&5
3503 sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 ( exit $ac_status )
3506 ac_cv_header_stdc=no
3507 fi
3508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3509 fi
3510 fi
3511 fi
3512 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3513 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3514 if test $ac_cv_header_stdc = yes; then
3515
3516 cat >>confdefs.h <<\_ACEOF
3517 #define STDC_HEADERS 1
3518 _ACEOF
3519
3520 fi
3521
3522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3533                   inttypes.h stdint.h unistd.h
3534 do
3535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3536 echo "$as_me:$LINENO: checking for $ac_header" >&5
3537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 $ac_includes_default
3548
3549 #include <$ac_header>
3550 _ACEOF
3551 rm -f conftest.$ac_objext
3552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3553   (eval $ac_compile) 2>conftest.er1
3554   ac_status=$?
3555   grep -v '^ *+' conftest.er1 >conftest.err
3556   rm -f conftest.er1
3557   cat conftest.err >&5
3558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559   (exit $ac_status); } &&
3560          { ac_try='test -z "$ac_c_werror_flag"
3561                          || test ! -s conftest.err'
3562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563   (eval $ac_try) 2>&5
3564   ac_status=$?
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); }; } &&
3567          { ac_try='test -s conftest.$ac_objext'
3568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3569   (eval $ac_try) 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); }; }; then
3573   eval "$as_ac_Header=yes"
3574 else
3575   echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
3578 eval "$as_ac_Header=no"
3579 fi
3580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3583 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3585   cat >>confdefs.h <<_ACEOF
3586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3587 _ACEOF
3588
3589 fi
3590
3591 done
3592
3593
3594 if test "${ac_cv_header_minix_config_h+set}" = set; then
3595   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3596 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3597 if test "${ac_cv_header_minix_config_h+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 fi
3600 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3601 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3602 else
3603   # Is the header compilable?
3604 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3605 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h.  */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h.  */
3612 $ac_includes_default
3613 #include <minix/config.h>
3614 _ACEOF
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617   (eval $ac_compile) 2>conftest.er1
3618   ac_status=$?
3619   grep -v '^ *+' conftest.er1 >conftest.err
3620   rm -f conftest.er1
3621   cat conftest.err >&5
3622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623   (exit $ac_status); } &&
3624          { ac_try='test -z "$ac_c_werror_flag"
3625                          || test ! -s conftest.err'
3626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627   (eval $ac_try) 2>&5
3628   ac_status=$?
3629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630   (exit $ac_status); }; } &&
3631          { ac_try='test -s conftest.$ac_objext'
3632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633   (eval $ac_try) 2>&5
3634   ac_status=$?
3635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636   (exit $ac_status); }; }; then
3637   ac_header_compiler=yes
3638 else
3639   echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 ac_header_compiler=no
3643 fi
3644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3646 echo "${ECHO_T}$ac_header_compiler" >&6
3647
3648 # Is the header present?
3649 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3650 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3651 cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #include <minix/config.h>
3658 _ACEOF
3659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3660   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3661   ac_status=$?
3662   grep -v '^ *+' conftest.er1 >conftest.err
3663   rm -f conftest.er1
3664   cat conftest.err >&5
3665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666   (exit $ac_status); } >/dev/null; then
3667   if test -s conftest.err; then
3668     ac_cpp_err=$ac_c_preproc_warn_flag
3669     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3670   else
3671     ac_cpp_err=
3672   fi
3673 else
3674   ac_cpp_err=yes
3675 fi
3676 if test -z "$ac_cpp_err"; then
3677   ac_header_preproc=yes
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682   ac_header_preproc=no
3683 fi
3684 rm -f conftest.err conftest.$ac_ext
3685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686 echo "${ECHO_T}$ac_header_preproc" >&6
3687
3688 # So?  What about this header?
3689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690   yes:no: )
3691     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3692 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3694 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3695     ac_header_preproc=yes
3696     ;;
3697   no:yes:* )
3698     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3699 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3700     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3701 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3702     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3703 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3704     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3705 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3706     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3708     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3709 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3710     (
3711       cat <<\_ASBOX
3712 ## ------------------------------ ##
3713 ## Report this to bug-cvs@gnu.org ##
3714 ## ------------------------------ ##
3715 _ASBOX
3716     ) |
3717       sed "s/^/$as_me: WARNING:     /" >&2
3718     ;;
3719 esac
3720 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3721 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3722 if test "${ac_cv_header_minix_config_h+set}" = set; then
3723   echo $ECHO_N "(cached) $ECHO_C" >&6
3724 else
3725   ac_cv_header_minix_config_h=$ac_header_preproc
3726 fi
3727 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3728 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3729
3730 fi
3731 if test $ac_cv_header_minix_config_h = yes; then
3732   MINIX=yes
3733 else
3734   MINIX=
3735 fi
3736
3737
3738 if test "$MINIX" = yes; then
3739
3740 cat >>confdefs.h <<\_ACEOF
3741 #define _POSIX_SOURCE 1
3742 _ACEOF
3743
3744
3745 cat >>confdefs.h <<\_ACEOF
3746 #define _POSIX_1_SOURCE 2
3747 _ACEOF
3748
3749
3750 cat >>confdefs.h <<\_ACEOF
3751 #define _MINIX 1
3752 _ACEOF
3753
3754 fi
3755
3756
3757 # Find the posix library needed on INTERACTIVE UNIX (ISC)
3758 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3759 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3760 if test "${ac_cv_search_strerror+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   ac_func_search_save_LIBS=$LIBS
3764 ac_cv_search_strerror=no
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h.  */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h.  */
3771
3772 /* Override any gcc2 internal prototype to avoid an error.  */
3773 #ifdef __cplusplus
3774 extern "C"
3775 #endif
3776 /* We use char because int might match the return type of a gcc2
3777    builtin and then its argument prototype would still apply.  */
3778 char strerror ();
3779 int
3780 main ()
3781 {
3782 strerror ();
3783   ;
3784   return 0;
3785 }
3786 _ACEOF
3787 rm -f conftest.$ac_objext conftest$ac_exeext
3788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3789   (eval $ac_link) 2>conftest.er1
3790   ac_status=$?
3791   grep -v '^ *+' conftest.er1 >conftest.err
3792   rm -f conftest.er1
3793   cat conftest.err >&5
3794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795   (exit $ac_status); } &&
3796          { ac_try='test -z "$ac_c_werror_flag"
3797                          || test ! -s conftest.err'
3798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799   (eval $ac_try) 2>&5
3800   ac_status=$?
3801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802   (exit $ac_status); }; } &&
3803          { ac_try='test -s conftest$ac_exeext'
3804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805   (eval $ac_try) 2>&5
3806   ac_status=$?
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); }; }; then
3809   ac_cv_search_strerror="none required"
3810 else
3811   echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3813
3814 fi
3815 rm -f conftest.err conftest.$ac_objext \
3816       conftest$ac_exeext conftest.$ac_ext
3817 if test "$ac_cv_search_strerror" = no; then
3818   for ac_lib in cposix; do
3819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3820     cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826
3827 /* Override any gcc2 internal prototype to avoid an error.  */
3828 #ifdef __cplusplus
3829 extern "C"
3830 #endif
3831 /* We use char because int might match the return type of a gcc2
3832    builtin and then its argument prototype would still apply.  */
3833 char strerror ();
3834 int
3835 main ()
3836 {
3837 strerror ();
3838   ;
3839   return 0;
3840 }
3841 _ACEOF
3842 rm -f conftest.$ac_objext conftest$ac_exeext
3843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844   (eval $ac_link) 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } &&
3851          { ac_try='test -z "$ac_c_werror_flag"
3852                          || test ! -s conftest.err'
3853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854   (eval $ac_try) 2>&5
3855   ac_status=$?
3856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); }; } &&
3858          { ac_try='test -s conftest$ac_exeext'
3859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860   (eval $ac_try) 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); }; }; then
3864   ac_cv_search_strerror="-l$ac_lib"
3865 break
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 fi
3871 rm -f conftest.err conftest.$ac_objext \
3872       conftest$ac_exeext conftest.$ac_ext
3873   done
3874 fi
3875 LIBS=$ac_func_search_save_LIBS
3876 fi
3877 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3878 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3879 if test "$ac_cv_search_strerror" != no; then
3880   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3881
3882 fi
3883
3884
3885
3886 if test -n "$ac_tool_prefix"; then
3887   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889 echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3891 if test "${ac_cv_prog_RANLIB+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if test -n "$RANLIB"; then
3895   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3904     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909 done
3910
3911 fi
3912 fi
3913 RANLIB=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915   echo "$as_me:$LINENO: result: $RANLIB" >&5
3916 echo "${ECHO_T}$RANLIB" >&6
3917 else
3918   echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6
3920 fi
3921
3922 fi
3923 if test -z "$ac_cv_prog_RANLIB"; then
3924   ac_ct_RANLIB=$RANLIB
3925   # Extract the first word of "ranlib", so it can be a program name with args.
3926 set dummy ranlib; ac_word=$2
3927 echo "$as_me:$LINENO: checking for $ac_word" >&5
3928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3929 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -n "$ac_ct_RANLIB"; then
3933   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3934 else
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942     ac_cv_prog_ac_ct_RANLIB="ranlib"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948
3949   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3950 fi
3951 fi
3952 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3953 if test -n "$ac_ct_RANLIB"; then
3954   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3955 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3956 else
3957   echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3959 fi
3960
3961   RANLIB=$ac_ct_RANLIB
3962 else
3963   RANLIB="$ac_cv_prog_RANLIB"
3964 fi
3965
3966 for ac_prog in 'bison -y' byacc
3967 do
3968   # Extract the first word of "$ac_prog", so it can be a program name with args.
3969 set dummy $ac_prog; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_YACC+set}" = set; then
3973   echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975   if test -n "$YACC"; then
3976   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3977 else
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985     ac_cv_prog_YACC="$ac_prog"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991
3992 fi
3993 fi
3994 YACC=$ac_cv_prog_YACC
3995 if test -n "$YACC"; then
3996   echo "$as_me:$LINENO: result: $YACC" >&5
3997 echo "${ECHO_T}$YACC" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003   test -n "$YACC" && break
4004 done
4005 test -n "$YACC" || YACC="yacc"
4006
4007 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4008 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4009 LN_S=$as_ln_s
4010 if test "$LN_S" = "ln -s"; then
4011   echo "$as_me:$LINENO: result: yes" >&5
4012 echo "${ECHO_T}yes" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4015 echo "${ECHO_T}no, using $LN_S" >&6
4016 fi
4017
4018
4019
4020 # Extract the first word of "perl", so it can be a program name with args.
4021 set dummy perl; ac_word=$2
4022 echo "$as_me:$LINENO: checking for $ac_word" >&5
4023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4024 if test "${ac_cv_path_PERL+set}" = set; then
4025   echo $ECHO_N "(cached) $ECHO_C" >&6
4026 else
4027   case $PERL in
4028   [\\/]* | ?:[\\/]*)
4029   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4030   ;;
4031   *)
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   for ac_exec_ext in '' $ac_executable_extensions; do
4038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041     break 2
4042   fi
4043 done
4044 done
4045
4046   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4047   ;;
4048 esac
4049 fi
4050 PERL=$ac_cv_path_PERL
4051
4052 if test -n "$PERL"; then
4053   echo "$as_me:$LINENO: result: $PERL" >&5
4054 echo "${ECHO_T}$PERL" >&6
4055 else
4056   echo "$as_me:$LINENO: result: no" >&5
4057 echo "${ECHO_T}no" >&6
4058 fi
4059
4060 # Extract the first word of "csh", so it can be a program name with args.
4061 set dummy csh; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_CSH+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $CSH in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
4087   ;;
4088 esac
4089 fi
4090 CSH=$ac_cv_path_CSH
4091
4092 if test -n "$CSH"; then
4093   echo "$as_me:$LINENO: result: $CSH" >&5
4094 echo "${ECHO_T}$CSH" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100 # for contrib/rcs2log.sh & src/cvsbug.in.
4101 # Extract the first word of "mktemp", so it can be a program name with args.
4102 set dummy mktemp; 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_path_MKTEMP+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   case $MKTEMP in
4109   [\\/]* | ?:[\\/]*)
4110   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4111   ;;
4112   *)
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
4128   ;;
4129 esac
4130 fi
4131 MKTEMP=$ac_cv_path_MKTEMP
4132
4133 if test -n "$MKTEMP"; then
4134   echo "$as_me:$LINENO: result: $MKTEMP" >&5
4135 echo "${ECHO_T}$MKTEMP" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141 if test x"$MKTEMP" = xmktemp; then
4142         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
4143 else
4144         MKTEMP_SH_FUNCTION=/dev/null
4145 fi
4146
4147 # for src/cvsbug.in
4148 # Extract the first word of "sendmail", so it can be a program name with args.
4149 set dummy sendmail; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   case $SENDMAIL in
4156   [\\/]* | ?:[\\/]*)
4157   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4158   ;;
4159   *)
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 as_dummy="$PATH:/usr/sbin:/usr/lib"
4162 for as_dir in $as_dummy
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174
4175   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
4176   ;;
4177 esac
4178 fi
4179 SENDMAIL=$ac_cv_path_SENDMAIL
4180
4181 if test -n "$SENDMAIL"; then
4182   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4183 echo "${ECHO_T}$SENDMAIL" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189 # For diff/util.c
4190 # Extract the first word of "pr", so it can be a program name with args.
4191 set dummy pr; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_path_PR+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   case $PR in
4198   [\\/]* | ?:[\\/]*)
4199   ac_cv_path_PR="$PR" # Let the user override the test with a path.
4200   ;;
4201   *)
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207   for ac_exec_ext in '' $ac_executable_extensions; do
4208   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
4210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211     break 2
4212   fi
4213 done
4214 done
4215
4216   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
4217   ;;
4218 esac
4219 fi
4220 PR=$ac_cv_path_PR
4221
4222 if test -n "$PR"; then
4223   echo "$as_me:$LINENO: result: $PR" >&5
4224 echo "${ECHO_T}$PR" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230 if test x"$PR" != xno; then
4231
4232 cat >>confdefs.h <<_ACEOF
4233 #define PR_PROGRAM "$PR"
4234 _ACEOF
4235
4236 fi
4237
4238 missing_dir=`cd $ac_aux_dir && pwd`
4239 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
4240 for ac_prog in groff roff
4241 do
4242   # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_path_ROFF+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   case $ROFF in
4250   [\\/]* | ?:[\\/]*)
4251   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
4252   ;;
4253   *)
4254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $glocs
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259   for ac_exec_ext in '' $ac_executable_extensions; do
4260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267
4268   ;;
4269 esac
4270 fi
4271 ROFF=$ac_cv_path_ROFF
4272
4273 if test -n "$ROFF"; then
4274   echo "$as_me:$LINENO: result: $ROFF" >&5
4275 echo "${ECHO_T}$ROFF" >&6
4276 else
4277   echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6
4279 fi
4280
4281   test -n "$ROFF" && break
4282 done
4283 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
4284
4285 # Extract the first word of "ps2pdf", so it can be a program name with args.
4286 set dummy ps2pdf; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_path_PS2PDF+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   case $PS2PDF in
4293   [\\/]* | ?:[\\/]*)
4294   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
4295   ;;
4296   *)
4297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310
4311   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
4312   ;;
4313 esac
4314 fi
4315 PS2PDF=$ac_cv_path_PS2PDF
4316
4317 if test -n "$PS2PDF"; then
4318   echo "$as_me:$LINENO: result: $PS2PDF" >&5
4319 echo "${ECHO_T}$PS2PDF" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325 # Extract the first word of "texi2dvi", so it can be a program name with args.
4326 set dummy texi2dvi; ac_word=$2
4327 echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4329 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
4330   echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332   case $TEXI2DVI in
4333   [\\/]* | ?:[\\/]*)
4334   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
4335   ;;
4336   *)
4337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340   IFS=$as_save_IFS
4341   test -z "$as_dir" && as_dir=.
4342   for ac_exec_ext in '' $ac_executable_extensions; do
4343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
4345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346     break 2
4347   fi
4348 done
4349 done
4350
4351   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
4352   ;;
4353 esac
4354 fi
4355 TEXI2DVI=$ac_cv_path_TEXI2DVI
4356
4357 if test -n "$TEXI2DVI"; then
4358   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
4359 echo "${ECHO_T}$TEXI2DVI" >&6
4360 else
4361   echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
4367 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
4368 if test "${ac_cv_sys_interpreter+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   echo '#! /bin/cat
4372 exit 69
4373 ' >conftest
4374 chmod u+x conftest
4375 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
4376 if test $? -ne 69; then
4377    ac_cv_sys_interpreter=yes
4378 else
4379    ac_cv_sys_interpreter=no
4380 fi
4381 rm -f conftest
4382 fi
4383 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
4384 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
4385 interpval=$ac_cv_sys_interpreter
4386
4387 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
4388   # silly trick to avoid problems in AC macros...
4389   ac_msg='perl scripts using #! may not be invoked properly'
4390   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
4391 echo "$as_me: WARNING: $ac_msg" >&2;}
4392 fi
4393
4394 # BSD's logo is a devil for a reason, hey?
4395 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
4396 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
4397 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test ! -d ac_test_dir ; then
4401         { ac_try='mkdir ac_test_dir'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }
4407 fi
4408 cat >conftestmake <<EOF
4409 VPATH = ac_test_dir
4410 ac_test_target: ac_test_dep
4411         echo BSD VPATH bug present >&2
4412 ac_test_dep: ac_test_dep_dep
4413 EOF
4414 touch ac_test_dir/ac_test_dep_dep
4415 touch ac_test_dir/ac_test_dep
4416 touch ac_test_target
4417 # Don't know why, but the following test doesn't work under FreeBSD 4.2
4418 # without this sleep command
4419 sleep 1
4420 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
4421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422   (eval $ac_try) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }; } ; then
4426         ccvs_cv_bsd_make_vpath_bug=yes
4427 else
4428         ccvs_cv_bsd_make_vpath_bug=no
4429 fi
4430 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
4431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432   (eval $ac_try) 2>&5
4433   ac_status=$?
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); }; }
4436 fi
4437 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
4438 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
4439 # We also don't need to worry about the bug when $srcdir = $builddir
4440
4441
4442 if \
4443                 test $ccvs_cv_bsd_make_vpath_bug = no \
4444                 || test $srcdir = .; then
4445   MAKE_TARGETS_IN_VPATH_TRUE=
4446   MAKE_TARGETS_IN_VPATH_FALSE='#'
4447 else
4448   MAKE_TARGETS_IN_VPATH_TRUE='#'
4449   MAKE_TARGETS_IN_VPATH_FALSE=
4450 fi
4451
4452
4453
4454
4455
4456
4457
4458 ac_header_dirent=no
4459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4460   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4461 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4462 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472 #include <sys/types.h>
4473 #include <$ac_hdr>
4474
4475 int
4476 main ()
4477 {
4478 if ((DIR *) 0)
4479 return 0;
4480   ;
4481   return 0;
4482 }
4483 _ACEOF
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486   (eval $ac_compile) 2>conftest.er1
4487   ac_status=$?
4488   grep -v '^ *+' conftest.er1 >conftest.err
4489   rm -f conftest.er1
4490   cat conftest.err >&5
4491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492   (exit $ac_status); } &&
4493          { ac_try='test -z "$ac_c_werror_flag"
4494                          || test ! -s conftest.err'
4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496   (eval $ac_try) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; } &&
4500          { ac_try='test -s conftest.$ac_objext'
4501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502   (eval $ac_try) 2>&5
4503   ac_status=$?
4504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505   (exit $ac_status); }; }; then
4506   eval "$as_ac_Header=yes"
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511 eval "$as_ac_Header=no"
4512 fi
4513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4514 fi
4515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4518   cat >>confdefs.h <<_ACEOF
4519 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4520 _ACEOF
4521
4522 ac_header_dirent=$ac_hdr; break
4523 fi
4524
4525 done
4526 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4527 if test $ac_header_dirent = dirent.h; then
4528   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4529 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4530 if test "${ac_cv_search_opendir+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   ac_func_search_save_LIBS=$LIBS
4534 ac_cv_search_opendir=no
4535 cat >conftest.$ac_ext <<_ACEOF
4536 /* confdefs.h.  */
4537 _ACEOF
4538 cat confdefs.h >>conftest.$ac_ext
4539 cat >>conftest.$ac_ext <<_ACEOF
4540 /* end confdefs.h.  */
4541
4542 /* Override any gcc2 internal prototype to avoid an error.  */
4543 #ifdef __cplusplus
4544 extern "C"
4545 #endif
4546 /* We use char because int might match the return type of a gcc2
4547    builtin and then its argument prototype would still apply.  */
4548 char opendir ();
4549 int
4550 main ()
4551 {
4552 opendir ();
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557 rm -f conftest.$ac_objext conftest$ac_exeext
4558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4559   (eval $ac_link) 2>conftest.er1
4560   ac_status=$?
4561   grep -v '^ *+' conftest.er1 >conftest.err
4562   rm -f conftest.er1
4563   cat conftest.err >&5
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); } &&
4566          { ac_try='test -z "$ac_c_werror_flag"
4567                          || test ! -s conftest.err'
4568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569   (eval $ac_try) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; } &&
4573          { ac_try='test -s conftest$ac_exeext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   ac_cv_search_opendir="none required"
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 fi
4585 rm -f conftest.err conftest.$ac_objext \
4586       conftest$ac_exeext conftest.$ac_ext
4587 if test "$ac_cv_search_opendir" = no; then
4588   for ac_lib in dir; do
4589     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4590     cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596
4597 /* Override any gcc2 internal prototype to avoid an error.  */
4598 #ifdef __cplusplus
4599 extern "C"
4600 #endif
4601 /* We use char because int might match the return type of a gcc2
4602    builtin and then its argument prototype would still apply.  */
4603 char opendir ();
4604 int
4605 main ()
4606 {
4607 opendir ();
4608   ;
4609   return 0;
4610 }
4611 _ACEOF
4612 rm -f conftest.$ac_objext conftest$ac_exeext
4613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614   (eval $ac_link) 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } &&
4621          { ac_try='test -z "$ac_c_werror_flag"
4622                          || test ! -s conftest.err'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; } &&
4628          { ac_try='test -s conftest$ac_exeext'
4629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630   (eval $ac_try) 2>&5
4631   ac_status=$?
4632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633   (exit $ac_status); }; }; then
4634   ac_cv_search_opendir="-l$ac_lib"
4635 break
4636 else
4637   echo "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4639
4640 fi
4641 rm -f conftest.err conftest.$ac_objext \
4642       conftest$ac_exeext conftest.$ac_ext
4643   done
4644 fi
4645 LIBS=$ac_func_search_save_LIBS
4646 fi
4647 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4648 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4649 if test "$ac_cv_search_opendir" != no; then
4650   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4651
4652 fi
4653
4654 else
4655   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4657 if test "${ac_cv_search_opendir+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   ac_func_search_save_LIBS=$LIBS
4661 ac_cv_search_opendir=no
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668
4669 /* Override any gcc2 internal prototype to avoid an error.  */
4670 #ifdef __cplusplus
4671 extern "C"
4672 #endif
4673 /* We use char because int might match the return type of a gcc2
4674    builtin and then its argument prototype would still apply.  */
4675 char opendir ();
4676 int
4677 main ()
4678 {
4679 opendir ();
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4686   (eval $ac_link) 2>conftest.er1
4687   ac_status=$?
4688   grep -v '^ *+' conftest.er1 >conftest.err
4689   rm -f conftest.er1
4690   cat conftest.err >&5
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); } &&
4693          { ac_try='test -z "$ac_c_werror_flag"
4694                          || test ! -s conftest.err'
4695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696   (eval $ac_try) 2>&5
4697   ac_status=$?
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); }; } &&
4700          { ac_try='test -s conftest$ac_exeext'
4701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702   (eval $ac_try) 2>&5
4703   ac_status=$?
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); }; }; then
4706   ac_cv_search_opendir="none required"
4707 else
4708   echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 fi
4712 rm -f conftest.err conftest.$ac_objext \
4713       conftest$ac_exeext conftest.$ac_ext
4714 if test "$ac_cv_search_opendir" = no; then
4715   for ac_lib in x; do
4716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4717     cat >conftest.$ac_ext <<_ACEOF
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723
4724 /* Override any gcc2 internal prototype to avoid an error.  */
4725 #ifdef __cplusplus
4726 extern "C"
4727 #endif
4728 /* We use char because int might match the return type of a gcc2
4729    builtin and then its argument prototype would still apply.  */
4730 char opendir ();
4731 int
4732 main ()
4733 {
4734 opendir ();
4735   ;
4736   return 0;
4737 }
4738 _ACEOF
4739 rm -f conftest.$ac_objext conftest$ac_exeext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4741   (eval $ac_link) 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag"
4749                          || test ! -s conftest.err'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; } &&
4755          { ac_try='test -s conftest$ac_exeext'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   ac_cv_search_opendir="-l$ac_lib"
4762 break
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 fi
4768 rm -f conftest.err conftest.$ac_objext \
4769       conftest$ac_exeext conftest.$ac_ext
4770   done
4771 fi
4772 LIBS=$ac_func_search_save_LIBS
4773 fi
4774 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4775 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4776 if test "$ac_cv_search_opendir" != no; then
4777   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4778
4779 fi
4780
4781 fi
4782
4783 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4784 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4785 if test "${ac_cv_header_stdc+set}" = set; then
4786   echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788   cat >conftest.$ac_ext <<_ACEOF
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794 #include <stdlib.h>
4795 #include <stdarg.h>
4796 #include <string.h>
4797 #include <float.h>
4798
4799 int
4800 main ()
4801 {
4802
4803   ;
4804   return 0;
4805 }
4806 _ACEOF
4807 rm -f conftest.$ac_objext
4808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4809   (eval $ac_compile) 2>conftest.er1
4810   ac_status=$?
4811   grep -v '^ *+' conftest.er1 >conftest.err
4812   rm -f conftest.er1
4813   cat conftest.err >&5
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -z "$ac_c_werror_flag"
4817                          || test ! -s conftest.err'
4818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819   (eval $ac_try) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; } &&
4823          { ac_try='test -s conftest.$ac_objext'
4824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4825   (eval $ac_try) 2>&5
4826   ac_status=$?
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); }; }; then
4829   ac_cv_header_stdc=yes
4830 else
4831   echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ac_cv_header_stdc=no
4835 fi
4836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4837
4838 if test $ac_cv_header_stdc = yes; then
4839   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 #include <string.h>
4847
4848 _ACEOF
4849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4850   $EGREP "memchr" >/dev/null 2>&1; then
4851   :
4852 else
4853   ac_cv_header_stdc=no
4854 fi
4855 rm -f conftest*
4856
4857 fi
4858
4859 if test $ac_cv_header_stdc = yes; then
4860   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4861   cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h.  */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h.  */
4867 #include <stdlib.h>
4868
4869 _ACEOF
4870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4871   $EGREP "free" >/dev/null 2>&1; then
4872   :
4873 else
4874   ac_cv_header_stdc=no
4875 fi
4876 rm -f conftest*
4877
4878 fi
4879
4880 if test $ac_cv_header_stdc = yes; then
4881   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4882   if test "$cross_compiling" = yes; then
4883   :
4884 else
4885   cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h.  */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h.  */
4891 #include <ctype.h>
4892 #if ((' ' & 0x0FF) == 0x020)
4893 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4894 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4895 #else
4896 # define ISLOWER(c) \
4897                    (('a' <= (c) && (c) <= 'i') \
4898                      || ('j' <= (c) && (c) <= 'r') \
4899                      || ('s' <= (c) && (c) <= 'z'))
4900 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4901 #endif
4902
4903 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4904 int
4905 main ()
4906 {
4907   int i;
4908   for (i = 0; i < 256; i++)
4909     if (XOR (islower (i), ISLOWER (i))
4910         || toupper (i) != TOUPPER (i))
4911       exit(2);
4912   exit (0);
4913 }
4914 _ACEOF
4915 rm -f conftest$ac_exeext
4916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4917   (eval $ac_link) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922   (eval $ac_try) 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); }; }; then
4926   :
4927 else
4928   echo "$as_me: program exited with status $ac_status" >&5
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 ( exit $ac_status )
4933 ac_cv_header_stdc=no
4934 fi
4935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4936 fi
4937 fi
4938 fi
4939 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4940 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4941 if test $ac_cv_header_stdc = yes; then
4942
4943 cat >>confdefs.h <<\_ACEOF
4944 #define STDC_HEADERS 1
4945 _ACEOF
4946
4947 fi
4948
4949 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4952   echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954   cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h.  */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h.  */
4960 #include <sys/types.h>
4961 #include <sys/wait.h>
4962 #ifndef WEXITSTATUS
4963 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4964 #endif
4965 #ifndef WIFEXITED
4966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4967 #endif
4968
4969 int
4970 main ()
4971 {
4972   int s;
4973   wait (&s);
4974   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4975   ;
4976   return 0;
4977 }
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981   (eval $ac_compile) 2>conftest.er1
4982   ac_status=$?
4983   grep -v '^ *+' conftest.er1 >conftest.err
4984   rm -f conftest.er1
4985   cat conftest.err >&5
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -z "$ac_c_werror_flag"
4989                          || test ! -s conftest.err'
4990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991   (eval $ac_try) 2>&5
4992   ac_status=$?
4993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994   (exit $ac_status); }; } &&
4995          { ac_try='test -s conftest.$ac_objext'
4996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997   (eval $ac_try) 2>&5
4998   ac_status=$?
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); }; }; then
5001   ac_cv_header_sys_wait_h=yes
5002 else
5003   echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 ac_cv_header_sys_wait_h=no
5007 fi
5008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5009 fi
5010 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5011 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5012 if test $ac_cv_header_sys_wait_h = yes; then
5013
5014 cat >>confdefs.h <<\_ACEOF
5015 #define HAVE_SYS_WAIT_H 1
5016 _ACEOF
5017
5018 fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 for ac_header in \
5040         errno.h \
5041         direct.h \
5042         fcntl.h \
5043         fnmatch.h \
5044         io.h \
5045         limits.h \
5046         memory.h \
5047         ndbm.h \
5048         string.h \
5049         syslog.h \
5050         sys/bsdtypes.h \
5051         sys/file.h \
5052         sys/param.h \
5053         sys/resource.h \
5054         sys/select.h \
5055         sys/time.h \
5056         sys/timeb.h \
5057         unistd.h \
5058         utime.h\
5059
5060 do
5061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063   echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 fi
5068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5070 else
5071   # Is the header compilable?
5072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080 $ac_includes_default
5081 #include <$ac_header>
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5085   (eval $ac_compile) 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } &&
5092          { ac_try='test -z "$ac_c_werror_flag"
5093                          || test ! -s conftest.err'
5094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095   (eval $ac_try) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); }; } &&
5099          { ac_try='test -s conftest.$ac_objext'
5100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5101   (eval $ac_try) 2>&5
5102   ac_status=$?
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); }; }; then
5105   ac_header_compiler=yes
5106 else
5107   echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ac_header_compiler=no
5111 fi
5112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5115
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 #include <$ac_header>
5126 _ACEOF
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5129   ac_status=$?
5130   grep -v '^ *+' conftest.er1 >conftest.err
5131   rm -f conftest.er1
5132   cat conftest.err >&5
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); } >/dev/null; then
5135   if test -s conftest.err; then
5136     ac_cpp_err=$ac_c_preproc_warn_flag
5137     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5138   else
5139     ac_cpp_err=
5140   fi
5141 else
5142   ac_cpp_err=yes
5143 fi
5144 if test -z "$ac_cpp_err"; then
5145   ac_header_preproc=yes
5146 else
5147   echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5149
5150   ac_header_preproc=no
5151 fi
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5155
5156 # So?  What about this header?
5157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5158   yes:no: )
5159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5163     ac_header_preproc=yes
5164     ;;
5165   no:yes:* )
5166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5168     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5169 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5170     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5172     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5173 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5174     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5176     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5178     (
5179       cat <<\_ASBOX
5180 ## ------------------------------ ##
5181 ## Report this to bug-cvs@gnu.org ##
5182 ## ------------------------------ ##
5183 _ASBOX
5184     ) |
5185       sed "s/^/$as_me: WARNING:     /" >&2
5186     ;;
5187 esac
5188 echo "$as_me:$LINENO: checking for $ac_header" >&5
5189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5191   echo $ECHO_N "(cached) $ECHO_C" >&6
5192 else
5193   eval "$as_ac_Header=\$ac_header_preproc"
5194 fi
5195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5197
5198 fi
5199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5200   cat >>confdefs.h <<_ACEOF
5201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5202 _ACEOF
5203
5204 fi
5205
5206 done
5207
5208 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5209 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5210 if test "${ac_cv_header_stat_broken+set}" = set; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 else
5213   cat >conftest.$ac_ext <<_ACEOF
5214 /* confdefs.h.  */
5215 _ACEOF
5216 cat confdefs.h >>conftest.$ac_ext
5217 cat >>conftest.$ac_ext <<_ACEOF
5218 /* end confdefs.h.  */
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221
5222 #if defined(S_ISBLK) && defined(S_IFDIR)
5223 # if S_ISBLK (S_IFDIR)
5224 You lose.
5225 # endif
5226 #endif
5227
5228 #if defined(S_ISBLK) && defined(S_IFCHR)
5229 # if S_ISBLK (S_IFCHR)
5230 You lose.
5231 # endif
5232 #endif
5233
5234 #if defined(S_ISLNK) && defined(S_IFREG)
5235 # if S_ISLNK (S_IFREG)
5236 You lose.
5237 # endif
5238 #endif
5239
5240 #if defined(S_ISSOCK) && defined(S_IFREG)
5241 # if S_ISSOCK (S_IFREG)
5242 You lose.
5243 # endif
5244 #endif
5245
5246 _ACEOF
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248   $EGREP "You lose" >/dev/null 2>&1; then
5249   ac_cv_header_stat_broken=yes
5250 else
5251   ac_cv_header_stat_broken=no
5252 fi
5253 rm -f conftest*
5254
5255 fi
5256 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5257 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5258 if test $ac_cv_header_stat_broken = yes; then
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define STAT_MACROS_BROKEN 1
5262 _ACEOF
5263
5264 fi
5265
5266 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5267 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5268 if test "${ac_cv_header_time+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   cat >conftest.$ac_ext <<_ACEOF
5272 /* confdefs.h.  */
5273 _ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h.  */
5277 #include <sys/types.h>
5278 #include <sys/time.h>
5279 #include <time.h>
5280
5281 int
5282 main ()
5283 {
5284 if ((struct tm *) 0)
5285 return 0;
5286   ;
5287   return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5292   (eval $ac_compile) 2>conftest.er1
5293   ac_status=$?
5294   grep -v '^ *+' conftest.er1 >conftest.err
5295   rm -f conftest.er1
5296   cat conftest.err >&5
5297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298   (exit $ac_status); } &&
5299          { ac_try='test -z "$ac_c_werror_flag"
5300                          || test ! -s conftest.err'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; } &&
5306          { ac_try='test -s conftest.$ac_objext'
5307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308   (eval $ac_try) 2>&5
5309   ac_status=$?
5310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311   (exit $ac_status); }; }; then
5312   ac_cv_header_time=yes
5313 else
5314   echo "$as_me: failed program was:" >&5
5315 sed 's/^/| /' conftest.$ac_ext >&5
5316
5317 ac_cv_header_time=no
5318 fi
5319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5320 fi
5321 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5322 echo "${ECHO_T}$ac_cv_header_time" >&6
5323 if test $ac_cv_header_time = yes; then
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define TIME_WITH_SYS_TIME 1
5327 _ACEOF
5328
5329 fi
5330
5331
5332 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5333 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5334 if test "${ac_cv_c_const+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343
5344 int
5345 main ()
5346 {
5347 /* FIXME: Include the comments suggested by Paul. */
5348 #ifndef __cplusplus
5349   /* Ultrix mips cc rejects this.  */
5350   typedef int charset[2];
5351   const charset x;
5352   /* SunOS 4.1.1 cc rejects this.  */
5353   char const *const *ccp;
5354   char **p;
5355   /* NEC SVR4.0.2 mips cc rejects this.  */
5356   struct point {int x, y;};
5357   static struct point const zero = {0,0};
5358   /* AIX XL C 1.02.0.0 rejects this.
5359      It does not let you subtract one const X* pointer from another in
5360      an arm of an if-expression whose if-part is not a constant
5361      expression */
5362   const char *g = "string";
5363   ccp = &g + (g ? g-g : 0);
5364   /* HPUX 7.0 cc rejects these. */
5365   ++ccp;
5366   p = (char**) ccp;
5367   ccp = (char const *const *) p;
5368   { /* SCO 3.2v4 cc rejects this.  */
5369     char *t;
5370     char const *s = 0 ? (char *) 0 : (char const *) 0;
5371
5372     *t++ = 0;
5373   }
5374   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5375     int x[] = {25, 17};
5376     const int *foo = &x[0];
5377     ++foo;
5378   }
5379   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5380     typedef const int *iptr;
5381     iptr p = 0;
5382     ++p;
5383   }
5384   { /* AIX XL C 1.02.0.0 rejects this saying
5385        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5386     struct s { int j; const int *ap[3]; };
5387     struct s *b; b->j = 5;
5388   }
5389   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5390     const int foo = 10;
5391   }
5392 #endif
5393
5394   ;
5395   return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400   (eval $ac_compile) 2>conftest.er1
5401   ac_status=$?
5402   grep -v '^ *+' conftest.er1 >conftest.err
5403   rm -f conftest.er1
5404   cat conftest.err >&5
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); } &&
5407          { ac_try='test -z "$ac_c_werror_flag"
5408                          || test ! -s conftest.err'
5409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410   (eval $ac_try) 2>&5
5411   ac_status=$?
5412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413   (exit $ac_status); }; } &&
5414          { ac_try='test -s conftest.$ac_objext'
5415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416   (eval $ac_try) 2>&5
5417   ac_status=$?
5418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419   (exit $ac_status); }; }; then
5420   ac_cv_c_const=yes
5421 else
5422   echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 ac_cv_c_const=no
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428 fi
5429 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5430 echo "${ECHO_T}$ac_cv_c_const" >&6
5431 if test $ac_cv_c_const = no; then
5432
5433 cat >>confdefs.h <<\_ACEOF
5434 #define const
5435 _ACEOF
5436
5437 fi
5438
5439 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5440 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
5441 if test "${ac_cv_type_uid_t+set}" = set; then
5442   echo $ECHO_N "(cached) $ECHO_C" >&6
5443 else
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 #include <sys/types.h>
5451
5452 _ACEOF
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454   $EGREP "uid_t" >/dev/null 2>&1; then
5455   ac_cv_type_uid_t=yes
5456 else
5457   ac_cv_type_uid_t=no
5458 fi
5459 rm -f conftest*
5460
5461 fi
5462 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5463 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
5464 if test $ac_cv_type_uid_t = no; then
5465
5466 cat >>confdefs.h <<\_ACEOF
5467 #define uid_t int
5468 _ACEOF
5469
5470
5471 cat >>confdefs.h <<\_ACEOF
5472 #define gid_t int
5473 _ACEOF
5474
5475 fi
5476
5477 echo "$as_me:$LINENO: checking for mode_t" >&5
5478 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
5479 if test "${ac_cv_type_mode_t+set}" = set; then
5480   echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482   cat >conftest.$ac_ext <<_ACEOF
5483 /* confdefs.h.  */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h.  */
5488 $ac_includes_default
5489 int
5490 main ()
5491 {
5492 if ((mode_t *) 0)
5493   return 0;
5494 if (sizeof (mode_t))
5495   return 0;
5496   ;
5497   return 0;
5498 }
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502   (eval $ac_compile) 2>conftest.er1
5503   ac_status=$?
5504   grep -v '^ *+' conftest.er1 >conftest.err
5505   rm -f conftest.er1
5506   cat conftest.err >&5
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -z "$ac_c_werror_flag"
5510                          || test ! -s conftest.err'
5511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512   (eval $ac_try) 2>&5
5513   ac_status=$?
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); }; } &&
5516          { ac_try='test -s conftest.$ac_objext'
5517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518   (eval $ac_try) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); }; }; then
5522   ac_cv_type_mode_t=yes
5523 else
5524   echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_cv_type_mode_t=no
5528 fi
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5530 fi
5531 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
5533 if test $ac_cv_type_mode_t = yes; then
5534   :
5535 else
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define mode_t int
5539 _ACEOF
5540
5541 fi
5542
5543 echo "$as_me:$LINENO: checking for pid_t" >&5
5544 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
5545 if test "${ac_cv_type_pid_t+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h.  */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h.  */
5554 $ac_includes_default
5555 int
5556 main ()
5557 {
5558 if ((pid_t *) 0)
5559   return 0;
5560 if (sizeof (pid_t))
5561   return 0;
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568   (eval $ac_compile) 2>conftest.er1
5569   ac_status=$?
5570   grep -v '^ *+' conftest.er1 >conftest.err
5571   rm -f conftest.er1
5572   cat conftest.err >&5
5573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574   (exit $ac_status); } &&
5575          { ac_try='test -z "$ac_c_werror_flag"
5576                          || test ! -s conftest.err'
5577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578   (eval $ac_try) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); }; } &&
5582          { ac_try='test -s conftest.$ac_objext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   ac_cv_type_pid_t=yes
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_cv_type_pid_t=no
5594 fi
5595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5596 fi
5597 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5598 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
5599 if test $ac_cv_type_pid_t = yes; then
5600   :
5601 else
5602
5603 cat >>confdefs.h <<_ACEOF
5604 #define pid_t int
5605 _ACEOF
5606
5607 fi
5608
5609 echo "$as_me:$LINENO: checking for size_t" >&5
5610 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5611 if test "${ac_cv_type_size_t+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   cat >conftest.$ac_ext <<_ACEOF
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 $ac_includes_default
5621 int
5622 main ()
5623 {
5624 if ((size_t *) 0)
5625   return 0;
5626 if (sizeof (size_t))
5627   return 0;
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634   (eval $ac_compile) 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } &&
5641          { ac_try='test -z "$ac_c_werror_flag"
5642                          || test ! -s conftest.err'
5643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644   (eval $ac_try) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); }; } &&
5648          { ac_try='test -s conftest.$ac_objext'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; }; then
5654   ac_cv_type_size_t=yes
5655 else
5656   echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659 ac_cv_type_size_t=no
5660 fi
5661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5662 fi
5663 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5664 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5665 if test $ac_cv_type_size_t = yes; then
5666   :
5667 else
5668
5669 cat >>confdefs.h <<_ACEOF
5670 #define size_t unsigned
5671 _ACEOF
5672
5673 fi
5674
5675 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5676 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5677 if test "${ac_cv_type_signal+set}" = set; then
5678   echo $ECHO_N "(cached) $ECHO_C" >&6
5679 else
5680   cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686 #include <sys/types.h>
5687 #include <signal.h>
5688 #ifdef signal
5689 # undef signal
5690 #endif
5691 #ifdef __cplusplus
5692 extern "C" void (*signal (int, void (*)(int)))(int);
5693 #else
5694 void (*signal ()) ();
5695 #endif
5696
5697 int
5698 main ()
5699 {
5700 int i;
5701   ;
5702   return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext
5706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707   (eval $ac_compile) 2>conftest.er1
5708   ac_status=$?
5709   grep -v '^ *+' conftest.er1 >conftest.err
5710   rm -f conftest.er1
5711   cat conftest.err >&5
5712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713   (exit $ac_status); } &&
5714          { ac_try='test -z "$ac_c_werror_flag"
5715                          || test ! -s conftest.err'
5716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717   (eval $ac_try) 2>&5
5718   ac_status=$?
5719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720   (exit $ac_status); }; } &&
5721          { ac_try='test -s conftest.$ac_objext'
5722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723   (eval $ac_try) 2>&5
5724   ac_status=$?
5725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726   (exit $ac_status); }; }; then
5727   ac_cv_type_signal=void
5728 else
5729   echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ac_cv_type_signal=int
5733 fi
5734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5735 fi
5736 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5737 echo "${ECHO_T}$ac_cv_type_signal" >&6
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define RETSIGTYPE $ac_cv_type_signal
5741 _ACEOF
5742
5743
5744
5745 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5746 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5747 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 int
5758 main ()
5759 {
5760 static struct stat ac_aggr;
5761 if (ac_aggr.st_blksize)
5762 return 0;
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -z "$ac_c_werror_flag"
5777                          || test ! -s conftest.err'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_cv_member_struct_stat_st_blksize=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 $ac_includes_default
5801 int
5802 main ()
5803 {
5804 static struct stat ac_aggr;
5805 if (sizeof ac_aggr.st_blksize)
5806 return 0;
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813   (eval $ac_compile) 2>conftest.er1
5814   ac_status=$?
5815   grep -v '^ *+' conftest.er1 >conftest.err
5816   rm -f conftest.er1
5817   cat conftest.err >&5
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); } &&
5820          { ac_try='test -z "$ac_c_werror_flag"
5821                          || test ! -s conftest.err'
5822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823   (eval $ac_try) 2>&5
5824   ac_status=$?
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); }; } &&
5827          { ac_try='test -s conftest.$ac_objext'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; }; then
5833   ac_cv_member_struct_stat_st_blksize=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_member_struct_stat_st_blksize=no
5839 fi
5840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5841 fi
5842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5843 fi
5844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5845 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5846 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5847
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5850 _ACEOF
5851
5852
5853 fi
5854
5855 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5856 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5857 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 $ac_includes_default
5867 int
5868 main ()
5869 {
5870 static struct stat ac_aggr;
5871 if (ac_aggr.st_rdev)
5872 return 0;
5873   ;
5874   return 0;
5875 }
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879   (eval $ac_compile) 2>conftest.er1
5880   ac_status=$?
5881   grep -v '^ *+' conftest.er1 >conftest.err
5882   rm -f conftest.er1
5883   cat conftest.err >&5
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); } &&
5886          { ac_try='test -z "$ac_c_werror_flag"
5887                          || test ! -s conftest.err'
5888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5889   (eval $ac_try) 2>&5
5890   ac_status=$?
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); }; } &&
5893          { ac_try='test -s conftest.$ac_objext'
5894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5895   (eval $ac_try) 2>&5
5896   ac_status=$?
5897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898   (exit $ac_status); }; }; then
5899   ac_cv_member_struct_stat_st_rdev=yes
5900 else
5901   echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 $ac_includes_default
5911 int
5912 main ()
5913 {
5914 static struct stat ac_aggr;
5915 if (sizeof ac_aggr.st_rdev)
5916 return 0;
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -z "$ac_c_werror_flag"
5931                          || test ! -s conftest.err'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_member_struct_stat_st_rdev=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_cv_member_struct_stat_st_rdev=no
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 fi
5952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5955 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5956 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5957
5958 cat >>confdefs.h <<_ACEOF
5959 #define HAVE_STRUCT_STAT_ST_RDEV 1
5960 _ACEOF
5961
5962
5963 fi
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977 for ac_func in \
5978         dup2 \
5979         ftruncate \
5980         gethostname \
5981         memmove \
5982         mkdir \
5983         rename \
5984         strerror \
5985         strstr \
5986         strtoul\
5987         valloc \
5988         waitpid \
5989
5990 do
5991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5992 echo "$as_me:$LINENO: checking for $ac_func" >&5
5993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5994 if eval "test \"\${$as_ac_var+set}\" = set"; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   cat >conftest.$ac_ext <<_ACEOF
5998 /* confdefs.h.  */
5999 _ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h.  */
6003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6005 #define $ac_func innocuous_$ac_func
6006
6007 /* System header to define __stub macros and hopefully few prototypes,
6008     which can conflict with char $ac_func (); below.
6009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6010     <limits.h> exists even on freestanding compilers.  */
6011
6012 #ifdef __STDC__
6013 # include <limits.h>
6014 #else
6015 # include <assert.h>
6016 #endif
6017
6018 #undef $ac_func
6019
6020 /* Override any gcc2 internal prototype to avoid an error.  */
6021 #ifdef __cplusplus
6022 extern "C"
6023 {
6024 #endif
6025 /* We use char because int might match the return type of a gcc2
6026    builtin and then its argument prototype would still apply.  */
6027 char $ac_func ();
6028 /* The GNU C library defines this for functions which it implements
6029     to always fail with ENOSYS.  Some functions are actually named
6030     something starting with __ and the normal name is an alias.  */
6031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6032 choke me
6033 #else
6034 char (*f) () = $ac_func;
6035 #endif
6036 #ifdef __cplusplus
6037 }
6038 #endif
6039
6040 int
6041 main ()
6042 {
6043 return f != $ac_func;
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"
6058                          || test ! -s conftest.err'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   eval "$as_ac_var=yes"
6071 else
6072   echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 eval "$as_ac_var=no"
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078       conftest$ac_exeext conftest.$ac_ext
6079 fi
6080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6082 if test `eval echo '${'$as_ac_var'}'` = yes; then
6083   cat >>confdefs.h <<_ACEOF
6084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6085 _ACEOF
6086
6087 else
6088   case $LIBOBJS in
6089     "$ac_func.$ac_objext"   | \
6090   *" $ac_func.$ac_objext"   | \
6091     "$ac_func.$ac_objext "* | \
6092   *" $ac_func.$ac_objext "* ) ;;
6093   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
6094 esac
6095
6096 fi
6097 done
6098
6099
6100
6101
6102
6103
6104
6105 for ac_header in stdint.h
6106 do
6107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6109   echo "$as_me:$LINENO: checking for $ac_header" >&5
6110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 fi
6114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6116 else
6117   # Is the header compilable?
6118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 $ac_includes_default
6127 #include <$ac_header>
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131   (eval $ac_compile) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -z "$ac_c_werror_flag"
6139                          || test ! -s conftest.err'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest.$ac_objext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   ac_header_compiler=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_header_compiler=no
6157 fi
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6
6161
6162 # Is the header present?
6163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h.  */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h.  */
6171 #include <$ac_header>
6172 _ACEOF
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175   ac_status=$?
6176   grep -v '^ *+' conftest.er1 >conftest.err
6177   rm -f conftest.er1
6178   cat conftest.err >&5
6179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180   (exit $ac_status); } >/dev/null; then
6181   if test -s conftest.err; then
6182     ac_cpp_err=$ac_c_preproc_warn_flag
6183     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6184   else
6185     ac_cpp_err=
6186   fi
6187 else
6188   ac_cpp_err=yes
6189 fi
6190 if test -z "$ac_cpp_err"; then
6191   ac_header_preproc=yes
6192 else
6193   echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196   ac_header_preproc=no
6197 fi
6198 rm -f conftest.err conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200 echo "${ECHO_T}$ac_header_preproc" >&6
6201
6202 # So?  What about this header?
6203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204   yes:no: )
6205     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209     ac_header_preproc=yes
6210     ;;
6211   no:yes:* )
6212     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6215 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6219 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6224     (
6225       cat <<\_ASBOX
6226 ## ------------------------------ ##
6227 ## Report this to bug-cvs@gnu.org ##
6228 ## ------------------------------ ##
6229 _ASBOX
6230     ) |
6231       sed "s/^/$as_me: WARNING:     /" >&2
6232     ;;
6233 esac
6234 echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   eval "$as_ac_Header=\$ac_header_preproc"
6240 fi
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6243
6244 fi
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246   cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6249
6250 fi
6251
6252 done
6253
6254     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6255 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6256   result=
6257   cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h.  */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h.  */
6263
6264 #include <limits.h>
6265 #if HAVE_STDINT_H
6266 #include <stdint.h>
6267 #endif
6268 #ifdef SIZE_MAX
6269 Found it
6270 #endif
6271
6272 _ACEOF
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274   $EGREP "Found it" >/dev/null 2>&1; then
6275   result=yes
6276 fi
6277 rm -f conftest*
6278
6279   if test -z "$result"; then
6280                     if test "$cross_compiling" = yes; then
6281   # Depending upon the size, compute the lo and hi bounds.
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h.  */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h.  */
6288 #include <stddef.h>
6289 int
6290 main ()
6291 {
6292 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6293 test_array [0] = 0
6294
6295   ;
6296   return 0;
6297 }
6298 _ACEOF
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301   (eval $ac_compile) 2>conftest.er1
6302   ac_status=$?
6303   grep -v '^ *+' conftest.er1 >conftest.err
6304   rm -f conftest.er1
6305   cat conftest.err >&5
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); } &&
6308          { ac_try='test -z "$ac_c_werror_flag"
6309                          || test ! -s conftest.err'
6310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311   (eval $ac_try) 2>&5
6312   ac_status=$?
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); }; } &&
6315          { ac_try='test -s conftest.$ac_objext'
6316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317   (eval $ac_try) 2>&5
6318   ac_status=$?
6319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320   (exit $ac_status); }; }; then
6321   ac_lo=0 ac_mid=0
6322   while :; do
6323     cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #include <stddef.h>
6330 int
6331 main ()
6332 {
6333 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6334 test_array [0] = 0
6335
6336   ;
6337   return 0;
6338 }
6339 _ACEOF
6340 rm -f conftest.$ac_objext
6341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342   (eval $ac_compile) 2>conftest.er1
6343   ac_status=$?
6344   grep -v '^ *+' conftest.er1 >conftest.err
6345   rm -f conftest.er1
6346   cat conftest.err >&5
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } &&
6349          { ac_try='test -z "$ac_c_werror_flag"
6350                          || test ! -s conftest.err'
6351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352   (eval $ac_try) 2>&5
6353   ac_status=$?
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); }; } &&
6356          { ac_try='test -s conftest.$ac_objext'
6357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358   (eval $ac_try) 2>&5
6359   ac_status=$?
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); }; }; then
6362   ac_hi=$ac_mid; break
6363 else
6364   echo "$as_me: failed program was:" >&5
6365 sed 's/^/| /' conftest.$ac_ext >&5
6366
6367 ac_lo=`expr $ac_mid + 1`
6368                     if test $ac_lo -le $ac_mid; then
6369                       ac_lo= ac_hi=
6370                       break
6371                     fi
6372                     ac_mid=`expr 2 '*' $ac_mid + 1`
6373 fi
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375   done
6376 else
6377   echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 cat >conftest.$ac_ext <<_ACEOF
6381 /* confdefs.h.  */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h.  */
6386 #include <stddef.h>
6387 int
6388 main ()
6389 {
6390 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6391 test_array [0] = 0
6392
6393   ;
6394   return 0;
6395 }
6396 _ACEOF
6397 rm -f conftest.$ac_objext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399   (eval $ac_compile) 2>conftest.er1
6400   ac_status=$?
6401   grep -v '^ *+' conftest.er1 >conftest.err
6402   rm -f conftest.er1
6403   cat conftest.err >&5
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); } &&
6406          { ac_try='test -z "$ac_c_werror_flag"
6407                          || test ! -s conftest.err'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; } &&
6413          { ac_try='test -s conftest.$ac_objext'
6414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415   (eval $ac_try) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; }; then
6419   ac_hi=-1 ac_mid=-1
6420   while :; do
6421     cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h.  */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h.  */
6427 #include <stddef.h>
6428 int
6429 main ()
6430 {
6431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6432 test_array [0] = 0
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } &&
6447          { ac_try='test -z "$ac_c_werror_flag"
6448                          || test ! -s conftest.err'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest.$ac_objext'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   ac_lo=$ac_mid; break
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_hi=`expr '(' $ac_mid ')' - 1`
6466                        if test $ac_mid -le $ac_hi; then
6467                          ac_lo= ac_hi=
6468                          break
6469                        fi
6470                        ac_mid=`expr 2 '*' $ac_mid`
6471 fi
6472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6473   done
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ac_lo= ac_hi=
6479 fi
6480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6483 # Binary search between lo and hi bounds.
6484 while test "x$ac_lo" != "x$ac_hi"; do
6485   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6486   cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #include <stddef.h>
6493 int
6494 main ()
6495 {
6496 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6497 test_array [0] = 0
6498
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6505   (eval $ac_compile) 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } &&
6512          { ac_try='test -z "$ac_c_werror_flag"
6513                          || test ! -s conftest.err'
6514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515   (eval $ac_try) 2>&5
6516   ac_status=$?
6517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518   (exit $ac_status); }; } &&
6519          { ac_try='test -s conftest.$ac_objext'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; }; then
6525   ac_hi=$ac_mid
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530 ac_lo=`expr '(' $ac_mid ')' + 1`
6531 fi
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 done
6534 case $ac_lo in
6535 ?*) res_hi=$ac_lo;;
6536 '') result=? ;;
6537 esac
6538 else
6539   if test "$cross_compiling" = yes; then
6540   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6541 See \`config.log' for more details." >&5
6542 echo "$as_me: error: cannot run test program while cross compiling
6543 See \`config.log' for more details." >&2;}
6544    { (exit 1); exit 1; }; }
6545 else
6546   cat >conftest.$ac_ext <<_ACEOF
6547 /* confdefs.h.  */
6548 _ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h.  */
6552 #include <stddef.h>
6553 long longval () { return ~(size_t)0 / 10; }
6554 unsigned long ulongval () { return ~(size_t)0 / 10; }
6555 #include <stdio.h>
6556 #include <stdlib.h>
6557 int
6558 main ()
6559 {
6560
6561   FILE *f = fopen ("conftest.val", "w");
6562   if (! f)
6563     exit (1);
6564   if ((~(size_t)0 / 10) < 0)
6565     {
6566       long i = longval ();
6567       if (i != (~(size_t)0 / 10))
6568         exit (1);
6569       fprintf (f, "%ld\n", i);
6570     }
6571   else
6572     {
6573       unsigned long i = ulongval ();
6574       if (i != (~(size_t)0 / 10))
6575         exit (1);
6576       fprintf (f, "%lu\n", i);
6577     }
6578   exit (ferror (f) || fclose (f) != 0);
6579
6580   ;
6581   return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest$ac_exeext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586   (eval $ac_link) 2>&5
6587   ac_status=$?
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591   (eval $ac_try) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); }; }; then
6595   res_hi=`cat conftest.val`
6596 else
6597   echo "$as_me: program exited with status $ac_status" >&5
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601 ( exit $ac_status )
6602 result=?
6603 fi
6604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6605 fi
6606 fi
6607 rm -f conftest.val
6608     if test "$cross_compiling" = yes; then
6609   # Depending upon the size, compute the lo and hi bounds.
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 #include <stddef.h>
6617 int
6618 main ()
6619 {
6620 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6621 test_array [0] = 0
6622
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6629   (eval $ac_compile) 2>conftest.er1
6630   ac_status=$?
6631   grep -v '^ *+' conftest.er1 >conftest.err
6632   rm -f conftest.er1
6633   cat conftest.err >&5
6634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635   (exit $ac_status); } &&
6636          { ac_try='test -z "$ac_c_werror_flag"
6637                          || test ! -s conftest.err'
6638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639   (eval $ac_try) 2>&5
6640   ac_status=$?
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); }; } &&
6643          { ac_try='test -s conftest.$ac_objext'
6644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645   (eval $ac_try) 2>&5
6646   ac_status=$?
6647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); }; }; then
6649   ac_lo=0 ac_mid=0
6650   while :; do
6651     cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 #include <stddef.h>
6658 int
6659 main ()
6660 {
6661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6662 test_array [0] = 0
6663
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6670   (eval $ac_compile) 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } &&
6677          { ac_try='test -z "$ac_c_werror_flag"
6678                          || test ! -s conftest.err'
6679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680   (eval $ac_try) 2>&5
6681   ac_status=$?
6682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683   (exit $ac_status); }; } &&
6684          { ac_try='test -s conftest.$ac_objext'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; }; then
6690   ac_hi=$ac_mid; break
6691 else
6692   echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_lo=`expr $ac_mid + 1`
6696                     if test $ac_lo -le $ac_mid; then
6697                       ac_lo= ac_hi=
6698                       break
6699                     fi
6700                     ac_mid=`expr 2 '*' $ac_mid + 1`
6701 fi
6702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703   done
6704 else
6705   echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6707
6708 cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 #include <stddef.h>
6715 int
6716 main ()
6717 {
6718 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6719 test_array [0] = 0
6720
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext
6726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6727   (eval $ac_compile) 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } &&
6734          { ac_try='test -z "$ac_c_werror_flag"
6735                          || test ! -s conftest.err'
6736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737   (eval $ac_try) 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; } &&
6741          { ac_try='test -s conftest.$ac_objext'
6742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743   (eval $ac_try) 2>&5
6744   ac_status=$?
6745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746   (exit $ac_status); }; }; then
6747   ac_hi=-1 ac_mid=-1
6748   while :; do
6749     cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 #include <stddef.h>
6756 int
6757 main ()
6758 {
6759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6760 test_array [0] = 0
6761
6762   ;
6763   return 0;
6764 }
6765 _ACEOF
6766 rm -f conftest.$ac_objext
6767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6768   (eval $ac_compile) 2>conftest.er1
6769   ac_status=$?
6770   grep -v '^ *+' conftest.er1 >conftest.err
6771   rm -f conftest.er1
6772   cat conftest.err >&5
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -z "$ac_c_werror_flag"
6776                          || test ! -s conftest.err'
6777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778   (eval $ac_try) 2>&5
6779   ac_status=$?
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); }; } &&
6782          { ac_try='test -s conftest.$ac_objext'
6783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784   (eval $ac_try) 2>&5
6785   ac_status=$?
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); }; }; then
6788   ac_lo=$ac_mid; break
6789 else
6790   echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_hi=`expr '(' $ac_mid ')' - 1`
6794                        if test $ac_mid -le $ac_hi; then
6795                          ac_lo= ac_hi=
6796                          break
6797                        fi
6798                        ac_mid=`expr 2 '*' $ac_mid`
6799 fi
6800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6801   done
6802 else
6803   echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 ac_lo= ac_hi=
6807 fi
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809 fi
6810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6811 # Binary search between lo and hi bounds.
6812 while test "x$ac_lo" != "x$ac_hi"; do
6813   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6814   cat >conftest.$ac_ext <<_ACEOF
6815 /* confdefs.h.  */
6816 _ACEOF
6817 cat confdefs.h >>conftest.$ac_ext
6818 cat >>conftest.$ac_ext <<_ACEOF
6819 /* end confdefs.h.  */
6820 #include <stddef.h>
6821 int
6822 main ()
6823 {
6824 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6825 test_array [0] = 0
6826
6827   ;
6828   return 0;
6829 }
6830 _ACEOF
6831 rm -f conftest.$ac_objext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6833   (eval $ac_compile) 2>conftest.er1
6834   ac_status=$?
6835   grep -v '^ *+' conftest.er1 >conftest.err
6836   rm -f conftest.er1
6837   cat conftest.err >&5
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); } &&
6840          { ac_try='test -z "$ac_c_werror_flag"
6841                          || test ! -s conftest.err'
6842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843   (eval $ac_try) 2>&5
6844   ac_status=$?
6845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; } &&
6847          { ac_try='test -s conftest.$ac_objext'
6848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849   (eval $ac_try) 2>&5
6850   ac_status=$?
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); }; }; then
6853   ac_hi=$ac_mid
6854 else
6855   echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ac_lo=`expr '(' $ac_mid ')' + 1`
6859 fi
6860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 done
6862 case $ac_lo in
6863 ?*) res_lo=$ac_lo;;
6864 '') result=? ;;
6865 esac
6866 else
6867   if test "$cross_compiling" = yes; then
6868   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6869 See \`config.log' for more details." >&5
6870 echo "$as_me: error: cannot run test program while cross compiling
6871 See \`config.log' for more details." >&2;}
6872    { (exit 1); exit 1; }; }
6873 else
6874   cat >conftest.$ac_ext <<_ACEOF
6875 /* confdefs.h.  */
6876 _ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h.  */
6880 #include <stddef.h>
6881 long longval () { return ~(size_t)0 % 10; }
6882 unsigned long ulongval () { return ~(size_t)0 % 10; }
6883 #include <stdio.h>
6884 #include <stdlib.h>
6885 int
6886 main ()
6887 {
6888
6889   FILE *f = fopen ("conftest.val", "w");
6890   if (! f)
6891     exit (1);
6892   if ((~(size_t)0 % 10) < 0)
6893     {
6894       long i = longval ();
6895       if (i != (~(size_t)0 % 10))
6896         exit (1);
6897       fprintf (f, "%ld\n", i);
6898     }
6899   else
6900     {
6901       unsigned long i = ulongval ();
6902       if (i != (~(size_t)0 % 10))
6903         exit (1);
6904       fprintf (f, "%lu\n", i);
6905     }
6906   exit (ferror (f) || fclose (f) != 0);
6907
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest$ac_exeext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6914   (eval $ac_link) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919   (eval $ac_try) 2>&5
6920   ac_status=$?
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); }; }; then
6923   res_lo=`cat conftest.val`
6924 else
6925   echo "$as_me: program exited with status $ac_status" >&5
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ( exit $ac_status )
6930 result=?
6931 fi
6932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6933 fi
6934 fi
6935 rm -f conftest.val
6936     if test "$cross_compiling" = yes; then
6937   # Depending upon the size, compute the lo and hi bounds.
6938 cat >conftest.$ac_ext <<_ACEOF
6939 /* confdefs.h.  */
6940 _ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h.  */
6944 #include <stddef.h>
6945 int
6946 main ()
6947 {
6948 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6949 test_array [0] = 0
6950
6951   ;
6952   return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957   (eval $ac_compile) 2>conftest.er1
6958   ac_status=$?
6959   grep -v '^ *+' conftest.er1 >conftest.err
6960   rm -f conftest.er1
6961   cat conftest.err >&5
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); } &&
6964          { ac_try='test -z "$ac_c_werror_flag"
6965                          || test ! -s conftest.err'
6966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967   (eval $ac_try) 2>&5
6968   ac_status=$?
6969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970   (exit $ac_status); }; } &&
6971          { ac_try='test -s conftest.$ac_objext'
6972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973   (eval $ac_try) 2>&5
6974   ac_status=$?
6975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976   (exit $ac_status); }; }; then
6977   ac_lo=0 ac_mid=0
6978   while :; do
6979     cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985 #include <stddef.h>
6986 int
6987 main ()
6988 {
6989 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6990 test_array [0] = 0
6991
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>conftest.er1
6999   ac_status=$?
7000   grep -v '^ *+' conftest.er1 >conftest.err
7001   rm -f conftest.er1
7002   cat conftest.err >&5
7003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004   (exit $ac_status); } &&
7005          { ac_try='test -z "$ac_c_werror_flag"
7006                          || test ! -s conftest.err'
7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008   (eval $ac_try) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; } &&
7012          { ac_try='test -s conftest.$ac_objext'
7013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014   (eval $ac_try) 2>&5
7015   ac_status=$?
7016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017   (exit $ac_status); }; }; then
7018   ac_hi=$ac_mid; break
7019 else
7020   echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023 ac_lo=`expr $ac_mid + 1`
7024                     if test $ac_lo -le $ac_mid; then
7025                       ac_lo= ac_hi=
7026                       break
7027                     fi
7028                     ac_mid=`expr 2 '*' $ac_mid + 1`
7029 fi
7030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7031   done
7032 else
7033   echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <stddef.h>
7043 int
7044 main ()
7045 {
7046 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7047 test_array [0] = 0
7048
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_c_werror_flag"
7063                          || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   ac_hi=-1 ac_mid=-1
7076   while :; do
7077     cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h.  */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h.  */
7083 #include <stddef.h>
7084 int
7085 main ()
7086 {
7087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7088 test_array [0] = 0
7089
7090   ;
7091   return 0;
7092 }
7093 _ACEOF
7094 rm -f conftest.$ac_objext
7095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7096   (eval $ac_compile) 2>conftest.er1
7097   ac_status=$?
7098   grep -v '^ *+' conftest.er1 >conftest.err
7099   rm -f conftest.er1
7100   cat conftest.err >&5
7101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102   (exit $ac_status); } &&
7103          { ac_try='test -z "$ac_c_werror_flag"
7104                          || test ! -s conftest.err'
7105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7106   (eval $ac_try) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); }; } &&
7110          { ac_try='test -s conftest.$ac_objext'
7111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7112   (eval $ac_try) 2>&5
7113   ac_status=$?
7114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115   (exit $ac_status); }; }; then
7116   ac_lo=$ac_mid; break
7117 else
7118   echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7120
7121 ac_hi=`expr '(' $ac_mid ')' - 1`
7122                        if test $ac_mid -le $ac_hi; then
7123                          ac_lo= ac_hi=
7124                          break
7125                        fi
7126                        ac_mid=`expr 2 '*' $ac_mid`
7127 fi
7128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129   done
7130 else
7131   echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_lo= ac_hi=
7135 fi
7136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139 # Binary search between lo and hi bounds.
7140 while test "x$ac_lo" != "x$ac_hi"; do
7141   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <stddef.h>
7149 int
7150 main ()
7151 {
7152 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7153 test_array [0] = 0
7154
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7161   (eval $ac_compile) 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -z "$ac_c_werror_flag"
7169                          || test ! -s conftest.err'
7170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171   (eval $ac_try) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; } &&
7175          { ac_try='test -s conftest.$ac_objext'
7176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177   (eval $ac_try) 2>&5
7178   ac_status=$?
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); }; }; then
7181   ac_hi=$ac_mid
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 ac_lo=`expr '(' $ac_mid ')' + 1`
7187 fi
7188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7189 done
7190 case $ac_lo in
7191 ?*) fits_in_uint=$ac_lo;;
7192 '') result=? ;;
7193 esac
7194 else
7195   if test "$cross_compiling" = yes; then
7196   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7197 See \`config.log' for more details." >&5
7198 echo "$as_me: error: cannot run test program while cross compiling
7199 See \`config.log' for more details." >&2;}
7200    { (exit 1); exit 1; }; }
7201 else
7202   cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h.  */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h.  */
7208 #include <stddef.h>
7209 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7210 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7211 #include <stdio.h>
7212 #include <stdlib.h>
7213 int
7214 main ()
7215 {
7216
7217   FILE *f = fopen ("conftest.val", "w");
7218   if (! f)
7219     exit (1);
7220   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7221     {
7222       long i = longval ();
7223       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7224         exit (1);
7225       fprintf (f, "%ld\n", i);
7226     }
7227   else
7228     {
7229       unsigned long i = ulongval ();
7230       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7231         exit (1);
7232       fprintf (f, "%lu\n", i);
7233     }
7234   exit (ferror (f) || fclose (f) != 0);
7235
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242   (eval $ac_link) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247   (eval $ac_try) 2>&5
7248   ac_status=$?
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); }; }; then
7251   fits_in_uint=`cat conftest.val`
7252 else
7253   echo "$as_me: program exited with status $ac_status" >&5
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ( exit $ac_status )
7258 result=?
7259 fi
7260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7261 fi
7262 fi
7263 rm -f conftest.val
7264     if test "$fits_in_uint" = 1; then
7265                   cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 #include <stddef.h>
7272         extern size_t foo;
7273         extern unsigned long foo;
7274
7275 int
7276 main ()
7277 {
7278
7279   ;
7280   return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285   (eval $ac_compile) 2>conftest.er1
7286   ac_status=$?
7287   grep -v '^ *+' conftest.er1 >conftest.err
7288   rm -f conftest.er1
7289   cat conftest.err >&5
7290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291   (exit $ac_status); } &&
7292          { ac_try='test -z "$ac_c_werror_flag"
7293                          || test ! -s conftest.err'
7294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295   (eval $ac_try) 2>&5
7296   ac_status=$?
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); }; } &&
7299          { ac_try='test -s conftest.$ac_objext'
7300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301   (eval $ac_try) 2>&5
7302   ac_status=$?
7303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304   (exit $ac_status); }; }; then
7305   fits_in_uint=0
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312     fi
7313     if test -z "$result"; then
7314       if test "$fits_in_uint" = 1; then
7315         result="$res_hi$res_lo"U
7316       else
7317         result="$res_hi$res_lo"UL
7318       fi
7319     else
7320             result='~(size_t)0'
7321     fi
7322   fi
7323   echo "$as_me:$LINENO: result: $result" >&5
7324 echo "${ECHO_T}$result" >&6
7325   if test "$result" != yes; then
7326
7327 cat >>confdefs.h <<_ACEOF
7328 #define SIZE_MAX $result
7329 _ACEOF
7330
7331   fi
7332
7333 echo "$as_me:$LINENO: checking for inline" >&5
7334 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7335 if test "${ac_cv_c_inline+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   ac_cv_c_inline=no
7339 for ac_kw in inline __inline__ __inline; do
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 #ifndef __cplusplus
7347 typedef int foo_t;
7348 static $ac_kw foo_t static_foo () {return 0; }
7349 $ac_kw foo_t foo () {return 0; }
7350 #endif
7351
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7355   (eval $ac_compile) 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } &&
7362          { ac_try='test -z "$ac_c_werror_flag"
7363                          || test ! -s conftest.err'
7364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7365   (eval $ac_try) 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; } &&
7369          { ac_try='test -s conftest.$ac_objext'
7370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7371   (eval $ac_try) 2>&5
7372   ac_status=$?
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); }; }; then
7375   ac_cv_c_inline=$ac_kw; break
7376 else
7377   echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 fi
7381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7382 done
7383
7384 fi
7385 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7386 echo "${ECHO_T}$ac_cv_c_inline" >&6
7387
7388
7389 case $ac_cv_c_inline in
7390   inline | yes) ;;
7391   *)
7392     case $ac_cv_c_inline in
7393       no) ac_val=;;
7394       *) ac_val=$ac_cv_c_inline;;
7395     esac
7396     cat >>confdefs.h <<_ACEOF
7397 #ifndef __cplusplus
7398 #define inline $ac_val
7399 #endif
7400 _ACEOF
7401     ;;
7402 esac
7403
7404
7405
7406
7407
7408 for ac_header in stdint.h
7409 do
7410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7412   echo "$as_me:$LINENO: checking for $ac_header" >&5
7413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7415   echo $ECHO_N "(cached) $ECHO_C" >&6
7416 fi
7417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7419 else
7420   # Is the header compilable?
7421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 #include <$ac_header>
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7434   (eval $ac_compile) 2>conftest.er1
7435   ac_status=$?
7436   grep -v '^ *+' conftest.er1 >conftest.err
7437   rm -f conftest.er1
7438   cat conftest.err >&5
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -z "$ac_c_werror_flag"
7442                          || test ! -s conftest.err'
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); }; } &&
7448          { ac_try='test -s conftest.$ac_objext'
7449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450   (eval $ac_try) 2>&5
7451   ac_status=$?
7452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453   (exit $ac_status); }; }; then
7454   ac_header_compiler=yes
7455 else
7456   echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7458
7459 ac_header_compiler=no
7460 fi
7461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7463 echo "${ECHO_T}$ac_header_compiler" >&6
7464
7465 # Is the header present?
7466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474 #include <$ac_header>
7475 _ACEOF
7476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7478   ac_status=$?
7479   grep -v '^ *+' conftest.er1 >conftest.err
7480   rm -f conftest.er1
7481   cat conftest.err >&5
7482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483   (exit $ac_status); } >/dev/null; then
7484   if test -s conftest.err; then
7485     ac_cpp_err=$ac_c_preproc_warn_flag
7486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7487   else
7488     ac_cpp_err=
7489   fi
7490 else
7491   ac_cpp_err=yes
7492 fi
7493 if test -z "$ac_cpp_err"; then
7494   ac_header_preproc=yes
7495 else
7496   echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7498
7499   ac_header_preproc=no
7500 fi
7501 rm -f conftest.err conftest.$ac_ext
7502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7503 echo "${ECHO_T}$ac_header_preproc" >&6
7504
7505 # So?  What about this header?
7506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7507   yes:no: )
7508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7512     ac_header_preproc=yes
7513     ;;
7514   no:yes:* )
7515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7527     (
7528       cat <<\_ASBOX
7529 ## ------------------------------ ##
7530 ## Report this to bug-cvs@gnu.org ##
7531 ## ------------------------------ ##
7532 _ASBOX
7533     ) |
7534       sed "s/^/$as_me: WARNING:     /" >&2
7535     ;;
7536 esac
7537 echo "$as_me:$LINENO: checking for $ac_header" >&5
7538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   eval "$as_ac_Header=\$ac_header_preproc"
7543 fi
7544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7546
7547 fi
7548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7549   cat >>confdefs.h <<_ACEOF
7550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557
7558
7559
7560 cat >>confdefs.h <<\_ACEOF
7561 #define getpass cvs_getpass
7562 _ACEOF
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 for ac_func in \
7600         fchdir \
7601         fchmod \
7602         fsync \
7603         ftime \
7604         geteuid \
7605         getgroups \
7606         getopt \
7607         getpagesize \
7608         gettimeofday \
7609         initgroups \
7610         login \
7611         logout \
7612         mknod \
7613         mkstemp \
7614         mktemp \
7615         putenv \
7616         readlink \
7617         regcomp \
7618         regerror \
7619         regexec \
7620         regfree \
7621         sigaction \
7622         sigblock \
7623         sigprocmask \
7624         sigsetmask \
7625         sigvec \
7626         tempnam \
7627         timezone \
7628         tzset \
7629         vprintf \
7630         wait3 \
7631
7632 do
7633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7634 echo "$as_me:$LINENO: checking for $ac_func" >&5
7635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7636 if eval "test \"\${$as_ac_var+set}\" = set"; then
7637   echo $ECHO_N "(cached) $ECHO_C" >&6
7638 else
7639   cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7647 #define $ac_func innocuous_$ac_func
7648
7649 /* System header to define __stub macros and hopefully few prototypes,
7650     which can conflict with char $ac_func (); below.
7651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7652     <limits.h> exists even on freestanding compilers.  */
7653
7654 #ifdef __STDC__
7655 # include <limits.h>
7656 #else
7657 # include <assert.h>
7658 #endif
7659
7660 #undef $ac_func
7661
7662 /* Override any gcc2 internal prototype to avoid an error.  */
7663 #ifdef __cplusplus
7664 extern "C"
7665 {
7666 #endif
7667 /* We use char because int might match the return type of a gcc2
7668    builtin and then its argument prototype would still apply.  */
7669 char $ac_func ();
7670 /* The GNU C library defines this for functions which it implements
7671     to always fail with ENOSYS.  Some functions are actually named
7672     something starting with __ and the normal name is an alias.  */
7673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7674 choke me
7675 #else
7676 char (*f) () = $ac_func;
7677 #endif
7678 #ifdef __cplusplus
7679 }
7680 #endif
7681
7682 int
7683 main ()
7684 {
7685 return f != $ac_func;
7686   ;
7687   return 0;
7688 }
7689 _ACEOF
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692   (eval $ac_link) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } &&
7699          { ac_try='test -z "$ac_c_werror_flag"
7700                          || test ! -s conftest.err'
7701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702   (eval $ac_try) 2>&5
7703   ac_status=$?
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); }; } &&
7706          { ac_try='test -s conftest$ac_exeext'
7707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708   (eval $ac_try) 2>&5
7709   ac_status=$?
7710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711   (exit $ac_status); }; }; then
7712   eval "$as_ac_var=yes"
7713 else
7714   echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 eval "$as_ac_var=no"
7718 fi
7719 rm -f conftest.err conftest.$ac_objext \
7720       conftest$ac_exeext conftest.$ac_ext
7721 fi
7722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7724 if test `eval echo '${'$as_ac_var'}'` = yes; then
7725   cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7727 _ACEOF
7728
7729 fi
7730 done
7731
7732 # we only need one of the following
7733
7734
7735
7736 for ac_func in \
7737         nanosleep \
7738         usleep \
7739         select \
7740
7741 do
7742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7743 echo "$as_me:$LINENO: checking for $ac_func" >&5
7744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7745 if eval "test \"\${$as_ac_var+set}\" = set"; then
7746   echo $ECHO_N "(cached) $ECHO_C" >&6
7747 else
7748   cat >conftest.$ac_ext <<_ACEOF
7749 /* confdefs.h.  */
7750 _ACEOF
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h.  */
7754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7756 #define $ac_func innocuous_$ac_func
7757
7758 /* System header to define __stub macros and hopefully few prototypes,
7759     which can conflict with char $ac_func (); below.
7760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7761     <limits.h> exists even on freestanding compilers.  */
7762
7763 #ifdef __STDC__
7764 # include <limits.h>
7765 #else
7766 # include <assert.h>
7767 #endif
7768
7769 #undef $ac_func
7770
7771 /* Override any gcc2 internal prototype to avoid an error.  */
7772 #ifdef __cplusplus
7773 extern "C"
7774 {
7775 #endif
7776 /* We use char because int might match the return type of a gcc2
7777    builtin and then its argument prototype would still apply.  */
7778 char $ac_func ();
7779 /* The GNU C library defines this for functions which it implements
7780     to always fail with ENOSYS.  Some functions are actually named
7781     something starting with __ and the normal name is an alias.  */
7782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7783 choke me
7784 #else
7785 char (*f) () = $ac_func;
7786 #endif
7787 #ifdef __cplusplus
7788 }
7789 #endif
7790
7791 int
7792 main ()
7793 {
7794 return f != $ac_func;
7795   ;
7796   return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801   (eval $ac_link) 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } &&
7808          { ac_try='test -z "$ac_c_werror_flag"
7809                          || test ! -s conftest.err'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; } &&
7815          { ac_try='test -s conftest$ac_exeext'
7816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817   (eval $ac_try) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); }; }; then
7821   eval "$as_ac_var=yes"
7822 else
7823   echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 eval "$as_ac_var=no"
7827 fi
7828 rm -f conftest.err conftest.$ac_objext \
7829       conftest$ac_exeext conftest.$ac_ext
7830 fi
7831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7832 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7833 if test `eval echo '${'$as_ac_var'}'` = yes; then
7834   cat >>confdefs.h <<_ACEOF
7835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7836 _ACEOF
7837  break
7838 fi
7839 done
7840
7841
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_STRCHR 1
7845 _ACEOF
7846
7847
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_MEMCHR 1
7850 _ACEOF
7851
7852
7853
7854 cat >>confdefs.h <<\_ACEOF
7855 #define REGEX_MALLOC 1
7856 _ACEOF
7857
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define _REGEX_RE_COMP 1
7861 _ACEOF
7862
7863
7864
7865 for ac_header in unistd.h vfork.h
7866 do
7867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7869   echo "$as_me:$LINENO: checking for $ac_header" >&5
7870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7872   echo $ECHO_N "(cached) $ECHO_C" >&6
7873 fi
7874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7876 else
7877   # Is the header compilable?
7878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 $ac_includes_default
7887 #include <$ac_header>
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7891   (eval $ac_compile) 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } &&
7898          { ac_try='test -z "$ac_c_werror_flag"
7899                          || test ! -s conftest.err'
7900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901   (eval $ac_try) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; } &&
7905          { ac_try='test -s conftest.$ac_objext'
7906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907   (eval $ac_try) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); }; }; then
7911   ac_header_compiler=yes
7912 else
7913   echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_header_compiler=no
7917 fi
7918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7920 echo "${ECHO_T}$ac_header_compiler" >&6
7921
7922 # Is the header present?
7923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h.  */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h.  */
7931 #include <$ac_header>
7932 _ACEOF
7933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7935   ac_status=$?
7936   grep -v '^ *+' conftest.er1 >conftest.err
7937   rm -f conftest.er1
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   (exit $ac_status); } >/dev/null; then
7941   if test -s conftest.err; then
7942     ac_cpp_err=$ac_c_preproc_warn_flag
7943     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7944   else
7945     ac_cpp_err=
7946   fi
7947 else
7948   ac_cpp_err=yes
7949 fi
7950 if test -z "$ac_cpp_err"; then
7951   ac_header_preproc=yes
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956   ac_header_preproc=no
7957 fi
7958 rm -f conftest.err conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7960 echo "${ECHO_T}$ac_header_preproc" >&6
7961
7962 # So?  What about this header?
7963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7964   yes:no: )
7965     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7967     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7969     ac_header_preproc=yes
7970     ;;
7971   no:yes:* )
7972     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7974     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7975 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7976     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7978     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7979 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7982     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7984     (
7985       cat <<\_ASBOX
7986 ## ------------------------------ ##
7987 ## Report this to bug-cvs@gnu.org ##
7988 ## ------------------------------ ##
7989 _ASBOX
7990     ) |
7991       sed "s/^/$as_me: WARNING:     /" >&2
7992     ;;
7993 esac
7994 echo "$as_me:$LINENO: checking for $ac_header" >&5
7995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   eval "$as_ac_Header=\$ac_header_preproc"
8000 fi
8001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8003
8004 fi
8005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8006   cat >>confdefs.h <<_ACEOF
8007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8008 _ACEOF
8009
8010 fi
8011
8012 done
8013
8014
8015
8016 for ac_func in fork vfork
8017 do
8018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8019 echo "$as_me:$LINENO: checking for $ac_func" >&5
8020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8021 if eval "test \"\${$as_ac_var+set}\" = set"; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8032 #define $ac_func innocuous_$ac_func
8033
8034 /* System header to define __stub macros and hopefully few prototypes,
8035     which can conflict with char $ac_func (); below.
8036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8037     <limits.h> exists even on freestanding compilers.  */
8038
8039 #ifdef __STDC__
8040 # include <limits.h>
8041 #else
8042 # include <assert.h>
8043 #endif
8044
8045 #undef $ac_func
8046
8047 /* Override any gcc2 internal prototype to avoid an error.  */
8048 #ifdef __cplusplus
8049 extern "C"
8050 {
8051 #endif
8052 /* We use char because int might match the return type of a gcc2
8053    builtin and then its argument prototype would still apply.  */
8054 char $ac_func ();
8055 /* The GNU C library defines this for functions which it implements
8056     to always fail with ENOSYS.  Some functions are actually named
8057     something starting with __ and the normal name is an alias.  */
8058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8059 choke me
8060 #else
8061 char (*f) () = $ac_func;
8062 #endif
8063 #ifdef __cplusplus
8064 }
8065 #endif
8066
8067 int
8068 main ()
8069 {
8070 return f != $ac_func;
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext conftest$ac_exeext
8076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8077   (eval $ac_link) 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } &&
8084          { ac_try='test -z "$ac_c_werror_flag"
8085                          || test ! -s conftest.err'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   eval "$as_ac_var=yes"
8098 else
8099   echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.$ac_ext >&5
8101
8102 eval "$as_ac_var=no"
8103 fi
8104 rm -f conftest.err conftest.$ac_objext \
8105       conftest$ac_exeext conftest.$ac_ext
8106 fi
8107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8109 if test `eval echo '${'$as_ac_var'}'` = yes; then
8110   cat >>confdefs.h <<_ACEOF
8111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8112 _ACEOF
8113
8114 fi
8115 done
8116
8117 if test "x$ac_cv_func_fork" = xyes; then
8118   echo "$as_me:$LINENO: checking for working fork" >&5
8119 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
8120 if test "${ac_cv_func_fork_works+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   if test "$cross_compiling" = yes; then
8124   ac_cv_func_fork_works=cross
8125 else
8126   cat >conftest.$ac_ext <<_ACEOF
8127 /* By Ruediger Kuhlmann. */
8128       #include <sys/types.h>
8129       #if HAVE_UNISTD_H
8130       # include <unistd.h>
8131       #endif
8132       /* Some systems only have a dummy stub for fork() */
8133       int main ()
8134       {
8135         if (fork() < 0)
8136           exit (1);
8137         exit (0);
8138       }
8139 _ACEOF
8140 rm -f conftest$ac_exeext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142   (eval $ac_link) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8147   (eval $ac_try) 2>&5
8148   ac_status=$?
8149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150   (exit $ac_status); }; }; then
8151   ac_cv_func_fork_works=yes
8152 else
8153   echo "$as_me: program exited with status $ac_status" >&5
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ( exit $ac_status )
8158 ac_cv_func_fork_works=no
8159 fi
8160 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8161 fi
8162 fi
8163 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8164 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
8165
8166 else
8167   ac_cv_func_fork_works=$ac_cv_func_fork
8168 fi
8169 if test "x$ac_cv_func_fork_works" = xcross; then
8170   case $host in
8171     *-*-amigaos* | *-*-msdosdjgpp*)
8172       # Override, as these systems have only a dummy fork() stub
8173       ac_cv_func_fork_works=no
8174       ;;
8175     *)
8176       ac_cv_func_fork_works=yes
8177       ;;
8178   esac
8179   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8180 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8181 fi
8182 ac_cv_func_vfork_works=$ac_cv_func_vfork
8183 if test "x$ac_cv_func_vfork" = xyes; then
8184   echo "$as_me:$LINENO: checking for working vfork" >&5
8185 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
8186 if test "${ac_cv_func_vfork_works+set}" = set; then
8187   echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189   if test "$cross_compiling" = yes; then
8190   ac_cv_func_vfork_works=cross
8191 else
8192   cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h.  */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h.  */
8198 /* Thanks to Paul Eggert for this test.  */
8199 #include <stdio.h>
8200 #include <stdlib.h>
8201 #include <sys/types.h>
8202 #include <sys/stat.h>
8203 #include <sys/wait.h>
8204 #if HAVE_UNISTD_H
8205 # include <unistd.h>
8206 #endif
8207 #if HAVE_VFORK_H
8208 # include <vfork.h>
8209 #endif
8210 /* On some sparc systems, changes by the child to local and incoming
8211    argument registers are propagated back to the parent.  The compiler
8212    is told about this with #include <vfork.h>, but some compilers
8213    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8214    static variable whose address is put into a register that is
8215    clobbered by the vfork.  */
8216 static void
8217 #ifdef __cplusplus
8218 sparc_address_test (int arg)
8219 # else
8220 sparc_address_test (arg) int arg;
8221 #endif
8222 {
8223   static pid_t child;
8224   if (!child) {
8225     child = vfork ();
8226     if (child < 0) {
8227       perror ("vfork");
8228       _exit(2);
8229     }
8230     if (!child) {
8231       arg = getpid();
8232       write(-1, "", 0);
8233       _exit (arg);
8234     }
8235   }
8236 }
8237
8238 int
8239 main ()
8240 {
8241   pid_t parent = getpid ();
8242   pid_t child;
8243
8244   sparc_address_test (0);
8245
8246   child = vfork ();
8247
8248   if (child == 0) {
8249     /* Here is another test for sparc vfork register problems.  This
8250        test uses lots of local variables, at least as many local
8251        variables as main has allocated so far including compiler
8252        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8253        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8254        reuse the register of parent for one of the local variables,
8255        since it will think that parent can't possibly be used any more
8256        in this routine.  Assigning to the local variable will thus
8257        munge parent in the parent process.  */
8258     pid_t
8259       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8260       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8261     /* Convince the compiler that p..p7 are live; otherwise, it might
8262        use the same hardware register for all 8 local variables.  */
8263     if (p != p1 || p != p2 || p != p3 || p != p4
8264         || p != p5 || p != p6 || p != p7)
8265       _exit(1);
8266
8267     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8268        from child file descriptors.  If the child closes a descriptor
8269        before it execs or exits, this munges the parent's descriptor
8270        as well.  Test for this by closing stdout in the child.  */
8271     _exit(close(fileno(stdout)) != 0);
8272   } else {
8273     int status;
8274     struct stat st;
8275
8276     while (wait(&status) != child)
8277       ;
8278     exit(
8279          /* Was there some problem with vforking?  */
8280          child < 0
8281
8282          /* Did the child fail?  (This shouldn't happen.)  */
8283          || status
8284
8285          /* Did the vfork/compiler bug occur?  */
8286          || parent != getpid()
8287
8288          /* Did the file descriptor bug occur?  */
8289          || fstat(fileno(stdout), &st) != 0
8290          );
8291   }
8292 }
8293 _ACEOF
8294 rm -f conftest$ac_exeext
8295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8296   (eval $ac_link) 2>&5
8297   ac_status=$?
8298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_func_vfork_works=yes
8306 else
8307   echo "$as_me: program exited with status $ac_status" >&5
8308 echo "$as_me: failed program was:" >&5
8309 sed 's/^/| /' conftest.$ac_ext >&5
8310
8311 ( exit $ac_status )
8312 ac_cv_func_vfork_works=no
8313 fi
8314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 fi
8317 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8318 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
8319
8320 fi;
8321 if test "x$ac_cv_func_fork_works" = xcross; then
8322   ac_cv_func_vfork_works=$ac_cv_func_vfork
8323   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8324 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8325 fi
8326
8327 if test "x$ac_cv_func_vfork_works" = xyes; then
8328
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_WORKING_VFORK 1
8331 _ACEOF
8332
8333 else
8334
8335 cat >>confdefs.h <<\_ACEOF
8336 #define vfork fork
8337 _ACEOF
8338
8339 fi
8340 if test "x$ac_cv_func_fork_works" = xyes; then
8341
8342 cat >>confdefs.h <<\_ACEOF
8343 #define HAVE_WORKING_FORK 1
8344 _ACEOF
8345
8346 fi
8347
8348 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8349 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
8350 if test "${ac_cv_func_closedir_void+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   if test "$cross_compiling" = yes; then
8354   ac_cv_func_closedir_void=yes
8355 else
8356   cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h.  */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h.  */
8362 $ac_includes_default
8363 #include <$ac_header_dirent>
8364 #ifndef __cplusplus
8365 int closedir ();
8366 #endif
8367
8368 int
8369 main ()
8370 {
8371 exit (closedir (opendir (".")) != 0);
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest$ac_exeext
8377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8378   (eval $ac_link) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   ac_cv_func_closedir_void=no
8388 else
8389   echo "$as_me: program exited with status $ac_status" >&5
8390 echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8392
8393 ( exit $ac_status )
8394 ac_cv_func_closedir_void=yes
8395 fi
8396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 fi
8399 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8400 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
8401 if test $ac_cv_func_closedir_void = yes; then
8402
8403 cat >>confdefs.h <<\_ACEOF
8404 #define CLOSEDIR_VOID 1
8405 _ACEOF
8406
8407 fi
8408
8409
8410 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
8411 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
8412 if test "${ac_cv_search_getspnam+set}" = set; then
8413   echo $ECHO_N "(cached) $ECHO_C" >&6
8414 else
8415   ac_func_search_save_LIBS=$LIBS
8416 ac_cv_search_getspnam=no
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h.  */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h.  */
8423
8424 /* Override any gcc2 internal prototype to avoid an error.  */
8425 #ifdef __cplusplus
8426 extern "C"
8427 #endif
8428 /* We use char because int might match the return type of a gcc2
8429    builtin and then its argument prototype would still apply.  */
8430 char getspnam ();
8431 int
8432 main ()
8433 {
8434 getspnam ();
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441   (eval $ac_link) 2>conftest.er1
8442   ac_status=$?
8443   grep -v '^ *+' conftest.er1 >conftest.err
8444   rm -f conftest.er1
8445   cat conftest.err >&5
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); } &&
8448          { ac_try='test -z "$ac_c_werror_flag"
8449                          || test ! -s conftest.err'
8450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451   (eval $ac_try) 2>&5
8452   ac_status=$?
8453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454   (exit $ac_status); }; } &&
8455          { ac_try='test -s conftest$ac_exeext'
8456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457   (eval $ac_try) 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_search_getspnam="none required"
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466 fi
8467 rm -f conftest.err conftest.$ac_objext \
8468       conftest$ac_exeext conftest.$ac_ext
8469 if test "$ac_cv_search_getspnam" = no; then
8470   for ac_lib in sec gen; do
8471     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8472     cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h.  */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h.  */
8478
8479 /* Override any gcc2 internal prototype to avoid an error.  */
8480 #ifdef __cplusplus
8481 extern "C"
8482 #endif
8483 /* We use char because int might match the return type of a gcc2
8484    builtin and then its argument prototype would still apply.  */
8485 char getspnam ();
8486 int
8487 main ()
8488 {
8489 getspnam ();
8490   ;
8491   return 0;
8492 }
8493 _ACEOF
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496   (eval $ac_link) 2>conftest.er1
8497   ac_status=$?
8498   grep -v '^ *+' conftest.er1 >conftest.err
8499   rm -f conftest.er1
8500   cat conftest.err >&5
8501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502   (exit $ac_status); } &&
8503          { ac_try='test -z "$ac_c_werror_flag"
8504                          || test ! -s conftest.err'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; } &&
8510          { ac_try='test -s conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_search_getspnam="-l$ac_lib"
8517 break
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 fi
8523 rm -f conftest.err conftest.$ac_objext \
8524       conftest$ac_exeext conftest.$ac_ext
8525   done
8526 fi
8527 LIBS=$ac_func_search_save_LIBS
8528 fi
8529 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
8530 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
8531 if test "$ac_cv_search_getspnam" != no; then
8532   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
8533
8534 cat >>confdefs.h <<\_ACEOF
8535 #define HAVE_GETSPNAM 1
8536 _ACEOF
8537
8538 fi
8539
8540
8541 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
8542 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
8543 if test "${ac_cv_func_utime_null+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   rm -f conftest.data; >conftest.data
8547 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
8548 if test "$cross_compiling" = yes; then
8549   ac_cv_func_utime_null=no
8550 else
8551   cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557 $ac_includes_default
8558 int
8559 main ()
8560 {
8561 struct stat s, t;
8562   exit (!(stat ("conftest.data", &s) == 0
8563           && utime ("conftest.data", (long *)0) == 0
8564           && stat ("conftest.data", &t) == 0
8565           && t.st_mtime >= s.st_mtime
8566           && t.st_mtime - s.st_mtime < 120));
8567   ;
8568   return 0;
8569 }
8570 _ACEOF
8571 rm -f conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573   (eval $ac_link) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578   (eval $ac_try) 2>&5
8579   ac_status=$?
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); }; }; then
8582   ac_cv_func_utime_null=yes
8583 else
8584   echo "$as_me: program exited with status $ac_status" >&5
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ( exit $ac_status )
8589 ac_cv_func_utime_null=no
8590 fi
8591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8592 fi
8593 rm -f core *.core
8594 fi
8595 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
8596 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
8597 if test $ac_cv_func_utime_null = yes; then
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_UTIME_NULL 1
8601 _ACEOF
8602
8603 fi
8604 rm -f conftest.data
8605
8606 echo "$as_me:$LINENO: checking for long file names" >&5
8607 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8608 if test "${ac_cv_sys_long_file_names+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   ac_cv_sys_long_file_names=yes
8612 # Test for long file names in all the places we know might matter:
8613 #      .                the current directory, where building will happen
8614 #      $prefix/lib      where we will be installing things
8615 #      $exec_prefix/lib likewise
8616 # eval it to expand exec_prefix.
8617 #      $TMPDIR          if set, where it might want to write temporary files
8618 # if $TMPDIR is not set:
8619 #      /tmp             where it might want to write temporary files
8620 #      /var/tmp         likewise
8621 #      /usr/tmp         likewise
8622 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8623   ac_tmpdirs=$TMPDIR
8624 else
8625   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8626 fi
8627 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8628   test -d $ac_dir || continue
8629   test -w $ac_dir || continue # It is less confusing to not echo anything here.
8630   ac_xdir=$ac_dir/cf$$
8631   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8632   ac_tf1=$ac_xdir/conftest9012345
8633   ac_tf2=$ac_xdir/conftest9012346
8634   (echo 1 >$ac_tf1) 2>/dev/null
8635   (echo 2 >$ac_tf2) 2>/dev/null
8636   ac_val=`cat $ac_tf1 2>/dev/null`
8637   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8638     ac_cv_sys_long_file_names=no
8639     rm -rf $ac_xdir 2>/dev/null
8640     break
8641   fi
8642   rm -rf $ac_xdir 2>/dev/null
8643 done
8644 fi
8645 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8646 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8647 if test $ac_cv_sys_long_file_names = yes; then
8648
8649 cat >>confdefs.h <<\_ACEOF
8650 #define HAVE_LONG_FILE_NAMES 1
8651 _ACEOF
8652
8653 fi
8654
8655
8656 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
8657 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
8658 if test "${ac_cv_func_fnmatch_works+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   # Some versions of Solaris, SCO, and the GNU C Library
8662    # have a broken or incompatible fnmatch.
8663    # So we run a test program.  If we are cross-compiling, take no chance.
8664    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
8665    if test "$cross_compiling" = yes; then
8666   ac_cv_func_fnmatch_works=cross
8667 else
8668   cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h.  */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h.  */
8674 #include <fnmatch.h>
8675 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
8676 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
8677
8678 int
8679 main ()
8680 {
8681 exit
8682            (!(y ("a*", "abc", 0)
8683               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
8684               && y ("a\\\\bc", "abc", 0)
8685               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
8686               && y ("*x", ".x", 0)
8687               && n ("*x", ".x", FNM_PERIOD)
8688               && 1));
8689   ;
8690   return 0;
8691 }
8692 _ACEOF
8693 rm -f conftest$ac_exeext
8694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8695   (eval $ac_link) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; }; then
8704   ac_cv_func_fnmatch_works=yes
8705 else
8706   echo "$as_me: program exited with status $ac_status" >&5
8707 echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 ( exit $ac_status )
8711 ac_cv_func_fnmatch_works=no
8712 fi
8713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 fi
8716 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
8717 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
8718 if test $ac_cv_func_fnmatch_works = yes; then
8719
8720 cat >>confdefs.h <<\_ACEOF
8721 #define HAVE_FNMATCH 1
8722 _ACEOF
8723
8724 fi
8725
8726
8727
8728 if test "$ac_cv_func_fnmatch_works" = no; then
8729   case $LIBOBJS in
8730     "fnmatch.$ac_objext"   | \
8731   *" fnmatch.$ac_objext"   | \
8732     "fnmatch.$ac_objext "* | \
8733   *" fnmatch.$ac_objext "* ) ;;
8734   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
8735 esac
8736
8737             ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.h.in"
8738
8739
8740 fi
8741
8742
8743
8744 for ac_header in stdlib.h unistd.h
8745 do
8746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8748   echo "$as_me:$LINENO: checking for $ac_header" >&5
8749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751   echo $ECHO_N "(cached) $ECHO_C" >&6
8752 fi
8753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8755 else
8756   # Is the header compilable?
8757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8759 cat >conftest.$ac_ext <<_ACEOF
8760 /* confdefs.h.  */
8761 _ACEOF
8762 cat confdefs.h >>conftest.$ac_ext
8763 cat >>conftest.$ac_ext <<_ACEOF
8764 /* end confdefs.h.  */
8765 $ac_includes_default
8766 #include <$ac_header>
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8770   (eval $ac_compile) 2>conftest.er1
8771   ac_status=$?
8772   grep -v '^ *+' conftest.er1 >conftest.err
8773   rm -f conftest.er1
8774   cat conftest.err >&5
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); } &&
8777          { ac_try='test -z "$ac_c_werror_flag"
8778                          || test ! -s conftest.err'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; } &&
8784          { ac_try='test -s conftest.$ac_objext'
8785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8786   (eval $ac_try) 2>&5
8787   ac_status=$?
8788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); }; }; then
8790   ac_header_compiler=yes
8791 else
8792   echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8794
8795 ac_header_compiler=no
8796 fi
8797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799 echo "${ECHO_T}$ac_header_compiler" >&6
8800
8801 # Is the header present?
8802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <$ac_header>
8811 _ACEOF
8812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8813   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8814   ac_status=$?
8815   grep -v '^ *+' conftest.er1 >conftest.err
8816   rm -f conftest.er1
8817   cat conftest.err >&5
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } >/dev/null; then
8820   if test -s conftest.err; then
8821     ac_cpp_err=$ac_c_preproc_warn_flag
8822     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8823   else
8824     ac_cpp_err=
8825   fi
8826 else
8827   ac_cpp_err=yes
8828 fi
8829 if test -z "$ac_cpp_err"; then
8830   ac_header_preproc=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835   ac_header_preproc=no
8836 fi
8837 rm -f conftest.err conftest.$ac_ext
8838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839 echo "${ECHO_T}$ac_header_preproc" >&6
8840
8841 # So?  What about this header?
8842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843   yes:no: )
8844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848     ac_header_preproc=yes
8849     ;;
8850   no:yes:* )
8851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8863     (
8864       cat <<\_ASBOX
8865 ## ------------------------------ ##
8866 ## Report this to bug-cvs@gnu.org ##
8867 ## ------------------------------ ##
8868 _ASBOX
8869     ) |
8870       sed "s/^/$as_me: WARNING:     /" >&2
8871     ;;
8872 esac
8873 echo "$as_me:$LINENO: checking for $ac_header" >&5
8874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8876   echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878   eval "$as_ac_Header=\$ac_header_preproc"
8879 fi
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8882
8883 fi
8884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8885   cat >>confdefs.h <<_ACEOF
8886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8887 _ACEOF
8888
8889 fi
8890
8891 done
8892
8893
8894 for ac_func in getpagesize
8895 do
8896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8897 echo "$as_me:$LINENO: checking for $ac_func" >&5
8898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8899 if eval "test \"\${$as_ac_var+set}\" = set"; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8910 #define $ac_func innocuous_$ac_func
8911
8912 /* System header to define __stub macros and hopefully few prototypes,
8913     which can conflict with char $ac_func (); below.
8914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8915     <limits.h> exists even on freestanding compilers.  */
8916
8917 #ifdef __STDC__
8918 # include <limits.h>
8919 #else
8920 # include <assert.h>
8921 #endif
8922
8923 #undef $ac_func
8924
8925 /* Override any gcc2 internal prototype to avoid an error.  */
8926 #ifdef __cplusplus
8927 extern "C"
8928 {
8929 #endif
8930 /* We use char because int might match the return type of a gcc2
8931    builtin and then its argument prototype would still apply.  */
8932 char $ac_func ();
8933 /* The GNU C library defines this for functions which it implements
8934     to always fail with ENOSYS.  Some functions are actually named
8935     something starting with __ and the normal name is an alias.  */
8936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8937 choke me
8938 #else
8939 char (*f) () = $ac_func;
8940 #endif
8941 #ifdef __cplusplus
8942 }
8943 #endif
8944
8945 int
8946 main ()
8947 {
8948 return f != $ac_func;
8949   ;
8950   return 0;
8951 }
8952 _ACEOF
8953 rm -f conftest.$ac_objext conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955   (eval $ac_link) 2>conftest.er1
8956   ac_status=$?
8957   grep -v '^ *+' conftest.er1 >conftest.err
8958   rm -f conftest.er1
8959   cat conftest.err >&5
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); } &&
8962          { ac_try='test -z "$ac_c_werror_flag"
8963                          || test ! -s conftest.err'
8964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965   (eval $ac_try) 2>&5
8966   ac_status=$?
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); }; } &&
8969          { ac_try='test -s conftest$ac_exeext'
8970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971   (eval $ac_try) 2>&5
8972   ac_status=$?
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); }; }; then
8975   eval "$as_ac_var=yes"
8976 else
8977   echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 eval "$as_ac_var=no"
8981 fi
8982 rm -f conftest.err conftest.$ac_objext \
8983       conftest$ac_exeext conftest.$ac_ext
8984 fi
8985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8987 if test `eval echo '${'$as_ac_var'}'` = yes; then
8988   cat >>confdefs.h <<_ACEOF
8989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8990 _ACEOF
8991
8992 fi
8993 done
8994
8995 echo "$as_me:$LINENO: checking for working mmap" >&5
8996 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8997 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   if test "$cross_compiling" = yes; then
9001   ac_cv_func_mmap_fixed_mapped=no
9002 else
9003   cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009 $ac_includes_default
9010 /* malloc might have been renamed as rpl_malloc. */
9011 #undef malloc
9012
9013 /* Thanks to Mike Haertel and Jim Avera for this test.
9014    Here is a matrix of mmap possibilities:
9015         mmap private not fixed
9016         mmap private fixed at somewhere currently unmapped
9017         mmap private fixed at somewhere already mapped
9018         mmap shared not fixed
9019         mmap shared fixed at somewhere currently unmapped
9020         mmap shared fixed at somewhere already mapped
9021    For private mappings, we should verify that changes cannot be read()
9022    back from the file, nor mmap's back from the file at a different
9023    address.  (There have been systems where private was not correctly
9024    implemented like the infamous i386 svr4.0, and systems where the
9025    VM page cache was not coherent with the file system buffer cache
9026    like early versions of FreeBSD and possibly contemporary NetBSD.)
9027    For shared mappings, we should conversely verify that changes get
9028    propagated back to all the places they're supposed to be.
9029
9030    Grep wants private fixed already mapped.
9031    The main things grep needs to know about mmap are:
9032    * does it exist and is it safe to write into the mmap'd area
9033    * how to use it (BSD variants)  */
9034
9035 #include <fcntl.h>
9036 #include <sys/mman.h>
9037
9038 #if !STDC_HEADERS && !HAVE_STDLIB_H
9039 char *malloc ();
9040 #endif
9041
9042 /* This mess was copied from the GNU getpagesize.h.  */
9043 #if !HAVE_GETPAGESIZE
9044 /* Assume that all systems that can run configure have sys/param.h.  */
9045 # if !HAVE_SYS_PARAM_H
9046 #  define HAVE_SYS_PARAM_H 1
9047 # endif
9048
9049 # ifdef _SC_PAGESIZE
9050 #  define getpagesize() sysconf(_SC_PAGESIZE)
9051 # else /* no _SC_PAGESIZE */
9052 #  if HAVE_SYS_PARAM_H
9053 #   include <sys/param.h>
9054 #   ifdef EXEC_PAGESIZE
9055 #    define getpagesize() EXEC_PAGESIZE
9056 #   else /* no EXEC_PAGESIZE */
9057 #    ifdef NBPG
9058 #     define getpagesize() NBPG * CLSIZE
9059 #     ifndef CLSIZE
9060 #      define CLSIZE 1
9061 #     endif /* no CLSIZE */
9062 #    else /* no NBPG */
9063 #     ifdef NBPC
9064 #      define getpagesize() NBPC
9065 #     else /* no NBPC */
9066 #      ifdef PAGESIZE
9067 #       define getpagesize() PAGESIZE
9068 #      endif /* PAGESIZE */
9069 #     endif /* no NBPC */
9070 #    endif /* no NBPG */
9071 #   endif /* no EXEC_PAGESIZE */
9072 #  else /* no HAVE_SYS_PARAM_H */
9073 #   define getpagesize() 8192   /* punt totally */
9074 #  endif /* no HAVE_SYS_PARAM_H */
9075 # endif /* no _SC_PAGESIZE */
9076
9077 #endif /* no HAVE_GETPAGESIZE */
9078
9079 int
9080 main ()
9081 {
9082   char *data, *data2, *data3;
9083   int i, pagesize;
9084   int fd;
9085
9086   pagesize = getpagesize ();
9087
9088   /* First, make a file with some known garbage in it. */
9089   data = (char *) malloc (pagesize);
9090   if (!data)
9091     exit (1);
9092   for (i = 0; i < pagesize; ++i)
9093     *(data + i) = rand ();
9094   umask (0);
9095   fd = creat ("conftest.mmap", 0600);
9096   if (fd < 0)
9097     exit (1);
9098   if (write (fd, data, pagesize) != pagesize)
9099     exit (1);
9100   close (fd);
9101
9102   /* Next, try to mmap the file at a fixed address which already has
9103      something else allocated at it.  If we can, also make sure that
9104      we see the same garbage.  */
9105   fd = open ("conftest.mmap", O_RDWR);
9106   if (fd < 0)
9107     exit (1);
9108   data2 = (char *) malloc (2 * pagesize);
9109   if (!data2)
9110     exit (1);
9111   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9112   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9113                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9114     exit (1);
9115   for (i = 0; i < pagesize; ++i)
9116     if (*(data + i) != *(data2 + i))
9117       exit (1);
9118
9119   /* Finally, make sure that changes to the mapped area do not
9120      percolate back to the file as seen by read().  (This is a bug on
9121      some variants of i386 svr4.0.)  */
9122   for (i = 0; i < pagesize; ++i)
9123     *(data2 + i) = *(data2 + i) + 1;
9124   data3 = (char *) malloc (pagesize);
9125   if (!data3)
9126     exit (1);
9127   if (read (fd, data3, pagesize) != pagesize)
9128     exit (1);
9129   for (i = 0; i < pagesize; ++i)
9130     if (*(data + i) != *(data3 + i))
9131       exit (1);
9132   close (fd);
9133   exit (0);
9134 }
9135 _ACEOF
9136 rm -f conftest$ac_exeext
9137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138   (eval $ac_link) 2>&5
9139   ac_status=$?
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_func_mmap_fixed_mapped=yes
9148 else
9149   echo "$as_me: program exited with status $ac_status" >&5
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ( exit $ac_status )
9154 ac_cv_func_mmap_fixed_mapped=no
9155 fi
9156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9157 fi
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9160 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9161 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9162
9163 cat >>confdefs.h <<\_ACEOF
9164 #define HAVE_MMAP 1
9165 _ACEOF
9166
9167 fi
9168 rm -f conftest.mmap
9169
9170
9171 # Try to find connect and gethostbyname.
9172
9173 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9174 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
9175 if test "${ac_cv_lib_nsl_main+set}" = set; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   ac_check_lib_save_LIBS=$LIBS
9179 LIBS="-lnsl  $LIBS"
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186
9187
9188 int
9189 main ()
9190 {
9191 main ();
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 rm -f conftest.$ac_objext conftest$ac_exeext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9198   (eval $ac_link) 2>conftest.er1
9199   ac_status=$?
9200   grep -v '^ *+' conftest.er1 >conftest.err
9201   rm -f conftest.er1
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -z "$ac_c_werror_flag"
9206                          || test ! -s conftest.err'
9207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9208   (eval $ac_try) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); }; } &&
9212          { ac_try='test -s conftest$ac_exeext'
9213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214   (eval $ac_try) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; }; then
9218   ac_cv_lib_nsl_main=yes
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 ac_cv_lib_nsl_main=no
9224 fi
9225 rm -f conftest.err conftest.$ac_objext \
9226       conftest$ac_exeext conftest.$ac_ext
9227 LIBS=$ac_check_lib_save_LIBS
9228 fi
9229 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
9230 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
9231 if test $ac_cv_lib_nsl_main = yes; then
9232   cat >>confdefs.h <<_ACEOF
9233 #define HAVE_LIBNSL 1
9234 _ACEOF
9235
9236   LIBS="-lnsl $LIBS"
9237
9238 fi
9239
9240 echo "$as_me:$LINENO: checking for library containing connect" >&5
9241 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
9242 if test "${ac_cv_search_connect+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245   ac_func_search_save_LIBS=$LIBS
9246 ac_cv_search_connect=no
9247 cat >conftest.$ac_ext <<_ACEOF
9248 /* confdefs.h.  */
9249 _ACEOF
9250 cat confdefs.h >>conftest.$ac_ext
9251 cat >>conftest.$ac_ext <<_ACEOF
9252 /* end confdefs.h.  */
9253
9254 /* Override any gcc2 internal prototype to avoid an error.  */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 /* We use char because int might match the return type of a gcc2
9259    builtin and then its argument prototype would still apply.  */
9260 char connect ();
9261 int
9262 main ()
9263 {
9264 connect ();
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 rm -f conftest.$ac_objext conftest$ac_exeext
9270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271   (eval $ac_link) 2>conftest.er1
9272   ac_status=$?
9273   grep -v '^ *+' conftest.er1 >conftest.err
9274   rm -f conftest.er1
9275   cat conftest.err >&5
9276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277   (exit $ac_status); } &&
9278          { ac_try='test -z "$ac_c_werror_flag"
9279                          || test ! -s conftest.err'
9280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281   (eval $ac_try) 2>&5
9282   ac_status=$?
9283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); }; } &&
9285          { ac_try='test -s conftest$ac_exeext'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; }; then
9291   ac_cv_search_connect="none required"
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296 fi
9297 rm -f conftest.err conftest.$ac_objext \
9298       conftest$ac_exeext conftest.$ac_ext
9299 if test "$ac_cv_search_connect" = no; then
9300   for ac_lib in xnet socket inet; do
9301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9302     cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308
9309 /* Override any gcc2 internal prototype to avoid an error.  */
9310 #ifdef __cplusplus
9311 extern "C"
9312 #endif
9313 /* We use char because int might match the return type of a gcc2
9314    builtin and then its argument prototype would still apply.  */
9315 char connect ();
9316 int
9317 main ()
9318 {
9319 connect ();
9320   ;
9321   return 0;
9322 }
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326   (eval $ac_link) 2>conftest.er1
9327   ac_status=$?
9328   grep -v '^ *+' conftest.er1 >conftest.err
9329   rm -f conftest.er1
9330   cat conftest.err >&5
9331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332   (exit $ac_status); } &&
9333          { ac_try='test -z "$ac_c_werror_flag"
9334                          || test ! -s conftest.err'
9335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336   (eval $ac_try) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); }; } &&
9340          { ac_try='test -s conftest$ac_exeext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_cv_search_connect="-l$ac_lib"
9347 break
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 fi
9353 rm -f conftest.err conftest.$ac_objext \
9354       conftest$ac_exeext conftest.$ac_ext
9355   done
9356 fi
9357 LIBS=$ac_func_search_save_LIBS
9358 fi
9359 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
9360 echo "${ECHO_T}$ac_cv_search_connect" >&6
9361 if test "$ac_cv_search_connect" != no; then
9362   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
9363
9364 cat >>confdefs.h <<\_ACEOF
9365 #define HAVE_CONNECT 1
9366 _ACEOF
9367
9368 fi
9369
9370 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9371 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9372 if test "${ac_cv_search_gethostbyname+set}" = set; then
9373   echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375   ac_func_search_save_LIBS=$LIBS
9376 ac_cv_search_gethostbyname=no
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383
9384 /* Override any gcc2 internal prototype to avoid an error.  */
9385 #ifdef __cplusplus
9386 extern "C"
9387 #endif
9388 /* We use char because int might match the return type of a gcc2
9389    builtin and then its argument prototype would still apply.  */
9390 char gethostbyname ();
9391 int
9392 main ()
9393 {
9394 gethostbyname ();
9395   ;
9396   return 0;
9397 }
9398 _ACEOF
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401   (eval $ac_link) 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } &&
9408          { ac_try='test -z "$ac_c_werror_flag"
9409                          || test ! -s conftest.err'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; } &&
9415          { ac_try='test -s conftest$ac_exeext'
9416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417   (eval $ac_try) 2>&5
9418   ac_status=$?
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); }; }; then
9421   ac_cv_search_gethostbyname="none required"
9422 else
9423   echo "$as_me: failed program was:" >&5
9424 sed 's/^/| /' conftest.$ac_ext >&5
9425
9426 fi
9427 rm -f conftest.err conftest.$ac_objext \
9428       conftest$ac_exeext conftest.$ac_ext
9429 if test "$ac_cv_search_gethostbyname" = no; then
9430   for ac_lib in netinet; do
9431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9432     cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438
9439 /* Override any gcc2 internal prototype to avoid an error.  */
9440 #ifdef __cplusplus
9441 extern "C"
9442 #endif
9443 /* We use char because int might match the return type of a gcc2
9444    builtin and then its argument prototype would still apply.  */
9445 char gethostbyname ();
9446 int
9447 main ()
9448 {
9449 gethostbyname ();
9450   ;
9451   return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456   (eval $ac_link) 2>conftest.er1
9457   ac_status=$?
9458   grep -v '^ *+' conftest.er1 >conftest.err
9459   rm -f conftest.er1
9460   cat conftest.err >&5
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); } &&
9463          { ac_try='test -z "$ac_c_werror_flag"
9464                          || test ! -s conftest.err'
9465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466   (eval $ac_try) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); }; } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; }; then
9476   ac_cv_search_gethostbyname="-l$ac_lib"
9477 break
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 fi
9483 rm -f conftest.err conftest.$ac_objext \
9484       conftest$ac_exeext conftest.$ac_ext
9485   done
9486 fi
9487 LIBS=$ac_func_search_save_LIBS
9488 fi
9489 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9490 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9491 if test "$ac_cv_search_gethostbyname" != no; then
9492   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9493
9494 fi
9495
9496
9497
9498
9499 KRB4=/usr/kerberos
9500
9501
9502 # Check whether --with-krb4 or --without-krb4 was given.
9503 if test "${with_krb4+set}" = set; then
9504   withval="$with_krb4"
9505   KRB4=$with_krb4
9506 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
9507 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
9508 echo "$as_me:$LINENO: result: " >&5
9509 echo "${ECHO_T}" >&6
9510
9511
9512 krb_h=
9513 echo "$as_me:$LINENO: checking for krb.h" >&5
9514 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
9515 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
9516    hold_cflags=$CFLAGS
9517    CFLAGS="$CFLAGS -I$KRB4/include"
9518    cat >conftest.$ac_ext <<_ACEOF
9519 /* confdefs.h.  */
9520 _ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h.  */
9524 #include <krb.h>
9525 int
9526 main ()
9527 {
9528 int i;
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535   (eval $ac_link) 2>conftest.er1
9536   ac_status=$?
9537   grep -v '^ *+' conftest.er1 >conftest.err
9538   rm -f conftest.er1
9539   cat conftest.err >&5
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } &&
9542          { ac_try='test -z "$ac_c_werror_flag"
9543                          || test ! -s conftest.err'
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); }; } &&
9549          { ac_try='test -s conftest$ac_exeext'
9550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551   (eval $ac_try) 2>&5
9552   ac_status=$?
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); }; }; then
9555   krb_h=yes krb_incdir=$KRB4/include
9556 else
9557   echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 CFLAGS=$hold_cflags
9561            cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 #include <krb.h>
9568 int
9569 main ()
9570 {
9571 int i;
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578   (eval $ac_link) 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } &&
9585          { ac_try='test -z "$ac_c_werror_flag"
9586                          || test ! -s conftest.err'
9587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588   (eval $ac_try) 2>&5
9589   ac_status=$?
9590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); }; } &&
9592          { ac_try='test -s conftest$ac_exeext'
9593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594   (eval $ac_try) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   krb_h=yes krb_incdir=
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 fi
9604 rm -f conftest.err conftest.$ac_objext \
9605       conftest$ac_exeext conftest.$ac_ext
9606 fi
9607 rm -f conftest.err conftest.$ac_objext \
9608       conftest$ac_exeext conftest.$ac_ext
9609    CFLAGS=$hold_cflags
9610 else
9611    cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 #include <krb.h>
9618 int
9619 main ()
9620 {
9621 int i;
9622   ;
9623   return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628   (eval $ac_link) 2>conftest.er1
9629   ac_status=$?
9630   grep -v '^ *+' conftest.er1 >conftest.err
9631   rm -f conftest.er1
9632   cat conftest.err >&5
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); } &&
9635          { ac_try='test -z "$ac_c_werror_flag"
9636                          || test ! -s conftest.err'
9637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638   (eval $ac_try) 2>&5
9639   ac_status=$?
9640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); }; } &&
9642          { ac_try='test -s conftest$ac_exeext'
9643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644   (eval $ac_try) 2>&5
9645   ac_status=$?
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); }; }; then
9648   krb_h=yes krb_incdir=
9649 else
9650   echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 fi
9654 rm -f conftest.err conftest.$ac_objext \
9655       conftest$ac_exeext conftest.$ac_ext
9656 fi
9657 if test -z "$krb_h"; then
9658   cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664 #include <krb.h>
9665 int
9666 main ()
9667 {
9668 int i;
9669   ;
9670   return 0;
9671 }
9672 _ACEOF
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9675   (eval $ac_link) 2>conftest.er1
9676   ac_status=$?
9677   grep -v '^ *+' conftest.er1 >conftest.err
9678   rm -f conftest.er1
9679   cat conftest.err >&5
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); } &&
9682          { ac_try='test -z "$ac_c_werror_flag"
9683                          || test ! -s conftest.err'
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); }; } &&
9689          { ac_try='test -s conftest$ac_exeext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   krb_h=yes krb_incdir=
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
9701        hold_cflags=$CFLAGS
9702        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
9703        cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h.  */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h.  */
9709 #include <krb.h>
9710 int
9711 main ()
9712 {
9713 int i;
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720   (eval $ac_link) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest$ac_exeext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 fi
9746 rm -f conftest.err conftest.$ac_objext \
9747       conftest$ac_exeext conftest.$ac_ext
9748        CFLAGS=$hold_cflags
9749      fi
9750 fi
9751 rm -f conftest.err conftest.$ac_objext \
9752       conftest$ac_exeext conftest.$ac_ext
9753 fi
9754 echo "$as_me:$LINENO: result: $krb_h" >&5
9755 echo "${ECHO_T}$krb_h" >&6
9756
9757 includeopt=
9758
9759 if test -n "$krb_h"; then
9760   krb_lib=
9761   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
9762        hold_ldflags=$LDFLAGS
9763        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
9764        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9765 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
9766 if test "${ac_cv_lib_krb_printf+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769   ac_check_lib_save_LIBS=$LIBS
9770 LIBS="-lkrb  $LIBS"
9771 cat >conftest.$ac_ext <<_ACEOF
9772 /* confdefs.h.  */
9773 _ACEOF
9774 cat confdefs.h >>conftest.$ac_ext
9775 cat >>conftest.$ac_ext <<_ACEOF
9776 /* end confdefs.h.  */
9777
9778 /* Override any gcc2 internal prototype to avoid an error.  */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 /* We use char because int might match the return type of a gcc2
9783    builtin and then its argument prototype would still apply.  */
9784 char printf ();
9785 int
9786 main ()
9787 {
9788 printf ();
9789   ;
9790   return 0;
9791 }
9792 _ACEOF
9793 rm -f conftest.$ac_objext conftest$ac_exeext
9794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9795   (eval $ac_link) 2>conftest.er1
9796   ac_status=$?
9797   grep -v '^ *+' conftest.er1 >conftest.err
9798   rm -f conftest.er1
9799   cat conftest.err >&5
9800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801   (exit $ac_status); } &&
9802          { ac_try='test -z "$ac_c_werror_flag"
9803                          || test ! -s conftest.err'
9804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805   (eval $ac_try) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); }; } &&
9809          { ac_try='test -s conftest$ac_exeext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_lib_krb_printf=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_lib_krb_printf=no
9821 fi
9822 rm -f conftest.err conftest.$ac_objext \
9823       conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
9827 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
9828 if test $ac_cv_lib_krb_printf = yes; then
9829   krb_lib=yes krb_libdir=${KRB4}/lib
9830 else
9831   LDFLAGS=$hold_ldflags
9832             # Using open here instead of printf so we don't
9833             # get confused by the cached value for printf from above.
9834             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
9835 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
9836 if test "${ac_cv_lib_krb_open+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_check_lib_save_LIBS=$LIBS
9840 LIBS="-lkrb  $LIBS"
9841 cat >conftest.$ac_ext <<_ACEOF
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847
9848 /* Override any gcc2 internal prototype to avoid an error.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 /* We use char because int might match the return type of a gcc2
9853    builtin and then its argument prototype would still apply.  */
9854 char open ();
9855 int
9856 main ()
9857 {
9858 open ();
9859   ;
9860   return 0;
9861 }
9862 _ACEOF
9863 rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865   (eval $ac_link) 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } &&
9872          { ac_try='test -z "$ac_c_werror_flag"
9873                          || test ! -s conftest.err'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_krb_open=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_krb_open=no
9891 fi
9892 rm -f conftest.err conftest.$ac_objext \
9893       conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_lib_save_LIBS
9895 fi
9896 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
9897 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
9898 if test $ac_cv_lib_krb_open = yes; then
9899   krb_lib=yes krb_libdir=
9900 fi
9901
9902 fi
9903
9904        LDFLAGS=$hold_ldflags
9905   else
9906        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9907 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
9908 if test "${ac_cv_lib_krb_printf+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-lkrb  $LIBS"
9913 cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919
9920 /* Override any gcc2 internal prototype to avoid an error.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 /* We use char because int might match the return type of a gcc2
9925    builtin and then its argument prototype would still apply.  */
9926 char printf ();
9927 int
9928 main ()
9929 {
9930 printf ();
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937   (eval $ac_link) 2>conftest.er1
9938   ac_status=$?
9939   grep -v '^ *+' conftest.er1 >conftest.err
9940   rm -f conftest.er1
9941   cat conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } &&
9944          { ac_try='test -z "$ac_c_werror_flag"
9945                          || test ! -s conftest.err'
9946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947   (eval $ac_try) 2>&5
9948   ac_status=$?
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); }; } &&
9951          { ac_try='test -s conftest$ac_exeext'
9952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953   (eval $ac_try) 2>&5
9954   ac_status=$?
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); }; }; then
9957   ac_cv_lib_krb_printf=yes
9958 else
9959   echo "$as_me: failed program was:" >&5
9960 sed 's/^/| /' conftest.$ac_ext >&5
9961
9962 ac_cv_lib_krb_printf=no
9963 fi
9964 rm -f conftest.err conftest.$ac_objext \
9965       conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
9969 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
9970 if test $ac_cv_lib_krb_printf = yes; then
9971   krb_lib=yes krb_libdir=
9972 fi
9973
9974        echo "$as_me:$LINENO: checking for krb_recvauth" >&5
9975 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6
9976 if test "${ac_cv_func_krb_recvauth+set}" = set; then
9977   echo $ECHO_N "(cached) $ECHO_C" >&6
9978 else
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 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
9986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9987 #define krb_recvauth innocuous_krb_recvauth
9988
9989 /* System header to define __stub macros and hopefully few prototypes,
9990     which can conflict with char krb_recvauth (); below.
9991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9992     <limits.h> exists even on freestanding compilers.  */
9993
9994 #ifdef __STDC__
9995 # include <limits.h>
9996 #else
9997 # include <assert.h>
9998 #endif
9999
10000 #undef krb_recvauth
10001
10002 /* Override any gcc2 internal prototype to avoid an error.  */
10003 #ifdef __cplusplus
10004 extern "C"
10005 {
10006 #endif
10007 /* We use char because int might match the return type of a gcc2
10008    builtin and then its argument prototype would still apply.  */
10009 char krb_recvauth ();
10010 /* The GNU C library defines this for functions which it implements
10011     to always fail with ENOSYS.  Some functions are actually named
10012     something starting with __ and the normal name is an alias.  */
10013 #if defined (__stub_krb_recvauth) || defined (__stub___krb_recvauth)
10014 choke me
10015 #else
10016 char (*f) () = krb_recvauth;
10017 #endif
10018 #ifdef __cplusplus
10019 }
10020 #endif
10021
10022 int
10023 main ()
10024 {
10025 return f != krb_recvauth;
10026   ;
10027   return 0;
10028 }
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032   (eval $ac_link) 2>conftest.er1
10033   ac_status=$?
10034   grep -v '^ *+' conftest.er1 >conftest.err
10035   rm -f conftest.er1
10036   cat conftest.err >&5
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } &&
10039          { ac_try='test -z "$ac_c_werror_flag"
10040                          || test ! -s conftest.err'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; } &&
10046          { ac_try='test -s conftest$ac_exeext'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   ac_cv_func_krb_recvauth=yes
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 ac_cv_func_krb_recvauth=no
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
10063 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6
10064 if test $ac_cv_func_krb_recvauth = yes; then
10065   krb_lib=yes krb_libdir=
10066 fi
10067
10068   fi
10069   if test -n "$krb_lib"; then
10070
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_KERBEROS 1
10073 _ACEOF
10074
10075     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
10076     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
10077     # -ldes in the command line.  Don't do it permanently so that we honor
10078     # the user's setting for LDFLAGS
10079     hold_ldflags=$LDFLAGS
10080     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
10081     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
10082 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
10083 if test "${ac_cv_lib_des_printf+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldes  $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any gcc2 internal prototype to avoid an error.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 /* We use char because int might match the return type of a gcc2
10100    builtin and then its argument prototype would still apply.  */
10101 char printf ();
10102 int
10103 main ()
10104 {
10105 printf ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112   (eval $ac_link) 2>conftest.er1
10113   ac_status=$?
10114   grep -v '^ *+' conftest.er1 >conftest.err
10115   rm -f conftest.er1
10116   cat conftest.err >&5
10117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118   (exit $ac_status); } &&
10119          { ac_try='test -z "$ac_c_werror_flag"
10120                          || test ! -s conftest.err'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; } &&
10126          { ac_try='test -s conftest$ac_exeext'
10127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128   (eval $ac_try) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; }; then
10132   ac_cv_lib_des_printf=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ac_cv_lib_des_printf=no
10138 fi
10139 rm -f conftest.err conftest.$ac_objext \
10140       conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10142 fi
10143 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
10144 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
10145 if test $ac_cv_lib_des_printf = yes; then
10146   LIBS="${LIBS} -ldes"
10147 fi
10148
10149
10150 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
10151 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6
10152 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 else
10155   ac_check_lib_save_LIBS=$LIBS
10156 LIBS="-lkrb  $LIBS"
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h.  */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h.  */
10163
10164 /* Override any gcc2 internal prototype to avoid an error.  */
10165 #ifdef __cplusplus
10166 extern "C"
10167 #endif
10168 /* We use char because int might match the return type of a gcc2
10169    builtin and then its argument prototype would still apply.  */
10170 char krb_recvauth ();
10171 int
10172 main ()
10173 {
10174 krb_recvauth ();
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181   (eval $ac_link) 2>conftest.er1
10182   ac_status=$?
10183   grep -v '^ *+' conftest.er1 >conftest.err
10184   rm -f conftest.er1
10185   cat conftest.err >&5
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); } &&
10188          { ac_try='test -z "$ac_c_werror_flag"
10189                          || test ! -s conftest.err'
10190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191   (eval $ac_try) 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest$ac_exeext'
10196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197   (eval $ac_try) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); }; }; then
10201   ac_cv_lib_krb_krb_recvauth=yes
10202 else
10203   echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_cv_lib_krb_krb_recvauth=no
10207 fi
10208 rm -f conftest.err conftest.$ac_objext \
10209       conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10211 fi
10212 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
10213 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6
10214 if test $ac_cv_lib_krb_krb_recvauth = yes; then
10215   cat >>confdefs.h <<_ACEOF
10216 #define HAVE_LIBKRB 1
10217 _ACEOF
10218
10219   LIBS="-lkrb $LIBS"
10220
10221 fi
10222
10223
10224 echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
10225 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6
10226 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
10227   echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229   ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-lkrb4  $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237
10238 /* Override any gcc2 internal prototype to avoid an error.  */
10239 #ifdef __cplusplus
10240 extern "C"
10241 #endif
10242 /* We use char because int might match the return type of a gcc2
10243    builtin and then its argument prototype would still apply.  */
10244 char krb_recvauth ();
10245 int
10246 main ()
10247 {
10248 krb_recvauth ();
10249   ;
10250   return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10255   (eval $ac_link) 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -z "$ac_c_werror_flag"
10263                          || test ! -s conftest.err'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; } &&
10269          { ac_try='test -s conftest$ac_exeext'
10270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271   (eval $ac_try) 2>&5
10272   ac_status=$?
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   (exit $ac_status); }; }; then
10275   ac_cv_lib_krb4_krb_recvauth=yes
10276 else
10277   echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_cv_lib_krb4_krb_recvauth=no
10281 fi
10282 rm -f conftest.err conftest.$ac_objext \
10283       conftest$ac_exeext conftest.$ac_ext
10284 LIBS=$ac_check_lib_save_LIBS
10285 fi
10286 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
10287 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6
10288 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
10289   cat >>confdefs.h <<_ACEOF
10290 #define HAVE_LIBKRB4 1
10291 _ACEOF
10292
10293   LIBS="-lkrb4 $LIBS"
10294
10295 fi
10296
10297     LDFLAGS=$hold_ldflags
10298     if test -n "$krb_incdir"; then
10299       includeopt="${includeopt} -I$krb_incdir"
10300     fi
10301   fi
10302 fi
10303
10304 for ac_func in krb_get_err_text
10305 do
10306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10307 echo "$as_me:$LINENO: checking for $ac_func" >&5
10308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10309 if eval "test \"\${$as_ac_var+set}\" = set"; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   cat >conftest.$ac_ext <<_ACEOF
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10320 #define $ac_func innocuous_$ac_func
10321
10322 /* System header to define __stub macros and hopefully few prototypes,
10323     which can conflict with char $ac_func (); below.
10324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10325     <limits.h> exists even on freestanding compilers.  */
10326
10327 #ifdef __STDC__
10328 # include <limits.h>
10329 #else
10330 # include <assert.h>
10331 #endif
10332
10333 #undef $ac_func
10334
10335 /* Override any gcc2 internal prototype to avoid an error.  */
10336 #ifdef __cplusplus
10337 extern "C"
10338 {
10339 #endif
10340 /* We use char because int might match the return type of a gcc2
10341    builtin and then its argument prototype would still apply.  */
10342 char $ac_func ();
10343 /* The GNU C library defines this for functions which it implements
10344     to always fail with ENOSYS.  Some functions are actually named
10345     something starting with __ and the normal name is an alias.  */
10346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10347 choke me
10348 #else
10349 char (*f) () = $ac_func;
10350 #endif
10351 #ifdef __cplusplus
10352 }
10353 #endif
10354
10355 int
10356 main ()
10357 {
10358 return f != $ac_func;
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365   (eval $ac_link) 2>conftest.er1
10366   ac_status=$?
10367   grep -v '^ *+' conftest.er1 >conftest.err
10368   rm -f conftest.er1
10369   cat conftest.err >&5
10370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371   (exit $ac_status); } &&
10372          { ac_try='test -z "$ac_c_werror_flag"
10373                          || test ! -s conftest.err'
10374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375   (eval $ac_try) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); }; } &&
10379          { ac_try='test -s conftest$ac_exeext'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   eval "$as_ac_var=yes"
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 eval "$as_ac_var=no"
10391 fi
10392 rm -f conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 fi
10395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10397 if test `eval echo '${'$as_ac_var'}'` = yes; then
10398   cat >>confdefs.h <<_ACEOF
10399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10400 _ACEOF
10401
10402 fi
10403 done
10404
10405
10406
10407
10408 #
10409 # Use --with-gssapi[=DIR] to enable GSSAPI support.
10410 #
10411 # defaults to enabled with DIR in default list below
10412 #
10413 # Search for /SUNHEA/ and read the comments about this default below.
10414 #
10415
10416 # Check whether --with-gssapi or --without-gssapi was given.
10417 if test "${with_gssapi+set}" = set; then
10418   withval="$with_gssapi"
10419
10420 else
10421   with_gssapi=yes
10422 fi;
10423 #
10424 # Try to locate a GSSAPI installation if no location was specified, assuming
10425 # GSSAPI was enabled (the default).
10426 #
10427 if test -n "$acx_gssapi_cv_gssapi"; then
10428   # Granted, this is a slightly ugly way to print this info, but the
10429   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
10430   # AC_CACHE_CHECK worse
10431   echo "$as_me:$LINENO: checking for GSSAPI" >&5
10432 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10433 else :; fi
10434 if test "${acx_gssapi_cv_gssapi+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437
10438 if test x$with_gssapi = xyes; then
10439   # --with but no location specified
10440   # assume a gssapi.h or gssapi/gssapi.h locates our install.
10441   #
10442   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
10443   # package installs gssapi.h whether or not the necessary libraries are
10444   # installed.  I'm still not sure whether to consider this a bug.  The long
10445   # way around is to not consider GSSPAI installed unless gss_import_name is
10446   # found, but that brings up a lot of other hassles, like continuing to let
10447   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
10448   # as a debugging aid.  The short way around is to disable GSSAPI by default,
10449   # but I think Sun users have been faced with this for awhile and I haven't
10450   # heard many complaints.
10451   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10452   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
10453     if test x$acx_gssapi_cv_gssapi = xno; then
10454       break
10455     fi
10456     if test x$acx_gssapi_cv_gssapi = xyes; then
10457       echo "$as_me:$LINENO: checking for GSSAPI" >&5
10458 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10459       echo "$as_me:$LINENO: result: " >&5
10460 echo "${ECHO_T}" >&6
10461     else
10462       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
10463       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
10464 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
10465       echo "$as_me:$LINENO: result: " >&5
10466 echo "${ECHO_T}" >&6
10467     fi
10468     unset ac_cv_header_gssapi_h
10469     unset ac_cv_header_gssapi_gssapi_h
10470     unset ac_cv_header_krb5_h
10471
10472
10473
10474 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
10475 do
10476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10478   echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 fi
10483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10485 else
10486   # Is the header compilable?
10487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495 $ac_includes_default
10496 #include <$ac_header>
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500   (eval $ac_compile) 2>conftest.er1
10501   ac_status=$?
10502   grep -v '^ *+' conftest.er1 >conftest.err
10503   rm -f conftest.er1
10504   cat conftest.err >&5
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -z "$ac_c_werror_flag"
10508                          || test ! -s conftest.err'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; } &&
10514          { ac_try='test -s conftest.$ac_objext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   ac_header_compiler=yes
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 ac_header_compiler=no
10526 fi
10527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10529 echo "${ECHO_T}$ac_header_compiler" >&6
10530
10531 # Is the header present?
10532 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h.  */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h.  */
10540 #include <$ac_header>
10541 _ACEOF
10542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10543   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10544   ac_status=$?
10545   grep -v '^ *+' conftest.er1 >conftest.err
10546   rm -f conftest.er1
10547   cat conftest.err >&5
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } >/dev/null; then
10550   if test -s conftest.err; then
10551     ac_cpp_err=$ac_c_preproc_warn_flag
10552     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10553   else
10554     ac_cpp_err=
10555   fi
10556 else
10557   ac_cpp_err=yes
10558 fi
10559 if test -z "$ac_cpp_err"; then
10560   ac_header_preproc=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565   ac_header_preproc=no
10566 fi
10567 rm -f conftest.err conftest.$ac_ext
10568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10569 echo "${ECHO_T}$ac_header_preproc" >&6
10570
10571 # So?  What about this header?
10572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10573   yes:no: )
10574     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10578     ac_header_preproc=yes
10579     ;;
10580   no:yes:* )
10581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10583     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10584 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10588 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10593     (
10594       cat <<\_ASBOX
10595 ## ------------------------------ ##
10596 ## Report this to bug-cvs@gnu.org ##
10597 ## ------------------------------ ##
10598 _ASBOX
10599     ) |
10600       sed "s/^/$as_me: WARNING:     /" >&2
10601     ;;
10602 esac
10603 echo "$as_me:$LINENO: checking for $ac_header" >&5
10604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10606   echo $ECHO_N "(cached) $ECHO_C" >&6
10607 else
10608   eval "$as_ac_Header=\$ac_header_preproc"
10609 fi
10610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10612
10613 fi
10614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10615   cat >>confdefs.h <<_ACEOF
10616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10617 _ACEOF
10618
10619 fi
10620
10621 done
10622
10623     if (test "$ac_cv_header_gssapi_h" = yes ||
10624           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
10625         test "$ac_cv_header_krb5_h" = yes; then
10626       break
10627     fi
10628   done
10629   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
10630 else
10631   acx_gssapi_cv_gssapi=$with_gssapi
10632 fi
10633 echo "$as_me:$LINENO: checking for GSSAPI" >&5
10634 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
10635
10636 fi
10637 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
10638 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
10639
10640 #
10641 # Set up GSSAPI includes for later use.  We don't bother to check for
10642 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
10643 #
10644 if test x$acx_gssapi_cv_gssapi = xyes; then
10645   # no special includes necessary
10646   GSSAPI_INCLUDES=""
10647 else
10648   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
10649   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
10650 fi
10651
10652 #
10653 # Get the rest of the information CVS needs to compile with GSSAPI support
10654 #
10655 if test x$acx_gssapi_cv_gssapi != xno; then
10656   # define HAVE_GSSAPI and set up the includes
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_GSSAPI
10660 _ACEOF
10661
10662   includeopt=$includeopt$GSSAPI_INCLUDES
10663
10664   # locate any other headers
10665   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10666   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
10667
10668
10669
10670
10671 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
10672 do
10673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10675   echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10677 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10678   echo $ECHO_N "(cached) $ECHO_C" >&6
10679 fi
10680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682 else
10683   # Is the header compilable?
10684 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 $ac_includes_default
10693 #include <$ac_header>
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697   (eval $ac_compile) 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } &&
10704          { ac_try='test -z "$ac_c_werror_flag"
10705                          || test ! -s conftest.err'
10706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707   (eval $ac_try) 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; } &&
10711          { ac_try='test -s conftest.$ac_objext'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_header_compiler=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722 ac_header_compiler=no
10723 fi
10724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10725 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10726 echo "${ECHO_T}$ac_header_compiler" >&6
10727
10728 # Is the header present?
10729 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737 #include <$ac_header>
10738 _ACEOF
10739 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10740   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10741   ac_status=$?
10742   grep -v '^ *+' conftest.er1 >conftest.err
10743   rm -f conftest.er1
10744   cat conftest.err >&5
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); } >/dev/null; then
10747   if test -s conftest.err; then
10748     ac_cpp_err=$ac_c_preproc_warn_flag
10749     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10750   else
10751     ac_cpp_err=
10752   fi
10753 else
10754   ac_cpp_err=yes
10755 fi
10756 if test -z "$ac_cpp_err"; then
10757   ac_header_preproc=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762   ac_header_preproc=no
10763 fi
10764 rm -f conftest.err conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10766 echo "${ECHO_T}$ac_header_preproc" >&6
10767
10768 # So?  What about this header?
10769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10770   yes:no: )
10771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10775     ac_header_preproc=yes
10776     ;;
10777   no:yes:* )
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10790     (
10791       cat <<\_ASBOX
10792 ## ------------------------------ ##
10793 ## Report this to bug-cvs@gnu.org ##
10794 ## ------------------------------ ##
10795 _ASBOX
10796     ) |
10797       sed "s/^/$as_me: WARNING:     /" >&2
10798     ;;
10799 esac
10800 echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   eval "$as_ac_Header=\$ac_header_preproc"
10806 fi
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10809
10810 fi
10811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10812   cat >>confdefs.h <<_ACEOF
10813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10814 _ACEOF
10815
10816 fi
10817
10818 done
10819
10820   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
10821   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
10822 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
10823 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
10824   echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826
10827     acx_gssapi_cv_gss_c_nt_hostbased_service=no
10828     if test "$ac_cv_header_gssapi_h" = "yes"; then
10829       cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835 #include <gssapi.h>
10836
10837 _ACEOF
10838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10840   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10841 else
10842
10843         cat >conftest.$ac_ext <<_ACEOF
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849 #include <gssapi.h>
10850
10851 _ACEOF
10852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10853   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10854   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10855 fi
10856 rm -f conftest*
10857
10858
10859 fi
10860 rm -f conftest*
10861
10862     fi
10863     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10864        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
10865       cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 #include <gssapi/gssapi.h>
10872
10873 _ACEOF
10874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10875   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10876   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10877 else
10878
10879         cat >conftest.$ac_ext <<_ACEOF
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <gssapi/gssapi.h>
10886
10887 _ACEOF
10888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10889   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10890   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10891 fi
10892 rm -f conftest*
10893
10894
10895 fi
10896 rm -f conftest*
10897
10898     else :; fi
10899     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10900        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
10901       cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 #include <gssapi/gssapi_generic.h>
10908
10909 _ACEOF
10910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10911   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10912   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10913 else
10914
10915         cat >conftest.$ac_ext <<_ACEOF
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #include <gssapi/gssapi_generic.h>
10922
10923 _ACEOF
10924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10925   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10926   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10927 fi
10928 rm -f conftest*
10929
10930
10931 fi
10932 rm -f conftest*
10933
10934     else :; fi
10935
10936 fi
10937 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
10938 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
10939   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
10940      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
10941     # don't define for yes since that means it already means something and
10942     # don't define for no since we'd rather the compiler catch the error
10943     # It's debatable whether we'd prefer that the compiler catch the error
10944     #  - it seems our estranged developer is more likely to be familiar with
10945     #    the intricacies of the compiler than with those of autoconf, but by
10946     #    the same token, maybe we'd rather alert them to the fact that most
10947     #    of the support they need to fix the problem is installed if they can
10948     #    simply locate the appropriate symbol.
10949
10950 cat >>confdefs.h <<_ACEOF
10951 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
10952 _ACEOF
10953
10954   else :; fi
10955
10956   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
10957
10958   # Expect the libs to be installed parallel to the headers
10959   #
10960   # We could try once with and once without, but I'm not sure it's worth the
10961   # trouble.
10962   if test x$acx_gssapi_cv_gssapi != xyes; then
10963     if test -z "$LIBS"; then
10964       LIBS="-L$acx_gssapi_cv_gssapi/lib"
10965     else
10966       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
10967     fi
10968   else :; fi
10969
10970       #
10971   # Some of the order below is particular due to library dependencies
10972   #
10973
10974   #
10975   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
10976   #                     that it could have been installed from elsewhere.
10977   #
10978   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
10979 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
10980 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   ac_func_search_save_LIBS=$LIBS
10984 ac_cv_search_des_set_odd_parity=no
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h.  */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h.  */
10991
10992 /* Override any gcc2 internal prototype to avoid an error.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 #endif
10996 /* We use char because int might match the return type of a gcc2
10997    builtin and then its argument prototype would still apply.  */
10998 char des_set_odd_parity ();
10999 int
11000 main ()
11001 {
11002 des_set_odd_parity ();
11003   ;
11004   return 0;
11005 }
11006 _ACEOF
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009   (eval $ac_link) 2>conftest.er1
11010   ac_status=$?
11011   grep -v '^ *+' conftest.er1 >conftest.err
11012   rm -f conftest.er1
11013   cat conftest.err >&5
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); } &&
11016          { ac_try='test -z "$ac_c_werror_flag"
11017                          || test ! -s conftest.err'
11018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019   (eval $ac_try) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   ac_cv_search_des_set_odd_parity="none required"
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 fi
11035 rm -f conftest.err conftest.$ac_objext \
11036       conftest$ac_exeext conftest.$ac_ext
11037 if test "$ac_cv_search_des_set_odd_parity" = no; then
11038   for ac_lib in des; do
11039     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11040     cat >conftest.$ac_ext <<_ACEOF
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046
11047 /* Override any gcc2 internal prototype to avoid an error.  */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052    builtin and then its argument prototype would still apply.  */
11053 char des_set_odd_parity ();
11054 int
11055 main ()
11056 {
11057 des_set_odd_parity ();
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 rm -f conftest.$ac_objext conftest$ac_exeext
11063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11064   (eval $ac_link) 2>conftest.er1
11065   ac_status=$?
11066   grep -v '^ *+' conftest.er1 >conftest.err
11067   rm -f conftest.er1
11068   cat conftest.err >&5
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); } &&
11071          { ac_try='test -z "$ac_c_werror_flag"
11072                          || test ! -s conftest.err'
11073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11074   (eval $ac_try) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); }; } &&
11078          { ac_try='test -s conftest$ac_exeext'
11079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080   (eval $ac_try) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_cv_search_des_set_odd_parity="-l$ac_lib"
11085 break
11086 else
11087   echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 fi
11091 rm -f conftest.err conftest.$ac_objext \
11092       conftest$ac_exeext conftest.$ac_ext
11093   done
11094 fi
11095 LIBS=$ac_func_search_save_LIBS
11096 fi
11097 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
11098 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
11099 if test "$ac_cv_search_des_set_odd_parity" != no; then
11100   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
11101
11102 fi
11103
11104
11105   #
11106   # com_err             Heimdal K 0.3d
11107   #
11108   # com_err             MIT K5 v1.2.2-beta1
11109   #
11110   echo "$as_me:$LINENO: checking for library containing com_err" >&5
11111 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
11112 if test "${ac_cv_search_com_err+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   ac_func_search_save_LIBS=$LIBS
11116 ac_cv_search_com_err=no
11117 cat >conftest.$ac_ext <<_ACEOF
11118 /* confdefs.h.  */
11119 _ACEOF
11120 cat confdefs.h >>conftest.$ac_ext
11121 cat >>conftest.$ac_ext <<_ACEOF
11122 /* end confdefs.h.  */
11123
11124 /* Override any gcc2 internal prototype to avoid an error.  */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 /* We use char because int might match the return type of a gcc2
11129    builtin and then its argument prototype would still apply.  */
11130 char com_err ();
11131 int
11132 main ()
11133 {
11134 com_err ();
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11141   (eval $ac_link) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -z "$ac_c_werror_flag"
11149                          || test ! -s conftest.err'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; } &&
11155          { ac_try='test -s conftest$ac_exeext'
11156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11157   (eval $ac_try) 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; }; then
11161   ac_cv_search_com_err="none required"
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 fi
11167 rm -f conftest.err conftest.$ac_objext \
11168       conftest$ac_exeext conftest.$ac_ext
11169 if test "$ac_cv_search_com_err" = no; then
11170   for ac_lib in com_err; do
11171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11172     cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178
11179 /* Override any gcc2 internal prototype to avoid an error.  */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 /* We use char because int might match the return type of a gcc2
11184    builtin and then its argument prototype would still apply.  */
11185 char com_err ();
11186 int
11187 main ()
11188 {
11189 com_err ();
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196   (eval $ac_link) 2>conftest.er1
11197   ac_status=$?
11198   grep -v '^ *+' conftest.er1 >conftest.err
11199   rm -f conftest.er1
11200   cat conftest.err >&5
11201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202   (exit $ac_status); } &&
11203          { ac_try='test -z "$ac_c_werror_flag"
11204                          || test ! -s conftest.err'
11205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206   (eval $ac_try) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); }; } &&
11210          { ac_try='test -s conftest$ac_exeext'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   ac_cv_search_com_err="-l$ac_lib"
11217 break
11218 else
11219   echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 fi
11223 rm -f conftest.err conftest.$ac_objext \
11224       conftest$ac_exeext conftest.$ac_ext
11225   done
11226 fi
11227 LIBS=$ac_func_search_save_LIBS
11228 fi
11229 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
11230 echo "${ECHO_T}$ac_cv_search_com_err" >&6
11231 if test "$ac_cv_search_com_err" != no; then
11232   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
11233
11234 fi
11235
11236
11237   #
11238   # asn1                Heimdal K 0.3d          -lcom_err
11239   #
11240   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
11241 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
11242 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
11243   echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11245   ac_func_search_save_LIBS=$LIBS
11246 ac_cv_search_initialize_asn1_error_table_r=no
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h.  */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h.  */
11253
11254 /* Override any gcc2 internal prototype to avoid an error.  */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 /* We use char because int might match the return type of a gcc2
11259    builtin and then its argument prototype would still apply.  */
11260 char initialize_asn1_error_table_r ();
11261 int
11262 main ()
11263 {
11264 initialize_asn1_error_table_r ();
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11271   (eval $ac_link) 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } &&
11278          { ac_try='test -z "$ac_c_werror_flag"
11279                          || test ! -s conftest.err'
11280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11281   (eval $ac_try) 2>&5
11282   ac_status=$?
11283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284   (exit $ac_status); }; } &&
11285          { ac_try='test -s conftest$ac_exeext'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; }; then
11291   ac_cv_search_initialize_asn1_error_table_r="none required"
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 fi
11297 rm -f conftest.err conftest.$ac_objext \
11298       conftest$ac_exeext conftest.$ac_ext
11299 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
11300   for ac_lib in asn1; do
11301     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11302     cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308
11309 /* Override any gcc2 internal prototype to avoid an error.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 /* We use char because int might match the return type of a gcc2
11314    builtin and then its argument prototype would still apply.  */
11315 char initialize_asn1_error_table_r ();
11316 int
11317 main ()
11318 {
11319 initialize_asn1_error_table_r ();
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11326   (eval $ac_link) 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag"
11334                          || test ! -s conftest.err'
11335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336   (eval $ac_try) 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; } &&
11340          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
11346   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
11347 break
11348 else
11349   echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 fi
11353 rm -f conftest.err conftest.$ac_objext \
11354       conftest$ac_exeext conftest.$ac_ext
11355   done
11356 fi
11357 LIBS=$ac_func_search_save_LIBS
11358 fi
11359 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
11360 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
11361 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
11362   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
11363
11364 fi
11365
11366
11367   #
11368   # resolv              required, but not installed by Heimdal K 0.3d
11369   #
11370   # resolv              MIT K5 1.2.2-beta1
11371   #                     Linux 2.2.17
11372   #
11373   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
11374 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
11375 if test "${ac_cv_search___dn_expand+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   ac_func_search_save_LIBS=$LIBS
11379 ac_cv_search___dn_expand=no
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h.  */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h.  */
11386
11387 /* Override any gcc2 internal prototype to avoid an error.  */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 /* We use char because int might match the return type of a gcc2
11392    builtin and then its argument prototype would still apply.  */
11393 char __dn_expand ();
11394 int
11395 main ()
11396 {
11397 __dn_expand ();
11398   ;
11399   return 0;
11400 }
11401 _ACEOF
11402 rm -f conftest.$ac_objext conftest$ac_exeext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11404   (eval $ac_link) 2>conftest.er1
11405   ac_status=$?
11406   grep -v '^ *+' conftest.er1 >conftest.err
11407   rm -f conftest.er1
11408   cat conftest.err >&5
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); } &&
11411          { ac_try='test -z "$ac_c_werror_flag"
11412                          || test ! -s conftest.err'
11413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414   (eval $ac_try) 2>&5
11415   ac_status=$?
11416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417   (exit $ac_status); }; } &&
11418          { ac_try='test -s conftest$ac_exeext'
11419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420   (eval $ac_try) 2>&5
11421   ac_status=$?
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); }; }; then
11424   ac_cv_search___dn_expand="none required"
11425 else
11426   echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431       conftest$ac_exeext conftest.$ac_ext
11432 if test "$ac_cv_search___dn_expand" = no; then
11433   for ac_lib in resolv; do
11434     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11435     cat >conftest.$ac_ext <<_ACEOF
11436 /* confdefs.h.  */
11437 _ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h.  */
11441
11442 /* Override any gcc2 internal prototype to avoid an error.  */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 /* We use char because int might match the return type of a gcc2
11447    builtin and then its argument prototype would still apply.  */
11448 char __dn_expand ();
11449 int
11450 main ()
11451 {
11452 __dn_expand ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459   (eval $ac_link) 2>conftest.er1
11460   ac_status=$?
11461   grep -v '^ *+' conftest.er1 >conftest.err
11462   rm -f conftest.er1
11463   cat conftest.err >&5
11464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465   (exit $ac_status); } &&
11466          { ac_try='test -z "$ac_c_werror_flag"
11467                          || test ! -s conftest.err'
11468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469   (eval $ac_try) 2>&5
11470   ac_status=$?
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); }; } &&
11473          { ac_try='test -s conftest$ac_exeext'
11474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475   (eval $ac_try) 2>&5
11476   ac_status=$?
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); }; }; then
11479   ac_cv_search___dn_expand="-l$ac_lib"
11480 break
11481 else
11482   echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 fi
11486 rm -f conftest.err conftest.$ac_objext \
11487       conftest$ac_exeext conftest.$ac_ext
11488   done
11489 fi
11490 LIBS=$ac_func_search_save_LIBS
11491 fi
11492 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
11493 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
11494 if test "$ac_cv_search___dn_expand" != no; then
11495   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
11496
11497 fi
11498
11499
11500   #
11501   # crypt              Needed by roken under FreeBSD 4.6.
11502   #
11503   echo "$as_me:$LINENO: checking for library containing crypt" >&5
11504 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
11505 if test "${ac_cv_search_crypt+set}" = set; then
11506   echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508   ac_func_search_save_LIBS=$LIBS
11509 ac_cv_search_crypt=no
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516
11517 /* Override any gcc2 internal prototype to avoid an error.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 /* We use char because int might match the return type of a gcc2
11522    builtin and then its argument prototype would still apply.  */
11523 char crypt ();
11524 int
11525 main ()
11526 {
11527 crypt ();
11528   ;
11529   return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534   (eval $ac_link) 2>conftest.er1
11535   ac_status=$?
11536   grep -v '^ *+' conftest.er1 >conftest.err
11537   rm -f conftest.er1
11538   cat conftest.err >&5
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); } &&
11541          { ac_try='test -z "$ac_c_werror_flag"
11542                          || test ! -s conftest.err'
11543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544   (eval $ac_try) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; } &&
11548          { ac_try='test -s conftest$ac_exeext'
11549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550   (eval $ac_try) 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_cv_search_crypt="none required"
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 fi
11560 rm -f conftest.err conftest.$ac_objext \
11561       conftest$ac_exeext conftest.$ac_ext
11562 if test "$ac_cv_search_crypt" = no; then
11563   for ac_lib in crypt; do
11564     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11565     cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571
11572 /* Override any gcc2 internal prototype to avoid an error.  */
11573 #ifdef __cplusplus
11574 extern "C"
11575 #endif
11576 /* We use char because int might match the return type of a gcc2
11577    builtin and then its argument prototype would still apply.  */
11578 char crypt ();
11579 int
11580 main ()
11581 {
11582 crypt ();
11583   ;
11584   return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext conftest$ac_exeext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589   (eval $ac_link) 2>conftest.er1
11590   ac_status=$?
11591   grep -v '^ *+' conftest.er1 >conftest.err
11592   rm -f conftest.er1
11593   cat conftest.err >&5
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -z "$ac_c_werror_flag"
11597                          || test ! -s conftest.err'
11598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599   (eval $ac_try) 2>&5
11600   ac_status=$?
11601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602   (exit $ac_status); }; } &&
11603          { ac_try='test -s conftest$ac_exeext'
11604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605   (eval $ac_try) 2>&5
11606   ac_status=$?
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); }; }; then
11609   ac_cv_search_crypt="-l$ac_lib"
11610 break
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 fi
11616 rm -f conftest.err conftest.$ac_objext \
11617       conftest$ac_exeext conftest.$ac_ext
11618   done
11619 fi
11620 LIBS=$ac_func_search_save_LIBS
11621 fi
11622 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
11623 echo "${ECHO_T}$ac_cv_search_crypt" >&6
11624 if test "$ac_cv_search_crypt" != no; then
11625   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
11626
11627 fi
11628
11629
11630   #
11631   # roken               Heimdal K 0.3d          -lresolv
11632   # roken               FreeBSD 4.6             -lcrypt
11633   #
11634   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
11635 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
11636 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
11637   echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639   ac_func_search_save_LIBS=$LIBS
11640 ac_cv_search_roken_gethostbyaddr=no
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647
11648 /* Override any gcc2 internal prototype to avoid an error.  */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 /* We use char because int might match the return type of a gcc2
11653    builtin and then its argument prototype would still apply.  */
11654 char roken_gethostbyaddr ();
11655 int
11656 main ()
11657 {
11658 roken_gethostbyaddr ();
11659   ;
11660   return 0;
11661 }
11662 _ACEOF
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11665   (eval $ac_link) 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_c_werror_flag"
11673                          || test ! -s conftest.err'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; } &&
11679          { ac_try='test -s conftest$ac_exeext'
11680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681   (eval $ac_try) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); }; }; then
11685   ac_cv_search_roken_gethostbyaddr="none required"
11686 else
11687   echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11689
11690 fi
11691 rm -f conftest.err conftest.$ac_objext \
11692       conftest$ac_exeext conftest.$ac_ext
11693 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
11694   for ac_lib in roken; do
11695     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11696     cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h.  */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h.  */
11702
11703 /* Override any gcc2 internal prototype to avoid an error.  */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 /* We use char because int might match the return type of a gcc2
11708    builtin and then its argument prototype would still apply.  */
11709 char roken_gethostbyaddr ();
11710 int
11711 main ()
11712 {
11713 roken_gethostbyaddr ();
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext conftest$ac_exeext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11720   (eval $ac_link) 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } &&
11727          { ac_try='test -z "$ac_c_werror_flag"
11728                          || test ! -s conftest.err'
11729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11730   (eval $ac_try) 2>&5
11731   ac_status=$?
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); }; } &&
11734          { ac_try='test -s conftest$ac_exeext'
11735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736   (eval $ac_try) 2>&5
11737   ac_status=$?
11738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739   (exit $ac_status); }; }; then
11740   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
11741 break
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 fi
11747 rm -f conftest.err conftest.$ac_objext \
11748       conftest$ac_exeext conftest.$ac_ext
11749   done
11750 fi
11751 LIBS=$ac_func_search_save_LIBS
11752 fi
11753 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
11754 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
11755 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
11756   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
11757
11758 fi
11759
11760
11761   #
11762   # k5crypto            MIT K5 v1.2.2-beta1
11763   #
11764   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
11765 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
11766 if test "${ac_cv_search_valid_enctype+set}" = set; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   ac_func_search_save_LIBS=$LIBS
11770 ac_cv_search_valid_enctype=no
11771 cat >conftest.$ac_ext <<_ACEOF
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777
11778 /* Override any gcc2 internal prototype to avoid an error.  */
11779 #ifdef __cplusplus
11780 extern "C"
11781 #endif
11782 /* We use char because int might match the return type of a gcc2
11783    builtin and then its argument prototype would still apply.  */
11784 char valid_enctype ();
11785 int
11786 main ()
11787 {
11788 valid_enctype ();
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11795   (eval $ac_link) 2>conftest.er1
11796   ac_status=$?
11797   grep -v '^ *+' conftest.er1 >conftest.err
11798   rm -f conftest.er1
11799   cat conftest.err >&5
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); } &&
11802          { ac_try='test -z "$ac_c_werror_flag"
11803                          || test ! -s conftest.err'
11804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805   (eval $ac_try) 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; } &&
11809          { ac_try='test -s conftest$ac_exeext'
11810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11811   (eval $ac_try) 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; }; then
11815   ac_cv_search_valid_enctype="none required"
11816 else
11817   echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 fi
11821 rm -f conftest.err conftest.$ac_objext \
11822       conftest$ac_exeext conftest.$ac_ext
11823 if test "$ac_cv_search_valid_enctype" = no; then
11824   for ac_lib in k5crypto; do
11825     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11826     cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832
11833 /* Override any gcc2 internal prototype to avoid an error.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 /* We use char because int might match the return type of a gcc2
11838    builtin and then its argument prototype would still apply.  */
11839 char valid_enctype ();
11840 int
11841 main ()
11842 {
11843 valid_enctype ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850   (eval $ac_link) 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_c_werror_flag"
11858                          || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest$ac_exeext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   ac_cv_search_valid_enctype="-l$ac_lib"
11871 break
11872 else
11873   echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11875
11876 fi
11877 rm -f conftest.err conftest.$ac_objext \
11878       conftest$ac_exeext conftest.$ac_ext
11879   done
11880 fi
11881 LIBS=$ac_func_search_save_LIBS
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
11884 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
11885 if test "$ac_cv_search_valid_enctype" != no; then
11886   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
11887
11888 fi
11889
11890
11891   #
11892   # gen                 ? ? ?                   Needed on Irix 5.3 with some
11893   #                     Irix 5.3                version of Kerberos.  I'm not
11894   #                                             sure which since Irix didn't
11895   #                                             get any testing this time
11896   #                                             around.  Original comment:
11897   #
11898   # This is necessary on Irix 5.3, in order to link against libkrb5 --
11899   # there, an_to_ln.o refers to things defined only in -lgen.
11900   #
11901   echo "$as_me:$LINENO: checking for library containing compile" >&5
11902 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
11903 if test "${ac_cv_search_compile+set}" = set; then
11904   echo $ECHO_N "(cached) $ECHO_C" >&6
11905 else
11906   ac_func_search_save_LIBS=$LIBS
11907 ac_cv_search_compile=no
11908 cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914
11915 /* Override any gcc2 internal prototype to avoid an error.  */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 /* We use char because int might match the return type of a gcc2
11920    builtin and then its argument prototype would still apply.  */
11921 char compile ();
11922 int
11923 main ()
11924 {
11925 compile ();
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 rm -f conftest.$ac_objext conftest$ac_exeext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11932   (eval $ac_link) 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_c_werror_flag"
11940                          || test ! -s conftest.err'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; } &&
11946          { ac_try='test -s conftest$ac_exeext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_cv_search_compile="none required"
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 fi
11958 rm -f conftest.err conftest.$ac_objext \
11959       conftest$ac_exeext conftest.$ac_ext
11960 if test "$ac_cv_search_compile" = no; then
11961   for ac_lib in gen; do
11962     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11963     cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969
11970 /* Override any gcc2 internal prototype to avoid an error.  */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 /* We use char because int might match the return type of a gcc2
11975    builtin and then its argument prototype would still apply.  */
11976 char compile ();
11977 int
11978 main ()
11979 {
11980 compile ();
11981   ;
11982   return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11987   (eval $ac_link) 2>conftest.er1
11988   ac_status=$?
11989   grep -v '^ *+' conftest.er1 >conftest.err
11990   rm -f conftest.er1
11991   cat conftest.err >&5
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); } &&
11994          { ac_try='test -z "$ac_c_werror_flag"
11995                          || test ! -s conftest.err'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_search_compile="-l$ac_lib"
12008 break
12009 else
12010   echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 fi
12014 rm -f conftest.err conftest.$ac_objext \
12015       conftest$ac_exeext conftest.$ac_ext
12016   done
12017 fi
12018 LIBS=$ac_func_search_save_LIBS
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
12021 echo "${ECHO_T}$ac_cv_search_compile" >&6
12022 if test "$ac_cv_search_compile" != no; then
12023   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
12024
12025 fi
12026
12027
12028   #
12029   # krb5                ? ? ?                   -lgen -l???
12030   #                     Irix 5.3
12031   #
12032   # krb5                MIT K5 v1.1.1
12033   #
12034   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
12035   #                     Linux 2.2.17
12036   #
12037   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
12038   #
12039   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
12040   #
12041   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
12042 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
12043 if test "${ac_cv_search_krb5_free_context+set}" = set; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 else
12046   ac_func_search_save_LIBS=$LIBS
12047 ac_cv_search_krb5_free_context=no
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054
12055 /* Override any gcc2 internal prototype to avoid an error.  */
12056 #ifdef __cplusplus
12057 extern "C"
12058 #endif
12059 /* We use char because int might match the return type of a gcc2
12060    builtin and then its argument prototype would still apply.  */
12061 char krb5_free_context ();
12062 int
12063 main ()
12064 {
12065 krb5_free_context ();
12066   ;
12067   return 0;
12068 }
12069 _ACEOF
12070 rm -f conftest.$ac_objext conftest$ac_exeext
12071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072   (eval $ac_link) 2>conftest.er1
12073   ac_status=$?
12074   grep -v '^ *+' conftest.er1 >conftest.err
12075   rm -f conftest.er1
12076   cat conftest.err >&5
12077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078   (exit $ac_status); } &&
12079          { ac_try='test -z "$ac_c_werror_flag"
12080                          || test ! -s conftest.err'
12081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082   (eval $ac_try) 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest$ac_exeext'
12087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088   (eval $ac_try) 2>&5
12089   ac_status=$?
12090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091   (exit $ac_status); }; }; then
12092   ac_cv_search_krb5_free_context="none required"
12093 else
12094   echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12096
12097 fi
12098 rm -f conftest.err conftest.$ac_objext \
12099       conftest$ac_exeext conftest.$ac_ext
12100 if test "$ac_cv_search_krb5_free_context" = no; then
12101   for ac_lib in krb5; do
12102     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12103     cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109
12110 /* Override any gcc2 internal prototype to avoid an error.  */
12111 #ifdef __cplusplus
12112 extern "C"
12113 #endif
12114 /* We use char because int might match the return type of a gcc2
12115    builtin and then its argument prototype would still apply.  */
12116 char krb5_free_context ();
12117 int
12118 main ()
12119 {
12120 krb5_free_context ();
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12127   (eval $ac_link) 2>conftest.er1
12128   ac_status=$?
12129   grep -v '^ *+' conftest.er1 >conftest.err
12130   rm -f conftest.er1
12131   cat conftest.err >&5
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); } &&
12134          { ac_try='test -z "$ac_c_werror_flag"
12135                          || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141          { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_search_krb5_free_context="-l$ac_lib"
12148 break
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156   done
12157 fi
12158 LIBS=$ac_func_search_save_LIBS
12159 fi
12160 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
12161 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
12162 if test "$ac_cv_search_krb5_free_context" != no; then
12163   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
12164
12165 fi
12166
12167
12168   #
12169   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
12170   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
12171   #                     Kerberos are installed and in the path, this will leave
12172   #                     some of the libraries above in LIBS unnecessarily, but
12173   #                     noone would ever do that, right?
12174   #
12175   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
12176   #
12177   # gssapi              Heimdal K 0.3d          -lkrb5
12178   #
12179   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
12180 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
12181 if test "${ac_cv_search_gss_import_name+set}" = set; then
12182   echo $ECHO_N "(cached) $ECHO_C" >&6
12183 else
12184   ac_func_search_save_LIBS=$LIBS
12185 ac_cv_search_gss_import_name=no
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h.  */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h.  */
12192
12193 /* Override any gcc2 internal prototype to avoid an error.  */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 /* We use char because int might match the return type of a gcc2
12198    builtin and then its argument prototype would still apply.  */
12199 char gss_import_name ();
12200 int
12201 main ()
12202 {
12203 gss_import_name ();
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12210   (eval $ac_link) 2>conftest.er1
12211   ac_status=$?
12212   grep -v '^ *+' conftest.er1 >conftest.err
12213   rm -f conftest.er1
12214   cat conftest.err >&5
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); } &&
12217          { ac_try='test -z "$ac_c_werror_flag"
12218                          || test ! -s conftest.err'
12219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220   (eval $ac_try) 2>&5
12221   ac_status=$?
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); }; } &&
12224          { ac_try='test -s conftest$ac_exeext'
12225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226   (eval $ac_try) 2>&5
12227   ac_status=$?
12228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229   (exit $ac_status); }; }; then
12230   ac_cv_search_gss_import_name="none required"
12231 else
12232   echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 fi
12236 rm -f conftest.err conftest.$ac_objext \
12237       conftest$ac_exeext conftest.$ac_ext
12238 if test "$ac_cv_search_gss_import_name" = no; then
12239   for ac_lib in gssapi_krb5 gssapi; do
12240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12241     cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247
12248 /* Override any gcc2 internal prototype to avoid an error.  */
12249 #ifdef __cplusplus
12250 extern "C"
12251 #endif
12252 /* We use char because int might match the return type of a gcc2
12253    builtin and then its argument prototype would still apply.  */
12254 char gss_import_name ();
12255 int
12256 main ()
12257 {
12258 gss_import_name ();
12259   ;
12260   return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext conftest$ac_exeext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12265   (eval $ac_link) 2>conftest.er1
12266   ac_status=$?
12267   grep -v '^ *+' conftest.er1 >conftest.err
12268   rm -f conftest.er1
12269   cat conftest.err >&5
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); } &&
12272          { ac_try='test -z "$ac_c_werror_flag"
12273                          || test ! -s conftest.err'
12274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275   (eval $ac_try) 2>&5
12276   ac_status=$?
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); }; } &&
12279          { ac_try='test -s conftest$ac_exeext'
12280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281   (eval $ac_try) 2>&5
12282   ac_status=$?
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); }; }; then
12285   ac_cv_search_gss_import_name="-l$ac_lib"
12286 break
12287 else
12288   echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 fi
12292 rm -f conftest.err conftest.$ac_objext \
12293       conftest$ac_exeext conftest.$ac_ext
12294   done
12295 fi
12296 LIBS=$ac_func_search_save_LIBS
12297 fi
12298 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
12299 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
12300 if test "$ac_cv_search_gss_import_name" != no; then
12301   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
12302
12303 fi
12304
12305 fi
12306
12307
12308
12309
12310
12311
12312 # Let the confiscator request a specific editor
12313
12314 # Check whether --with-editor or --without-editor was given.
12315 if test "${with_editor+set}" = set; then
12316   withval="$with_editor"
12317
12318 else
12319   with_editor=yes
12320 fi;
12321
12322 # If --with-editor was supplied with an argument, let it override $EDITOR from
12323 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
12324 # will let the value of EDITOR ride when it is set rather than searching.  We
12325 # ignore the --without-editor case since it will be caught below.
12326 if test -n "$EDITOR" && test yes != $with_editor; then
12327   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
12328 fi
12329
12330 # Set the default when --with-editor wasn't supplied or when it was supplied
12331 # without an argument.
12332 if test yes = $with_editor; then
12333   with_editor="vim vi emacs nano pico edit"
12334 fi
12335
12336 if echo $with_editor |grep ^/ >/dev/null; then
12337   # If $with_editor is an absolute path, issue a warning if the executable
12338   # doesn't exist or isn't usable, but then trust the user and use it
12339   # regardless
12340   EDITOR=$with_editor
12341   echo "$as_me:$LINENO: checking for an editor" >&5
12342 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
12343   echo "$as_me:$LINENO: result: $EDITOR" >&5
12344 echo "${ECHO_T}$EDITOR" >&6
12345   if ! test -f $with_editor \
12346       || ! test -x $with_editor; then
12347     # warn the user that they may encounter problems
12348     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
12349 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
12350   fi
12351 elif test no != "${with_editor}"; then
12352   # Search for an editor
12353   for ac_prog in $with_editor
12354 do
12355   # Extract the first word of "$ac_prog", so it can be a program name with args.
12356 set dummy $ac_prog; ac_word=$2
12357 echo "$as_me:$LINENO: checking for $ac_word" >&5
12358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12359 if test "${ac_cv_prog_EDITOR+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   if test -n "$EDITOR"; then
12363   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
12364 else
12365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368   IFS=$as_save_IFS
12369   test -z "$as_dir" && as_dir=.
12370   for ac_exec_ext in '' $ac_executable_extensions; do
12371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12372     ac_cv_prog_EDITOR="$ac_prog"
12373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12374     break 2
12375   fi
12376 done
12377 done
12378
12379 fi
12380 fi
12381 EDITOR=$ac_cv_prog_EDITOR
12382 if test -n "$EDITOR"; then
12383   echo "$as_me:$LINENO: result: $EDITOR" >&5
12384 echo "${ECHO_T}$EDITOR" >&6
12385 else
12386   echo "$as_me:$LINENO: result: no" >&5
12387 echo "${ECHO_T}no" >&6
12388 fi
12389
12390   test -n "$EDITOR" && break
12391 done
12392 test -n "$EDITOR" || EDITOR="no"
12393
12394     if test no = "${EDITOR}"; then
12395       { { echo "$as_me:$LINENO: error:
12396     Failed to find a text file editor.  CVS cannot be compiled
12397     without a default log message editor.  Searched for
12398     \`$with_editor'.  Try \`configure --with-editor'." >&5
12399 echo "$as_me: error:
12400     Failed to find a text file editor.  CVS cannot be compiled
12401     without a default log message editor.  Searched for
12402     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
12403    { (exit 1); exit 1; }; }
12404     fi
12405 else
12406   { { echo "$as_me:$LINENO: error:
12407     CVS cannot be compiled without a default log message editor.
12408     Try \`configure --with-editor'." >&5
12409 echo "$as_me: error:
12410     CVS cannot be compiled without a default log message editor.
12411     Try \`configure --with-editor'." >&2;}
12412    { (exit 1); exit 1; }; }
12413 fi
12414
12415
12416 cat >>confdefs.h <<_ACEOF
12417 #define EDITOR_DFLT "$EDITOR"
12418 _ACEOF
12419
12420
12421
12422
12423
12424 # Check whether --with-tmpdir or --without-tmpdir was given.
12425 if test "${with_tmpdir+set}" = set; then
12426   withval="$with_tmpdir"
12427
12428 fi;
12429
12430 echo "$as_me:$LINENO: checking for temporary directory" >&5
12431 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
12432 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
12433   for with_tmpdir in /tmp /var/tmp no; do
12434     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
12435         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
12436       break
12437     fi
12438   done
12439   if test no = "$with_tmpdir"; then
12440     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
12441 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
12442     with_tmpdir=/tmp
12443   fi
12444   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12445 echo "${ECHO_T}$with_tmpdir" >&6
12446 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
12447   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12448 echo "${ECHO_T}$with_tmpdir" >&6
12449   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
12450 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
12451    { (exit 1); exit 1; }; }
12452 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
12453         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
12454   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12455 echo "${ECHO_T}$with_tmpdir" >&6
12456   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12457      exist or lacks sufficient permissions for read/write." >&5
12458 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12459      exist or lacks sufficient permissions for read/write." >&2;}
12460 fi
12461
12462
12463 cat >>confdefs.h <<_ACEOF
12464 #define TMPDIR_DFLT "$with_tmpdir"
12465 _ACEOF
12466
12467
12468
12469
12470
12471
12472 # Check whether --with-umask or --without-umask was given.
12473 if test "${with_umask+set}" = set; then
12474   withval="$with_umask"
12475
12476 fi;
12477
12478 if test -z "$with_umask" || test yes = "$with_umask"; then
12479   with_umask=002
12480 elif test no = "$with_umask"; then
12481   with_umask=000
12482 fi
12483
12484
12485 cat >>confdefs.h <<_ACEOF
12486 #define UMASK_DFLT $with_umask
12487 _ACEOF
12488
12489
12490
12491
12492 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
12493 if test "${with_cvs_admin_group+set}" = set; then
12494   withval="$with_cvs_admin_group"
12495
12496 else
12497   with_cvs_admin_group=cvsadmin
12498 fi;
12499
12500 if test yes = "$with_cvs_admin_group"; then
12501   with_cvs_admin_group=cvsadmin
12502 fi
12503 if test no != "$with_cvs_admin_group"; then
12504
12505 cat >>confdefs.h <<_ACEOF
12506 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
12507 _ACEOF
12508
12509 fi
12510
12511
12512 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
12513 if test "${enable_cvs_ndbm+set}" = set; then
12514   enableval="$enable_cvs_ndbm"
12515
12516 else
12517   enable_cvs_ndbm=yes
12518 fi;
12519 if test no != "$enable_cvs_ndbm"; then
12520
12521 cat >>confdefs.h <<\_ACEOF
12522 #define MY_NDBM 1
12523 _ACEOF
12524
12525 fi
12526
12527
12528
12529
12530
12531
12532
12533
12534 # Check for options requesting client and server feature. If none are
12535 # given and we have connect(), we want the full client & server arrangement.
12536 # Check whether --enable-client or --disable-client was given.
12537 if test "${enable_client+set}" = set; then
12538   enableval="$enable_client"
12539
12540 else
12541   if test "$ac_cv_search_connect" != no; then
12542     enable_client=yes
12543   fi
12544 fi;
12545 if test no != "$enable_client"; then
12546
12547 cat >>confdefs.h <<\_ACEOF
12548 #define CLIENT_SUPPORT 1
12549 _ACEOF
12550
12551 fi
12552
12553 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
12554 if test "${enable_password_authenticated_client+set}" = set; then
12555   enableval="$enable_password_authenticated_client"
12556
12557 fi;
12558
12559 if test no != "$enable_password_authenticated_client"; then
12560   if test no != "$enable_client"; then
12561
12562 cat >>confdefs.h <<\_ACEOF
12563 #define AUTH_CLIENT_SUPPORT 1
12564 _ACEOF
12565
12566   else
12567     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
12568        the CVS client disabled (--disable-client)" >&5
12569 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
12570        the CVS client disabled (--disable-client)" >&2;}
12571   fi
12572 fi
12573
12574
12575 # Check whether --enable-server or --disable-server was given.
12576 if test "${enable_server+set}" = set; then
12577   enableval="$enable_server"
12578
12579 else
12580   if test "$ac_cv_search_connect" != no; then
12581      enable_server=yes
12582    fi
12583 fi;
12584
12585 if test no != "$enable_server"; then
12586
12587 cat >>confdefs.h <<\_ACEOF
12588 #define SERVER_SUPPORT 1
12589 _ACEOF
12590
12591
12592             echo "$as_me:$LINENO: checking for library containing crypt" >&5
12593 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
12594 if test "${ac_cv_search_crypt+set}" = set; then
12595   echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597   ac_func_search_save_LIBS=$LIBS
12598 ac_cv_search_crypt=no
12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h.  */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h.  */
12605
12606 /* Override any gcc2 internal prototype to avoid an error.  */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 /* We use char because int might match the return type of a gcc2
12611    builtin and then its argument prototype would still apply.  */
12612 char crypt ();
12613 int
12614 main ()
12615 {
12616 crypt ();
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12623   (eval $ac_link) 2>conftest.er1
12624   ac_status=$?
12625   grep -v '^ *+' conftest.er1 >conftest.err
12626   rm -f conftest.er1
12627   cat conftest.err >&5
12628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629   (exit $ac_status); } &&
12630          { ac_try='test -z "$ac_c_werror_flag"
12631                          || test ! -s conftest.err'
12632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633   (eval $ac_try) 2>&5
12634   ac_status=$?
12635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636   (exit $ac_status); }; } &&
12637          { ac_try='test -s conftest$ac_exeext'
12638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639   (eval $ac_try) 2>&5
12640   ac_status=$?
12641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642   (exit $ac_status); }; }; then
12643   ac_cv_search_crypt="none required"
12644 else
12645   echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 fi
12649 rm -f conftest.err conftest.$ac_objext \
12650       conftest$ac_exeext conftest.$ac_ext
12651 if test "$ac_cv_search_crypt" = no; then
12652   for ac_lib in crypt; do
12653     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12654     cat >conftest.$ac_ext <<_ACEOF
12655 /* confdefs.h.  */
12656 _ACEOF
12657 cat confdefs.h >>conftest.$ac_ext
12658 cat >>conftest.$ac_ext <<_ACEOF
12659 /* end confdefs.h.  */
12660
12661 /* Override any gcc2 internal prototype to avoid an error.  */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 /* We use char because int might match the return type of a gcc2
12666    builtin and then its argument prototype would still apply.  */
12667 char crypt ();
12668 int
12669 main ()
12670 {
12671 crypt ();
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext conftest$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678   (eval $ac_link) 2>conftest.er1
12679   ac_status=$?
12680   grep -v '^ *+' conftest.er1 >conftest.err
12681   rm -f conftest.er1
12682   cat conftest.err >&5
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); } &&
12685          { ac_try='test -z "$ac_c_werror_flag"
12686                          || test ! -s conftest.err'
12687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688   (eval $ac_try) 2>&5
12689   ac_status=$?
12690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691   (exit $ac_status); }; } &&
12692          { ac_try='test -s conftest$ac_exeext'
12693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694   (eval $ac_try) 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ac_cv_search_crypt="-l$ac_lib"
12699 break
12700 else
12701   echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 fi
12705 rm -f conftest.err conftest.$ac_objext \
12706       conftest$ac_exeext conftest.$ac_ext
12707   done
12708 fi
12709 LIBS=$ac_func_search_save_LIBS
12710 fi
12711 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
12712 echo "${ECHO_T}$ac_cv_search_crypt" >&6
12713 if test "$ac_cv_search_crypt" != no; then
12714   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
12715
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_CRYPT 1
12718 _ACEOF
12719
12720
12721 cat >>confdefs.h <<\_ACEOF
12722 #define AUTH_SERVER_SUPPORT 1
12723 _ACEOF
12724
12725 fi
12726
12727           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
12728 if test "${enable_server_flow_control+set}" = set; then
12729   enableval="$enable_server_flow_control"
12730   if test yes = $enable_server_flow_control; then
12731        enable_server_flow_control=1M,2M
12732      fi
12733 else
12734   enable_server_flow_control=1M,2M
12735 fi;
12736   if test no != $enable_server_flow_control; then
12737     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
12738     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
12739     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
12740     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
12741     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
12742     case $ccvs_lwm_E in
12743         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
12744         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
12745         k) ccvs_lwm="$ccvs_lwm * 1024";;
12746         b | '') ;;
12747         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
12748                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
12749 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
12750                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
12751    { (exit 1); exit 1; }; }
12752       esac
12753     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
12754     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
12755     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
12756     case $ccvs_hwm_E in
12757         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
12758         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
12759         k) ccvs_hwm="$ccvs_hwm * 1024";;
12760         b | '') ccvs_hwm="$ccvs_hwm";;
12761         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
12762                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
12763 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
12764                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
12765    { (exit 1); exit 1; }; }
12766       esac
12767
12768
12769 cat >>confdefs.h <<\_ACEOF
12770 #define SERVER_FLOWCONTROL 1
12771 _ACEOF
12772
12773
12774 cat >>confdefs.h <<_ACEOF
12775 #define SERVER_LO_WATER ($ccvs_lwm)
12776 _ACEOF
12777
12778
12779 cat >>confdefs.h <<_ACEOF
12780 #define SERVER_HI_WATER ($ccvs_hwm)
12781 _ACEOF
12782
12783   fi # enable_server_flow_control
12784 fi # enable_server
12785
12786
12787
12788 # Check whether --enable-case-sensitivity or --disable-case-sensitivity was given.
12789 if test "${enable_case_sensitivity+set}" = set; then
12790   enableval="$enable_case_sensitivity"
12791   case "$enable_case_sensitivity" in
12792        yes | no | auto) ;;
12793        *)
12794           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
12795 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
12796    { (exit 1); exit 1; }; }
12797           ;;
12798      esac
12799 else
12800   enable_case_sensitivity=auto
12801 fi;
12802
12803 acx_forced=' (forced)'
12804 echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
12805 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6
12806 if test $enable_case_sensitivity = auto; then
12807         if test "${acx_cv_case_sensitive+set}" = set; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810    rm -f ac_TEST_filenames_CASE_sensitive
12811     echo foo >ac_test_filenames_case_sensitive
12812     if test -f ac_TEST_filenames_CASE_sensitive; then
12813       acx_cv_case_sensitive=no
12814     else
12815       acx_cv_case_sensitive=yes
12816     fi
12817     rm ac_test_filenames_case_sensitive
12818
12819 fi
12820
12821   enable_case_sensitivity=$acx_cv_case_sensitive
12822   acx_forced=
12823 fi
12824 echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
12825 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6
12826 if test $enable_case_sensitivity = no; then
12827
12828 cat >>confdefs.h <<\_ACEOF
12829 #define FILENAMES_CASE_INSENSITIVE 1
12830 _ACEOF
12831
12832       case $LIBOBJS in
12833     "fncase.$ac_objext"   | \
12834   *" fncase.$ac_objext"   | \
12835     "fncase.$ac_objext "* | \
12836   *" fncase.$ac_objext "* ) ;;
12837   *) LIBOBJS="$LIBOBJS fncase.$ac_objext" ;;
12838 esac
12839
12840 fi
12841
12842
12843
12844
12845 # Check whether --enable-encryption or --disable-encryption was given.
12846 if test "${enable_encryption+set}" = set; then
12847   enableval="$enable_encryption"
12848
12849 else
12850   enable_encryption=no
12851 fi;
12852 if test "$enable_encryption" = yes; then
12853   if test no != "$with_client" || test no != "$with_server"; then
12854
12855 cat >>confdefs.h <<\_ACEOF
12856 #define ENCRYPTION 1
12857 _ACEOF
12858
12859   else
12860     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
12861        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
12862 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
12863        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
12864   fi
12865 fi
12866
12867
12868
12869
12870 # Check whether --enable-force-editor or --disable-force-editor was given.
12871 if test "${enable_force_editor+set}" = set; then
12872   enableval="$enable_force_editor"
12873
12874 else
12875   enable_force_editor=no
12876 fi;
12877
12878 if test yes = "$enable_force_editor"; then
12879
12880 cat >>confdefs.h <<\_ACEOF
12881 #define FORCE_USE_EDITOR 1
12882 _ACEOF
12883
12884 fi
12885
12886
12887
12888
12889 # Check whether --enable-rootcommit or --disable-rootcommit was given.
12890 if test "${enable_rootcommit+set}" = set; then
12891   enableval="$enable_rootcommit"
12892
12893 else
12894   enable_rootcommit=no
12895 fi;
12896 if test "$enable_rootcommit" = no; then
12897
12898 cat >>confdefs.h <<\_ACEOF
12899 #define CVS_BADROOT 1
12900 _ACEOF
12901
12902 fi
12903
12904
12905
12906
12907
12908
12909
12910
12911 echo "$as_me:$LINENO: checking for cygwin32" >&5
12912 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
12913 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
12914   echo $ECHO_N "(cached) $ECHO_C" >&6
12915 else
12916   cat >conftest.$ac_ext <<_ACEOF
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922
12923 int
12924 main ()
12925 {
12926 return __CYGWIN32__;
12927   ;
12928   return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12933   (eval $ac_compile) 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } &&
12940          { ac_try='test -z "$ac_c_werror_flag"
12941                          || test ! -s conftest.err'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; } &&
12947          { ac_try='test -s conftest.$ac_objext'
12948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949   (eval $ac_try) 2>&5
12950   ac_status=$?
12951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952   (exit $ac_status); }; }; then
12953   ccvs_cv_sys_cygwin32=yes
12954 else
12955   echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 ccvs_cv_sys_cygwin32=no
12959 fi
12960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12961 fi
12962 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
12963 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
12964 if test $ccvs_cv_sys_cygwin32 = yes; then
12965   LIBS="$LIBS -ladvapi32"
12966
12967
12968 cat >>confdefs.h <<\_ACEOF
12969 #define UTIME_EXPECTS_WRITABLE 1
12970 _ACEOF
12971
12972
12973
12974 cat >>confdefs.h <<\_ACEOF
12975 #define USE_SETMODE_STDOUT 1
12976 _ACEOF
12977
12978
12979 cat >>confdefs.h <<\_ACEOF
12980 #define HAVE_SETMODE 1
12981 _ACEOF
12982
12983 fi
12984
12985           ac_config_files="$ac_config_files contrib/check_cvs"
12986
12987           ac_config_files="$ac_config_files contrib/clmerge"
12988
12989           ac_config_files="$ac_config_files contrib/cln_hist"
12990
12991           ac_config_files="$ac_config_files contrib/commit_prep"
12992
12993           ac_config_files="$ac_config_files contrib/cvs_acls"
12994
12995           ac_config_files="$ac_config_files contrib/log"
12996
12997           ac_config_files="$ac_config_files contrib/log_accum"
12998
12999           ac_config_files="$ac_config_files contrib/mfpipe"
13000
13001           ac_config_files="$ac_config_files contrib/pvcs2rcs"
13002
13003           ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
13004
13005           ac_config_files="$ac_config_files contrib/rcslock"
13006
13007           ac_config_files="$ac_config_files contrib/sccs2rcs"
13008
13009           ac_config_files="$ac_config_files doc/mkman"
13010
13011           ac_config_files="$ac_config_files src/cvsbug"
13012
13013           ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/fix-msvc-mak-head.pl:windows-NT/fix-msvc-mak.pl"
13014
13015
13016                                                                                                                                                       ac_config_files="$ac_config_files Makefile contrib/Makefile cvs.spec diff/Makefile doc/Makefile emx/Makefile lib/Makefile man/Makefile os2/Makefile src/Makefile tools/Makefile vms/Makefile windows-NT/Makefile windows-NT/SCC/Makefile zlib/Makefile"
13017
13018
13019 cat >confcache <<\_ACEOF
13020 # This file is a shell script that caches the results of configure
13021 # tests run on this system so they can be shared between configure
13022 # scripts and configure runs, see configure's option --config-cache.
13023 # It is not useful on other systems.  If it contains results you don't
13024 # want to keep, you may remove or edit it.
13025 #
13026 # config.status only pays attention to the cache file if you give it
13027 # the --recheck option to rerun configure.
13028 #
13029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13031 # following values.
13032
13033 _ACEOF
13034
13035 # The following way of writing the cache mishandles newlines in values,
13036 # but we know of no workaround that is simple, portable, and efficient.
13037 # So, don't put newlines in cache variables' values.
13038 # Ultrix sh set writes to stderr and can't be redirected directly,
13039 # and sets the high bit in the cache file unless we assign to the vars.
13040 {
13041   (set) 2>&1 |
13042     case `(ac_space=' '; set | grep ac_space) 2>&1` in
13043     *ac_space=\ *)
13044       # `set' does not quote correctly, so add quotes (double-quote
13045       # substitution turns \\\\ into \\, and sed turns \\ into \).
13046       sed -n \
13047         "s/'/'\\\\''/g;
13048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13049       ;;
13050     *)
13051       # `set' quotes correctly as required by POSIX, so do not add quotes.
13052       sed -n \
13053         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13054       ;;
13055     esac;
13056 } |
13057   sed '
13058      t clear
13059      : clear
13060      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13061      t end
13062      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13063      : end' >>confcache
13064 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13065   if test -w $cache_file; then
13066     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13067     cat confcache >$cache_file
13068   else
13069     echo "not updating unwritable cache $cache_file"
13070   fi
13071 fi
13072 rm -f confcache
13073
13074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13075 # Let make expand exec_prefix.
13076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13077
13078 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13079 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13080 # trailing colons and then remove the whole line if VPATH becomes empty
13081 # (actually we leave an empty line to preserve line numbers).
13082 if test "x$srcdir" = x.; then
13083   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13084 s/:*\$(srcdir):*/:/;
13085 s/:*\${srcdir}:*/:/;
13086 s/:*@srcdir@:*/:/;
13087 s/^\([^=]*=[     ]*\):*/\1/;
13088 s/:*$//;
13089 s/^[^=]*=[       ]*$//;
13090 }'
13091 fi
13092
13093 DEFS=-DHAVE_CONFIG_H
13094
13095 ac_libobjs=
13096 ac_ltlibobjs=
13097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13098   # 1. Remove the extension, and $U if already installed.
13099   ac_i=`echo "$ac_i" |
13100          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13101   # 2. Add them.
13102   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13103   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13104 done
13105 LIBOBJS=$ac_libobjs
13106
13107 LTLIBOBJS=$ac_ltlibobjs
13108
13109
13110 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13111   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13112 Usually this means the macro was only invoked conditionally." >&5
13113 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13114 Usually this means the macro was only invoked conditionally." >&2;}
13115    { (exit 1); exit 1; }; }
13116 fi
13117 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13118   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13119 Usually this means the macro was only invoked conditionally." >&5
13120 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13121 Usually this means the macro was only invoked conditionally." >&2;}
13122    { (exit 1); exit 1; }; }
13123 fi
13124 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13125   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13126 Usually this means the macro was only invoked conditionally." >&5
13127 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13128 Usually this means the macro was only invoked conditionally." >&2;}
13129    { (exit 1); exit 1; }; }
13130 fi
13131 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
13132   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13133 Usually this means the macro was only invoked conditionally." >&5
13134 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13135 Usually this means the macro was only invoked conditionally." >&2;}
13136    { (exit 1); exit 1; }; }
13137 fi
13138
13139 : ${CONFIG_STATUS=./config.status}
13140 ac_clean_files_save=$ac_clean_files
13141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13142 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13143 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13144 cat >$CONFIG_STATUS <<_ACEOF
13145 #! $SHELL
13146 # Generated by $as_me.
13147 # Run this file to recreate the current configuration.
13148 # Compiler output produced by configure, useful for debugging
13149 # configure, is in config.log if it exists.
13150
13151 debug=false
13152 ac_cs_recheck=false
13153 ac_cs_silent=false
13154 SHELL=\${CONFIG_SHELL-$SHELL}
13155 _ACEOF
13156
13157 cat >>$CONFIG_STATUS <<\_ACEOF
13158 ## --------------------- ##
13159 ## M4sh Initialization.  ##
13160 ## --------------------- ##
13161
13162 # Be Bourne compatible
13163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13164   emulate sh
13165   NULLCMD=:
13166   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13167   # is contrary to our usage.  Disable this feature.
13168   alias -g '${1+"$@"}'='"$@"'
13169 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13170   set -o posix
13171 fi
13172 DUALCASE=1; export DUALCASE # for MKS sh
13173
13174 # Support unset when possible.
13175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13176   as_unset=unset
13177 else
13178   as_unset=false
13179 fi
13180
13181
13182 # Work around bugs in pre-3.0 UWIN ksh.
13183 $as_unset ENV MAIL MAILPATH
13184 PS1='$ '
13185 PS2='> '
13186 PS4='+ '
13187
13188 # NLS nuisances.
13189 for as_var in \
13190   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13191   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13192   LC_TELEPHONE LC_TIME
13193 do
13194   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13195     eval $as_var=C; export $as_var
13196   else
13197     $as_unset $as_var
13198   fi
13199 done
13200
13201 # Required to use basename.
13202 if expr a : '\(a\)' >/dev/null 2>&1; then
13203   as_expr=expr
13204 else
13205   as_expr=false
13206 fi
13207
13208 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13209   as_basename=basename
13210 else
13211   as_basename=false
13212 fi
13213
13214
13215 # Name of the executable.
13216 as_me=`$as_basename "$0" ||
13217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13218          X"$0" : 'X\(//\)$' \| \
13219          X"$0" : 'X\(/\)$' \| \
13220          .     : '\(.\)' 2>/dev/null ||
13221 echo X/"$0" |
13222     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13223           /^X\/\(\/\/\)$/{ s//\1/; q; }
13224           /^X\/\(\/\).*/{ s//\1/; q; }
13225           s/.*/./; q'`
13226
13227
13228 # PATH needs CR, and LINENO needs CR and PATH.
13229 # Avoid depending upon Character Ranges.
13230 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13231 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13232 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13233 as_cr_digits='0123456789'
13234 as_cr_alnum=$as_cr_Letters$as_cr_digits
13235
13236 # The user is always right.
13237 if test "${PATH_SEPARATOR+set}" != set; then
13238   echo "#! /bin/sh" >conf$$.sh
13239   echo  "exit 0"   >>conf$$.sh
13240   chmod +x conf$$.sh
13241   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13242     PATH_SEPARATOR=';'
13243   else
13244     PATH_SEPARATOR=:
13245   fi
13246   rm -f conf$$.sh
13247 fi
13248
13249
13250   as_lineno_1=$LINENO
13251   as_lineno_2=$LINENO
13252   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13253   test "x$as_lineno_1" != "x$as_lineno_2" &&
13254   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
13255   # Find who we are.  Look in the path if we contain no path at all
13256   # relative or not.
13257   case $0 in
13258     *[\\/]* ) as_myself=$0 ;;
13259     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260 for as_dir in $PATH
13261 do
13262   IFS=$as_save_IFS
13263   test -z "$as_dir" && as_dir=.
13264   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13265 done
13266
13267        ;;
13268   esac
13269   # We did not find ourselves, most probably we were run as `sh COMMAND'
13270   # in which case we are not to be found in the path.
13271   if test "x$as_myself" = x; then
13272     as_myself=$0
13273   fi
13274   if test ! -f "$as_myself"; then
13275     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13276 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13277    { (exit 1); exit 1; }; }
13278   fi
13279   case $CONFIG_SHELL in
13280   '')
13281     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13283 do
13284   IFS=$as_save_IFS
13285   test -z "$as_dir" && as_dir=.
13286   for as_base in sh bash ksh sh5; do
13287          case $as_dir in
13288          /*)
13289            if ("$as_dir/$as_base" -c '
13290   as_lineno_1=$LINENO
13291   as_lineno_2=$LINENO
13292   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13293   test "x$as_lineno_1" != "x$as_lineno_2" &&
13294   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
13295              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13296              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13297              CONFIG_SHELL=$as_dir/$as_base
13298              export CONFIG_SHELL
13299              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13300            fi;;
13301          esac
13302        done
13303 done
13304 ;;
13305   esac
13306
13307   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13308   # uniformly replaced by the line number.  The first 'sed' inserts a
13309   # line-number line before each line; the second 'sed' does the real
13310   # work.  The second script uses 'N' to pair each line-number line
13311   # with the numbered line, and appends trailing '-' during
13312   # substitution so that $LINENO is not a special case at line end.
13313   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13314   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
13315   sed '=' <$as_myself |
13316     sed '
13317       N
13318       s,$,-,
13319       : loop
13320       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13321       t loop
13322       s,-$,,
13323       s,^['$as_cr_digits']*\n,,
13324     ' >$as_me.lineno &&
13325   chmod +x $as_me.lineno ||
13326     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13327 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13328    { (exit 1); exit 1; }; }
13329
13330   # Don't try to exec as it changes $[0], causing all sort of problems
13331   # (the dirname of $[0] is not the place where we might find the
13332   # original and so on.  Autoconf is especially sensible to this).
13333   . ./$as_me.lineno
13334   # Exit status is that of the last command.
13335   exit
13336 }
13337
13338
13339 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13340   *c*,-n*) ECHO_N= ECHO_C='
13341 ' ECHO_T='      ' ;;
13342   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13343   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
13344 esac
13345
13346 if expr a : '\(a\)' >/dev/null 2>&1; then
13347   as_expr=expr
13348 else
13349   as_expr=false
13350 fi
13351
13352 rm -f conf$$ conf$$.exe conf$$.file
13353 echo >conf$$.file
13354 if ln -s conf$$.file conf$$ 2>/dev/null; then
13355   # We could just check for DJGPP; but this test a) works b) is more generic
13356   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13357   if test -f conf$$.exe; then
13358     # Don't use ln at all; we don't have any links
13359     as_ln_s='cp -p'
13360   else
13361     as_ln_s='ln -s'
13362   fi
13363 elif ln conf$$.file conf$$ 2>/dev/null; then
13364   as_ln_s=ln
13365 else
13366   as_ln_s='cp -p'
13367 fi
13368 rm -f conf$$ conf$$.exe conf$$.file
13369
13370 if mkdir -p . 2>/dev/null; then
13371   as_mkdir_p=:
13372 else
13373   test -d ./-p && rmdir ./-p
13374   as_mkdir_p=false
13375 fi
13376
13377 as_executable_p="test -f"
13378
13379 # Sed expression to map a string onto a valid CPP name.
13380 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13381
13382 # Sed expression to map a string onto a valid variable name.
13383 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13384
13385
13386 # IFS
13387 # We need space, tab and new line, in precisely that order.
13388 as_nl='
13389 '
13390 IFS="   $as_nl"
13391
13392 # CDPATH.
13393 $as_unset CDPATH
13394
13395 exec 6>&1
13396
13397 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13398 # report actual input values of CONFIG_FILES etc. instead of their
13399 # values after options handling.  Logging --version etc. is OK.
13400 exec 5>>config.log
13401 {
13402   echo
13403   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13404 ## Running $as_me. ##
13405 _ASBOX
13406 } >&5
13407 cat >&5 <<_CSEOF
13408
13409 This file was extended by Concurrent Versions System (CVS) $as_me 1.11.17, which was
13410 generated by GNU Autoconf 2.58.  Invocation command line was
13411
13412   CONFIG_FILES    = $CONFIG_FILES
13413   CONFIG_HEADERS  = $CONFIG_HEADERS
13414   CONFIG_LINKS    = $CONFIG_LINKS
13415   CONFIG_COMMANDS = $CONFIG_COMMANDS
13416   $ $0 $@
13417
13418 _CSEOF
13419 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13420 echo >&5
13421 _ACEOF
13422
13423 # Files that config.status was made for.
13424 if test -n "$ac_config_files"; then
13425   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13426 fi
13427
13428 if test -n "$ac_config_headers"; then
13429   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13430 fi
13431
13432 if test -n "$ac_config_links"; then
13433   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13434 fi
13435
13436 if test -n "$ac_config_commands"; then
13437   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13438 fi
13439
13440 cat >>$CONFIG_STATUS <<\_ACEOF
13441
13442 ac_cs_usage="\
13443 \`$as_me' instantiates files from templates according to the
13444 current configuration.
13445
13446 Usage: $0 [OPTIONS] [FILE]...
13447
13448   -h, --help       print this help, then exit
13449   -V, --version    print version number, then exit
13450   -q, --quiet      do not print progress messages
13451   -d, --debug      don't remove temporary files
13452       --recheck    update $as_me by reconfiguring in the same conditions
13453   --file=FILE[:TEMPLATE]
13454                    instantiate the configuration file FILE
13455   --header=FILE[:TEMPLATE]
13456                    instantiate the configuration header FILE
13457
13458 Configuration files:
13459 $config_files
13460
13461 Configuration headers:
13462 $config_headers
13463
13464 Configuration links:
13465 $config_links
13466
13467 Configuration commands:
13468 $config_commands
13469
13470 Report bugs to <bug-autoconf@gnu.org>."
13471 _ACEOF
13472
13473 cat >>$CONFIG_STATUS <<_ACEOF
13474 ac_cs_version="\\
13475 Concurrent Versions System (CVS) config.status 1.11.17
13476 configured by $0, generated by GNU Autoconf 2.58,
13477   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13478
13479 Copyright (C) 2003 Free Software Foundation, Inc.
13480 This config.status script is free software; the Free Software Foundation
13481 gives unlimited permission to copy, distribute and modify it."
13482 srcdir=$srcdir
13483 INSTALL="$INSTALL"
13484 _ACEOF
13485
13486 cat >>$CONFIG_STATUS <<\_ACEOF
13487 # If no file are specified by the user, then we need to provide default
13488 # value.  By we need to know if files were specified by the user.
13489 ac_need_defaults=:
13490 while test $# != 0
13491 do
13492   case $1 in
13493   --*=*)
13494     ac_option=`expr "x$1" : 'x\([^=]*\)='`
13495     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13496     ac_shift=:
13497     ;;
13498   -*)
13499     ac_option=$1
13500     ac_optarg=$2
13501     ac_shift=shift
13502     ;;
13503   *) # This is not an option, so the user has probably given explicit
13504      # arguments.
13505      ac_option=$1
13506      ac_need_defaults=false;;
13507   esac
13508
13509   case $ac_option in
13510   # Handling of the options.
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<\_ACEOF
13513   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13514     ac_cs_recheck=: ;;
13515   --version | --vers* | -V )
13516     echo "$ac_cs_version"; exit 0 ;;
13517   --he | --h)
13518     # Conflict between --help and --header
13519     { { echo "$as_me:$LINENO: error: ambiguous option: $1
13520 Try \`$0 --help' for more information." >&5
13521 echo "$as_me: error: ambiguous option: $1
13522 Try \`$0 --help' for more information." >&2;}
13523    { (exit 1); exit 1; }; };;
13524   --help | --hel | -h )
13525     echo "$ac_cs_usage"; exit 0 ;;
13526   --debug | --d* | -d )
13527     debug=: ;;
13528   --file | --fil | --fi | --f )
13529     $ac_shift
13530     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13531     ac_need_defaults=false;;
13532   --header | --heade | --head | --hea )
13533     $ac_shift
13534     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13535     ac_need_defaults=false;;
13536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13537   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13538     ac_cs_silent=: ;;
13539
13540   # This is an error.
13541   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13542 Try \`$0 --help' for more information." >&5
13543 echo "$as_me: error: unrecognized option: $1
13544 Try \`$0 --help' for more information." >&2;}
13545    { (exit 1); exit 1; }; } ;;
13546
13547   *) ac_config_targets="$ac_config_targets $1" ;;
13548
13549   esac
13550   shift
13551 done
13552
13553 ac_configure_extra_args=
13554
13555 if $ac_cs_silent; then
13556   exec 6>/dev/null
13557   ac_configure_extra_args="$ac_configure_extra_args --silent"
13558 fi
13559
13560 _ACEOF
13561 cat >>$CONFIG_STATUS <<_ACEOF
13562 if \$ac_cs_recheck; then
13563   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13564   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13565 fi
13566
13567 _ACEOF
13568
13569 cat >>$CONFIG_STATUS <<_ACEOF
13570 #
13571 # INIT-COMMANDS section.
13572 #
13573
13574 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13575
13576 _ACEOF
13577
13578
13579
13580 cat >>$CONFIG_STATUS <<\_ACEOF
13581 for ac_config_target in $ac_config_targets
13582 do
13583   case "$ac_config_target" in
13584   # Handling of arguments.
13585   "contrib/check_cvs" ) CONFIG_FILES="$CONFIG_FILES contrib/check_cvs" ;;
13586   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
13587   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
13588   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
13589   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
13590   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
13591   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
13592   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
13593   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
13594   "contrib/rcs2log" ) CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
13595   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
13596   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
13597   "doc/mkman" ) CONFIG_FILES="$CONFIG_FILES doc/mkman" ;;
13598   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
13599   "windows-NT/fix-msvc-mak" ) CONFIG_FILES="$CONFIG_FILES windows-NT/fix-msvc-mak:windows-NT/fix-msvc-mak-head.pl:windows-NT/fix-msvc-mak.pl" ;;
13600   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13601   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13602   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
13603   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
13604   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13605   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
13606   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13607   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13608   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
13609   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13610   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13611   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
13612   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
13613   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
13614   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
13615   "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.h.in" ;;
13616   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13617   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13618   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13620    { (exit 1); exit 1; }; };;
13621   esac
13622 done
13623
13624 # If the user did not use the arguments to specify the items to instantiate,
13625 # then the envvar interface is used.  Set only those that are not.
13626 # We use the long form for the default assignment because of an extremely
13627 # bizarre bug on SunOS 4.1.3.
13628 if $ac_need_defaults; then
13629   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13630   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13631   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13632   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13633 fi
13634
13635 # Have a temporary directory for convenience.  Make it in the build tree
13636 # simply because there is no reason to put it here, and in addition,
13637 # creating and moving files from /tmp can sometimes cause problems.
13638 # Create a temporary directory, and hook for its removal unless debugging.
13639 $debug ||
13640 {
13641   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13642   trap '{ (exit 1); exit 1; }' 1 2 13 15
13643 }
13644
13645 # Create a (secure) tmp directory for tmp files.
13646
13647 {
13648   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13649   test -n "$tmp" && test -d "$tmp"
13650 }  ||
13651 {
13652   tmp=./confstat$$-$RANDOM
13653   (umask 077 && mkdir $tmp)
13654 } ||
13655 {
13656    echo "$me: cannot create a temporary directory in ." >&2
13657    { (exit 1); exit 1; }
13658 }
13659
13660 _ACEOF
13661
13662 cat >>$CONFIG_STATUS <<_ACEOF
13663
13664 #
13665 # CONFIG_FILES section.
13666 #
13667
13668 # No need to generate the scripts if there are no CONFIG_FILES.
13669 # This happens for instance when ./config.status config.h
13670 if test -n "\$CONFIG_FILES"; then
13671   # Protect against being on the right side of a sed subst in config.status.
13672   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13673    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13674 s,@SHELL@,$SHELL,;t t
13675 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13676 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13677 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13678 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13679 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13680 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13681 s,@exec_prefix@,$exec_prefix,;t t
13682 s,@prefix@,$prefix,;t t
13683 s,@program_transform_name@,$program_transform_name,;t t
13684 s,@bindir@,$bindir,;t t
13685 s,@sbindir@,$sbindir,;t t
13686 s,@libexecdir@,$libexecdir,;t t
13687 s,@datadir@,$datadir,;t t
13688 s,@sysconfdir@,$sysconfdir,;t t
13689 s,@sharedstatedir@,$sharedstatedir,;t t
13690 s,@localstatedir@,$localstatedir,;t t
13691 s,@libdir@,$libdir,;t t
13692 s,@includedir@,$includedir,;t t
13693 s,@oldincludedir@,$oldincludedir,;t t
13694 s,@infodir@,$infodir,;t t
13695 s,@mandir@,$mandir,;t t
13696 s,@build_alias@,$build_alias,;t t
13697 s,@host_alias@,$host_alias,;t t
13698 s,@target_alias@,$target_alias,;t t
13699 s,@DEFS@,$DEFS,;t t
13700 s,@ECHO_C@,$ECHO_C,;t t
13701 s,@ECHO_N@,$ECHO_N,;t t
13702 s,@ECHO_T@,$ECHO_T,;t t
13703 s,@LIBS@,$LIBS,;t t
13704 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13705 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13706 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13707 s,@CYGPATH_W@,$CYGPATH_W,;t t
13708 s,@PACKAGE@,$PACKAGE,;t t
13709 s,@VERSION@,$VERSION,;t t
13710 s,@ACLOCAL@,$ACLOCAL,;t t
13711 s,@AUTOCONF@,$AUTOCONF,;t t
13712 s,@AUTOMAKE@,$AUTOMAKE,;t t
13713 s,@AUTOHEADER@,$AUTOHEADER,;t t
13714 s,@MAKEINFO@,$MAKEINFO,;t t
13715 s,@AMTAR@,$AMTAR,;t t
13716 s,@install_sh@,$install_sh,;t t
13717 s,@STRIP@,$STRIP,;t t
13718 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13719 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13720 s,@AWK@,$AWK,;t t
13721 s,@SET_MAKE@,$SET_MAKE,;t t
13722 s,@am__leading_dot@,$am__leading_dot,;t t
13723 s,@ac_prefix_program@,$ac_prefix_program,;t t
13724 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13725 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13726 s,@MAINT@,$MAINT,;t t
13727 s,@CC@,$CC,;t t
13728 s,@CFLAGS@,$CFLAGS,;t t
13729 s,@LDFLAGS@,$LDFLAGS,;t t
13730 s,@CPPFLAGS@,$CPPFLAGS,;t t
13731 s,@ac_ct_CC@,$ac_ct_CC,;t t
13732 s,@EXEEXT@,$EXEEXT,;t t
13733 s,@OBJEXT@,$OBJEXT,;t t
13734 s,@DEPDIR@,$DEPDIR,;t t
13735 s,@am__include@,$am__include,;t t
13736 s,@am__quote@,$am__quote,;t t
13737 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13738 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13739 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13740 s,@CCDEPMODE@,$CCDEPMODE,;t t
13741 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13742 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13743 s,@CPP@,$CPP,;t t
13744 s,@EGREP@,$EGREP,;t t
13745 s,@RANLIB@,$RANLIB,;t t
13746 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13747 s,@YACC@,$YACC,;t t
13748 s,@LN_S@,$LN_S,;t t
13749 s,@PERL@,$PERL,;t t
13750 s,@CSH@,$CSH,;t t
13751 s,@MKTEMP@,$MKTEMP,;t t
13752 s,@SENDMAIL@,$SENDMAIL,;t t
13753 s,@PR@,$PR,;t t
13754 s,@ROFF@,$ROFF,;t t
13755 s,@PS2PDF@,$PS2PDF,;t t
13756 s,@TEXI2DVI@,$TEXI2DVI,;t t
13757 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
13758 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
13759 s,@LIBOBJS@,$LIBOBJS,;t t
13760 s,@KRB4@,$KRB4,;t t
13761 s,@includeopt@,$includeopt,;t t
13762 s,@EDITOR@,$EDITOR,;t t
13763 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13764 /@MKTEMP_SH_FUNCTION@/r $MKTEMP_SH_FUNCTION
13765 s,@MKTEMP_SH_FUNCTION@,,;t t
13766 CEOF
13767
13768 _ACEOF
13769
13770   cat >>$CONFIG_STATUS <<\_ACEOF
13771   # Split the substitutions into bite-sized pieces for seds with
13772   # small command number limits, like on Digital OSF/1 and HP-UX.
13773   ac_max_sed_lines=48
13774   ac_sed_frag=1 # Number of current file.
13775   ac_beg=1 # First line for current file.
13776   ac_end=$ac_max_sed_lines # Line after last line for current file.
13777   ac_more_lines=:
13778   ac_sed_cmds=
13779   while $ac_more_lines; do
13780     if test $ac_beg -gt 1; then
13781       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13782     else
13783       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13784     fi
13785     if test ! -s $tmp/subs.frag; then
13786       ac_more_lines=false
13787     else
13788       # The purpose of the label and of the branching condition is to
13789       # speed up the sed processing (if there are no `@' at all, there
13790       # is no need to browse any of the substitutions).
13791       # These are the two extra sed commands mentioned above.
13792       (echo ':t
13793   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13794       if test -z "$ac_sed_cmds"; then
13795         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13796       else
13797         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13798       fi
13799       ac_sed_frag=`expr $ac_sed_frag + 1`
13800       ac_beg=$ac_end
13801       ac_end=`expr $ac_end + $ac_max_sed_lines`
13802     fi
13803   done
13804   if test -z "$ac_sed_cmds"; then
13805     ac_sed_cmds=cat
13806   fi
13807 fi # test -n "$CONFIG_FILES"
13808
13809 _ACEOF
13810 cat >>$CONFIG_STATUS <<\_ACEOF
13811 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13812   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13813   case $ac_file in
13814   - | *:- | *:-:* ) # input from stdin
13815         cat >$tmp/stdin
13816         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13817         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13818   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13819         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13820   * )   ac_file_in=$ac_file.in ;;
13821   esac
13822
13823   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13824   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13826          X"$ac_file" : 'X\(//\)[^/]' \| \
13827          X"$ac_file" : 'X\(//\)$' \| \
13828          X"$ac_file" : 'X\(/\)' \| \
13829          .     : '\(.\)' 2>/dev/null ||
13830 echo X"$ac_file" |
13831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13832           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13833           /^X\(\/\/\)$/{ s//\1/; q; }
13834           /^X\(\/\).*/{ s//\1/; q; }
13835           s/.*/./; q'`
13836   { if $as_mkdir_p; then
13837     mkdir -p "$ac_dir"
13838   else
13839     as_dir="$ac_dir"
13840     as_dirs=
13841     while test ! -d "$as_dir"; do
13842       as_dirs="$as_dir $as_dirs"
13843       as_dir=`(dirname "$as_dir") 2>/dev/null ||
13844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13845          X"$as_dir" : 'X\(//\)[^/]' \| \
13846          X"$as_dir" : 'X\(//\)$' \| \
13847          X"$as_dir" : 'X\(/\)' \| \
13848          .     : '\(.\)' 2>/dev/null ||
13849 echo X"$as_dir" |
13850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13851           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13852           /^X\(\/\/\)$/{ s//\1/; q; }
13853           /^X\(\/\).*/{ s//\1/; q; }
13854           s/.*/./; q'`
13855     done
13856     test ! -n "$as_dirs" || mkdir $as_dirs
13857   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13859    { (exit 1); exit 1; }; }; }
13860
13861   ac_builddir=.
13862
13863 if test "$ac_dir" != .; then
13864   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13865   # A "../" for each directory in $ac_dir_suffix.
13866   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13867 else
13868   ac_dir_suffix= ac_top_builddir=
13869 fi
13870
13871 case $srcdir in
13872   .)  # No --srcdir option.  We are building in place.
13873     ac_srcdir=.
13874     if test -z "$ac_top_builddir"; then
13875        ac_top_srcdir=.
13876     else
13877        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13878     fi ;;
13879   [\\/]* | ?:[\\/]* )  # Absolute path.
13880     ac_srcdir=$srcdir$ac_dir_suffix;
13881     ac_top_srcdir=$srcdir ;;
13882   *) # Relative path.
13883     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13884     ac_top_srcdir=$ac_top_builddir$srcdir ;;
13885 esac
13886 case "$ac_dir" in
13887 .) ac_abs_builddir=$ac_builddir;;
13888 *)
13889   case $ac_builddir in
13890   .) ac_abs_builddir="$ac_dir";;
13891   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
13892   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
13893   esac;;
13894 esac
13895 case "$ac_dir" in
13896 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13897 *)
13898   case ${ac_top_builddir}. in
13899   .) ac_abs_top_builddir="$ac_dir";;
13900   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13901   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
13902   esac;;
13903 esac
13904 case "$ac_dir" in
13905 .) ac_abs_srcdir=$ac_srcdir;;
13906 *)
13907   case $ac_srcdir in
13908   .) ac_abs_srcdir="$ac_dir";;
13909   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13910   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
13911   esac;;
13912 esac
13913 case "$ac_dir" in
13914 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13915 *)
13916   case $ac_top_srcdir in
13917   .) ac_abs_top_srcdir="$ac_dir";;
13918   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13919   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
13920   esac;;
13921 esac
13922
13923
13924   case $INSTALL in
13925   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13926   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13927   esac
13928
13929   if test x"$ac_file" != x-; then
13930     { echo "$as_me:$LINENO: creating $ac_file" >&5
13931 echo "$as_me: creating $ac_file" >&6;}
13932     rm -f "$ac_file"
13933   fi
13934   # Let's still pretend it is `configure' which instantiates (i.e., don't
13935   # use $as_me), people would be surprised to read:
13936   #    /* config.h.  Generated by config.status.  */
13937   if test x"$ac_file" = x-; then
13938     configure_input=
13939   else
13940     configure_input="$ac_file.  "
13941   fi
13942   configure_input=$configure_input"Generated from `echo $ac_file_in |
13943                                      sed 's,.*/,,'` by configure."
13944
13945   # First look for the input files in the build tree, otherwise in the
13946   # src tree.
13947   ac_file_inputs=`IFS=:
13948     for f in $ac_file_in; do
13949       case $f in
13950       -) echo $tmp/stdin ;;
13951       [\\/$]*)
13952          # Absolute (can't be DOS-style, as IFS=:)
13953          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13954 echo "$as_me: error: cannot find input file: $f" >&2;}
13955    { (exit 1); exit 1; }; }
13956          echo "$f";;
13957       *) # Relative
13958          if test -f "$f"; then
13959            # Build tree
13960            echo "$f"
13961          elif test -f "$srcdir/$f"; then
13962            # Source tree
13963            echo "$srcdir/$f"
13964          else
13965            # /dev/null tree
13966            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13967 echo "$as_me: error: cannot find input file: $f" >&2;}
13968    { (exit 1); exit 1; }; }
13969          fi;;
13970       esac
13971     done` || { (exit 1); exit 1; }
13972 _ACEOF
13973 cat >>$CONFIG_STATUS <<_ACEOF
13974   sed "$ac_vpsub
13975 $extrasub
13976 _ACEOF
13977 cat >>$CONFIG_STATUS <<\_ACEOF
13978 :t
13979 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13980 s,@configure_input@,$configure_input,;t t
13981 s,@srcdir@,$ac_srcdir,;t t
13982 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13983 s,@top_srcdir@,$ac_top_srcdir,;t t
13984 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13985 s,@builddir@,$ac_builddir,;t t
13986 s,@abs_builddir@,$ac_abs_builddir,;t t
13987 s,@top_builddir@,$ac_top_builddir,;t t
13988 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13989 s,@INSTALL@,$ac_INSTALL,;t t
13990 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13991   rm -f $tmp/stdin
13992   if test x"$ac_file" != x-; then
13993     mv $tmp/out $ac_file
13994   else
13995     cat $tmp/out
13996     rm -f $tmp/out
13997   fi
13998
13999   # Run the commands associated with the file.
14000   case $ac_file in
14001     contrib/check_cvs ) chmod +x contrib/check_cvs ;;
14002     contrib/clmerge ) chmod +x contrib/clmerge ;;
14003     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
14004     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
14005     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
14006     contrib/log ) chmod +x contrib/log ;;
14007     contrib/log_accum ) chmod +x contrib/log_accum ;;
14008     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
14009     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
14010     contrib/rcs2log ) chmod +x contrib/rcs2log ;;
14011     contrib/rcslock ) chmod +x contrib/rcslock ;;
14012     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
14013     doc/mkman ) chmod +x doc/mkman ;;
14014     src/cvsbug ) chmod +x src/cvsbug ;;
14015     windows-NT/fix-msvc-mak ) chmod +x windows-NT/fix-msvc-mak ;;
14016   esac
14017 done
14018 _ACEOF
14019 cat >>$CONFIG_STATUS <<\_ACEOF
14020
14021 #
14022 # CONFIG_HEADER section.
14023 #
14024
14025 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14026 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14027 #
14028 # ac_d sets the value in "#define NAME VALUE" lines.
14029 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
14030 ac_dB='[         ].*$,\1#\2'
14031 ac_dC=' '
14032 ac_dD=',;t'
14033 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14034 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
14035 ac_uB='$,\1#\2define\3'
14036 ac_uC=' '
14037 ac_uD=',;t'
14038
14039 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14040   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14041   case $ac_file in
14042   - | *:- | *:-:* ) # input from stdin
14043         cat >$tmp/stdin
14044         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14046   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14048   * )   ac_file_in=$ac_file.in ;;
14049   esac
14050
14051   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14052 echo "$as_me: creating $ac_file" >&6;}
14053
14054   # First look for the input files in the build tree, otherwise in the
14055   # src tree.
14056   ac_file_inputs=`IFS=:
14057     for f in $ac_file_in; do
14058       case $f in
14059       -) echo $tmp/stdin ;;
14060       [\\/$]*)
14061          # Absolute (can't be DOS-style, as IFS=:)
14062          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14063 echo "$as_me: error: cannot find input file: $f" >&2;}
14064    { (exit 1); exit 1; }; }
14065          # Do quote $f, to prevent DOS paths from being IFS'd.
14066          echo "$f";;
14067       *) # Relative
14068          if test -f "$f"; then
14069            # Build tree
14070            echo "$f"
14071          elif test -f "$srcdir/$f"; then
14072            # Source tree
14073            echo "$srcdir/$f"
14074          else
14075            # /dev/null tree
14076            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14077 echo "$as_me: error: cannot find input file: $f" >&2;}
14078    { (exit 1); exit 1; }; }
14079          fi;;
14080       esac
14081     done` || { (exit 1); exit 1; }
14082   # Remove the trailing spaces.
14083   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
14084
14085 _ACEOF
14086
14087 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14088 # `conftest.undefs', that substitutes the proper values into
14089 # config.h.in to produce config.h.  The first handles `#define'
14090 # templates, and the second `#undef' templates.
14091 # And first: Protect against being on the right side of a sed subst in
14092 # config.status.  Protect against being in an unquoted here document
14093 # in config.status.
14094 rm -f conftest.defines conftest.undefs
14095 # Using a here document instead of a string reduces the quoting nightmare.
14096 # Putting comments in sed scripts is not portable.
14097 #
14098 # `end' is used to avoid that the second main sed command (meant for
14099 # 0-ary CPP macros) applies to n-ary macro definitions.
14100 # See the Autoconf documentation for `clear'.
14101 cat >confdef2sed.sed <<\_ACEOF
14102 s/[\\&,]/\\&/g
14103 s,[\\$`],\\&,g
14104 t clear
14105 : clear
14106 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14107 t end
14108 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14109 : end
14110 _ACEOF
14111 # If some macros were called several times there might be several times
14112 # the same #defines, which is useless.  Nevertheless, we may not want to
14113 # sort them, since we want the *last* AC-DEFINE to be honored.
14114 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14115 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14116 rm -f confdef2sed.sed
14117
14118 # This sed command replaces #undef with comments.  This is necessary, for
14119 # example, in the case of _POSIX_SOURCE, which is predefined and required
14120 # on some systems where configure will not decide to define it.
14121 cat >>conftest.undefs <<\_ACEOF
14122 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14123 _ACEOF
14124
14125 # Break up conftest.defines because some shells have a limit on the size
14126 # of here documents, and old seds have small limits too (100 cmds).
14127 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14128 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14129 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14130 echo '  :' >>$CONFIG_STATUS
14131 rm -f conftest.tail
14132 while grep . conftest.defines >/dev/null
14133 do
14134   # Write a limited-size here document to $tmp/defines.sed.
14135   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14136   # Speed up: don't consider the non `#define' lines.
14137   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
14138   # Work around the forget-to-reset-the-flag bug.
14139   echo 't clr' >>$CONFIG_STATUS
14140   echo ': clr' >>$CONFIG_STATUS
14141   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14142   echo 'CEOF
14143   sed -f $tmp/defines.sed $tmp/in >$tmp/out
14144   rm -f $tmp/in
14145   mv $tmp/out $tmp/in
14146 ' >>$CONFIG_STATUS
14147   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14148   rm -f conftest.defines
14149   mv conftest.tail conftest.defines
14150 done
14151 rm -f conftest.defines
14152 echo '  fi # grep' >>$CONFIG_STATUS
14153 echo >>$CONFIG_STATUS
14154
14155 # Break up conftest.undefs because some shells have a limit on the size
14156 # of here documents, and old seds have small limits too (100 cmds).
14157 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
14158 rm -f conftest.tail
14159 while grep . conftest.undefs >/dev/null
14160 do
14161   # Write a limited-size here document to $tmp/undefs.sed.
14162   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14163   # Speed up: don't consider the non `#undef'
14164   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
14165   # Work around the forget-to-reset-the-flag bug.
14166   echo 't clr' >>$CONFIG_STATUS
14167   echo ': clr' >>$CONFIG_STATUS
14168   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14169   echo 'CEOF
14170   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14171   rm -f $tmp/in
14172   mv $tmp/out $tmp/in
14173 ' >>$CONFIG_STATUS
14174   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14175   rm -f conftest.undefs
14176   mv conftest.tail conftest.undefs
14177 done
14178 rm -f conftest.undefs
14179
14180 cat >>$CONFIG_STATUS <<\_ACEOF
14181   # Let's still pretend it is `configure' which instantiates (i.e., don't
14182   # use $as_me), people would be surprised to read:
14183   #    /* config.h.  Generated by config.status.  */
14184   if test x"$ac_file" = x-; then
14185     echo "/* Generated by configure.  */" >$tmp/config.h
14186   else
14187     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
14188   fi
14189   cat $tmp/in >>$tmp/config.h
14190   rm -f $tmp/in
14191   if test x"$ac_file" != x-; then
14192     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14193       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14194 echo "$as_me: $ac_file is unchanged" >&6;}
14195     else
14196       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198          X"$ac_file" : 'X\(//\)[^/]' \| \
14199          X"$ac_file" : 'X\(//\)$' \| \
14200          X"$ac_file" : 'X\(/\)' \| \
14201          .     : '\(.\)' 2>/dev/null ||
14202 echo X"$ac_file" |
14203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14204           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14205           /^X\(\/\/\)$/{ s//\1/; q; }
14206           /^X\(\/\).*/{ s//\1/; q; }
14207           s/.*/./; q'`
14208       { if $as_mkdir_p; then
14209     mkdir -p "$ac_dir"
14210   else
14211     as_dir="$ac_dir"
14212     as_dirs=
14213     while test ! -d "$as_dir"; do
14214       as_dirs="$as_dir $as_dirs"
14215       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14216 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14217          X"$as_dir" : 'X\(//\)[^/]' \| \
14218          X"$as_dir" : 'X\(//\)$' \| \
14219          X"$as_dir" : 'X\(/\)' \| \
14220          .     : '\(.\)' 2>/dev/null ||
14221 echo X"$as_dir" |
14222     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14223           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14224           /^X\(\/\/\)$/{ s//\1/; q; }
14225           /^X\(\/\).*/{ s//\1/; q; }
14226           s/.*/./; q'`
14227     done
14228     test ! -n "$as_dirs" || mkdir $as_dirs
14229   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14230 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14231    { (exit 1); exit 1; }; }; }
14232
14233       rm -f $ac_file
14234       mv $tmp/config.h $ac_file
14235     fi
14236   else
14237     cat $tmp/config.h
14238     rm -f $tmp/config.h
14239   fi
14240 # Compute $ac_file's index in $config_headers.
14241 _am_stamp_count=1
14242 for _am_header in $config_headers :; do
14243   case $_am_header in
14244     $ac_file | $ac_file:* )
14245       break ;;
14246     * )
14247       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14248   esac
14249 done
14250 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14251 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252          X$ac_file : 'X\(//\)[^/]' \| \
14253          X$ac_file : 'X\(//\)$' \| \
14254          X$ac_file : 'X\(/\)' \| \
14255          .     : '\(.\)' 2>/dev/null ||
14256 echo X$ac_file |
14257     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14258           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14259           /^X\(\/\/\)$/{ s//\1/; q; }
14260           /^X\(\/\).*/{ s//\1/; q; }
14261           s/.*/./; q'`/stamp-h$_am_stamp_count
14262 done
14263 _ACEOF
14264 cat >>$CONFIG_STATUS <<\_ACEOF
14265
14266 #
14267 # CONFIG_LINKS section.
14268 #
14269
14270 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14271   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14272   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14273
14274   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14275 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14276
14277   if test ! -r $srcdir/$ac_source; then
14278     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14279 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14280    { (exit 1); exit 1; }; }
14281   fi
14282   rm -f $ac_dest
14283
14284   # Make relative symlinks.
14285   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14286 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14287          X"$ac_dest" : 'X\(//\)[^/]' \| \
14288          X"$ac_dest" : 'X\(//\)$' \| \
14289          X"$ac_dest" : 'X\(/\)' \| \
14290          .     : '\(.\)' 2>/dev/null ||
14291 echo X"$ac_dest" |
14292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14293           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14294           /^X\(\/\/\)$/{ s//\1/; q; }
14295           /^X\(\/\).*/{ s//\1/; q; }
14296           s/.*/./; q'`
14297   { if $as_mkdir_p; then
14298     mkdir -p "$ac_dest_dir"
14299   else
14300     as_dir="$ac_dest_dir"
14301     as_dirs=
14302     while test ! -d "$as_dir"; do
14303       as_dirs="$as_dir $as_dirs"
14304       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14306          X"$as_dir" : 'X\(//\)[^/]' \| \
14307          X"$as_dir" : 'X\(//\)$' \| \
14308          X"$as_dir" : 'X\(/\)' \| \
14309          .     : '\(.\)' 2>/dev/null ||
14310 echo X"$as_dir" |
14311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14312           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14313           /^X\(\/\/\)$/{ s//\1/; q; }
14314           /^X\(\/\).*/{ s//\1/; q; }
14315           s/.*/./; q'`
14316     done
14317     test ! -n "$as_dirs" || mkdir $as_dirs
14318   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14319 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14320    { (exit 1); exit 1; }; }; }
14321
14322   ac_builddir=.
14323
14324 if test "$ac_dest_dir" != .; then
14325   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14326   # A "../" for each directory in $ac_dir_suffix.
14327   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14328 else
14329   ac_dir_suffix= ac_top_builddir=
14330 fi
14331
14332 case $srcdir in
14333   .)  # No --srcdir option.  We are building in place.
14334     ac_srcdir=.
14335     if test -z "$ac_top_builddir"; then
14336        ac_top_srcdir=.
14337     else
14338        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14339     fi ;;
14340   [\\/]* | ?:[\\/]* )  # Absolute path.
14341     ac_srcdir=$srcdir$ac_dir_suffix;
14342     ac_top_srcdir=$srcdir ;;
14343   *) # Relative path.
14344     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14345     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14346 esac
14347 case "$ac_dest_dir" in
14348 .) ac_abs_builddir=$ac_builddir;;
14349 *)
14350   case $ac_builddir in
14351   .) ac_abs_builddir="$ac_dest_dir";;
14352   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
14353   *) ac_abs_builddir="$ac_dest_dir"/$ac_builddir;;
14354   esac;;
14355 esac
14356 case "$ac_dest_dir" in
14357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14358 *)
14359   case ${ac_top_builddir}. in
14360   .) ac_abs_top_builddir="$ac_dest_dir";;
14361   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14362   *) ac_abs_top_builddir="$ac_dest_dir"/${ac_top_builddir}.;;
14363   esac;;
14364 esac
14365 case "$ac_dest_dir" in
14366 .) ac_abs_srcdir=$ac_srcdir;;
14367 *)
14368   case $ac_srcdir in
14369   .) ac_abs_srcdir="$ac_dest_dir";;
14370   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14371   *) ac_abs_srcdir="$ac_dest_dir"/$ac_srcdir;;
14372   esac;;
14373 esac
14374 case "$ac_dest_dir" in
14375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14376 *)
14377   case $ac_top_srcdir in
14378   .) ac_abs_top_srcdir="$ac_dest_dir";;
14379   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14380   *) ac_abs_top_srcdir="$ac_dest_dir"/$ac_top_srcdir;;
14381   esac;;
14382 esac
14383
14384
14385   case $srcdir in
14386   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14387       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14388   esac
14389
14390   # Try a symlink, then a hard link, then a copy.
14391   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14392     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14393     cp -p $srcdir/$ac_source $ac_dest ||
14394     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14395 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14396    { (exit 1); exit 1; }; }
14397 done
14398 _ACEOF
14399 cat >>$CONFIG_STATUS <<\_ACEOF
14400
14401 #
14402 # CONFIG_COMMANDS section.
14403 #
14404 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14405   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14406   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14407   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14408 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409          X"$ac_dest" : 'X\(//\)[^/]' \| \
14410          X"$ac_dest" : 'X\(//\)$' \| \
14411          X"$ac_dest" : 'X\(/\)' \| \
14412          .     : '\(.\)' 2>/dev/null ||
14413 echo X"$ac_dest" |
14414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14415           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14416           /^X\(\/\/\)$/{ s//\1/; q; }
14417           /^X\(\/\).*/{ s//\1/; q; }
14418           s/.*/./; q'`
14419   { if $as_mkdir_p; then
14420     mkdir -p "$ac_dir"
14421   else
14422     as_dir="$ac_dir"
14423     as_dirs=
14424     while test ! -d "$as_dir"; do
14425       as_dirs="$as_dir $as_dirs"
14426       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14428          X"$as_dir" : 'X\(//\)[^/]' \| \
14429          X"$as_dir" : 'X\(//\)$' \| \
14430          X"$as_dir" : 'X\(/\)' \| \
14431          .     : '\(.\)' 2>/dev/null ||
14432 echo X"$as_dir" |
14433     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14434           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14435           /^X\(\/\/\)$/{ s//\1/; q; }
14436           /^X\(\/\).*/{ s//\1/; q; }
14437           s/.*/./; q'`
14438     done
14439     test ! -n "$as_dirs" || mkdir $as_dirs
14440   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14441 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14442    { (exit 1); exit 1; }; }; }
14443
14444   ac_builddir=.
14445
14446 if test "$ac_dir" != .; then
14447   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14448   # A "../" for each directory in $ac_dir_suffix.
14449   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14450 else
14451   ac_dir_suffix= ac_top_builddir=
14452 fi
14453
14454 case $srcdir in
14455   .)  # No --srcdir option.  We are building in place.
14456     ac_srcdir=.
14457     if test -z "$ac_top_builddir"; then
14458        ac_top_srcdir=.
14459     else
14460        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14461     fi ;;
14462   [\\/]* | ?:[\\/]* )  # Absolute path.
14463     ac_srcdir=$srcdir$ac_dir_suffix;
14464     ac_top_srcdir=$srcdir ;;
14465   *) # Relative path.
14466     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14467     ac_top_srcdir=$ac_top_builddir$srcdir ;;
14468 esac
14469 case "$ac_dir" in
14470 .) ac_abs_builddir=$ac_builddir;;
14471 *)
14472   case $ac_builddir in
14473   .) ac_abs_builddir="$ac_dir";;
14474   [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
14475   *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
14476   esac;;
14477 esac
14478 case "$ac_dir" in
14479 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14480 *)
14481   case ${ac_top_builddir}. in
14482   .) ac_abs_top_builddir="$ac_dir";;
14483   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14484   *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
14485   esac;;
14486 esac
14487 case "$ac_dir" in
14488 .) ac_abs_srcdir=$ac_srcdir;;
14489 *)
14490   case $ac_srcdir in
14491   .) ac_abs_srcdir="$ac_dir";;
14492   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14493   *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
14494   esac;;
14495 esac
14496 case "$ac_dir" in
14497 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14498 *)
14499   case $ac_top_srcdir in
14500   .) ac_abs_top_srcdir="$ac_dir";;
14501   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14502   *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
14503   esac;;
14504 esac
14505
14506
14507   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14508 echo "$as_me: executing $ac_dest commands" >&6;}
14509   case $ac_dest in
14510     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14511   # Strip MF so we end up with the name of the file.
14512   mf=`echo "$mf" | sed -e 's/:.*$//'`
14513   # Check whether this is an Automake generated Makefile or not.
14514   # We used to match only the files named `Makefile.in', but
14515   # some people rename them; so instead we look at the file content.
14516   # Grep'ing the first line is not enough: some people post-process
14517   # each Makefile.in and add a new line on top of each file to say so.
14518   # So let's grep whole file.
14519   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14520     dirpart=`(dirname "$mf") 2>/dev/null ||
14521 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522          X"$mf" : 'X\(//\)[^/]' \| \
14523          X"$mf" : 'X\(//\)$' \| \
14524          X"$mf" : 'X\(/\)' \| \
14525          .     : '\(.\)' 2>/dev/null ||
14526 echo X"$mf" |
14527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14529           /^X\(\/\/\)$/{ s//\1/; q; }
14530           /^X\(\/\).*/{ s//\1/; q; }
14531           s/.*/./; q'`
14532   else
14533     continue
14534   fi
14535   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14536   # Extract the definition of DEP_FILES from the Makefile without
14537   # running `make'.
14538   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14539   test -z "$DEPDIR" && continue
14540   # When using ansi2knr, U may be empty or an underscore; expand it
14541   U=`sed -n -e '/^U = / s///p' < "$mf"`
14542   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14543   # We invoke sed twice because it is the simplest approach to
14544   # changing $(DEPDIR) to its actual value in the expansion.
14545   for file in `sed -n -e '
14546     /^DEP_FILES = .*\\\\$/ {
14547       s/^DEP_FILES = //
14548       :loop
14549         s/\\\\$//
14550         p
14551         n
14552         /\\\\$/ b loop
14553       p
14554     }
14555     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14556        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14557     # Make sure the directory exists.
14558     test -f "$dirpart/$file" && continue
14559     fdir=`(dirname "$file") 2>/dev/null ||
14560 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561          X"$file" : 'X\(//\)[^/]' \| \
14562          X"$file" : 'X\(//\)$' \| \
14563          X"$file" : 'X\(/\)' \| \
14564          .     : '\(.\)' 2>/dev/null ||
14565 echo X"$file" |
14566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14567           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14568           /^X\(\/\/\)$/{ s//\1/; q; }
14569           /^X\(\/\).*/{ s//\1/; q; }
14570           s/.*/./; q'`
14571     { if $as_mkdir_p; then
14572     mkdir -p $dirpart/$fdir
14573   else
14574     as_dir=$dirpart/$fdir
14575     as_dirs=
14576     while test ! -d "$as_dir"; do
14577       as_dirs="$as_dir $as_dirs"
14578       as_dir=`(dirname "$as_dir") 2>/dev/null ||
14579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14580          X"$as_dir" : 'X\(//\)[^/]' \| \
14581          X"$as_dir" : 'X\(//\)$' \| \
14582          X"$as_dir" : 'X\(/\)' \| \
14583          .     : '\(.\)' 2>/dev/null ||
14584 echo X"$as_dir" |
14585     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14586           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14587           /^X\(\/\/\)$/{ s//\1/; q; }
14588           /^X\(\/\).*/{ s//\1/; q; }
14589           s/.*/./; q'`
14590     done
14591     test ! -n "$as_dirs" || mkdir $as_dirs
14592   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14593 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14594    { (exit 1); exit 1; }; }; }
14595
14596     # echo "creating $dirpart/$file"
14597     echo '# dummy' > "$dirpart/$file"
14598   done
14599 done
14600  ;;
14601   esac
14602 done
14603 _ACEOF
14604
14605 cat >>$CONFIG_STATUS <<\_ACEOF
14606
14607 { (exit 0); exit 0; }
14608 _ACEOF
14609 chmod +x $CONFIG_STATUS
14610 ac_clean_files=$ac_clean_files_save
14611
14612
14613 # configure is writing to config.log, and then calls config.status.
14614 # config.status does its own redirection, appending to config.log.
14615 # Unfortunately, on DOS this fails, as config.log is still kept open
14616 # by configure, so config.status won't be able to write to it; its
14617 # output is simply discarded.  So we exec the FD to /dev/null,
14618 # effectively closing config.log, so it can be properly (re)opened and
14619 # appended to by config.status.  When coming back to configure, we
14620 # need to make the FD available again.
14621 if test "$no_create" != yes; then
14622   ac_cs_success=:
14623   ac_config_status_args=
14624   test "$silent" = yes &&
14625     ac_config_status_args="$ac_config_status_args --quiet"
14626   exec 5>/dev/null
14627   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14628   exec 5>>config.log
14629   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14630   # would make configure fail if this is the last instruction.
14631   $ac_cs_success || { (exit 1); exit 1; }
14632 fi
14633
14634
14635
14636
14637 # Report the state of this version of CVS if this is from dev.
14638