]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/cvs/configure
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / cvs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for Concurrent Versions System (CVS) 1.11.22.1.
4 #
5 # Report bugs to <bug-cvs@nongnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44   echo "#! /bin/sh" >conf$$.sh
45   echo  "exit 0"   >>conf$$.sh
46   chmod +x conf$$.sh
47   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48     PATH_SEPARATOR=';'
49   else
50     PATH_SEPARATOR=:
51   fi
52   rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57   as_unset=unset
58 else
59   as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order.  Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" ""        $as_nl"
71
72 # Find who we are.  Look in the path if we contain no directory separator.
73 case $0 in
74   *[\\/]* ) as_myself=$0 ;;
75   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78   IFS=$as_save_IFS
79   test -z "$as_dir" && as_dir=.
80   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84      ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89   as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93   { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108   LC_TELEPHONE LC_TIME
109 do
110   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111     eval $as_var=C; export $as_var
112   else
113     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114   fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119    test "X`expr 00001 : '.*\(...\)'`" = X001; then
120   as_expr=expr
121 else
122   as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126   as_basename=basename
127 else
128   as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135          X"$0" : 'X\(//\)$' \| \
136          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138     sed '/^.*\/\([^/][^/]*\)\/*$/{
139             s//\1/
140             q
141           }
142           /^X\/\(\/\/\)$/{
143             s//\1/
144             q
145           }
146           /^X\/\(\/\).*/{
147             s//\1/
148             q
149           }
150           s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157   if (eval ":") 2>/dev/null; then
158   as_have_required=yes
159 else
160   as_have_required=no
161 fi
162
163   if test $as_have_required = yes &&     (eval ":
164 (as_func_return () {
165   (exit \$1)
166 }
167 as_func_success () {
168   as_func_return 0
169 }
170 as_func_failure () {
171   as_func_return 1
172 }
173 as_func_ret_success () {
174   return 0
175 }
176 as_func_ret_failure () {
177   return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182   :
183 else
184   exitcode=1
185   echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189   exitcode=1
190   echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194   :
195 else
196   exitcode=1
197   echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201   exitcode=1
202   echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206   :
207 else
208   exitcode=1
209   echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215   as_lineno_1=\$LINENO
216   as_lineno_2=\$LINENO
217   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220   :
221 else
222   as_candidate_shells=
223     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226   IFS=$as_save_IFS
227   test -z "$as_dir" && as_dir=.
228   case $as_dir in
229          /*)
230            for as_base in sh bash ksh sh5; do
231              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232            done;;
233        esac
234 done
235 IFS=$as_save_IFS
236
237
238       for as_shell in $as_candidate_shells $SHELL; do
239          # Try only shells that exist, to save several forks.
240          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241                 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243   emulate sh
244   NULLCMD=:
245   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246   # is contrary to our usage.  Disable this feature.
247   alias -g '${1+"$@"}'='"$@"'
248   setopt NO_GLOB_SUBST
249 else
250   case `(set -o) 2>/dev/null` in
251   *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260   CONFIG_SHELL=$as_shell
261                as_have_required=yes
262                if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280   (exit $1)
281 }
282 as_func_success () {
283   as_func_return 0
284 }
285 as_func_failure () {
286   as_func_return 1
287 }
288 as_func_ret_success () {
289   return 0
290 }
291 as_func_ret_failure () {
292   return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297   :
298 else
299   exitcode=1
300   echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304   exitcode=1
305   echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309   :
310 else
311   exitcode=1
312   echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316   exitcode=1
317   echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321   :
322 else
323   exitcode=1
324   echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330   as_lineno_1=$LINENO
331   as_lineno_2=$LINENO
332   test "x$as_lineno_1" != "x$as_lineno_2" &&
333   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337   break
338 fi
339
340 fi
341
342       done
343
344       if test "x$CONFIG_SHELL" != x; then
345   for as_var in BASH_ENV ENV
346         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347         done
348         export CONFIG_SHELL
349         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353     if test $as_have_required = no; then
354   echo This script requires a shell more modern than all the
355       echo shells that I found on your system.  Please install a
356       echo modern shell, or manually run the script under such a
357       echo shell if you do have one.
358       { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369   (exit \$1)
370 }
371 as_func_success () {
372   as_func_return 0
373 }
374 as_func_failure () {
375   as_func_return 1
376 }
377 as_func_ret_success () {
378   return 0
379 }
380 as_func_ret_failure () {
381   return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386   :
387 else
388   exitcode=1
389   echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393   exitcode=1
394   echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398   :
399 else
400   exitcode=1
401   echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405   exitcode=1
406   echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410   :
411 else
412   exitcode=1
413   echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417   echo No shell found that supports shell functions.
418   echo Please tell autoconf@gnu.org about your system,
419   echo including any error possibly output before this
420   echo message
421 }
422
423
424
425   as_lineno_1=$LINENO
426   as_lineno_2=$LINENO
427   test "x$as_lineno_1" != "x$as_lineno_2" &&
428   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431   # uniformly replaced by the line number.  The first 'sed' inserts a
432   # line-number line after each line using $LINENO; the second 'sed'
433   # does the real work.  The second script uses 'N' to pair each
434   # line-number line with the line containing $LINENO, and appends
435   # trailing '-' during substitution so that $LINENO is not a special
436   # case at line end.
437   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438   # scripts with optimization help from Paolo Bonzini.  Blame Lee
439   # E. McMahon (1931-1989) for sed's syntax.  :-)
440   sed -n '
441     p
442     /[$]LINENO/=
443   ' <$as_myself |
444     sed '
445       s/[$]LINENO.*/&-/
446       t lineno
447       b
448       :lineno
449       N
450       :loop
451       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452       t loop
453       s/-\n.*//
454     ' >$as_me.lineno &&
455   chmod +x "$as_me.lineno" ||
456     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457    { (exit 1); exit 1; }; }
458
459   # Don't try to exec as it changes $[0], causing all sort of problems
460   # (the dirname of $[0] is not the place where we might find the
461   # original and so on.  Autoconf is especially sensitive to this).
462   . "./$as_me.lineno"
463   # Exit status is that of the last command.
464   exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469   as_dirname=dirname
470 else
471   as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477   case `echo 'x\c'` in
478   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479   *)   ECHO_C='\c';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486    test "X`expr 00001 : '.*\(...\)'`" = X001; then
487   as_expr=expr
488 else
489   as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494   rm -f conf$$.dir/conf$$.file
495 else
496   rm -f conf$$.dir
497   mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s='ln -s'
502   # ... but there are two gotchas:
503   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505   # In both cases, we have to default to `cp -p'.
506   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507     as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509   as_ln_s=ln
510 else
511   as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517   as_mkdir_p=:
518 else
519   test -d ./-p && rmdir ./-p
520   as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524   as_test_x='test -x'
525 else
526   if ls -dL / >/dev/null 2>&1; then
527     as_ls_L_option=L
528   else
529     as_ls_L_option=
530   fi
531   as_test_x='
532     eval sh -c '\''
533       if test -d "$1"; then
534         test -d "$1/.";
535       else
536         case $1 in
537         -*)set "./$1";;
538         esac;
539         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540         ???[sx]*):;;*)false;;esac;fi
541     '\'' sh
542   '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='Concurrent Versions System (CVS)'
576 PACKAGE_TARNAME='cvs'
577 PACKAGE_VERSION='1.11.22.1'
578 PACKAGE_STRING='Concurrent Versions System (CVS) 1.11.22.1'
579 PACKAGE_BUGREPORT='bug-cvs@nongnu.org'
580
581 ac_unique_file="src/cvs.h"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 #  include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #  include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_header_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 INSTALL_PROGRAM
657 INSTALL_SCRIPT
658 INSTALL_DATA
659 am__isrc
660 CYGPATH_W
661 PACKAGE
662 VERSION
663 ACLOCAL
664 AUTOCONF
665 AUTOMAKE
666 AUTOHEADER
667 MAKEINFO
668 install_sh
669 STRIP
670 INSTALL_STRIP_PROGRAM
671 mkdir_p
672 AWK
673 SET_MAKE
674 am__leading_dot
675 AMTAR
676 am__tar
677 am__untar
678 ac_prefix_program
679 MAINTAINER_MODE_TRUE
680 MAINTAINER_MODE_FALSE
681 MAINT
682 CC
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 DEPDIR
690 am__include
691 am__quote
692 AMDEP_TRUE
693 AMDEP_FALSE
694 AMDEPBACKSLASH
695 CCDEPMODE
696 am__fastdepCC_TRUE
697 am__fastdepCC_FALSE
698 CPP
699 GREP
700 EGREP
701 RANLIB
702 YACC
703 YFLAGS
704 LN_S
705 PERL
706 CSH
707 MKTEMP
708 SENDMAIL
709 PR
710 ROFF
711 PS2PDF
712 TEXI2DVI
713 MAKE_TARGETS_IN_VPATH_TRUE
714 MAKE_TARGETS_IN_VPATH_FALSE
715 LIBOBJS
716 KRB4
717 includeopt
718 EDITOR
719 with_default_ssh
720 with_default_rsh
721 LTLIBOBJS'
722 ac_subst_files='MKTEMP_SH_FUNCTION'
723       ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CPP
732 YACC
733 YFLAGS
734 EDITOR'
735
736
737 # Initialize some variables set by options.
738 ac_init_help=
739 ac_init_version=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
742 cache_file=/dev/null
743 exec_prefix=NONE
744 no_create=
745 no_recursion=
746 prefix=NONE
747 program_prefix=NONE
748 program_suffix=NONE
749 program_transform_name=s,x,x,
750 silent=
751 site=
752 srcdir=
753 verbose=
754 x_includes=NONE
755 x_libraries=NONE
756
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir='${exec_prefix}/bin'
764 sbindir='${exec_prefix}/sbin'
765 libexecdir='${exec_prefix}/libexec'
766 datarootdir='${prefix}/share'
767 datadir='${datarootdir}'
768 sysconfdir='${prefix}/etc'
769 sharedstatedir='${prefix}/com'
770 localstatedir='${prefix}/var'
771 includedir='${prefix}/include'
772 oldincludedir='/usr/include'
773 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
774 infodir='${datarootdir}/info'
775 htmldir='${docdir}'
776 dvidir='${docdir}'
777 pdfdir='${docdir}'
778 psdir='${docdir}'
779 libdir='${exec_prefix}/lib'
780 localedir='${datarootdir}/locale'
781 mandir='${datarootdir}/man'
782
783 ac_prev=
784 ac_dashdash=
785 for ac_option
786 do
787   # If the previous option needs an argument, assign it.
788   if test -n "$ac_prev"; then
789     eval $ac_prev=\$ac_option
790     ac_prev=
791     continue
792   fi
793
794   case $ac_option in
795   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
796   *)    ac_optarg=yes ;;
797   esac
798
799   # Accept the important Cygnus configure options, so we can diagnose typos.
800
801   case $ac_dashdash$ac_option in
802   --)
803     ac_dashdash=yes ;;
804
805   -bindir | --bindir | --bindi | --bind | --bin | --bi)
806     ac_prev=bindir ;;
807   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
808     bindir=$ac_optarg ;;
809
810   -build | --build | --buil | --bui | --bu)
811     ac_prev=build_alias ;;
812   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
813     build_alias=$ac_optarg ;;
814
815   -cache-file | --cache-file | --cache-fil | --cache-fi \
816   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
817     ac_prev=cache_file ;;
818   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
819   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
820     cache_file=$ac_optarg ;;
821
822   --config-cache | -C)
823     cache_file=config.cache ;;
824
825   -datadir | --datadir | --datadi | --datad)
826     ac_prev=datadir ;;
827   -datadir=* | --datadir=* | --datadi=* | --datad=*)
828     datadir=$ac_optarg ;;
829
830   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
831   | --dataroo | --dataro | --datar)
832     ac_prev=datarootdir ;;
833   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
834   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
835     datarootdir=$ac_optarg ;;
836
837   -disable-* | --disable-*)
838     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839     # Reject names that are not valid shell variable names.
840     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842    { (exit 1); exit 1; }; }
843     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844     eval enable_$ac_feature=no ;;
845
846   -docdir | --docdir | --docdi | --doc | --do)
847     ac_prev=docdir ;;
848   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
849     docdir=$ac_optarg ;;
850
851   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
852     ac_prev=dvidir ;;
853   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
854     dvidir=$ac_optarg ;;
855
856   -enable-* | --enable-*)
857     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858     # Reject names that are not valid shell variable names.
859     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
860       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861    { (exit 1); exit 1; }; }
862     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
863     eval enable_$ac_feature=\$ac_optarg ;;
864
865   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867   | --exec | --exe | --ex)
868     ac_prev=exec_prefix ;;
869   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871   | --exec=* | --exe=* | --ex=*)
872     exec_prefix=$ac_optarg ;;
873
874   -gas | --gas | --ga | --g)
875     # Obsolete; use --with-gas.
876     with_gas=yes ;;
877
878   -help | --help | --hel | --he | -h)
879     ac_init_help=long ;;
880   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881     ac_init_help=recursive ;;
882   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883     ac_init_help=short ;;
884
885   -host | --host | --hos | --ho)
886     ac_prev=host_alias ;;
887   -host=* | --host=* | --hos=* | --ho=*)
888     host_alias=$ac_optarg ;;
889
890   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891     ac_prev=htmldir ;;
892   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893   | --ht=*)
894     htmldir=$ac_optarg ;;
895
896   -includedir | --includedir | --includedi | --included | --include \
897   | --includ | --inclu | --incl | --inc)
898     ac_prev=includedir ;;
899   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900   | --includ=* | --inclu=* | --incl=* | --inc=*)
901     includedir=$ac_optarg ;;
902
903   -infodir | --infodir | --infodi | --infod | --info | --inf)
904     ac_prev=infodir ;;
905   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906     infodir=$ac_optarg ;;
907
908   -libdir | --libdir | --libdi | --libd)
909     ac_prev=libdir ;;
910   -libdir=* | --libdir=* | --libdi=* | --libd=*)
911     libdir=$ac_optarg ;;
912
913   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914   | --libexe | --libex | --libe)
915     ac_prev=libexecdir ;;
916   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917   | --libexe=* | --libex=* | --libe=*)
918     libexecdir=$ac_optarg ;;
919
920   -localedir | --localedir | --localedi | --localed | --locale)
921     ac_prev=localedir ;;
922   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923     localedir=$ac_optarg ;;
924
925   -localstatedir | --localstatedir | --localstatedi | --localstated \
926   | --localstate | --localstat | --localsta | --localst | --locals)
927     ac_prev=localstatedir ;;
928   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930     localstatedir=$ac_optarg ;;
931
932   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933     ac_prev=mandir ;;
934   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935     mandir=$ac_optarg ;;
936
937   -nfp | --nfp | --nf)
938     # Obsolete; use --without-fp.
939     with_fp=no ;;
940
941   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942   | --no-cr | --no-c | -n)
943     no_create=yes ;;
944
945   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947     no_recursion=yes ;;
948
949   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951   | --oldin | --oldi | --old | --ol | --o)
952     ac_prev=oldincludedir ;;
953   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956     oldincludedir=$ac_optarg ;;
957
958   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959     ac_prev=prefix ;;
960   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961     prefix=$ac_optarg ;;
962
963   -program-prefix | --program-prefix | --program-prefi | --program-pref \
964   | --program-pre | --program-pr | --program-p)
965     ac_prev=program_prefix ;;
966   -program-prefix=* | --program-prefix=* | --program-prefi=* \
967   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968     program_prefix=$ac_optarg ;;
969
970   -program-suffix | --program-suffix | --program-suffi | --program-suff \
971   | --program-suf | --program-su | --program-s)
972     ac_prev=program_suffix ;;
973   -program-suffix=* | --program-suffix=* | --program-suffi=* \
974   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975     program_suffix=$ac_optarg ;;
976
977   -program-transform-name | --program-transform-name \
978   | --program-transform-nam | --program-transform-na \
979   | --program-transform-n | --program-transform- \
980   | --program-transform | --program-transfor \
981   | --program-transfo | --program-transf \
982   | --program-trans | --program-tran \
983   | --progr-tra | --program-tr | --program-t)
984     ac_prev=program_transform_name ;;
985   -program-transform-name=* | --program-transform-name=* \
986   | --program-transform-nam=* | --program-transform-na=* \
987   | --program-transform-n=* | --program-transform-=* \
988   | --program-transform=* | --program-transfor=* \
989   | --program-transfo=* | --program-transf=* \
990   | --program-trans=* | --program-tran=* \
991   | --progr-tra=* | --program-tr=* | --program-t=*)
992     program_transform_name=$ac_optarg ;;
993
994   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995     ac_prev=pdfdir ;;
996   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997     pdfdir=$ac_optarg ;;
998
999   -psdir | --psdir | --psdi | --psd | --ps)
1000     ac_prev=psdir ;;
1001   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002     psdir=$ac_optarg ;;
1003
1004   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005   | -silent | --silent | --silen | --sile | --sil)
1006     silent=yes ;;
1007
1008   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009     ac_prev=sbindir ;;
1010   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011   | --sbi=* | --sb=*)
1012     sbindir=$ac_optarg ;;
1013
1014   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016   | --sharedst | --shareds | --shared | --share | --shar \
1017   | --sha | --sh)
1018     ac_prev=sharedstatedir ;;
1019   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022   | --sha=* | --sh=*)
1023     sharedstatedir=$ac_optarg ;;
1024
1025   -site | --site | --sit)
1026     ac_prev=site ;;
1027   -site=* | --site=* | --sit=*)
1028     site=$ac_optarg ;;
1029
1030   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031     ac_prev=srcdir ;;
1032   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033     srcdir=$ac_optarg ;;
1034
1035   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036   | --syscon | --sysco | --sysc | --sys | --sy)
1037     ac_prev=sysconfdir ;;
1038   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040     sysconfdir=$ac_optarg ;;
1041
1042   -target | --target | --targe | --targ | --tar | --ta | --t)
1043     ac_prev=target_alias ;;
1044   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045     target_alias=$ac_optarg ;;
1046
1047   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048     verbose=yes ;;
1049
1050   -version | --version | --versio | --versi | --vers | -V)
1051     ac_init_version=: ;;
1052
1053   -with-* | --with-*)
1054     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055     # Reject names that are not valid shell variable names.
1056     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057       { echo "$as_me: error: invalid package name: $ac_package" >&2
1058    { (exit 1); exit 1; }; }
1059     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1060     eval with_$ac_package=\$ac_optarg ;;
1061
1062   -without-* | --without-*)
1063     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1066       { echo "$as_me: error: invalid package name: $ac_package" >&2
1067    { (exit 1); exit 1; }; }
1068     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1069     eval with_$ac_package=no ;;
1070
1071   --x)
1072     # Obsolete; use --with-x.
1073     with_x=yes ;;
1074
1075   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1076   | --x-incl | --x-inc | --x-in | --x-i)
1077     ac_prev=x_includes ;;
1078   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1079   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1080     x_includes=$ac_optarg ;;
1081
1082   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1083   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1084     ac_prev=x_libraries ;;
1085   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1086   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1087     x_libraries=$ac_optarg ;;
1088
1089   -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091    { (exit 1); exit 1; }; }
1092     ;;
1093
1094   *=*)
1095     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096     # Reject names that are not valid shell variable names.
1097     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1098       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099    { (exit 1); exit 1; }; }
1100     eval $ac_envvar=\$ac_optarg
1101     export $ac_envvar ;;
1102
1103   *)
1104     # FIXME: should be removed in autoconf 3.0.
1105     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109     ;;
1110
1111   esac
1112 done
1113
1114 if test -n "$ac_prev"; then
1115   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1116   { echo "$as_me: error: missing argument to $ac_option" >&2
1117    { (exit 1); exit 1; }; }
1118 fi
1119
1120 # Be sure to have absolute directory names.
1121 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122                 datadir sysconfdir sharedstatedir localstatedir includedir \
1123                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124                 libdir localedir mandir
1125 do
1126   eval ac_val=\$$ac_var
1127   case $ac_val in
1128     [\\/$]* | ?:[\\/]* )  continue;;
1129     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130   esac
1131   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132    { (exit 1); exit 1; }; }
1133 done
1134
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1138 build=$build_alias
1139 host=$host_alias
1140 target=$target_alias
1141
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x; then
1144   if test "x$build_alias" = x; then
1145     cross_compiling=maybe
1146     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147     If a cross compiler is detected then cross compile mode will be used." >&2
1148   elif test "x$build_alias" != "x$host_alias"; then
1149     cross_compiling=yes
1150   fi
1151 fi
1152
1153 ac_tool_prefix=
1154 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1155
1156 test "$silent" = yes && exec 6>/dev/null
1157
1158
1159 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di=`ls -di .` &&
1161 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1162   { echo "$as_me: error: Working directory cannot be determined" >&2
1163    { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165   { echo "$as_me: error: pwd does not report name of working directory" >&2
1166    { (exit 1); exit 1; }; }
1167
1168
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171   ac_srcdir_defaulted=yes
1172   # Try the directory containing this script, then the parent directory.
1173   ac_confdir=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175          X"$0" : 'X\(//\)[^/]' \| \
1176          X"$0" : 'X\(//\)$' \| \
1177          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 echo X"$0" |
1179     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180             s//\1/
1181             q
1182           }
1183           /^X\(\/\/\)[^/].*/{
1184             s//\1/
1185             q
1186           }
1187           /^X\(\/\/\)$/{
1188             s//\1/
1189             q
1190           }
1191           /^X\(\/\).*/{
1192             s//\1/
1193             q
1194           }
1195           s/.*/./; q'`
1196   srcdir=$ac_confdir
1197   if test ! -r "$srcdir/$ac_unique_file"; then
1198     srcdir=..
1199   fi
1200 else
1201   ac_srcdir_defaulted=no
1202 fi
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206    { (exit 1); exit 1; }; }
1207 fi
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211    { (exit 1); exit 1; }; }
1212         pwd)`
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215   srcdir=.
1216 fi
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1220 case $srcdir in
1221 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 esac
1223 for ac_var in $ac_precious_vars; do
1224   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1225   eval ac_env_${ac_var}_value=\$${ac_var}
1226   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1227   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 done
1229
1230 #
1231 # Report the --help message.
1232 #
1233 if test "$ac_init_help" = "long"; then
1234   # Omit some internal or obsolete options to make the list less imposing.
1235   # This message is too long to be a string in the A/UX 3.1 sh.
1236   cat <<_ACEOF
1237 \`configure' configures Concurrent Versions System (CVS) 1.11.22.1 to adapt to many kinds of systems.
1238
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1240
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE.  See below for descriptions of some of the useful variables.
1243
1244 Defaults for the options are specified in brackets.
1245
1246 Configuration:
1247   -h, --help              display this help and exit
1248       --help=short        display options specific to this package
1249       --help=recursive    display the short help of all the included packages
1250   -V, --version           display version information and exit
1251   -q, --quiet, --silent   do not print \`checking...' messages
1252       --cache-file=FILE   cache test results in FILE [disabled]
1253   -C, --config-cache      alias for \`--cache-file=config.cache'
1254   -n, --no-create         do not create output files
1255       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1256
1257 Installation directories:
1258   --prefix=PREFIX         install architecture-independent files in PREFIX
1259                           [$ac_default_prefix]
1260   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1261                           [PREFIX]
1262
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1267
1268 For better control, use the options below.
1269
1270 Fine tuning of the installation directories:
1271   --bindir=DIR           user executables [EPREFIX/bin]
1272   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1273   --libexecdir=DIR       program executables [EPREFIX/libexec]
1274   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1275   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1276   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1277   --libdir=DIR           object code libraries [EPREFIX/lib]
1278   --includedir=DIR       C header files [PREFIX/include]
1279   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1280   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1281   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1282   --infodir=DIR          info documentation [DATAROOTDIR/info]
1283   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1284   --mandir=DIR           man documentation [DATAROOTDIR/man]
1285   --docdir=DIR           documentation root [DATAROOTDIR/doc/cvs]
1286   --htmldir=DIR          html documentation [DOCDIR]
1287   --dvidir=DIR           dvi documentation [DOCDIR]
1288   --pdfdir=DIR           pdf documentation [DOCDIR]
1289   --psdir=DIR            ps documentation [DOCDIR]
1290 _ACEOF
1291
1292   cat <<\_ACEOF
1293
1294 Program names:
1295   --program-prefix=PREFIX            prepend PREFIX to installed program names
1296   --program-suffix=SUFFIX            append SUFFIX to installed program names
1297   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1298 _ACEOF
1299 fi
1300
1301 if test -n "$ac_init_help"; then
1302   case $ac_init_help in
1303      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.11.22.1:";;
1304    esac
1305   cat <<\_ACEOF
1306
1307 Optional Features:
1308   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1309   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1310   --enable-maintainer-mode  enable make rules and dependencies not useful
1311                           (and sometimes confusing) to the casual installer
1312   --disable-dependency-tracking  speeds up one-time build
1313   --enable-dependency-tracking   do not reject slow dependency extractors
1314   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
1315                           than attempting to use a system NDBM library.
1316                           Disabling this may not work. (default)
1317   --disable-mmap          Don't mmap RCS files
1318   --enable-client         Include code for running as a remote client
1319                           (default)
1320   --enable-password-authenticated-client
1321                           Enable pserver as a remote access method in the CVS
1322                           client (default)
1323   --enable-server         Include code for running as a server (default)
1324   --enable-server-flow-control
1325                           If you are working with a large remote repository
1326                           and a 'cvs checkout' is swamping your network and
1327                           memory, define these to enable flow control. You may
1328                           optionally pass a low water mark in bytes and a high
1329                           water mark in bytes, separated by commas. (default
1330                           is enabled 1M,2M)
1331   --enable-case-sensitivity
1332                           Force CVS to expect a case sensitive file system.
1333                           Enabling this on a case insensitive system should
1334                           have little effect on the server or client
1335                           operation, though client users may ocassionally be
1336                           suprised that the CVS server appears to be case
1337                           sensitive. Disabling this for a case sensitive
1338                           server disables server support for case insensitive
1339                           clients, which can confuse all users of case
1340                           insensitive clients contacting the server. Disabling
1341                           this for a case sensitive client will cause the
1342                           client to ask servers to behave case insensitively,
1343                           which could cause confusion for users, but also
1344                           probably no real harm. (default autoselects based on
1345                           the case sensitivity of the file system containing
1346                           the current working directory)
1347   --enable-encryption     Enable encryption support (disabled by default)
1348   --enable-force-editor   When committing or importing files, you must enter a
1349                           log message. Normally, you can do this either via
1350                           the -m flag on the command line, the -F flag on the
1351                           command line, or an editor will be started for you.
1352                           If you like to use logging templates (the rcsinfo
1353                           file within the $CVSROOT/CVSROOT directory), you
1354                           might want to force people to use the editor even if
1355                           they specify a message with -m or -F.
1356                           --enable-force-editor will cause the -m or -F
1357                           message to be appended to the temp file when the
1358                           editor is started. (disabled by default)
1359   --enable-rootcommit     Allow the root user to commit files (disabled by
1360                           default)
1361
1362 Optional Packages:
1363   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1364   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1365   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
1366   --with-gssapi           GSSAPI directory (default autoselects)
1367   --with-editor           The default text editor CVS should use for log
1368                           messages (default autoselects)
1369   --with-ssh              The default remote shell CVS will use for :extssh:
1370                           transport (default autodetects)
1371   --with-rsh              The default remote shell CVS will use for :ext:
1372                           transport (default autodetects)
1373   --with-tmpdir           The temporary directory CVS should use as a default
1374                           (default autoselects)
1375   --with-umask            Set the umask CVS will use by default in the
1376                           repository (default 002)
1377   --with-cvs-admin-group=GROUP
1378                           The CVS admin command is restricted to the members
1379                           of this group. If this group does not exist, all
1380                           users are allowed to run CVS admin. To disable the
1381                           CVS admin command for all users, create an empty
1382                           group by specifying the --with-cvs-admin-group=
1383                           option. To disable access control for CVS admin, run
1384                           configure with the --without-cvs-admin-group option.
1385                           (default 'cvsadmin')
1386
1387 Some influential environment variables:
1388   CC          C compiler command
1389   CFLAGS      C compiler flags
1390   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1391               nonstandard directory <lib dir>
1392   LIBS        libraries to pass to the linker, e.g. -l<library>
1393   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1394               you have headers in a nonstandard directory <include dir>
1395   CPP         C preprocessor
1396   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1397               the first program found out of: `bison -y', `byacc', `yacc'.
1398   YFLAGS      The list of arguments that will be passed by default to $YACC.
1399               This script will default YFLAGS to the empty string to avoid a
1400               default value of `-d' given by some make applications.
1401   EDITOR      The text editor CVS will use by default for log messages.
1402
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1405
1406 Report bugs to <bug-cvs@nongnu.org>.
1407 _ACEOF
1408 ac_status=$?
1409 fi
1410
1411 if test "$ac_init_help" = "recursive"; then
1412   # If there are subdirs, report their specific --help.
1413   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414     test -d "$ac_dir" || continue
1415     ac_builddir=.
1416
1417 case "$ac_dir" in
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 *)
1420   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1421   # A ".." for each directory in $ac_dir_suffix.
1422   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423   case $ac_top_builddir_sub in
1424   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426   esac ;;
1427 esac
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1432
1433 case $srcdir in
1434   .)  # We are building in place.
1435     ac_srcdir=.
1436     ac_top_srcdir=$ac_top_builddir_sub
1437     ac_abs_top_srcdir=$ac_pwd ;;
1438   [\\/]* | ?:[\\/]* )  # Absolute name.
1439     ac_srcdir=$srcdir$ac_dir_suffix;
1440     ac_top_srcdir=$srcdir
1441     ac_abs_top_srcdir=$srcdir ;;
1442   *) # Relative name.
1443     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444     ac_top_srcdir=$ac_top_build_prefix$srcdir
1445     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1446 esac
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448
1449     cd "$ac_dir" || { ac_status=$?; continue; }
1450     # Check for guested configure.
1451     if test -f "$ac_srcdir/configure.gnu"; then
1452       echo &&
1453       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454     elif test -f "$ac_srcdir/configure"; then
1455       echo &&
1456       $SHELL "$ac_srcdir/configure" --help=recursive
1457     else
1458       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1459     fi || ac_status=$?
1460     cd "$ac_pwd" || { ac_status=$?; break; }
1461   done
1462 fi
1463
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1466   cat <<\_ACEOF
1467 Concurrent Versions System (CVS) configure 1.11.22.1
1468 generated by GNU Autoconf 2.61
1469
1470 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1471 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1474 _ACEOF
1475   exit
1476 fi
1477 cat >config.log <<_ACEOF
1478 This file contains any messages produced by compilers while
1479 running configure, to aid debugging if configure makes a mistake.
1480
1481 It was created by Concurrent Versions System (CVS) $as_me 1.11.22.1, which was
1482 generated by GNU Autoconf 2.61.  Invocation command line was
1483
1484   $ $0 $@
1485
1486 _ACEOF
1487 exec 5>>config.log
1488 {
1489 cat <<_ASUNAME
1490 ## --------- ##
1491 ## Platform. ##
1492 ## --------- ##
1493
1494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1499
1500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1502
1503 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1504 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1506 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1507 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1508 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1509 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1510
1511 _ASUNAME
1512
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1515 do
1516   IFS=$as_save_IFS
1517   test -z "$as_dir" && as_dir=.
1518   echo "PATH: $as_dir"
1519 done
1520 IFS=$as_save_IFS
1521
1522 } >&5
1523
1524 cat >&5 <<_ACEOF
1525
1526
1527 ## ----------- ##
1528 ## Core tests. ##
1529 ## ----------- ##
1530
1531 _ACEOF
1532
1533
1534 # Keep a trace of the command line.
1535 # Strip out --no-create and --no-recursion so they do not pile up.
1536 # Strip out --silent because we don't want to record it for future runs.
1537 # Also quote any args containing shell meta-characters.
1538 # Make two passes to allow for proper duplicate-argument suppression.
1539 ac_configure_args=
1540 ac_configure_args0=
1541 ac_configure_args1=
1542 ac_must_keep_next=false
1543 for ac_pass in 1 2
1544 do
1545   for ac_arg
1546   do
1547     case $ac_arg in
1548     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550     | -silent | --silent | --silen | --sile | --sil)
1551       continue ;;
1552     *\'*)
1553       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554     esac
1555     case $ac_pass in
1556     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1557     2)
1558       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559       if test $ac_must_keep_next = true; then
1560         ac_must_keep_next=false # Got value, back to normal.
1561       else
1562         case $ac_arg in
1563           *=* | --config-cache | -C | -disable-* | --disable-* \
1564           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566           | -with-* | --with-* | -without-* | --without-* | --x)
1567             case "$ac_configure_args0 " in
1568               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569             esac
1570             ;;
1571           -* ) ac_must_keep_next=true ;;
1572         esac
1573       fi
1574       ac_configure_args="$ac_configure_args '$ac_arg'"
1575       ;;
1576     esac
1577   done
1578 done
1579 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1581
1582 # When interrupted or exit'd, cleanup temporary files, and complete
1583 # config.log.  We remove comments because anyway the quotes in there
1584 # would cause problems or look ugly.
1585 # WARNING: Use '\'' to represent an apostrophe within the trap.
1586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587 trap 'exit_status=$?
1588   # Save into config.log some information that might help in debugging.
1589   {
1590     echo
1591
1592     cat <<\_ASBOX
1593 ## ---------------- ##
1594 ## Cache variables. ##
1595 ## ---------------- ##
1596 _ASBOX
1597     echo
1598     # The following way of writing the cache mishandles newlines in values,
1599 (
1600   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601     eval ac_val=\$$ac_var
1602     case $ac_val in #(
1603     *${as_nl}*)
1604       case $ac_var in #(
1605       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607       esac
1608       case $ac_var in #(
1609       _ | IFS | as_nl) ;; #(
1610       *) $as_unset $ac_var ;;
1611       esac ;;
1612     esac
1613   done
1614   (set) 2>&1 |
1615     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616     *${as_nl}ac_space=\ *)
1617       sed -n \
1618         "s/'\''/'\''\\\\'\'''\''/g;
1619           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620       ;; #(
1621     *)
1622       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1623       ;;
1624     esac |
1625     sort
1626 )
1627     echo
1628
1629     cat <<\_ASBOX
1630 ## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##
1633 _ASBOX
1634     echo
1635     for ac_var in $ac_subst_vars
1636     do
1637       eval ac_val=\$$ac_var
1638       case $ac_val in
1639       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640       esac
1641       echo "$ac_var='\''$ac_val'\''"
1642     done | sort
1643     echo
1644
1645     if test -n "$ac_subst_files"; then
1646       cat <<\_ASBOX
1647 ## ------------------- ##
1648 ## File substitutions. ##
1649 ## ------------------- ##
1650 _ASBOX
1651       echo
1652       for ac_var in $ac_subst_files
1653       do
1654         eval ac_val=\$$ac_var
1655         case $ac_val in
1656         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657         esac
1658         echo "$ac_var='\''$ac_val'\''"
1659       done | sort
1660       echo
1661     fi
1662
1663     if test -s confdefs.h; then
1664       cat <<\_ASBOX
1665 ## ----------- ##
1666 ## confdefs.h. ##
1667 ## ----------- ##
1668 _ASBOX
1669       echo
1670       cat confdefs.h
1671       echo
1672     fi
1673     test "$ac_signal" != 0 &&
1674       echo "$as_me: caught signal $ac_signal"
1675     echo "$as_me: exit $exit_status"
1676   } >&5
1677   rm -f core *.core core.conftest.* &&
1678     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1679     exit $exit_status
1680 ' 0
1681 for ac_signal in 1 2 13 15; do
1682   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1683 done
1684 ac_signal=0
1685
1686 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1687 rm -f -r conftest* confdefs.h
1688
1689 # Predefined preprocessor variables.
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_NAME "$PACKAGE_NAME"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1703 _ACEOF
1704
1705
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_STRING "$PACKAGE_STRING"
1708 _ACEOF
1709
1710
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1713 _ACEOF
1714
1715
1716 # Let the site file select an alternate cache file if it wants to.
1717 # Prefer explicitly selected file to automatically selected ones.
1718 if test -n "$CONFIG_SITE"; then
1719   set x "$CONFIG_SITE"
1720 elif test "x$prefix" != xNONE; then
1721   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1722 else
1723   set x "$ac_default_prefix/share/config.site" \
1724         "$ac_default_prefix/etc/config.site"
1725 fi
1726 shift
1727 for ac_site_file
1728 do
1729   if test -r "$ac_site_file"; then
1730     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731 echo "$as_me: loading site script $ac_site_file" >&6;}
1732     sed 's/^/| /' "$ac_site_file" >&5
1733     . "$ac_site_file"
1734   fi
1735 done
1736
1737 if test -r "$cache_file"; then
1738   # Some versions of bash will fail to source /dev/null (special
1739   # files actually), so we avoid doing that.
1740   if test -f "$cache_file"; then
1741     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742 echo "$as_me: loading cache $cache_file" >&6;}
1743     case $cache_file in
1744       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745       *)                      . "./$cache_file";;
1746     esac
1747   fi
1748 else
1749   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750 echo "$as_me: creating cache $cache_file" >&6;}
1751   >$cache_file
1752 fi
1753
1754 ac_header_list="$ac_header_list utime.h"
1755 # Check that the precious variables saved in the cache have kept the same
1756 # value.
1757 ac_cache_corrupted=false
1758 for ac_var in $ac_precious_vars; do
1759   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1760   eval ac_new_set=\$ac_env_${ac_var}_set
1761   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1762   eval ac_new_val=\$ac_env_${ac_var}_value
1763   case $ac_old_set,$ac_new_set in
1764     set,)
1765       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1766 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1767       ac_cache_corrupted=: ;;
1768     ,set)
1769       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1770 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1771       ac_cache_corrupted=: ;;
1772     ,);;
1773     *)
1774       if test "x$ac_old_val" != "x$ac_new_val"; then
1775         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1776 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1777         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1778 echo "$as_me:   former value:  $ac_old_val" >&2;}
1779         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1780 echo "$as_me:   current value: $ac_new_val" >&2;}
1781         ac_cache_corrupted=:
1782       fi;;
1783   esac
1784   # Pass precious variables to config.status.
1785   if test "$ac_new_set" = set; then
1786     case $ac_new_val in
1787     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1788     *) ac_arg=$ac_var=$ac_new_val ;;
1789     esac
1790     case " $ac_configure_args " in
1791       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1792       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793     esac
1794   fi
1795 done
1796 if $ac_cache_corrupted; then
1797   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1798 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1800 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1801    { (exit 1); exit 1; }; }
1802 fi
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828 ac_ext=c
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1833
1834
1835
1836 am__api_version='1.10'
1837
1838 ac_aux_dir=
1839 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1840   if test -f "$ac_dir/install-sh"; then
1841     ac_aux_dir=$ac_dir
1842     ac_install_sh="$ac_aux_dir/install-sh -c"
1843     break
1844   elif test -f "$ac_dir/install.sh"; then
1845     ac_aux_dir=$ac_dir
1846     ac_install_sh="$ac_aux_dir/install.sh -c"
1847     break
1848   elif test -f "$ac_dir/shtool"; then
1849     ac_aux_dir=$ac_dir
1850     ac_install_sh="$ac_aux_dir/shtool install -c"
1851     break
1852   fi
1853 done
1854 if test -z "$ac_aux_dir"; then
1855   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1856 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1857    { (exit 1); exit 1; }; }
1858 fi
1859
1860 # These three variables are undocumented and unsupported,
1861 # and are intended to be withdrawn in a future Autoconf release.
1862 # They can cause serious problems if a builder's source tree is in a directory
1863 # whose full name contains unusual characters.
1864 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1865 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1866 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1867
1868
1869 # Find a good install program.  We prefer a C program (faster),
1870 # so one script is as good as another.  But avoid the broken or
1871 # incompatible versions:
1872 # SysV /etc/install, /usr/sbin/install
1873 # SunOS /usr/etc/install
1874 # IRIX /sbin/install
1875 # AIX /bin/install
1876 # AmigaOS /C/install, which installs bootblocks on floppy discs
1877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1880 # OS/2's system install, which has a completely different semantic
1881 # ./install, which can be erroneously created by make from ./install.sh.
1882 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1883 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1884 if test -z "$INSTALL"; then
1885 if test "${ac_cv_path_install+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   # Account for people who put trailing slashes in PATH elements.
1894 case $as_dir/ in
1895   ./ | .// | /cC/* | \
1896   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1897   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1898   /usr/ucb/* ) ;;
1899   *)
1900     # OSF1 and SCO ODT 3.0 have their own names for install.
1901     # Don't use installbsd from OSF since it installs stuff as root
1902     # by default.
1903     for ac_prog in ginstall scoinst install; do
1904       for ac_exec_ext in '' $ac_executable_extensions; do
1905         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1906           if test $ac_prog = install &&
1907             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1908             # AIX install.  It has an incompatible calling convention.
1909             :
1910           elif test $ac_prog = install &&
1911             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1912             # program-specific install script used by HP pwplus--don't use.
1913             :
1914           else
1915             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1916             break 3
1917           fi
1918         fi
1919       done
1920     done
1921     ;;
1922 esac
1923 done
1924 IFS=$as_save_IFS
1925
1926
1927 fi
1928   if test "${ac_cv_path_install+set}" = set; then
1929     INSTALL=$ac_cv_path_install
1930   else
1931     # As a last resort, use the slow shell script.  Don't cache a
1932     # value for INSTALL within a source directory, because that will
1933     # break other packages using the cache if that directory is
1934     # removed, or if the value is a relative name.
1935     INSTALL=$ac_install_sh
1936   fi
1937 fi
1938 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1939 echo "${ECHO_T}$INSTALL" >&6; }
1940
1941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1942 # It thinks the first close brace ends the variable substitution.
1943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1944
1945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1946
1947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1948
1949 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1950 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1951 # Just in case
1952 sleep 1
1953 echo timestamp > conftest.file
1954 # Do `set' in a subshell so we don't clobber the current shell's
1955 # arguments.  Must try -L first in case configure is actually a
1956 # symlink; some systems play weird games with the mod time of symlinks
1957 # (eg FreeBSD returns the mod time of the symlink's containing
1958 # directory).
1959 if (
1960    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1961    if test "$*" = "X"; then
1962       # -L didn't work.
1963       set X `ls -t $srcdir/configure conftest.file`
1964    fi
1965    rm -f conftest.file
1966    if test "$*" != "X $srcdir/configure conftest.file" \
1967       && test "$*" != "X conftest.file $srcdir/configure"; then
1968
1969       # If neither matched, then we have a broken ls.  This can happen
1970       # if, for instance, CONFIG_SHELL is bash and it inherits a
1971       # broken ls alias from the environment.  This has actually
1972       # happened.  Such a system could not be considered "sane".
1973       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1974 alias in your environment" >&5
1975 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1976 alias in your environment" >&2;}
1977    { (exit 1); exit 1; }; }
1978    fi
1979
1980    test "$2" = conftest.file
1981    )
1982 then
1983    # Ok.
1984    :
1985 else
1986    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1987 Check your system clock" >&5
1988 echo "$as_me: error: newly created file is older than distributed files!
1989 Check your system clock" >&2;}
1990    { (exit 1); exit 1; }; }
1991 fi
1992 { echo "$as_me:$LINENO: result: yes" >&5
1993 echo "${ECHO_T}yes" >&6; }
1994 test "$program_prefix" != NONE &&
1995   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1996 # Use a double $ so make ignores it.
1997 test "$program_suffix" != NONE &&
1998   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1999 # Double any \ or $.  echo might interpret backslashes.
2000 # By default was `s,x,x', remove it if useless.
2001 cat <<\_ACEOF >conftest.sed
2002 s/[\\$]/&&/g;s/;s,x,x,$//
2003 _ACEOF
2004 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2005 rm -f conftest.sed
2006
2007 # expand $ac_aux_dir to an absolute path
2008 am_aux_dir=`cd $ac_aux_dir && pwd`
2009
2010 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2011 # Use eval to expand $SHELL
2012 if eval "$MISSING --run true"; then
2013   am_missing_run="$MISSING --run "
2014 else
2015   am_missing_run=
2016   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2017 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2018 fi
2019
2020 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2021 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2022 if test -z "$MKDIR_P"; then
2023   if test "${ac_cv_path_mkdir+set}" = set; then
2024   echo $ECHO_N "(cached) $ECHO_C" >&6
2025 else
2026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2028 do
2029   IFS=$as_save_IFS
2030   test -z "$as_dir" && as_dir=.
2031   for ac_prog in mkdir gmkdir; do
2032          for ac_exec_ext in '' $ac_executable_extensions; do
2033            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2034            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2035              'mkdir (GNU coreutils) '* | \
2036              'mkdir (coreutils) '* | \
2037              'mkdir (fileutils) '4.1*)
2038                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2039                break 3;;
2040            esac
2041          done
2042        done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047
2048   if test "${ac_cv_path_mkdir+set}" = set; then
2049     MKDIR_P="$ac_cv_path_mkdir -p"
2050   else
2051     # As a last resort, use the slow shell script.  Don't cache a
2052     # value for MKDIR_P within a source directory, because that will
2053     # break other packages using the cache if that directory is
2054     # removed, or if the value is a relative name.
2055     test -d ./--version && rmdir ./--version
2056     MKDIR_P="$ac_install_sh -d"
2057   fi
2058 fi
2059 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2060 echo "${ECHO_T}$MKDIR_P" >&6; }
2061
2062 mkdir_p="$MKDIR_P"
2063 case $mkdir_p in
2064   [\\/$]* | ?:[\\/]*) ;;
2065   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2066 esac
2067
2068 for ac_prog in gawk mawk nawk awk
2069 do
2070   # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_AWK+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$AWK"; then
2078   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2087     ac_cv_prog_AWK="$ac_prog"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093 IFS=$as_save_IFS
2094
2095 fi
2096 fi
2097 AWK=$ac_cv_prog_AWK
2098 if test -n "$AWK"; then
2099   { echo "$as_me:$LINENO: result: $AWK" >&5
2100 echo "${ECHO_T}$AWK" >&6; }
2101 else
2102   { echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6; }
2104 fi
2105
2106
2107   test -n "$AWK" && break
2108 done
2109
2110 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2111 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2112 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2113 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   cat >conftest.make <<\_ACEOF
2117 SHELL = /bin/sh
2118 all:
2119         @echo '@@@%%%=$(MAKE)=@@@%%%'
2120 _ACEOF
2121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2123   *@@@%%%=?*=@@@%%%*)
2124     eval ac_cv_prog_make_${ac_make}_set=yes;;
2125   *)
2126     eval ac_cv_prog_make_${ac_make}_set=no;;
2127 esac
2128 rm -f conftest.make
2129 fi
2130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2131   { echo "$as_me:$LINENO: result: yes" >&5
2132 echo "${ECHO_T}yes" >&6; }
2133   SET_MAKE=
2134 else
2135   { echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6; }
2137   SET_MAKE="MAKE=${MAKE-make}"
2138 fi
2139
2140 rm -rf .tst 2>/dev/null
2141 mkdir .tst 2>/dev/null
2142 if test -d .tst; then
2143   am__leading_dot=.
2144 else
2145   am__leading_dot=_
2146 fi
2147 rmdir .tst 2>/dev/null
2148
2149 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2150   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2151   # is not polluted with repeated "-I."
2152   am__isrc=' -I$(srcdir)'
2153   # test to see if srcdir already configured
2154   if test -f $srcdir/config.status; then
2155     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2156 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2157    { (exit 1); exit 1; }; }
2158   fi
2159 fi
2160
2161 # test whether we have cygpath
2162 if test -z "$CYGPATH_W"; then
2163   if (cygpath --version) >/dev/null 2>/dev/null; then
2164     CYGPATH_W='cygpath -w'
2165   else
2166     CYGPATH_W=echo
2167   fi
2168 fi
2169
2170
2171 # Define the identity of the package.
2172  PACKAGE='cvs'
2173  VERSION='1.11.22.1'
2174
2175
2176 # Some tools Automake needs.
2177
2178 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2179
2180
2181 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2182
2183
2184 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2185
2186
2187 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2188
2189
2190 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2191
2192 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2193
2194 # Installed binaries are usually stripped using `strip' when the user
2195 # run `make install-strip'.  However `strip' might not be the right
2196 # tool to use in cross-compilation environments, therefore Automake
2197 # will honor the `STRIP' environment variable to overrule this program.
2198 if test "$cross_compiling" != no; then
2199   if test -n "$ac_tool_prefix"; then
2200   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2201 set dummy ${ac_tool_prefix}strip; ac_word=$2
2202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2204 if test "${ac_cv_prog_STRIP+set}" = set; then
2205   echo $ECHO_N "(cached) $ECHO_C" >&6
2206 else
2207   if test -n "$STRIP"; then
2208   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2209 else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 for as_dir in $PATH
2212 do
2213   IFS=$as_save_IFS
2214   test -z "$as_dir" && as_dir=.
2215   for ac_exec_ext in '' $ac_executable_extensions; do
2216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219     break 2
2220   fi
2221 done
2222 done
2223 IFS=$as_save_IFS
2224
2225 fi
2226 fi
2227 STRIP=$ac_cv_prog_STRIP
2228 if test -n "$STRIP"; then
2229   { echo "$as_me:$LINENO: result: $STRIP" >&5
2230 echo "${ECHO_T}$STRIP" >&6; }
2231 else
2232   { echo "$as_me:$LINENO: result: no" >&5
2233 echo "${ECHO_T}no" >&6; }
2234 fi
2235
2236
2237 fi
2238 if test -z "$ac_cv_prog_STRIP"; then
2239   ac_ct_STRIP=$STRIP
2240   # Extract the first word of "strip", so it can be a program name with args.
2241 set dummy strip; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   if test -n "$ac_ct_STRIP"; then
2248   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     ac_cv_prog_ac_ct_STRIP="strip"
2258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259     break 2
2260   fi
2261 done
2262 done
2263 IFS=$as_save_IFS
2264
2265 fi
2266 fi
2267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2268 if test -n "$ac_ct_STRIP"; then
2269   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2270 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2271 else
2272   { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 fi
2275
2276   if test "x$ac_ct_STRIP" = x; then
2277     STRIP=":"
2278   else
2279     case $cross_compiling:$ac_tool_warned in
2280 yes:)
2281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2282 whose name does not start with the host triplet.  If you think this
2283 configuration is useful to you, please write to autoconf@gnu.org." >&5
2284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2285 whose name does not start with the host triplet.  If you think this
2286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2287 ac_tool_warned=yes ;;
2288 esac
2289     STRIP=$ac_ct_STRIP
2290   fi
2291 else
2292   STRIP="$ac_cv_prog_STRIP"
2293 fi
2294
2295 fi
2296 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2297
2298 # We need awk for the "check" target.  The system "awk" is bad on
2299 # some platforms.
2300 # Always define AMTAR for backward compatibility.
2301
2302 AMTAR=${AMTAR-"${am_missing_run}tar"}
2303
2304 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2305
2306
2307
2308
2309
2310
2311
2312 if test "x$prefix" = xNONE; then
2313   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
2314   # Extract the first word of "cvs", so it can be a program name with args.
2315 set dummy cvs; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   case $ac_prefix_program in
2322   [\\/]* | ?:[\\/]*)
2323   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
2324   ;;
2325   *)
2326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331   for ac_exec_ext in '' $ac_executable_extensions; do
2332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
2334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338 done
2339 IFS=$as_save_IFS
2340
2341   ;;
2342 esac
2343 fi
2344 ac_prefix_program=$ac_cv_path_ac_prefix_program
2345 if test -n "$ac_prefix_program"; then
2346   { echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
2347 echo "${ECHO_T}$ac_prefix_program" >&6; }
2348 else
2349   { echo "$as_me:$LINENO: result: no" >&5
2350 echo "${ECHO_T}no" >&6; }
2351 fi
2352
2353
2354   if test -n "$ac_prefix_program"; then
2355     prefix=`$as_dirname -- "$ac_prefix_program" ||
2356 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2357          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
2358          X"$ac_prefix_program" : 'X\(//\)$' \| \
2359          X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
2360 echo X"$ac_prefix_program" |
2361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2362             s//\1/
2363             q
2364           }
2365           /^X\(\/\/\)[^/].*/{
2366             s//\1/
2367             q
2368           }
2369           /^X\(\/\/\)$/{
2370             s//\1/
2371             q
2372           }
2373           /^X\(\/\).*/{
2374             s//\1/
2375             q
2376           }
2377           s/.*/./; q'`
2378     prefix=`$as_dirname -- "$prefix" ||
2379 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2380          X"$prefix" : 'X\(//\)[^/]' \| \
2381          X"$prefix" : 'X\(//\)$' \| \
2382          X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
2383 echo X"$prefix" |
2384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2385             s//\1/
2386             q
2387           }
2388           /^X\(\/\/\)[^/].*/{
2389             s//\1/
2390             q
2391           }
2392           /^X\(\/\/\)$/{
2393             s//\1/
2394             q
2395           }
2396           /^X\(\/\).*/{
2397             s//\1/
2398             q
2399           }
2400           s/.*/./; q'`
2401   fi
2402 fi
2403
2404 ac_config_headers="$ac_config_headers config.h"
2405
2406 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2407 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2408     # Check whether --enable-maintainer-mode was given.
2409 if test "${enable_maintainer_mode+set}" = set; then
2410   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2411 else
2412   USE_MAINTAINER_MODE=no
2413 fi
2414
2415   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2416 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2417    if test $USE_MAINTAINER_MODE = yes; then
2418   MAINTAINER_MODE_TRUE=
2419   MAINTAINER_MODE_FALSE='#'
2420 else
2421   MAINTAINER_MODE_TRUE='#'
2422   MAINTAINER_MODE_FALSE=
2423 fi
2424
2425   MAINT=$MAINTAINER_MODE_TRUE
2426
2427
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 if test -n "$ac_tool_prefix"; then
2435   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$CC"; then
2443   ac_cv_prog_CC="$CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 CC=$ac_cv_prog_CC
2463 if test -n "$CC"; then
2464   { echo "$as_me:$LINENO: result: $CC" >&5
2465 echo "${ECHO_T}$CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471
2472 fi
2473 if test -z "$ac_cv_prog_CC"; then
2474   ac_ct_CC=$CC
2475   # Extract the first word of "gcc", so it can be a program name with args.
2476 set dummy gcc; ac_word=$2
2477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   if test -n "$ac_ct_CC"; then
2483   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 else
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 for as_dir in $PATH
2487 do
2488   IFS=$as_save_IFS
2489   test -z "$as_dir" && as_dir=.
2490   for ac_exec_ext in '' $ac_executable_extensions; do
2491   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492     ac_cv_prog_ac_ct_CC="gcc"
2493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2494     break 2
2495   fi
2496 done
2497 done
2498 IFS=$as_save_IFS
2499
2500 fi
2501 fi
2502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2503 if test -n "$ac_ct_CC"; then
2504   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2505 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509 fi
2510
2511   if test "x$ac_ct_CC" = x; then
2512     CC=""
2513   else
2514     case $cross_compiling:$ac_tool_warned in
2515 yes:)
2516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet.  If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&5
2519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet.  If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2522 ac_tool_warned=yes ;;
2523 esac
2524     CC=$ac_ct_CC
2525   fi
2526 else
2527   CC="$ac_cv_prog_CC"
2528 fi
2529
2530 if test -z "$CC"; then
2531           if test -n "$ac_tool_prefix"; then
2532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2544 do
2545   IFS=$as_save_IFS
2546   test -z "$as_dir" && as_dir=.
2547   for ac_exec_ext in '' $ac_executable_extensions; do
2548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549     ac_cv_prog_CC="${ac_tool_prefix}cc"
2550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551     break 2
2552   fi
2553 done
2554 done
2555 IFS=$as_save_IFS
2556
2557 fi
2558 fi
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561   { echo "$as_me:$LINENO: result: $CC" >&5
2562 echo "${ECHO_T}$CC" >&6; }
2563 else
2564   { echo "$as_me:$LINENO: result: no" >&5
2565 echo "${ECHO_T}no" >&6; }
2566 fi
2567
2568
2569   fi
2570 fi
2571 if test -z "$CC"; then
2572   # Extract the first word of "cc", so it can be a program name with args.
2573 set dummy cc; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_CC+set}" = set; then
2577   echo $ECHO_N "(cached) $ECHO_C" >&6
2578 else
2579   if test -n "$CC"; then
2580   ac_cv_prog_CC="$CC" # Let the user override the test.
2581 else
2582   ac_prog_rejected=no
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2585 do
2586   IFS=$as_save_IFS
2587   test -z "$as_dir" && as_dir=.
2588   for ac_exec_ext in '' $ac_executable_extensions; do
2589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2591        ac_prog_rejected=yes
2592        continue
2593      fi
2594     ac_cv_prog_CC="cc"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2601
2602 if test $ac_prog_rejected = yes; then
2603   # We found a bogon in the path, so make sure we never use it.
2604   set dummy $ac_cv_prog_CC
2605   shift
2606   if test $# != 0; then
2607     # We chose a different compiler from the bogus one.
2608     # However, it has the same basename, so the bogon will be chosen
2609     # first if we set CC to just the basename; use the full file name.
2610     shift
2611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612   fi
2613 fi
2614 fi
2615 fi
2616 CC=$ac_cv_prog_CC
2617 if test -n "$CC"; then
2618   { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2620 else
2621   { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2623 fi
2624
2625
2626 fi
2627 if test -z "$CC"; then
2628   if test -n "$ac_tool_prefix"; then
2629   for ac_prog in cl.exe
2630   do
2631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636   echo $ECHO_N "(cached) $ECHO_C" >&6
2637 else
2638   if test -n "$CC"; then
2639   ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2643 do
2644   IFS=$as_save_IFS
2645   test -z "$as_dir" && as_dir=.
2646   for ac_exec_ext in '' $ac_executable_extensions; do
2647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650     break 2
2651   fi
2652 done
2653 done
2654 IFS=$as_save_IFS
2655
2656 fi
2657 fi
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660   { echo "$as_me:$LINENO: result: $CC" >&5
2661 echo "${ECHO_T}$CC" >&6; }
2662 else
2663   { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2665 fi
2666
2667
2668     test -n "$CC" && break
2669   done
2670 fi
2671 if test -z "$CC"; then
2672   ac_ct_CC=$CC
2673   for ac_prog in cl.exe
2674 do
2675   # Extract the first word of "$ac_prog", so it can be a program name with args.
2676 set dummy $ac_prog; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   if test -n "$ac_ct_CC"; then
2683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2687 do
2688   IFS=$as_save_IFS
2689   test -z "$as_dir" && as_dir=.
2690   for ac_exec_ext in '' $ac_executable_extensions; do
2691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692     ac_cv_prog_ac_ct_CC="$ac_prog"
2693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697 done
2698 IFS=$as_save_IFS
2699
2700 fi
2701 fi
2702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703 if test -n "$ac_ct_CC"; then
2704   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2705 echo "${ECHO_T}$ac_ct_CC" >&6; }
2706 else
2707   { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2709 fi
2710
2711
2712   test -n "$ac_ct_CC" && break
2713 done
2714
2715   if test "x$ac_ct_CC" = x; then
2716     CC=""
2717   else
2718     case $cross_compiling:$ac_tool_warned in
2719 yes:)
2720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2721 whose name does not start with the host triplet.  If you think this
2722 configuration is useful to you, please write to autoconf@gnu.org." >&5
2723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2724 whose name does not start with the host triplet.  If you think this
2725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     CC=$ac_ct_CC
2729   fi
2730 fi
2731
2732 fi
2733
2734
2735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2736 See \`config.log' for more details." >&5
2737 echo "$as_me: error: no acceptable C compiler found in \$PATH
2738 See \`config.log' for more details." >&2;}
2739    { (exit 1); exit 1; }; }
2740
2741 # Provide some information about the compiler.
2742 echo "$as_me:$LINENO: checking for C compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (ac_try="$ac_compiler --version >&5"
2745 case "(($ac_try" in
2746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747   *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750   (eval "$ac_compiler --version >&5") 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }
2754 { (ac_try="$ac_compiler -v >&5"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2760   (eval "$ac_compiler -v >&5") 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }
2764 { (ac_try="$ac_compiler -V >&5"
2765 case "(($ac_try" in
2766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767   *) ac_try_echo=$ac_try;;
2768 esac
2769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2770   (eval "$ac_compiler -V >&5") 2>&5
2771   ac_status=$?
2772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773   (exit $ac_status); }
2774
2775 cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781
2782 int
2783 main ()
2784 {
2785
2786   ;
2787   return 0;
2788 }
2789 _ACEOF
2790 ac_clean_files_save=$ac_clean_files
2791 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2792 # Try to create an executable without -o first, disregard a.out.
2793 # It will help us diagnose broken compilers, and finding out an intuition
2794 # of exeext.
2795 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2796 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2797 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2798 #
2799 # List of possible output files, starting from the most likely.
2800 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2801 # only as a last resort.  b.out is created by i960 compilers.
2802 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2803 #
2804 # The IRIX 6 linker writes into existing files which may not be
2805 # executable, retaining their permissions.  Remove them first so a
2806 # subsequent execution test works.
2807 ac_rmfiles=
2808 for ac_file in $ac_files
2809 do
2810   case $ac_file in
2811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2812     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2813   esac
2814 done
2815 rm -f $ac_rmfiles
2816
2817 if { (ac_try="$ac_link_default"
2818 case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_link_default") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; then
2827   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830 # so that the user can short-circuit this test for compilers unknown to
2831 # Autoconf.
2832 for ac_file in $ac_files ''
2833 do
2834   test -f "$ac_file" || continue
2835   case $ac_file in
2836     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2837         ;;
2838     [ab].out )
2839         # We found the default executable, but exeext='' is most
2840         # certainly right.
2841         break;;
2842     *.* )
2843         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844         then :; else
2845            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846         fi
2847         # We set ac_cv_exeext here because the later test for it is not
2848         # safe: cross compilers may not add the suffix if given an `-o'
2849         # argument, so we may need to know it at that point already.
2850         # Even if this section looks crufty: it has the advantage of
2851         # actually working.
2852         break;;
2853     * )
2854         break;;
2855   esac
2856 done
2857 test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859 else
2860   ac_file=''
2861 fi
2862
2863 { echo "$as_me:$LINENO: result: $ac_file" >&5
2864 echo "${ECHO_T}$ac_file" >&6; }
2865 if test -z "$ac_file"; then
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: C compiler cannot create executables
2872 See \`config.log' for more details." >&2;}
2873    { (exit 77); exit 77; }; }
2874 fi
2875
2876 ac_exeext=$ac_cv_exeext
2877
2878 # Check that the compiler produces executables we can run.  If not, either
2879 # the compiler is broken, or we cross compile.
2880 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2881 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2882 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2883 # If not cross compiling, check that we can run a simple program.
2884 if test "$cross_compiling" != yes; then
2885   if { ac_try='./$ac_file'
2886   { (case "(($ac_try" in
2887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888   *) ac_try_echo=$ac_try;;
2889 esac
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891   (eval "$ac_try") 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895     cross_compiling=no
2896   else
2897     if test "$cross_compiling" = maybe; then
2898         cross_compiling=yes
2899     else
2900         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2901 If you meant to cross compile, use \`--host'.
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot run C compiled programs.
2904 If you meant to cross compile, use \`--host'.
2905 See \`config.log' for more details." >&2;}
2906    { (exit 1); exit 1; }; }
2907     fi
2908   fi
2909 fi
2910 { echo "$as_me:$LINENO: result: yes" >&5
2911 echo "${ECHO_T}yes" >&6; }
2912
2913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2914 ac_clean_files=$ac_clean_files_save
2915 # Check that the compiler produces executables we can run.  If not, either
2916 # the compiler is broken, or we cross compile.
2917 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2919 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2920 echo "${ECHO_T}$cross_compiling" >&6; }
2921
2922 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2924 if { (ac_try="$ac_link"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_link") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; then
2934   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2935 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2936 # work properly (i.e., refer to `conftest.exe'), while it won't with
2937 # `rm'.
2938 for ac_file in conftest.exe conftest conftest.*; do
2939   test -f "$ac_file" || continue
2940   case $ac_file in
2941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2942     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943           break;;
2944     * ) break;;
2945   esac
2946 done
2947 else
2948   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2951 See \`config.log' for more details." >&2;}
2952    { (exit 1); exit 1; }; }
2953 fi
2954
2955 rm -f conftest$ac_cv_exeext
2956 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2957 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2958
2959 rm -f conftest.$ac_ext
2960 EXEEXT=$ac_cv_exeext
2961 ac_exeext=$EXEEXT
2962 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2963 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2964 if test "${ac_cv_objext+set}" = set; then
2965   echo $ECHO_N "(cached) $ECHO_C" >&6
2966 else
2967   cat >conftest.$ac_ext <<_ACEOF
2968 /* confdefs.h.  */
2969 _ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h.  */
2973
2974 int
2975 main ()
2976 {
2977
2978   ;
2979   return 0;
2980 }
2981 _ACEOF
2982 rm -f conftest.o conftest.obj
2983 if { (ac_try="$ac_compile"
2984 case "(($ac_try" in
2985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986   *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989   (eval "$ac_compile") 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; then
2993   for ac_file in conftest.o conftest.obj conftest.*; do
2994   test -f "$ac_file" || continue;
2995   case $ac_file in
2996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2997     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2998        break;;
2999   esac
3000 done
3001 else
3002   echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3006 See \`config.log' for more details." >&5
3007 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3008 See \`config.log' for more details." >&2;}
3009    { (exit 1); exit 1; }; }
3010 fi
3011
3012 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3013 fi
3014 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3015 echo "${ECHO_T}$ac_cv_objext" >&6; }
3016 OBJEXT=$ac_cv_objext
3017 ac_objext=$OBJEXT
3018 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3019 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3020 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3021   echo $ECHO_N "(cached) $ECHO_C" >&6
3022 else
3023   cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h.  */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h.  */
3029
3030 int
3031 main ()
3032 {
3033 #ifndef __GNUC__
3034        choke me
3035 #endif
3036
3037   ;
3038   return 0;
3039 }
3040 _ACEOF
3041 rm -f conftest.$ac_objext
3042 if { (ac_try="$ac_compile"
3043 case "(($ac_try" in
3044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045   *) ac_try_echo=$ac_try;;
3046 esac
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048   (eval "$ac_compile") 2>conftest.er1
3049   ac_status=$?
3050   grep -v '^ *+' conftest.er1 >conftest.err
3051   rm -f conftest.er1
3052   cat conftest.err >&5
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); } && {
3055          test -z "$ac_c_werror_flag" ||
3056          test ! -s conftest.err
3057        } && test -s conftest.$ac_objext; then
3058   ac_compiler_gnu=yes
3059 else
3060   echo "$as_me: failed program was:" >&5
3061 sed 's/^/| /' conftest.$ac_ext >&5
3062
3063         ac_compiler_gnu=no
3064 fi
3065
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3068
3069 fi
3070 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3072 GCC=`test $ac_compiler_gnu = yes && echo yes`
3073 ac_test_CFLAGS=${CFLAGS+set}
3074 ac_save_CFLAGS=$CFLAGS
3075 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3077 if test "${ac_cv_prog_cc_g+set}" = set; then
3078   echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080   ac_save_c_werror_flag=$ac_c_werror_flag
3081    ac_c_werror_flag=yes
3082    ac_cv_prog_cc_g=no
3083    CFLAGS="-g"
3084    cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090
3091 int
3092 main ()
3093 {
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_c_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_cv_prog_cc_g=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         CFLAGS=""
3122       cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h.  */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h.  */
3128
3129 int
3130 main ()
3131 {
3132
3133   ;
3134   return 0;
3135 }
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_compile") 2>conftest.er1
3145   ac_status=$?
3146   grep -v '^ *+' conftest.er1 >conftest.err
3147   rm -f conftest.er1
3148   cat conftest.err >&5
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); } && {
3151          test -z "$ac_c_werror_flag" ||
3152          test ! -s conftest.err
3153        } && test -s conftest.$ac_objext; then
3154   :
3155 else
3156   echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3158
3159         ac_c_werror_flag=$ac_save_c_werror_flag
3160          CFLAGS="-g"
3161          cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167
3168 int
3169 main ()
3170 {
3171
3172   ;
3173   return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compile") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } && {
3190          test -z "$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        } && test -s conftest.$ac_objext; then
3193   ac_cv_prog_cc_g=yes
3194 else
3195   echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 fi
3203
3204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 fi
3206
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208    ac_c_werror_flag=$ac_save_c_werror_flag
3209 fi
3210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3211 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213   CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215   if test "$GCC" = yes; then
3216     CFLAGS="-g -O2"
3217   else
3218     CFLAGS="-g"
3219   fi
3220 else
3221   if test "$GCC" = yes; then
3222     CFLAGS="-O2"
3223   else
3224     CFLAGS=
3225   fi
3226 fi
3227 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3228 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_c89+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h.  */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h.  */
3240 #include <stdarg.h>
3241 #include <stdio.h>
3242 #include <sys/types.h>
3243 #include <sys/stat.h>
3244 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3245 struct buf { int x; };
3246 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3247 static char *e (p, i)
3248      char **p;
3249      int i;
3250 {
3251   return p[i];
3252 }
3253 static char *f (char * (*g) (char **, int), char **p, ...)
3254 {
3255   char *s;
3256   va_list v;
3257   va_start (v,p);
3258   s = g (p, va_arg (v,int));
3259   va_end (v);
3260   return s;
3261 }
3262
3263 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3264    function prototypes and stuff, but not '\xHH' hex character constants.
3265    These don't provoke an error unfortunately, instead are silently treated
3266    as 'x'.  The following induces an error, until -std is added to get
3267    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3268    array size at least.  It's necessary to write '\x00'==0 to get something
3269    that's true only with -std.  */
3270 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3271
3272 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3273    inside strings and character constants.  */
3274 #define FOO(x) 'x'
3275 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3276
3277 int test (int i, double x);
3278 struct s1 {int (*f) (int a);};
3279 struct s2 {int (*f) (double a);};
3280 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3281 int argc;
3282 char **argv;
3283 int
3284 main ()
3285 {
3286 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3292         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3293 do
3294   CC="$ac_save_CC $ac_arg"
3295   rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3297 case "(($ac_try" in
3298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299   *) ac_try_echo=$ac_try;;
3300 esac
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302   (eval "$ac_compile") 2>conftest.er1
3303   ac_status=$?
3304   grep -v '^ *+' conftest.er1 >conftest.err
3305   rm -f conftest.er1
3306   cat conftest.err >&5
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } && {
3309          test -z "$ac_c_werror_flag" ||
3310          test ! -s conftest.err
3311        } && test -s conftest.$ac_objext; then
3312   ac_cv_prog_cc_c89=$ac_arg
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext
3321   test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3325
3326 fi
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329   x)
3330     { echo "$as_me:$LINENO: result: none needed" >&5
3331 echo "${ECHO_T}none needed" >&6; } ;;
3332   xno)
3333     { echo "$as_me:$LINENO: result: unsupported" >&5
3334 echo "${ECHO_T}unsupported" >&6; } ;;
3335   *)
3336     CC="$CC $ac_cv_prog_cc_c89"
3337     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347 DEPDIR="${am__leading_dot}deps"
3348
3349 ac_config_commands="$ac_config_commands depfiles"
3350
3351
3352 am_make=${MAKE-make}
3353 cat > confinc << 'END'
3354 am__doit:
3355         @echo done
3356 .PHONY: am__doit
3357 END
3358 # If we don't find an include directive, just comment out the code.
3359 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3360 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3361 am__include="#"
3362 am__quote=
3363 _am_result=none
3364 # First try GNU make style include.
3365 echo "include confinc" > confmf
3366 # We grep out `Entering directory' and `Leaving directory'
3367 # messages which can occur if `w' ends up in MAKEFLAGS.
3368 # In particular we don't look at `^make:' because GNU make might
3369 # be invoked under some other name (usually "gmake"), in which
3370 # case it prints its new name instead of `make'.
3371 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3372    am__include=include
3373    am__quote=
3374    _am_result=GNU
3375 fi
3376 # Now try BSD make style include.
3377 if test "$am__include" = "#"; then
3378    echo '.include "confinc"' > confmf
3379    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3380       am__include=.include
3381       am__quote="\""
3382       _am_result=BSD
3383    fi
3384 fi
3385
3386
3387 { echo "$as_me:$LINENO: result: $_am_result" >&5
3388 echo "${ECHO_T}$_am_result" >&6; }
3389 rm -f confinc confmf
3390
3391 # Check whether --enable-dependency-tracking was given.
3392 if test "${enable_dependency_tracking+set}" = set; then
3393   enableval=$enable_dependency_tracking;
3394 fi
3395
3396 if test "x$enable_dependency_tracking" != xno; then
3397   am_depcomp="$ac_aux_dir/depcomp"
3398   AMDEPBACKSLASH='\'
3399 fi
3400  if test "x$enable_dependency_tracking" != xno; then
3401   AMDEP_TRUE=
3402   AMDEP_FALSE='#'
3403 else
3404   AMDEP_TRUE='#'
3405   AMDEP_FALSE=
3406 fi
3407
3408
3409
3410 depcc="$CC"   am_compiler_list=
3411
3412 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3413 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3414 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3418   # We make a subdir and do the tests there.  Otherwise we can end up
3419   # making bogus files that we don't know about and never remove.  For
3420   # instance it was reported that on HP-UX the gcc test will end up
3421   # making a dummy file named `D' -- because `-MD' means `put the output
3422   # in D'.
3423   mkdir conftest.dir
3424   # Copy depcomp to subdir because otherwise we won't find it if we're
3425   # using a relative directory.
3426   cp "$am_depcomp" conftest.dir
3427   cd conftest.dir
3428   # We will build objects and dependencies in a subdirectory because
3429   # it helps to detect inapplicable dependency modes.  For instance
3430   # both Tru64's cc and ICC support -MD to output dependencies as a
3431   # side effect of compilation, but ICC will put the dependencies in
3432   # the current directory while Tru64 will put them in the object
3433   # directory.
3434   mkdir sub
3435
3436   am_cv_CC_dependencies_compiler_type=none
3437   if test "$am_compiler_list" = ""; then
3438      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3439   fi
3440   for depmode in $am_compiler_list; do
3441     # Setup a source with many dependencies, because some compilers
3442     # like to wrap large dependency lists on column 80 (with \), and
3443     # we should not choose a depcomp mode which is confused by this.
3444     #
3445     # We need to recreate these files for each test, as the compiler may
3446     # overwrite some of them when testing with obscure command lines.
3447     # This happens at least with the AIX C compiler.
3448     : > sub/conftest.c
3449     for i in 1 2 3 4 5 6; do
3450       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3451       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3452       # Solaris 8's {/usr,}/bin/sh.
3453       touch sub/conftst$i.h
3454     done
3455     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3456
3457     case $depmode in
3458     nosideeffect)
3459       # after this tag, mechanisms are not by side-effect, so they'll
3460       # only be used when explicitly requested
3461       if test "x$enable_dependency_tracking" = xyes; then
3462         continue
3463       else
3464         break
3465       fi
3466       ;;
3467     none) break ;;
3468     esac
3469     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3470     # mode.  It turns out that the SunPro C++ compiler does not properly
3471     # handle `-M -o', and we need to detect this.
3472     if depmode=$depmode \
3473        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3474        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3475        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3476          >/dev/null 2>conftest.err &&
3477        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3478        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3479        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3480        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3481       # icc doesn't choke on unknown options, it will just issue warnings
3482       # or remarks (even with -Werror).  So we grep stderr for any message
3483       # that says an option was ignored or not supported.
3484       # When given -MP, icc 7.0 and 7.1 complain thusly:
3485       #   icc: Command line warning: ignoring option '-M'; no argument required
3486       # The diagnosis changed in icc 8.0:
3487       #   icc: Command line remark: option '-MP' not supported
3488       if (grep 'ignoring option' conftest.err ||
3489           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3490         am_cv_CC_dependencies_compiler_type=$depmode
3491         break
3492       fi
3493     fi
3494   done
3495
3496   cd ..
3497   rm -rf conftest.dir
3498 else
3499   am_cv_CC_dependencies_compiler_type=none
3500 fi
3501
3502 fi
3503 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3504 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3505 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3506
3507  if
3508   test "x$enable_dependency_tracking" != xno \
3509   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3510   am__fastdepCC_TRUE=
3511   am__fastdepCC_FALSE='#'
3512 else
3513   am__fastdepCC_TRUE='#'
3514   am__fastdepCC_FALSE=
3515 fi
3516
3517
3518 if test "x$CC" != xcc; then
3519   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3520 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3521 else
3522   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3523 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3524 fi
3525 set dummy $CC; ac_cc=`echo $2 |
3526                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3527 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   cat >conftest.$ac_ext <<_ACEOF
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536
3537 int
3538 main ()
3539 {
3540
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 # Make sure it works both with $CC and with simple cc.
3546 # We do the test twice because some compilers refuse to overwrite an
3547 # existing .o file with -o, though they will create one.
3548 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3549 rm -f conftest2.*
3550 if { (case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_try") 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } &&
3559    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_try") 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); };
3568 then
3569   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3570   if test "x$CC" != xcc; then
3571     # Test first that cc exists at all.
3572     if { ac_try='cc -c conftest.$ac_ext >&5'
3573   { (case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578   (eval "$ac_try") 2>&5
3579   ac_status=$?
3580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581   (exit $ac_status); }; }; then
3582       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3583       rm -f conftest2.*
3584       if { (case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_try") 2>&5
3590   ac_status=$?
3591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592   (exit $ac_status); } &&
3593          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_try") 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); };
3602       then
3603         # cc works too.
3604         :
3605       else
3606         # cc exists but doesn't like -o.
3607         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3608       fi
3609     fi
3610   fi
3611 else
3612   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3613 fi
3614 rm -f core conftest*
3615
3616 fi
3617 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3618   { echo "$as_me:$LINENO: result: yes" >&5
3619 echo "${ECHO_T}yes" >&6; }
3620 else
3621   { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3623
3624 cat >>confdefs.h <<\_ACEOF
3625 #define NO_MINUS_C_MINUS_O 1
3626 _ACEOF
3627
3628 fi
3629
3630 # FIXME: we rely on the cache variable name because
3631 # there is no other way.
3632 set dummy $CC
3633 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3634 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3635    # Losing compiler, so override with the script.
3636    # FIXME: It is wrong to rewrite CC.
3637    # But if we don't then we get into trouble of one sort or another.
3638    # A longer-term fix would be to have automake use am__CC in this case,
3639    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3640    CC="$am_aux_dir/compile $CC"
3641 fi
3642
3643
3644
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3653 # On Suns, sometimes $CPP names a directory.
3654 if test -n "$CPP" && test -d "$CPP"; then
3655   CPP=
3656 fi
3657 if test -z "$CPP"; then
3658   if test "${ac_cv_prog_CPP+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661       # Double quotes because CPP needs to be expanded
3662     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3663     do
3664       ac_preproc_ok=false
3665 for ac_c_preproc_warn_flag in '' yes
3666 do
3667   # Use a header file that comes with gcc, so configuring glibc
3668   # with a fresh cross-compiler works.
3669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3670   # <limits.h> exists even on freestanding compilers.
3671   # On the NeXT, cc -E runs the code through the compiler's parser,
3672   # not just through cpp. "Syntax error" is here to catch this case.
3673   cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h.  */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h.  */
3679 #ifdef __STDC__
3680 # include <limits.h>
3681 #else
3682 # include <assert.h>
3683 #endif
3684                      Syntax error
3685 _ACEOF
3686 if { (ac_try="$ac_cpp conftest.$ac_ext"
3687 case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693   ac_status=$?
3694   grep -v '^ *+' conftest.er1 >conftest.err
3695   rm -f conftest.er1
3696   cat conftest.err >&5
3697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698   (exit $ac_status); } >/dev/null && {
3699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3700          test ! -s conftest.err
3701        }; then
3702   :
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707   # Broken: fails on valid input.
3708 continue
3709 fi
3710
3711 rm -f conftest.err conftest.$ac_ext
3712
3713   # OK, works on sane cases.  Now check whether nonexistent headers
3714   # can be detected and how.
3715   cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } >/dev/null && {
3736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737          test ! -s conftest.err
3738        }; then
3739   # Broken: success on invalid input.
3740 continue
3741 else
3742   echo "$as_me: failed program was:" >&5
3743 sed 's/^/| /' conftest.$ac_ext >&5
3744
3745   # Passes both tests.
3746 ac_preproc_ok=:
3747 break
3748 fi
3749
3750 rm -f conftest.err conftest.$ac_ext
3751
3752 done
3753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3754 rm -f conftest.err conftest.$ac_ext
3755 if $ac_preproc_ok; then
3756   break
3757 fi
3758
3759     done
3760     ac_cv_prog_CPP=$CPP
3761
3762 fi
3763   CPP=$ac_cv_prog_CPP
3764 else
3765   ac_cv_prog_CPP=$CPP
3766 fi
3767 { echo "$as_me:$LINENO: result: $CPP" >&5
3768 echo "${ECHO_T}$CPP" >&6; }
3769 ac_preproc_ok=false
3770 for ac_c_preproc_warn_flag in '' yes
3771 do
3772   # Use a header file that comes with gcc, so configuring glibc
3773   # with a fresh cross-compiler works.
3774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775   # <limits.h> exists even on freestanding compilers.
3776   # On the NeXT, cc -E runs the code through the compiler's parser,
3777   # not just through cpp. "Syntax error" is here to catch this case.
3778   cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784 #ifdef __STDC__
3785 # include <limits.h>
3786 #else
3787 # include <assert.h>
3788 #endif
3789                      Syntax error
3790 _ACEOF
3791 if { (ac_try="$ac_cpp conftest.$ac_ext"
3792 case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798   ac_status=$?
3799   grep -v '^ *+' conftest.er1 >conftest.err
3800   rm -f conftest.er1
3801   cat conftest.err >&5
3802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803   (exit $ac_status); } >/dev/null && {
3804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3805          test ! -s conftest.err
3806        }; then
3807   :
3808 else
3809   echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3811
3812   # Broken: fails on valid input.
3813 continue
3814 fi
3815
3816 rm -f conftest.err conftest.$ac_ext
3817
3818   # OK, works on sane cases.  Now check whether nonexistent headers
3819   # can be detected and how.
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 #include <ac_nonexistent.h>
3827 _ACEOF
3828 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 case "(($ac_try" in
3830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831   *) ac_try_echo=$ac_try;;
3832 esac
3833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835   ac_status=$?
3836   grep -v '^ *+' conftest.er1 >conftest.err
3837   rm -f conftest.er1
3838   cat conftest.err >&5
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); } >/dev/null && {
3841          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3842          test ! -s conftest.err
3843        }; then
3844   # Broken: success on invalid input.
3845 continue
3846 else
3847   echo "$as_me: failed program was:" >&5
3848 sed 's/^/| /' conftest.$ac_ext >&5
3849
3850   # Passes both tests.
3851 ac_preproc_ok=:
3852 break
3853 fi
3854
3855 rm -f conftest.err conftest.$ac_ext
3856
3857 done
3858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3859 rm -f conftest.err conftest.$ac_ext
3860 if $ac_preproc_ok; then
3861   :
3862 else
3863   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details." >&5
3865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3866 See \`config.log' for more details." >&2;}
3867    { (exit 1); exit 1; }; }
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880   echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882   # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 do
3893   IFS=$as_save_IFS
3894   test -z "$as_dir" && as_dir=.
3895   for ac_prog in grep ggrep; do
3896   for ac_exec_ext in '' $ac_executable_extensions; do
3897     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3899     # Check for GNU ac_path_GREP and select it if it is found.
3900   # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3902 *GNU*)
3903   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904 *)
3905   ac_count=0
3906   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907   while :
3908   do
3909     cat "conftest.in" "conftest.in" >"conftest.tmp"
3910     mv "conftest.tmp" "conftest.in"
3911     cp "conftest.in" "conftest.nl"
3912     echo 'GREP' >> "conftest.nl"
3913     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915     ac_count=`expr $ac_count + 1`
3916     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917       # Best one so far, save it but keep looking for a better one
3918       ac_cv_path_GREP="$ac_path_GREP"
3919       ac_path_GREP_max=$ac_count
3920     fi
3921     # 10*(2^10) chars as input seems more than enough
3922     test $ac_count -gt 10 && break
3923   done
3924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 esac
3926
3927
3928     $ac_path_GREP_found && break 3
3929   done
3930 done
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935
3936 fi
3937
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942    { (exit 1); exit 1; }; }
3943 fi
3944
3945 else
3946   ac_cv_path_GREP=$GREP
3947 fi
3948
3949
3950 fi
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953  GREP="$ac_cv_path_GREP"
3954
3955
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962    then ac_cv_path_EGREP="$GREP -E"
3963    else
3964      # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974 do
3975   IFS=$as_save_IFS
3976   test -z "$as_dir" && as_dir=.
3977   for ac_prog in egrep; do
3978   for ac_exec_ext in '' $ac_executable_extensions; do
3979     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3981     # Check for GNU ac_path_EGREP and select it if it is found.
3982   # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3984 *GNU*)
3985   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986 *)
3987   ac_count=0
3988   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3989   while :
3990   do
3991     cat "conftest.in" "conftest.in" >"conftest.tmp"
3992     mv "conftest.tmp" "conftest.in"
3993     cp "conftest.in" "conftest.nl"
3994     echo 'EGREP' >> "conftest.nl"
3995     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997     ac_count=`expr $ac_count + 1`
3998     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999       # Best one so far, save it but keep looking for a better one
4000       ac_cv_path_EGREP="$ac_path_EGREP"
4001       ac_path_EGREP_max=$ac_count
4002     fi
4003     # 10*(2^10) chars as input seems more than enough
4004     test $ac_count -gt 10 && break
4005   done
4006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007 esac
4008
4009
4010     $ac_path_EGREP_found && break 3
4011   done
4012 done
4013
4014 done
4015 IFS=$as_save_IFS
4016
4017
4018 fi
4019
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 else
4028   ac_cv_path_EGREP=$EGREP
4029 fi
4030
4031
4032    fi
4033 fi
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036  EGREP="$ac_cv_path_EGREP"
4037
4038
4039
4040 { echo "$as_me:$LINENO: checking for AIX" >&5
4041 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h.  */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h.  */
4048 #ifdef _AIX
4049   yes
4050 #endif
4051
4052 _ACEOF
4053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4054   $EGREP "yes" >/dev/null 2>&1; then
4055   { echo "$as_me:$LINENO: result: yes" >&5
4056 echo "${ECHO_T}yes" >&6; }
4057 cat >>confdefs.h <<\_ACEOF
4058 #define _ALL_SOURCE 1
4059 _ACEOF
4060
4061 else
4062   { echo "$as_me:$LINENO: result: no" >&5
4063 echo "${ECHO_T}no" >&6; }
4064 fi
4065 rm -f conftest*
4066
4067
4068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then
4071   echo $ECHO_N "(cached) $ECHO_C" >&6
4072 else
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <stdlib.h>
4080 #include <stdarg.h>
4081 #include <string.h>
4082 #include <float.h>
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (ac_try="$ac_compile"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099   (eval "$ac_compile") 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } && {
4106          test -z "$ac_c_werror_flag" ||
4107          test ! -s conftest.err
4108        } && test -s conftest.$ac_objext; then
4109   ac_cv_header_stdc=yes
4110 else
4111   echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114         ac_cv_header_stdc=no
4115 fi
4116
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118
4119 if test $ac_cv_header_stdc = yes; then
4120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4121   cat >conftest.$ac_ext <<_ACEOF
4122 /* confdefs.h.  */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h.  */
4127 #include <string.h>
4128
4129 _ACEOF
4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4131   $EGREP "memchr" >/dev/null 2>&1; then
4132   :
4133 else
4134   ac_cv_header_stdc=no
4135 fi
4136 rm -f conftest*
4137
4138 fi
4139
4140 if test $ac_cv_header_stdc = yes; then
4141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4142   cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h.  */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h.  */
4148 #include <stdlib.h>
4149
4150 _ACEOF
4151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4152   $EGREP "free" >/dev/null 2>&1; then
4153   :
4154 else
4155   ac_cv_header_stdc=no
4156 fi
4157 rm -f conftest*
4158
4159 fi
4160
4161 if test $ac_cv_header_stdc = yes; then
4162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4163   if test "$cross_compiling" = yes; then
4164   :
4165 else
4166   cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172 #include <ctype.h>
4173 #include <stdlib.h>
4174 #if ((' ' & 0x0FF) == 0x020)
4175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4177 #else
4178 # define ISLOWER(c) \
4179                    (('a' <= (c) && (c) <= 'i') \
4180                      || ('j' <= (c) && (c) <= 'r') \
4181                      || ('s' <= (c) && (c) <= 'z'))
4182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4183 #endif
4184
4185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4186 int
4187 main ()
4188 {
4189   int i;
4190   for (i = 0; i < 256; i++)
4191     if (XOR (islower (i), ISLOWER (i))
4192         || toupper (i) != TOUPPER (i))
4193       return 2;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest$ac_exeext
4198 if { (ac_try="$ac_link"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_link") 2>&5
4205   ac_status=$?
4206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4208   { (case "(($ac_try" in
4209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210   *) ac_try_echo=$ac_try;;
4211 esac
4212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213   (eval "$ac_try") 2>&5
4214   ac_status=$?
4215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216   (exit $ac_status); }; }; then
4217   :
4218 else
4219   echo "$as_me: program exited with status $ac_status" >&5
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 ( exit $ac_status )
4224 ac_cv_header_stdc=no
4225 fi
4226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4227 fi
4228
4229
4230 fi
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4233 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4234 if test $ac_cv_header_stdc = yes; then
4235
4236 cat >>confdefs.h <<\_ACEOF
4237 #define STDC_HEADERS 1
4238 _ACEOF
4239
4240 fi
4241
4242 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4253                   inttypes.h stdint.h unistd.h
4254 do
4255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4259   echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261   cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h.  */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h.  */
4267 $ac_includes_default
4268
4269 #include <$ac_header>
4270 _ACEOF
4271 rm -f conftest.$ac_objext
4272 if { (ac_try="$ac_compile"
4273 case "(($ac_try" in
4274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275   *) ac_try_echo=$ac_try;;
4276 esac
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278   (eval "$ac_compile") 2>conftest.er1
4279   ac_status=$?
4280   grep -v '^ *+' conftest.er1 >conftest.err
4281   rm -f conftest.er1
4282   cat conftest.err >&5
4283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284   (exit $ac_status); } && {
4285          test -z "$ac_c_werror_flag" ||
4286          test ! -s conftest.err
4287        } && test -s conftest.$ac_objext; then
4288   eval "$as_ac_Header=yes"
4289 else
4290   echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293         eval "$as_ac_Header=no"
4294 fi
4295
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 fi
4298 ac_res=`eval echo '${'$as_ac_Header'}'`
4299                { echo "$as_me:$LINENO: result: $ac_res" >&5
4300 echo "${ECHO_T}$ac_res" >&6; }
4301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4302   cat >>confdefs.h <<_ACEOF
4303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4304 _ACEOF
4305
4306 fi
4307
4308 done
4309
4310
4311 if test "${ac_cv_header_minix_config_h+set}" = set; then
4312   { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4313 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4314 if test "${ac_cv_header_minix_config_h+set}" = set; then
4315   echo $ECHO_N "(cached) $ECHO_C" >&6
4316 fi
4317 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4318 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4319 else
4320   # Is the header compilable?
4321 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4322 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4323 cat >conftest.$ac_ext <<_ACEOF
4324 /* confdefs.h.  */
4325 _ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h.  */
4329 $ac_includes_default
4330 #include <minix/config.h>
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (ac_try="$ac_compile"
4334 case "(($ac_try" in
4335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336   *) ac_try_echo=$ac_try;;
4337 esac
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339   (eval "$ac_compile") 2>conftest.er1
4340   ac_status=$?
4341   grep -v '^ *+' conftest.er1 >conftest.err
4342   rm -f conftest.er1
4343   cat conftest.err >&5
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); } && {
4346          test -z "$ac_c_werror_flag" ||
4347          test ! -s conftest.err
4348        } && test -s conftest.$ac_objext; then
4349   ac_header_compiler=yes
4350 else
4351   echo "$as_me: failed program was:" >&5
4352 sed 's/^/| /' conftest.$ac_ext >&5
4353
4354         ac_header_compiler=no
4355 fi
4356
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4359 echo "${ECHO_T}$ac_header_compiler" >&6; }
4360
4361 # Is the header present?
4362 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4363 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4364 cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #include <minix/config.h>
4371 _ACEOF
4372 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379   ac_status=$?
4380   grep -v '^ *+' conftest.er1 >conftest.err
4381   rm -f conftest.er1
4382   cat conftest.err >&5
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } >/dev/null && {
4385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386          test ! -s conftest.err
4387        }; then
4388   ac_header_preproc=yes
4389 else
4390   echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4392
4393   ac_header_preproc=no
4394 fi
4395
4396 rm -f conftest.err conftest.$ac_ext
4397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4398 echo "${ECHO_T}$ac_header_preproc" >&6; }
4399
4400 # So?  What about this header?
4401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4402   yes:no: )
4403     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4404 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4405     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4406 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4407     ac_header_preproc=yes
4408     ;;
4409   no:yes:* )
4410     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4411 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4412     { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4413 echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4414     { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4415 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4416     { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4417 echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4418     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4419 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4420     { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4421 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4422     ( cat <<\_ASBOX
4423 ## --------------------------------- ##
4424 ## Report this to bug-cvs@nongnu.org ##
4425 ## --------------------------------- ##
4426 _ASBOX
4427      ) | sed "s/^/$as_me: WARNING:     /" >&2
4428     ;;
4429 esac
4430 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4431 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4432 if test "${ac_cv_header_minix_config_h+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   ac_cv_header_minix_config_h=$ac_header_preproc
4436 fi
4437 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4438 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4439
4440 fi
4441 if test $ac_cv_header_minix_config_h = yes; then
4442   MINIX=yes
4443 else
4444   MINIX=
4445 fi
4446
4447
4448 if test "$MINIX" = yes; then
4449
4450 cat >>confdefs.h <<\_ACEOF
4451 #define _POSIX_SOURCE 1
4452 _ACEOF
4453
4454
4455 cat >>confdefs.h <<\_ACEOF
4456 #define _POSIX_1_SOURCE 2
4457 _ACEOF
4458
4459
4460 cat >>confdefs.h <<\_ACEOF
4461 #define _MINIX 1
4462 _ACEOF
4463
4464 fi
4465
4466
4467 # Find the posix library needed on INTERACTIVE UNIX (ISC)
4468 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4469 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4470 if test "${ac_cv_search_strerror+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   ac_func_search_save_LIBS=$LIBS
4474 cat >conftest.$ac_ext <<_ACEOF
4475 /* confdefs.h.  */
4476 _ACEOF
4477 cat confdefs.h >>conftest.$ac_ext
4478 cat >>conftest.$ac_ext <<_ACEOF
4479 /* end confdefs.h.  */
4480
4481 /* Override any GCC internal prototype to avoid an error.
4482    Use char because int might match the return type of a GCC
4483    builtin and then its argument prototype would still apply.  */
4484 #ifdef __cplusplus
4485 extern "C"
4486 #endif
4487 char strerror ();
4488 int
4489 main ()
4490 {
4491 return strerror ();
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 for ac_lib in '' cposix; do
4497   if test -z "$ac_lib"; then
4498     ac_res="none required"
4499   else
4500     ac_res=-l$ac_lib
4501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4502   fi
4503   rm -f conftest.$ac_objext conftest$ac_exeext
4504 if { (ac_try="$ac_link"
4505 case "(($ac_try" in
4506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507   *) ac_try_echo=$ac_try;;
4508 esac
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510   (eval "$ac_link") 2>conftest.er1
4511   ac_status=$?
4512   grep -v '^ *+' conftest.er1 >conftest.err
4513   rm -f conftest.er1
4514   cat conftest.err >&5
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); } && {
4517          test -z "$ac_c_werror_flag" ||
4518          test ! -s conftest.err
4519        } && test -s conftest$ac_exeext &&
4520        $as_test_x conftest$ac_exeext; then
4521   ac_cv_search_strerror=$ac_res
4522 else
4523   echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526
4527 fi
4528
4529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4530       conftest$ac_exeext
4531   if test "${ac_cv_search_strerror+set}" = set; then
4532   break
4533 fi
4534 done
4535 if test "${ac_cv_search_strerror+set}" = set; then
4536   :
4537 else
4538   ac_cv_search_strerror=no
4539 fi
4540 rm conftest.$ac_ext
4541 LIBS=$ac_func_search_save_LIBS
4542 fi
4543 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4544 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4545 ac_res=$ac_cv_search_strerror
4546 if test "$ac_res" != no; then
4547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4548
4549 fi
4550
4551
4552
4553 if test -n "$ac_tool_prefix"; then
4554   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4555 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_RANLIB+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$RANLIB"; then
4562   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 RANLIB=$ac_cv_prog_RANLIB
4582 if test -n "$RANLIB"; then
4583   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4584 echo "${ECHO_T}$RANLIB" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591 fi
4592 if test -z "$ac_cv_prog_RANLIB"; then
4593   ac_ct_RANLIB=$RANLIB
4594   # Extract the first word of "ranlib", so it can be a program name with args.
4595 set dummy ranlib; ac_word=$2
4596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4598 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   if test -n "$ac_ct_RANLIB"; then
4602   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_prog_ac_ct_RANLIB="ranlib"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4622 if test -n "$ac_ct_RANLIB"; then
4623   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4624 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4625 else
4626   { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628 fi
4629
4630   if test "x$ac_ct_RANLIB" = x; then
4631     RANLIB=":"
4632   else
4633     case $cross_compiling:$ac_tool_warned in
4634 yes:)
4635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4636 whose name does not start with the host triplet.  If you think this
4637 configuration is useful to you, please write to autoconf@gnu.org." >&5
4638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4639 whose name does not start with the host triplet.  If you think this
4640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643     RANLIB=$ac_ct_RANLIB
4644   fi
4645 else
4646   RANLIB="$ac_cv_prog_RANLIB"
4647 fi
4648
4649 for ac_prog in 'bison -y' byacc
4650 do
4651   # Extract the first word of "$ac_prog", so it can be a program name with args.
4652 set dummy $ac_prog; ac_word=$2
4653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655 if test "${ac_cv_prog_YACC+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -n "$YACC"; then
4659   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4660 else
4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_exec_ext in '' $ac_executable_extensions; do
4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4668     ac_cv_prog_YACC="$ac_prog"
4669     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670     break 2
4671   fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi
4677 fi
4678 YACC=$ac_cv_prog_YACC
4679 if test -n "$YACC"; then
4680   { echo "$as_me:$LINENO: result: $YACC" >&5
4681 echo "${ECHO_T}$YACC" >&6; }
4682 else
4683   { echo "$as_me:$LINENO: result: no" >&5
4684 echo "${ECHO_T}no" >&6; }
4685 fi
4686
4687
4688   test -n "$YACC" && break
4689 done
4690 test -n "$YACC" || YACC="yacc"
4691
4692 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4693 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4694 LN_S=$as_ln_s
4695 if test "$LN_S" = "ln -s"; then
4696   { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4698 else
4699   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4700 echo "${ECHO_T}no, using $LN_S" >&6; }
4701 fi
4702
4703
4704
4705 # Extract the first word of "perl", so it can be a program name with args.
4706 set dummy perl; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_path_PERL+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   case $PERL in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4733   ;;
4734 esac
4735 fi
4736 PERL=$ac_cv_path_PERL
4737 if test -n "$PERL"; then
4738   { echo "$as_me:$LINENO: result: $PERL" >&5
4739 echo "${ECHO_T}$PERL" >&6; }
4740 else
4741   { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4743 fi
4744
4745
4746 # Extract the first word of "csh", so it can be a program name with args.
4747 set dummy csh; ac_word=$2
4748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750 if test "${ac_cv_path_CSH+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   case $CSH in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
4766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
4774   ;;
4775 esac
4776 fi
4777 CSH=$ac_cv_path_CSH
4778 if test -n "$CSH"; then
4779   { echo "$as_me:$LINENO: result: $CSH" >&5
4780 echo "${ECHO_T}$CSH" >&6; }
4781 else
4782   { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 fi
4785
4786
4787 # for contrib/rcs2log.sh & src/cvsbug.in.
4788 # Extract the first word of "mktemp", so it can be a program name with args.
4789 set dummy mktemp; ac_word=$2
4790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4792 if test "${ac_cv_path_MKTEMP+set}" = set; then
4793   echo $ECHO_N "(cached) $ECHO_C" >&6
4794 else
4795   case $MKTEMP in
4796   [\\/]* | ?:[\\/]*)
4797   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
4798   ;;
4799   *)
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805   for ac_exec_ext in '' $ac_executable_extensions; do
4806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
4808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809     break 2
4810   fi
4811 done
4812 done
4813 IFS=$as_save_IFS
4814
4815   test -z "$ac_cv_path_MKTEMP" && ac_cv_path_MKTEMP="mktemp"
4816   ;;
4817 esac
4818 fi
4819 MKTEMP=$ac_cv_path_MKTEMP
4820 if test -n "$MKTEMP"; then
4821   { echo "$as_me:$LINENO: result: $MKTEMP" >&5
4822 echo "${ECHO_T}$MKTEMP" >&6; }
4823 else
4824   { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4826 fi
4827
4828
4829 if test x"$MKTEMP" = xmktemp; then
4830         MKTEMP_SH_FUNCTION=$srcdir/mktemp.sh
4831 else
4832         MKTEMP_SH_FUNCTION=/dev/null
4833 fi
4834
4835 # for src/cvsbug.in
4836 # Extract the first word of "sendmail", so it can be a program name with args.
4837 set dummy sendmail; ac_word=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   case $SENDMAIL in
4844   [\\/]* | ?:[\\/]*)
4845   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4846   ;;
4847   *)
4848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 as_dummy="$PATH:/usr/sbin:/usr/lib"
4850 for as_dir in $as_dummy
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854   for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861 done
4862 IFS=$as_save_IFS
4863
4864   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="no"
4865   ;;
4866 esac
4867 fi
4868 SENDMAIL=$ac_cv_path_SENDMAIL
4869 if test -n "$SENDMAIL"; then
4870   { echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4871 echo "${ECHO_T}$SENDMAIL" >&6; }
4872 else
4873   { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4875 fi
4876
4877
4878 # For diff/util.c
4879 # Extract the first word of "pr", so it can be a program name with args.
4880 set dummy pr; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_PR+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $PR in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_PR="$PR" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
4907   ;;
4908 esac
4909 fi
4910 PR=$ac_cv_path_PR
4911 if test -n "$PR"; then
4912   { echo "$as_me:$LINENO: result: $PR" >&5
4913 echo "${ECHO_T}$PR" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 if test x"$PR" != xno; then
4921
4922 cat >>confdefs.h <<_ACEOF
4923 #define PR_PROGRAM "$PR"
4924 _ACEOF
4925
4926 fi
4927
4928 missing_dir=`cd $ac_aux_dir && pwd`
4929 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
4930 for ac_prog in groff roff
4931 do
4932   # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_ROFF+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   case $ROFF in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $glocs
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959   ;;
4960 esac
4961 fi
4962 ROFF=$ac_cv_path_ROFF
4963 if test -n "$ROFF"; then
4964   { echo "$as_me:$LINENO: result: $ROFF" >&5
4965 echo "${ECHO_T}$ROFF" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972   test -n "$ROFF" && break
4973 done
4974 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
4975
4976 # Extract the first word of "ps2pdf", so it can be a program name with args.
4977 set dummy ps2pdf; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_PS2PDF+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $PS2PDF in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
5004   ;;
5005 esac
5006 fi
5007 PS2PDF=$ac_cv_path_PS2PDF
5008 if test -n "$PS2PDF"; then
5009   { echo "$as_me:$LINENO: result: $PS2PDF" >&5
5010 echo "${ECHO_T}$PS2PDF" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017 # Extract the first word of "texi2dvi", so it can be a program name with args.
5018 set dummy texi2dvi; ac_word=$2
5019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5021 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
5022   echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024   case $TEXI2DVI in
5025   [\\/]* | ?:[\\/]*)
5026   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
5027   ;;
5028   *)
5029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032   IFS=$as_save_IFS
5033   test -z "$as_dir" && as_dir=.
5034   for ac_exec_ext in '' $ac_executable_extensions; do
5035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5036     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
5037     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038     break 2
5039   fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
5045   ;;
5046 esac
5047 fi
5048 TEXI2DVI=$ac_cv_path_TEXI2DVI
5049 if test -n "$TEXI2DVI"; then
5050   { echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
5051 echo "${ECHO_T}$TEXI2DVI" >&6; }
5052 else
5053   { echo "$as_me:$LINENO: result: no" >&5
5054 echo "${ECHO_T}no" >&6; }
5055 fi
5056
5057
5058
5059 { echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
5060 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6; }
5061 if test "${ac_cv_sys_interpreter+set}" = set; then
5062   echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064   echo '#! /bin/cat
5065 exit 69
5066 ' >conftest
5067 chmod u+x conftest
5068 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
5069 if test $? -ne 69; then
5070    ac_cv_sys_interpreter=yes
5071 else
5072    ac_cv_sys_interpreter=no
5073 fi
5074 rm -f conftest
5075 fi
5076 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
5077 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
5078 interpval=$ac_cv_sys_interpreter
5079
5080 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
5081   # silly trick to avoid problems in AC macros...
5082   ac_msg='perl scripts using #! may not be invoked properly'
5083   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
5084 echo "$as_me: WARNING: $ac_msg" >&2;}
5085 fi
5086
5087 # BSD's logo is a devil for a reason, hey?
5088 { echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
5089 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6; }
5090 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   if test ! -d ac_test_dir ; then
5094         { ac_try='mkdir ac_test_dir'
5095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096   (eval $ac_try) 2>&5
5097   ac_status=$?
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); }; }
5100 fi
5101 cat >conftestmake <<EOF
5102 VPATH = ac_test_dir
5103 ac_test_target: ac_test_dep
5104         echo BSD VPATH bug present >&2
5105 ac_test_dep: ac_test_dep_dep
5106 EOF
5107 touch ac_test_dir/ac_test_dep_dep
5108 touch ac_test_dir/ac_test_dep
5109 touch ac_test_target
5110 # Don't know why, but the following test doesn't work under FreeBSD 4.2
5111 # without this sleep command
5112 sleep 1
5113 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
5114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115   (eval $ac_try) 2>&5
5116   ac_status=$?
5117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118   (exit $ac_status); }; } ; then
5119         ccvs_cv_bsd_make_vpath_bug=yes
5120 else
5121         ccvs_cv_bsd_make_vpath_bug=no
5122 fi
5123 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
5124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125   (eval $ac_try) 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }
5129 fi
5130 { echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
5131 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6; }
5132 # We also don't need to worry about the bug when $srcdir = $builddir
5133  if \
5134                 test $ccvs_cv_bsd_make_vpath_bug = no \
5135                 || test $srcdir = .; then
5136   MAKE_TARGETS_IN_VPATH_TRUE=
5137   MAKE_TARGETS_IN_VPATH_FALSE='#'
5138 else
5139   MAKE_TARGETS_IN_VPATH_TRUE='#'
5140   MAKE_TARGETS_IN_VPATH_FALSE=
5141 fi
5142
5143
5144
5145
5146
5147
5148
5149 ac_header_dirent=no
5150 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5151   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5152 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5153 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <sys/types.h>
5164 #include <$ac_hdr>
5165
5166 int
5167 main ()
5168 {
5169 if ((DIR *) 0)
5170 return 0;
5171   ;
5172   return 0;
5173 }
5174 _ACEOF
5175 rm -f conftest.$ac_objext
5176 if { (ac_try="$ac_compile"
5177 case "(($ac_try" in
5178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179   *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182   (eval "$ac_compile") 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } && {
5189          test -z "$ac_c_werror_flag" ||
5190          test ! -s conftest.err
5191        } && test -s conftest.$ac_objext; then
5192   eval "$as_ac_Header=yes"
5193 else
5194   echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197         eval "$as_ac_Header=no"
5198 fi
5199
5200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 fi
5202 ac_res=`eval echo '${'$as_ac_Header'}'`
5203                { echo "$as_me:$LINENO: result: $ac_res" >&5
5204 echo "${ECHO_T}$ac_res" >&6; }
5205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206   cat >>confdefs.h <<_ACEOF
5207 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5208 _ACEOF
5209
5210 ac_header_dirent=$ac_hdr; break
5211 fi
5212
5213 done
5214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5215 if test $ac_header_dirent = dirent.h; then
5216   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5218 if test "${ac_cv_search_opendir+set}" = set; then
5219   echo $ECHO_N "(cached) $ECHO_C" >&6
5220 else
5221   ac_func_search_save_LIBS=$LIBS
5222 cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228
5229 /* Override any GCC internal prototype to avoid an error.
5230    Use char because int might match the return type of a GCC
5231    builtin and then its argument prototype would still apply.  */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 char opendir ();
5236 int
5237 main ()
5238 {
5239 return opendir ();
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 for ac_lib in '' dir; do
5245   if test -z "$ac_lib"; then
5246     ac_res="none required"
5247   else
5248     ac_res=-l$ac_lib
5249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5250   fi
5251   rm -f conftest.$ac_objext conftest$ac_exeext
5252 if { (ac_try="$ac_link"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258   (eval "$ac_link") 2>conftest.er1
5259   ac_status=$?
5260   grep -v '^ *+' conftest.er1 >conftest.err
5261   rm -f conftest.er1
5262   cat conftest.err >&5
5263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264   (exit $ac_status); } && {
5265          test -z "$ac_c_werror_flag" ||
5266          test ! -s conftest.err
5267        } && test -s conftest$ac_exeext &&
5268        $as_test_x conftest$ac_exeext; then
5269   ac_cv_search_opendir=$ac_res
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274
5275 fi
5276
5277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5278       conftest$ac_exeext
5279   if test "${ac_cv_search_opendir+set}" = set; then
5280   break
5281 fi
5282 done
5283 if test "${ac_cv_search_opendir+set}" = set; then
5284   :
5285 else
5286   ac_cv_search_opendir=no
5287 fi
5288 rm conftest.$ac_ext
5289 LIBS=$ac_func_search_save_LIBS
5290 fi
5291 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5292 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5293 ac_res=$ac_cv_search_opendir
5294 if test "$ac_res" != no; then
5295   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5296
5297 fi
5298
5299 else
5300   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5301 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5302 if test "${ac_cv_search_opendir+set}" = set; then
5303   echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305   ac_func_search_save_LIBS=$LIBS
5306 cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312
5313 /* Override any GCC internal prototype to avoid an error.
5314    Use char because int might match the return type of a GCC
5315    builtin and then its argument prototype would still apply.  */
5316 #ifdef __cplusplus
5317 extern "C"
5318 #endif
5319 char opendir ();
5320 int
5321 main ()
5322 {
5323 return opendir ();
5324   ;
5325   return 0;
5326 }
5327 _ACEOF
5328 for ac_lib in '' x; do
5329   if test -z "$ac_lib"; then
5330     ac_res="none required"
5331   else
5332     ac_res=-l$ac_lib
5333     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5334   fi
5335   rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (ac_try="$ac_link"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_link") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } && {
5349          test -z "$ac_c_werror_flag" ||
5350          test ! -s conftest.err
5351        } && test -s conftest$ac_exeext &&
5352        $as_test_x conftest$ac_exeext; then
5353   ac_cv_search_opendir=$ac_res
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358
5359 fi
5360
5361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5362       conftest$ac_exeext
5363   if test "${ac_cv_search_opendir+set}" = set; then
5364   break
5365 fi
5366 done
5367 if test "${ac_cv_search_opendir+set}" = set; then
5368   :
5369 else
5370   ac_cv_search_opendir=no
5371 fi
5372 rm conftest.$ac_ext
5373 LIBS=$ac_func_search_save_LIBS
5374 fi
5375 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5376 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5377 ac_res=$ac_cv_search_opendir
5378 if test "$ac_res" != no; then
5379   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5380
5381 fi
5382
5383 fi
5384
5385 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5386 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5387 if test "${ac_cv_header_stdc+set}" = set; then
5388   echo $ECHO_N "(cached) $ECHO_C" >&6
5389 else
5390   cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h.  */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h.  */
5396 #include <stdlib.h>
5397 #include <stdarg.h>
5398 #include <string.h>
5399 #include <float.h>
5400
5401 int
5402 main ()
5403 {
5404
5405   ;
5406   return 0;
5407 }
5408 _ACEOF
5409 rm -f conftest.$ac_objext
5410 if { (ac_try="$ac_compile"
5411 case "(($ac_try" in
5412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413   *) ac_try_echo=$ac_try;;
5414 esac
5415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416   (eval "$ac_compile") 2>conftest.er1
5417   ac_status=$?
5418   grep -v '^ *+' conftest.er1 >conftest.err
5419   rm -f conftest.er1
5420   cat conftest.err >&5
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } && {
5423          test -z "$ac_c_werror_flag" ||
5424          test ! -s conftest.err
5425        } && test -s conftest.$ac_objext; then
5426   ac_cv_header_stdc=yes
5427 else
5428   echo "$as_me: failed program was:" >&5
5429 sed 's/^/| /' conftest.$ac_ext >&5
5430
5431         ac_cv_header_stdc=no
5432 fi
5433
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435
5436 if test $ac_cv_header_stdc = yes; then
5437   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5438   cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #include <string.h>
5445
5446 _ACEOF
5447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5448   $EGREP "memchr" >/dev/null 2>&1; then
5449   :
5450 else
5451   ac_cv_header_stdc=no
5452 fi
5453 rm -f conftest*
5454
5455 fi
5456
5457 if test $ac_cv_header_stdc = yes; then
5458   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5459   cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h.  */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h.  */
5465 #include <stdlib.h>
5466
5467 _ACEOF
5468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5469   $EGREP "free" >/dev/null 2>&1; then
5470   :
5471 else
5472   ac_cv_header_stdc=no
5473 fi
5474 rm -f conftest*
5475
5476 fi
5477
5478 if test $ac_cv_header_stdc = yes; then
5479   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5480   if test "$cross_compiling" = yes; then
5481   :
5482 else
5483   cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 #include <ctype.h>
5490 #include <stdlib.h>
5491 #if ((' ' & 0x0FF) == 0x020)
5492 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5493 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5494 #else
5495 # define ISLOWER(c) \
5496                    (('a' <= (c) && (c) <= 'i') \
5497                      || ('j' <= (c) && (c) <= 'r') \
5498                      || ('s' <= (c) && (c) <= 'z'))
5499 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5500 #endif
5501
5502 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5503 int
5504 main ()
5505 {
5506   int i;
5507   for (i = 0; i < 256; i++)
5508     if (XOR (islower (i), ISLOWER (i))
5509         || toupper (i) != TOUPPER (i))
5510       return 2;
5511   return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest$ac_exeext
5515 if { (ac_try="$ac_link"
5516 case "(($ac_try" in
5517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518   *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521   (eval "$ac_link") 2>&5
5522   ac_status=$?
5523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5525   { (case "(($ac_try" in
5526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527   *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530   (eval "$ac_try") 2>&5
5531   ac_status=$?
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); }; }; then
5534   :
5535 else
5536   echo "$as_me: program exited with status $ac_status" >&5
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ( exit $ac_status )
5541 ac_cv_header_stdc=no
5542 fi
5543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5544 fi
5545
5546
5547 fi
5548 fi
5549 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5550 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5551 if test $ac_cv_header_stdc = yes; then
5552
5553 cat >>confdefs.h <<\_ACEOF
5554 #define STDC_HEADERS 1
5555 _ACEOF
5556
5557 fi
5558
5559 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5560 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5561 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5562   echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564   cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570 #include <sys/types.h>
5571 #include <sys/wait.h>
5572 #ifndef WEXITSTATUS
5573 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5574 #endif
5575 #ifndef WIFEXITED
5576 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5577 #endif
5578
5579 int
5580 main ()
5581 {
5582   int s;
5583   wait (&s);
5584   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5585   ;
5586   return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (ac_try="$ac_compile"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_compile") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } && {
5603          test -z "$ac_c_werror_flag" ||
5604          test ! -s conftest.err
5605        } && test -s conftest.$ac_objext; then
5606   ac_cv_header_sys_wait_h=yes
5607 else
5608   echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611         ac_cv_header_sys_wait_h=no
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 fi
5616 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5617 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5618 if test $ac_cv_header_sys_wait_h = yes; then
5619
5620 cat >>confdefs.h <<\_ACEOF
5621 #define HAVE_SYS_WAIT_H 1
5622 _ACEOF
5623
5624 fi
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645 for ac_header in \
5646         errno.h \
5647         direct.h \
5648         fcntl.h \
5649         fnmatch.h \
5650         io.h \
5651         limits.h \
5652         memory.h \
5653         ndbm.h \
5654         string.h \
5655         syslog.h \
5656         sys/bsdtypes.h \
5657         sys/file.h \
5658         sys/param.h \
5659         sys/resource.h \
5660         sys/select.h \
5661         sys/time.h \
5662         sys/timeb.h \
5663         unistd.h \
5664         utime.h\
5665
5666 do
5667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5669   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5672   echo $ECHO_N "(cached) $ECHO_C" >&6
5673 fi
5674 ac_res=`eval echo '${'$as_ac_Header'}'`
5675                { echo "$as_me:$LINENO: result: $ac_res" >&5
5676 echo "${ECHO_T}$ac_res" >&6; }
5677 else
5678   # Is the header compilable?
5679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 $ac_includes_default
5688 #include <$ac_header>
5689 _ACEOF
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5692 case "(($ac_try" in
5693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694   *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697   (eval "$ac_compile") 2>conftest.er1
5698   ac_status=$?
5699   grep -v '^ *+' conftest.er1 >conftest.err
5700   rm -f conftest.er1
5701   cat conftest.err >&5
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } && {
5704          test -z "$ac_c_werror_flag" ||
5705          test ! -s conftest.err
5706        } && test -s conftest.$ac_objext; then
5707   ac_header_compiler=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712         ac_header_compiler=no
5713 fi
5714
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5717 echo "${ECHO_T}$ac_header_compiler" >&6; }
5718
5719 # Is the header present?
5720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5722 cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <$ac_header>
5729 _ACEOF
5730 if { (ac_try="$ac_cpp conftest.$ac_ext"
5731 case "(($ac_try" in
5732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733   *) ac_try_echo=$ac_try;;
5734 esac
5735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5737   ac_status=$?
5738   grep -v '^ *+' conftest.er1 >conftest.err
5739   rm -f conftest.er1
5740   cat conftest.err >&5
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); } >/dev/null && {
5743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5744          test ! -s conftest.err
5745        }; then
5746   ac_header_preproc=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751   ac_header_preproc=no
5752 fi
5753
5754 rm -f conftest.err conftest.$ac_ext
5755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5756 echo "${ECHO_T}$ac_header_preproc" >&6; }
5757
5758 # So?  What about this header?
5759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5760   yes:no: )
5761     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5765     ac_header_preproc=yes
5766     ;;
5767   no:yes:* )
5768     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5770     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5771 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5772     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5774     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5775 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5778     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5780     ( cat <<\_ASBOX
5781 ## --------------------------------- ##
5782 ## Report this to bug-cvs@nongnu.org ##
5783 ## --------------------------------- ##
5784 _ASBOX
5785      ) | sed "s/^/$as_me: WARNING:     /" >&2
5786     ;;
5787 esac
5788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 else
5793   eval "$as_ac_Header=\$ac_header_preproc"
5794 fi
5795 ac_res=`eval echo '${'$as_ac_Header'}'`
5796                { echo "$as_me:$LINENO: result: $ac_res" >&5
5797 echo "${ECHO_T}$ac_res" >&6; }
5798
5799 fi
5800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801   cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5803 _ACEOF
5804
5805 fi
5806
5807 done
5808
5809 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5810 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5811 if test "${ac_cv_header_stat_broken+set}" = set; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h.  */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h.  */
5820 #include <sys/types.h>
5821 #include <sys/stat.h>
5822
5823 #if defined S_ISBLK && defined S_IFDIR
5824 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5825 #endif
5826
5827 #if defined S_ISBLK && defined S_IFCHR
5828 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5829 #endif
5830
5831 #if defined S_ISLNK && defined S_IFREG
5832 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5833 #endif
5834
5835 #if defined S_ISSOCK && defined S_IFREG
5836 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5837 #endif
5838
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_compile") 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } && {
5854          test -z "$ac_c_werror_flag" ||
5855          test ! -s conftest.err
5856        } && test -s conftest.$ac_objext; then
5857   ac_cv_header_stat_broken=no
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         ac_cv_header_stat_broken=yes
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 fi
5867 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5868 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5869 if test $ac_cv_header_stat_broken = yes; then
5870
5871 cat >>confdefs.h <<\_ACEOF
5872 #define STAT_MACROS_BROKEN 1
5873 _ACEOF
5874
5875 fi
5876
5877 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5878 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5879 if test "${ac_cv_header_time+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   cat >conftest.$ac_ext <<_ACEOF
5883 /* confdefs.h.  */
5884 _ACEOF
5885 cat confdefs.h >>conftest.$ac_ext
5886 cat >>conftest.$ac_ext <<_ACEOF
5887 /* end confdefs.h.  */
5888 #include <sys/types.h>
5889 #include <sys/time.h>
5890 #include <time.h>
5891
5892 int
5893 main ()
5894 {
5895 if ((struct tm *) 0)
5896 return 0;
5897   ;
5898   return 0;
5899 }
5900 _ACEOF
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5903 case "(($ac_try" in
5904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905   *) ac_try_echo=$ac_try;;
5906 esac
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908   (eval "$ac_compile") 2>conftest.er1
5909   ac_status=$?
5910   grep -v '^ *+' conftest.er1 >conftest.err
5911   rm -f conftest.er1
5912   cat conftest.err >&5
5913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914   (exit $ac_status); } && {
5915          test -z "$ac_c_werror_flag" ||
5916          test ! -s conftest.err
5917        } && test -s conftest.$ac_objext; then
5918   ac_cv_header_time=yes
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923         ac_cv_header_time=no
5924 fi
5925
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927 fi
5928 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5929 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5930 if test $ac_cv_header_time = yes; then
5931
5932 cat >>confdefs.h <<\_ACEOF
5933 #define TIME_WITH_SYS_TIME 1
5934 _ACEOF
5935
5936 fi
5937
5938
5939 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5940 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5941 if test "${ac_cv_c_const+set}" = set; then
5942   echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944   cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950
5951 int
5952 main ()
5953 {
5954 /* FIXME: Include the comments suggested by Paul. */
5955 #ifndef __cplusplus
5956   /* Ultrix mips cc rejects this.  */
5957   typedef int charset[2];
5958   const charset cs;
5959   /* SunOS 4.1.1 cc rejects this.  */
5960   char const *const *pcpcc;
5961   char **ppc;
5962   /* NEC SVR4.0.2 mips cc rejects this.  */
5963   struct point {int x, y;};
5964   static struct point const zero = {0,0};
5965   /* AIX XL C 1.02.0.0 rejects this.
5966      It does not let you subtract one const X* pointer from another in
5967      an arm of an if-expression whose if-part is not a constant
5968      expression */
5969   const char *g = "string";
5970   pcpcc = &g + (g ? g-g : 0);
5971   /* HPUX 7.0 cc rejects these. */
5972   ++pcpcc;
5973   ppc = (char**) pcpcc;
5974   pcpcc = (char const *const *) ppc;
5975   { /* SCO 3.2v4 cc rejects this.  */
5976     char *t;
5977     char const *s = 0 ? (char *) 0 : (char const *) 0;
5978
5979     *t++ = 0;
5980     if (s) return 0;
5981   }
5982   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5983     int x[] = {25, 17};
5984     const int *foo = &x[0];
5985     ++foo;
5986   }
5987   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5988     typedef const int *iptr;
5989     iptr p = 0;
5990     ++p;
5991   }
5992   { /* AIX XL C 1.02.0.0 rejects this saying
5993        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5994     struct s { int j; const int *ap[3]; };
5995     struct s *b; b->j = 5;
5996   }
5997   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5998     const int foo = 10;
5999     if (!foo) return 0;
6000   }
6001   return !cs[0] && !zero.x;
6002 #endif
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compile") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } && {
6022          test -z "$ac_c_werror_flag" ||
6023          test ! -s conftest.err
6024        } && test -s conftest.$ac_objext; then
6025   ac_cv_c_const=yes
6026 else
6027   echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030         ac_cv_c_const=no
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6036 echo "${ECHO_T}$ac_cv_c_const" >&6; }
6037 if test $ac_cv_c_const = no; then
6038
6039 cat >>confdefs.h <<\_ACEOF
6040 #define const
6041 _ACEOF
6042
6043 fi
6044
6045 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6046 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
6047 if test "${ac_cv_type_uid_t+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h.  */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h.  */
6056 #include <sys/types.h>
6057
6058 _ACEOF
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060   $EGREP "uid_t" >/dev/null 2>&1; then
6061   ac_cv_type_uid_t=yes
6062 else
6063   ac_cv_type_uid_t=no
6064 fi
6065 rm -f conftest*
6066
6067 fi
6068 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6069 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
6070 if test $ac_cv_type_uid_t = no; then
6071
6072 cat >>confdefs.h <<\_ACEOF
6073 #define uid_t int
6074 _ACEOF
6075
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define gid_t int
6079 _ACEOF
6080
6081 fi
6082
6083 { echo "$as_me:$LINENO: checking for mode_t" >&5
6084 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
6085 if test "${ac_cv_type_mode_t+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h.  */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h.  */
6094 $ac_includes_default
6095 typedef mode_t ac__type_new_;
6096 int
6097 main ()
6098 {
6099 if ((ac__type_new_ *) 0)
6100   return 0;
6101 if (sizeof (ac__type_new_))
6102   return 0;
6103   ;
6104   return 0;
6105 }
6106 _ACEOF
6107 rm -f conftest.$ac_objext
6108 if { (ac_try="$ac_compile"
6109 case "(($ac_try" in
6110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111   *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114   (eval "$ac_compile") 2>conftest.er1
6115   ac_status=$?
6116   grep -v '^ *+' conftest.er1 >conftest.err
6117   rm -f conftest.er1
6118   cat conftest.err >&5
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } && {
6121          test -z "$ac_c_werror_flag" ||
6122          test ! -s conftest.err
6123        } && test -s conftest.$ac_objext; then
6124   ac_cv_type_mode_t=yes
6125 else
6126   echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129         ac_cv_type_mode_t=no
6130 fi
6131
6132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 fi
6134 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6135 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
6136 if test $ac_cv_type_mode_t = yes; then
6137   :
6138 else
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define mode_t int
6142 _ACEOF
6143
6144 fi
6145
6146 { echo "$as_me:$LINENO: checking for pid_t" >&5
6147 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
6148 if test "${ac_cv_type_pid_t+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 $ac_includes_default
6158 typedef pid_t ac__type_new_;
6159 int
6160 main ()
6161 {
6162 if ((ac__type_new_ *) 0)
6163   return 0;
6164 if (sizeof (ac__type_new_))
6165   return 0;
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174   *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177   (eval "$ac_compile") 2>conftest.er1
6178   ac_status=$?
6179   grep -v '^ *+' conftest.er1 >conftest.err
6180   rm -f conftest.er1
6181   cat conftest.err >&5
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); } && {
6184          test -z "$ac_c_werror_flag" ||
6185          test ! -s conftest.err
6186        } && test -s conftest.$ac_objext; then
6187   ac_cv_type_pid_t=yes
6188 else
6189   echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192         ac_cv_type_pid_t=no
6193 fi
6194
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 fi
6197 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6198 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
6199 if test $ac_cv_type_pid_t = yes; then
6200   :
6201 else
6202
6203 cat >>confdefs.h <<_ACEOF
6204 #define pid_t int
6205 _ACEOF
6206
6207 fi
6208
6209 { echo "$as_me:$LINENO: checking for size_t" >&5
6210 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
6211 if test "${ac_cv_type_size_t+set}" = set; then
6212   echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214   cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 $ac_includes_default
6221 typedef size_t ac__type_new_;
6222 int
6223 main ()
6224 {
6225 if ((ac__type_new_ *) 0)
6226   return 0;
6227 if (sizeof (ac__type_new_))
6228   return 0;
6229   ;
6230   return 0;
6231 }
6232 _ACEOF
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6235 case "(($ac_try" in
6236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237   *) ac_try_echo=$ac_try;;
6238 esac
6239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240   (eval "$ac_compile") 2>conftest.er1
6241   ac_status=$?
6242   grep -v '^ *+' conftest.er1 >conftest.err
6243   rm -f conftest.er1
6244   cat conftest.err >&5
6245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246   (exit $ac_status); } && {
6247          test -z "$ac_c_werror_flag" ||
6248          test ! -s conftest.err
6249        } && test -s conftest.$ac_objext; then
6250   ac_cv_type_size_t=yes
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255         ac_cv_type_size_t=no
6256 fi
6257
6258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 fi
6260 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6261 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
6262 if test $ac_cv_type_size_t = yes; then
6263   :
6264 else
6265
6266 cat >>confdefs.h <<_ACEOF
6267 #define size_t unsigned int
6268 _ACEOF
6269
6270 fi
6271
6272 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6273 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
6274 if test "${ac_cv_type_signal+set}" = set; then
6275   echo $ECHO_N "(cached) $ECHO_C" >&6
6276 else
6277   cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h.  */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h.  */
6283 #include <sys/types.h>
6284 #include <signal.h>
6285
6286 int
6287 main ()
6288 {
6289 return *(signal (0, 0)) (0) == 1;
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (ac_try="$ac_compile"
6296 case "(($ac_try" in
6297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298   *) ac_try_echo=$ac_try;;
6299 esac
6300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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          test -z "$ac_c_werror_flag" ||
6309          test ! -s conftest.err
6310        } && test -s conftest.$ac_objext; then
6311   ac_cv_type_signal=int
6312 else
6313   echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6315
6316         ac_cv_type_signal=void
6317 fi
6318
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6322 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define RETSIGTYPE $ac_cv_type_signal
6326 _ACEOF
6327
6328
6329
6330 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6331 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6332 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 $ac_includes_default
6342 int
6343 main ()
6344 {
6345 static struct stat ac_aggr;
6346 if (ac_aggr.st_blksize)
6347 return 0;
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_compile") 2>conftest.er1
6360   ac_status=$?
6361   grep -v '^ *+' conftest.er1 >conftest.err
6362   rm -f conftest.er1
6363   cat conftest.err >&5
6364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365   (exit $ac_status); } && {
6366          test -z "$ac_c_werror_flag" ||
6367          test ! -s conftest.err
6368        } && test -s conftest.$ac_objext; then
6369   ac_cv_member_struct_stat_st_blksize=yes
6370 else
6371   echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374         cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 static struct stat ac_aggr;
6385 if (sizeof ac_aggr.st_blksize)
6386 return 0;
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_compile") 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } && {
6405          test -z "$ac_c_werror_flag" ||
6406          test ! -s conftest.err
6407        } && test -s conftest.$ac_objext; then
6408   ac_cv_member_struct_stat_st_blksize=yes
6409 else
6410   echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413         ac_cv_member_struct_stat_st_blksize=no
6414 fi
6415
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 fi
6418
6419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6420 fi
6421 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6422 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6423 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6424
6425 cat >>confdefs.h <<_ACEOF
6426 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6427 _ACEOF
6428
6429
6430 fi
6431
6432 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6433 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6434 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h.  */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h.  */
6443 $ac_includes_default
6444 int
6445 main ()
6446 {
6447 static struct stat ac_aggr;
6448 if (ac_aggr.st_rdev)
6449 return 0;
6450   ;
6451   return 0;
6452 }
6453 _ACEOF
6454 rm -f conftest.$ac_objext
6455 if { (ac_try="$ac_compile"
6456 case "(($ac_try" in
6457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458   *) ac_try_echo=$ac_try;;
6459 esac
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461   (eval "$ac_compile") 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } && {
6468          test -z "$ac_c_werror_flag" ||
6469          test ! -s conftest.err
6470        } && test -s conftest.$ac_objext; then
6471   ac_cv_member_struct_stat_st_rdev=yes
6472 else
6473   echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6475
6476         cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h.  */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h.  */
6482 $ac_includes_default
6483 int
6484 main ()
6485 {
6486 static struct stat ac_aggr;
6487 if (sizeof ac_aggr.st_rdev)
6488 return 0;
6489   ;
6490   return 0;
6491 }
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497   *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500   (eval "$ac_compile") 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } && {
6507          test -z "$ac_c_werror_flag" ||
6508          test ! -s conftest.err
6509        } && test -s conftest.$ac_objext; then
6510   ac_cv_member_struct_stat_st_rdev=yes
6511 else
6512   echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515         ac_cv_member_struct_stat_st_rdev=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520
6521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522 fi
6523 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6524 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6525 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6526
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_STRUCT_STAT_ST_RDEV 1
6529 _ACEOF
6530
6531
6532 fi
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 for ac_func in \
6547         dup2 \
6548         ftruncate \
6549         gethostname \
6550         memmove \
6551         mkdir \
6552         rename \
6553         strerror \
6554         strstr \
6555         strtoul\
6556         valloc \
6557         waitpid \
6558
6559 do
6560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h.  */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h.  */
6572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6573    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6574 #define $ac_func innocuous_$ac_func
6575
6576 /* System header to define __stub macros and hopefully few prototypes,
6577     which can conflict with char $ac_func (); below.
6578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579     <limits.h> exists even on freestanding compilers.  */
6580
6581 #ifdef __STDC__
6582 # include <limits.h>
6583 #else
6584 # include <assert.h>
6585 #endif
6586
6587 #undef $ac_func
6588
6589 /* Override any GCC internal prototype to avoid an error.
6590    Use char because int might match the return type of a GCC
6591    builtin and then its argument prototype would still apply.  */
6592 #ifdef __cplusplus
6593 extern "C"
6594 #endif
6595 char $ac_func ();
6596 /* The GNU C library defines this for functions which it implements
6597     to always fail with ENOSYS.  Some functions are actually named
6598     something starting with __ and the normal name is an alias.  */
6599 #if defined __stub_$ac_func || defined __stub___$ac_func
6600 choke me
6601 #endif
6602
6603 int
6604 main ()
6605 {
6606 return $ac_func ();
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6613 case "(($ac_try" in
6614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615   *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618   (eval "$ac_link") 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && {
6625          test -z "$ac_c_werror_flag" ||
6626          test ! -s conftest.err
6627        } && test -s conftest$ac_exeext &&
6628        $as_test_x conftest$ac_exeext; then
6629   eval "$as_ac_var=yes"
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634         eval "$as_ac_var=no"
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6638       conftest$ac_exeext conftest.$ac_ext
6639 fi
6640 ac_res=`eval echo '${'$as_ac_var'}'`
6641                { echo "$as_me:$LINENO: result: $ac_res" >&5
6642 echo "${ECHO_T}$ac_res" >&6; }
6643 if test `eval echo '${'$as_ac_var'}'` = yes; then
6644   cat >>confdefs.h <<_ACEOF
6645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6646 _ACEOF
6647
6648 else
6649   case " $LIBOBJS " in
6650   *" $ac_func.$ac_objext "* ) ;;
6651   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6652  ;;
6653 esac
6654
6655 fi
6656 done
6657
6658
6659
6660
6661
6662
6663
6664 for ac_header in stdint.h
6665 do
6666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 fi
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674                { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676 else
6677   # Is the header compilable?
6678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6680 cat >conftest.$ac_ext <<_ACEOF
6681 /* confdefs.h.  */
6682 _ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h.  */
6686 $ac_includes_default
6687 #include <$ac_header>
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (ac_try="$ac_compile"
6691 case "(($ac_try" in
6692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6693   *) ac_try_echo=$ac_try;;
6694 esac
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696   (eval "$ac_compile") 2>conftest.er1
6697   ac_status=$?
6698   grep -v '^ *+' conftest.er1 >conftest.err
6699   rm -f conftest.er1
6700   cat conftest.err >&5
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); } && {
6703          test -z "$ac_c_werror_flag" ||
6704          test ! -s conftest.err
6705        } && test -s conftest.$ac_objext; then
6706   ac_header_compiler=yes
6707 else
6708   echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6710
6711         ac_header_compiler=no
6712 fi
6713
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6716 echo "${ECHO_T}$ac_header_compiler" >&6; }
6717
6718 # Is the header present?
6719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h.  */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h.  */
6727 #include <$ac_header>
6728 _ACEOF
6729 if { (ac_try="$ac_cpp conftest.$ac_ext"
6730 case "(($ac_try" in
6731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732   *) ac_try_echo=$ac_try;;
6733 esac
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6736   ac_status=$?
6737   grep -v '^ *+' conftest.er1 >conftest.err
6738   rm -f conftest.er1
6739   cat conftest.err >&5
6740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741   (exit $ac_status); } >/dev/null && {
6742          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6743          test ! -s conftest.err
6744        }; then
6745   ac_header_preproc=yes
6746 else
6747   echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6749
6750   ac_header_preproc=no
6751 fi
6752
6753 rm -f conftest.err conftest.$ac_ext
6754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6755 echo "${ECHO_T}$ac_header_preproc" >&6; }
6756
6757 # So?  What about this header?
6758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6759   yes:no: )
6760     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6764     ac_header_preproc=yes
6765     ;;
6766   no:yes:* )
6767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6769     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6770 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6771     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6773     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6774 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6775     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6777     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6779     ( cat <<\_ASBOX
6780 ## --------------------------------- ##
6781 ## Report this to bug-cvs@nongnu.org ##
6782 ## --------------------------------- ##
6783 _ASBOX
6784      ) | sed "s/^/$as_me: WARNING:     /" >&2
6785     ;;
6786 esac
6787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   eval "$as_ac_Header=\$ac_header_preproc"
6793 fi
6794 ac_res=`eval echo '${'$as_ac_Header'}'`
6795                { echo "$as_me:$LINENO: result: $ac_res" >&5
6796 echo "${ECHO_T}$ac_res" >&6; }
6797
6798 fi
6799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800   cat >>confdefs.h <<_ACEOF
6801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6802 _ACEOF
6803
6804 fi
6805
6806 done
6807
6808     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6809 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6810   result=
6811   cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h.  */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h.  */
6817
6818 #include <limits.h>
6819 #if HAVE_STDINT_H
6820 #include <stdint.h>
6821 #endif
6822 #ifdef SIZE_MAX
6823 Found it
6824 #endif
6825
6826 _ACEOF
6827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828   $EGREP "Found it" >/dev/null 2>&1; then
6829   result=yes
6830 fi
6831 rm -f conftest*
6832
6833   if test -z "$result"; then
6834                     if test "$cross_compiling" = yes; then
6835   # Depending upon the size, compute the lo and hi bounds.
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842 #include <stddef.h>
6843 int
6844 main ()
6845 {
6846 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6847 test_array [0] = 0
6848
6849   ;
6850   return 0;
6851 }
6852 _ACEOF
6853 rm -f conftest.$ac_objext
6854 if { (ac_try="$ac_compile"
6855 case "(($ac_try" in
6856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6857   *) ac_try_echo=$ac_try;;
6858 esac
6859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6860   (eval "$ac_compile") 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } && {
6867          test -z "$ac_c_werror_flag" ||
6868          test ! -s conftest.err
6869        } && test -s conftest.$ac_objext; then
6870   ac_lo=0 ac_mid=0
6871   while :; do
6872     cat >conftest.$ac_ext <<_ACEOF
6873 /* confdefs.h.  */
6874 _ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h.  */
6878 #include <stddef.h>
6879 int
6880 main ()
6881 {
6882 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6883 test_array [0] = 0
6884
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6891 case "(($ac_try" in
6892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893   *) ac_try_echo=$ac_try;;
6894 esac
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896   (eval "$ac_compile") 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } && {
6903          test -z "$ac_c_werror_flag" ||
6904          test ! -s conftest.err
6905        } && test -s conftest.$ac_objext; then
6906   ac_hi=$ac_mid; break
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911         ac_lo=`expr $ac_mid + 1`
6912                         if test $ac_lo -le $ac_mid; then
6913                           ac_lo= ac_hi=
6914                           break
6915                         fi
6916                         ac_mid=`expr 2 '*' $ac_mid + 1`
6917 fi
6918
6919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920   done
6921 else
6922   echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6924
6925         cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 #include <stddef.h>
6932 int
6933 main ()
6934 {
6935 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6936 test_array [0] = 0
6937
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6944 case "(($ac_try" in
6945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946   *) ac_try_echo=$ac_try;;
6947 esac
6948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6949   (eval "$ac_compile") 2>conftest.er1
6950   ac_status=$?
6951   grep -v '^ *+' conftest.er1 >conftest.err
6952   rm -f conftest.er1
6953   cat conftest.err >&5
6954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955   (exit $ac_status); } && {
6956          test -z "$ac_c_werror_flag" ||
6957          test ! -s conftest.err
6958        } && test -s conftest.$ac_objext; then
6959   ac_hi=-1 ac_mid=-1
6960   while :; do
6961     cat >conftest.$ac_ext <<_ACEOF
6962 /* confdefs.h.  */
6963 _ACEOF
6964 cat confdefs.h >>conftest.$ac_ext
6965 cat >>conftest.$ac_ext <<_ACEOF
6966 /* end confdefs.h.  */
6967 #include <stddef.h>
6968 int
6969 main ()
6970 {
6971 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6972 test_array [0] = 0
6973
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982   *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985   (eval "$ac_compile") 2>conftest.er1
6986   ac_status=$?
6987   grep -v '^ *+' conftest.er1 >conftest.err
6988   rm -f conftest.er1
6989   cat conftest.err >&5
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } && {
6992          test -z "$ac_c_werror_flag" ||
6993          test ! -s conftest.err
6994        } && test -s conftest.$ac_objext; then
6995   ac_lo=$ac_mid; break
6996 else
6997   echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000         ac_hi=`expr '(' $ac_mid ')' - 1`
7001                         if test $ac_mid -le $ac_hi; then
7002                           ac_lo= ac_hi=
7003                           break
7004                         fi
7005                         ac_mid=`expr 2 '*' $ac_mid`
7006 fi
7007
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009   done
7010 else
7011   echo "$as_me: failed program was:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7013
7014         ac_lo= ac_hi=
7015 fi
7016
7017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 fi
7019
7020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 # Binary search between lo and hi bounds.
7022 while test "x$ac_lo" != "x$ac_hi"; do
7023   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7024   cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h.  */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h.  */
7030 #include <stddef.h>
7031 int
7032 main ()
7033 {
7034 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7035 test_array [0] = 0
7036
7037   ;
7038   return 0;
7039 }
7040 _ACEOF
7041 rm -f conftest.$ac_objext
7042 if { (ac_try="$ac_compile"
7043 case "(($ac_try" in
7044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045   *) ac_try_echo=$ac_try;;
7046 esac
7047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048   (eval "$ac_compile") 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } && {
7055          test -z "$ac_c_werror_flag" ||
7056          test ! -s conftest.err
7057        } && test -s conftest.$ac_objext; then
7058   ac_hi=$ac_mid
7059 else
7060   echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063         ac_lo=`expr '(' $ac_mid ')' + 1`
7064 fi
7065
7066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 done
7068 case $ac_lo in
7069 ?*) res_hi=$ac_lo;;
7070 '') result=? ;;
7071 esac
7072 else
7073   cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079 #include <stddef.h>
7080 static long int longval () { return ~(size_t)0 / 10; }
7081 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7082 #include <stdio.h>
7083 #include <stdlib.h>
7084 int
7085 main ()
7086 {
7087
7088   FILE *f = fopen ("conftest.val", "w");
7089   if (! f)
7090     return 1;
7091   if ((~(size_t)0 / 10) < 0)
7092     {
7093       long int i = longval ();
7094       if (i != (~(size_t)0 / 10))
7095         return 1;
7096       fprintf (f, "%ld\n", i);
7097     }
7098   else
7099     {
7100       unsigned long int i = ulongval ();
7101       if (i != (~(size_t)0 / 10))
7102         return 1;
7103       fprintf (f, "%lu\n", i);
7104     }
7105   return ferror (f) || fclose (f) != 0;
7106
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest$ac_exeext
7112 if { (ac_try="$ac_link"
7113 case "(($ac_try" in
7114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115   *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118   (eval "$ac_link") 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7122   { (case "(($ac_try" in
7123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7124   *) ac_try_echo=$ac_try;;
7125 esac
7126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7127   (eval "$ac_try") 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   res_hi=`cat conftest.val`
7132 else
7133   echo "$as_me: program exited with status $ac_status" >&5
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 ( exit $ac_status )
7138 result=?
7139 fi
7140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 rm -f conftest.val
7143
7144     if test "$cross_compiling" = yes; then
7145   # Depending upon the size, compute the lo and hi bounds.
7146 cat >conftest.$ac_ext <<_ACEOF
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 #include <stddef.h>
7153 int
7154 main ()
7155 {
7156 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7157 test_array [0] = 0
7158
7159   ;
7160   return 0;
7161 }
7162 _ACEOF
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7165 case "(($ac_try" in
7166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167   *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170   (eval "$ac_compile") 2>conftest.er1
7171   ac_status=$?
7172   grep -v '^ *+' conftest.er1 >conftest.err
7173   rm -f conftest.er1
7174   cat conftest.err >&5
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); } && {
7177          test -z "$ac_c_werror_flag" ||
7178          test ! -s conftest.err
7179        } && test -s conftest.$ac_objext; then
7180   ac_lo=0 ac_mid=0
7181   while :; do
7182     cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #include <stddef.h>
7189 int
7190 main ()
7191 {
7192 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7193 test_array [0] = 0
7194
7195   ;
7196   return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203   *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206   (eval "$ac_compile") 2>conftest.er1
7207   ac_status=$?
7208   grep -v '^ *+' conftest.er1 >conftest.err
7209   rm -f conftest.er1
7210   cat conftest.err >&5
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); } && {
7213          test -z "$ac_c_werror_flag" ||
7214          test ! -s conftest.err
7215        } && test -s conftest.$ac_objext; then
7216   ac_hi=$ac_mid; break
7217 else
7218   echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221         ac_lo=`expr $ac_mid + 1`
7222                         if test $ac_lo -le $ac_mid; then
7223                           ac_lo= ac_hi=
7224                           break
7225                         fi
7226                         ac_mid=`expr 2 '*' $ac_mid + 1`
7227 fi
7228
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230   done
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235         cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h.  */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h.  */
7241 #include <stddef.h>
7242 int
7243 main ()
7244 {
7245 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7246 test_array [0] = 0
7247
7248   ;
7249   return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256   *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259   (eval "$ac_compile") 2>conftest.er1
7260   ac_status=$?
7261   grep -v '^ *+' conftest.er1 >conftest.err
7262   rm -f conftest.er1
7263   cat conftest.err >&5
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); } && {
7266          test -z "$ac_c_werror_flag" ||
7267          test ! -s conftest.err
7268        } && test -s conftest.$ac_objext; then
7269   ac_hi=-1 ac_mid=-1
7270   while :; do
7271     cat >conftest.$ac_ext <<_ACEOF
7272 /* confdefs.h.  */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h.  */
7277 #include <stddef.h>
7278 int
7279 main ()
7280 {
7281 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7282 test_array [0] = 0
7283
7284   ;
7285   return 0;
7286 }
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292   *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295   (eval "$ac_compile") 2>conftest.er1
7296   ac_status=$?
7297   grep -v '^ *+' conftest.er1 >conftest.err
7298   rm -f conftest.er1
7299   cat conftest.err >&5
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } && {
7302          test -z "$ac_c_werror_flag" ||
7303          test ! -s conftest.err
7304        } && test -s conftest.$ac_objext; then
7305   ac_lo=$ac_mid; break
7306 else
7307   echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310         ac_hi=`expr '(' $ac_mid ')' - 1`
7311                         if test $ac_mid -le $ac_hi; then
7312                           ac_lo= ac_hi=
7313                           break
7314                         fi
7315                         ac_mid=`expr 2 '*' $ac_mid`
7316 fi
7317
7318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7319   done
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324         ac_lo= ac_hi=
7325 fi
7326
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 fi
7329
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331 # Binary search between lo and hi bounds.
7332 while test "x$ac_lo" != "x$ac_hi"; do
7333   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7334   cat >conftest.$ac_ext <<_ACEOF
7335 /* confdefs.h.  */
7336 _ACEOF
7337 cat confdefs.h >>conftest.$ac_ext
7338 cat >>conftest.$ac_ext <<_ACEOF
7339 /* end confdefs.h.  */
7340 #include <stddef.h>
7341 int
7342 main ()
7343 {
7344 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7345 test_array [0] = 0
7346
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7353 case "(($ac_try" in
7354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355   *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358   (eval "$ac_compile") 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } && {
7365          test -z "$ac_c_werror_flag" ||
7366          test ! -s conftest.err
7367        } && test -s conftest.$ac_objext; then
7368   ac_hi=$ac_mid
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373         ac_lo=`expr '(' $ac_mid ')' + 1`
7374 fi
7375
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 done
7378 case $ac_lo in
7379 ?*) res_lo=$ac_lo;;
7380 '') result=? ;;
7381 esac
7382 else
7383   cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 #include <stddef.h>
7390 static long int longval () { return ~(size_t)0 % 10; }
7391 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7392 #include <stdio.h>
7393 #include <stdlib.h>
7394 int
7395 main ()
7396 {
7397
7398   FILE *f = fopen ("conftest.val", "w");
7399   if (! f)
7400     return 1;
7401   if ((~(size_t)0 % 10) < 0)
7402     {
7403       long int i = longval ();
7404       if (i != (~(size_t)0 % 10))
7405         return 1;
7406       fprintf (f, "%ld\n", i);
7407     }
7408   else
7409     {
7410       unsigned long int i = ulongval ();
7411       if (i != (~(size_t)0 % 10))
7412         return 1;
7413       fprintf (f, "%lu\n", i);
7414     }
7415   return ferror (f) || fclose (f) != 0;
7416
7417   ;
7418   return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest$ac_exeext
7422 if { (ac_try="$ac_link"
7423 case "(($ac_try" in
7424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425   *) ac_try_echo=$ac_try;;
7426 esac
7427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7428   (eval "$ac_link") 2>&5
7429   ac_status=$?
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7432   { (case "(($ac_try" in
7433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434   *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437   (eval "$ac_try") 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   res_lo=`cat conftest.val`
7442 else
7443   echo "$as_me: program exited with status $ac_status" >&5
7444 echo "$as_me: failed program was:" >&5
7445 sed 's/^/| /' conftest.$ac_ext >&5
7446
7447 ( exit $ac_status )
7448 result=?
7449 fi
7450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 fi
7452 rm -f conftest.val
7453
7454     if test "$cross_compiling" = yes; then
7455   # Depending upon the size, compute the lo and hi bounds.
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 #include <stddef.h>
7463 int
7464 main ()
7465 {
7466 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7467 test_array [0] = 0
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (ac_try="$ac_compile"
7475 case "(($ac_try" in
7476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7477   *) ac_try_echo=$ac_try;;
7478 esac
7479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7480   (eval "$ac_compile") 2>conftest.er1
7481   ac_status=$?
7482   grep -v '^ *+' conftest.er1 >conftest.err
7483   rm -f conftest.er1
7484   cat conftest.err >&5
7485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486   (exit $ac_status); } && {
7487          test -z "$ac_c_werror_flag" ||
7488          test ! -s conftest.err
7489        } && test -s conftest.$ac_objext; then
7490   ac_lo=0 ac_mid=0
7491   while :; do
7492     cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h.  */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h.  */
7498 #include <stddef.h>
7499 int
7500 main ()
7501 {
7502 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7503 test_array [0] = 0
7504
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 rm -f conftest.$ac_objext
7510 if { (ac_try="$ac_compile"
7511 case "(($ac_try" in
7512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513   *) ac_try_echo=$ac_try;;
7514 esac
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516   (eval "$ac_compile") 2>conftest.er1
7517   ac_status=$?
7518   grep -v '^ *+' conftest.er1 >conftest.err
7519   rm -f conftest.er1
7520   cat conftest.err >&5
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); } && {
7523          test -z "$ac_c_werror_flag" ||
7524          test ! -s conftest.err
7525        } && test -s conftest.$ac_objext; then
7526   ac_hi=$ac_mid; break
7527 else
7528   echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531         ac_lo=`expr $ac_mid + 1`
7532                         if test $ac_lo -le $ac_mid; then
7533                           ac_lo= ac_hi=
7534                           break
7535                         fi
7536                         ac_mid=`expr 2 '*' $ac_mid + 1`
7537 fi
7538
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540   done
7541 else
7542   echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545         cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551 #include <stddef.h>
7552 int
7553 main ()
7554 {
7555 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7556 test_array [0] = 0
7557
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_compile") 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } && {
7576          test -z "$ac_c_werror_flag" ||
7577          test ! -s conftest.err
7578        } && test -s conftest.$ac_objext; then
7579   ac_hi=-1 ac_mid=-1
7580   while :; do
7581     cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h.  */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h.  */
7587 #include <stddef.h>
7588 int
7589 main ()
7590 {
7591 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7592 test_array [0] = 0
7593
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext
7599 if { (ac_try="$ac_compile"
7600 case "(($ac_try" in
7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602   *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605   (eval "$ac_compile") 2>conftest.er1
7606   ac_status=$?
7607   grep -v '^ *+' conftest.er1 >conftest.err
7608   rm -f conftest.er1
7609   cat conftest.err >&5
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } && {
7612          test -z "$ac_c_werror_flag" ||
7613          test ! -s conftest.err
7614        } && test -s conftest.$ac_objext; then
7615   ac_lo=$ac_mid; break
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620         ac_hi=`expr '(' $ac_mid ')' - 1`
7621                         if test $ac_mid -le $ac_hi; then
7622                           ac_lo= ac_hi=
7623                           break
7624                         fi
7625                         ac_mid=`expr 2 '*' $ac_mid`
7626 fi
7627
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629   done
7630 else
7631   echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634         ac_lo= ac_hi=
7635 fi
7636
7637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 fi
7639
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 # Binary search between lo and hi bounds.
7642 while test "x$ac_lo" != "x$ac_hi"; do
7643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7644   cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 #include <stddef.h>
7651 int
7652 main ()
7653 {
7654 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7655 test_array [0] = 0
7656
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext
7662 if { (ac_try="$ac_compile"
7663 case "(($ac_try" in
7664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7665   *) ac_try_echo=$ac_try;;
7666 esac
7667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7668   (eval "$ac_compile") 2>conftest.er1
7669   ac_status=$?
7670   grep -v '^ *+' conftest.er1 >conftest.err
7671   rm -f conftest.er1
7672   cat conftest.err >&5
7673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674   (exit $ac_status); } && {
7675          test -z "$ac_c_werror_flag" ||
7676          test ! -s conftest.err
7677        } && test -s conftest.$ac_objext; then
7678   ac_hi=$ac_mid
7679 else
7680   echo "$as_me: failed program was:" >&5
7681 sed 's/^/| /' conftest.$ac_ext >&5
7682
7683         ac_lo=`expr '(' $ac_mid ')' + 1`
7684 fi
7685
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687 done
7688 case $ac_lo in
7689 ?*) fits_in_uint=$ac_lo;;
7690 '') result=? ;;
7691 esac
7692 else
7693   cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h.  */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h.  */
7699 #include <stddef.h>
7700 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7701 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7702 #include <stdio.h>
7703 #include <stdlib.h>
7704 int
7705 main ()
7706 {
7707
7708   FILE *f = fopen ("conftest.val", "w");
7709   if (! f)
7710     return 1;
7711   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7712     {
7713       long int i = longval ();
7714       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7715         return 1;
7716       fprintf (f, "%ld\n", i);
7717     }
7718   else
7719     {
7720       unsigned long int i = ulongval ();
7721       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7722         return 1;
7723       fprintf (f, "%lu\n", i);
7724     }
7725   return ferror (f) || fclose (f) != 0;
7726
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest$ac_exeext
7732 if { (ac_try="$ac_link"
7733 case "(($ac_try" in
7734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735   *) ac_try_echo=$ac_try;;
7736 esac
7737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738   (eval "$ac_link") 2>&5
7739   ac_status=$?
7740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7742   { (case "(($ac_try" in
7743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744   *) ac_try_echo=$ac_try;;
7745 esac
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747   (eval "$ac_try") 2>&5
7748   ac_status=$?
7749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750   (exit $ac_status); }; }; then
7751   fits_in_uint=`cat conftest.val`
7752 else
7753   echo "$as_me: program exited with status $ac_status" >&5
7754 echo "$as_me: failed program was:" >&5
7755 sed 's/^/| /' conftest.$ac_ext >&5
7756
7757 ( exit $ac_status )
7758 result=?
7759 fi
7760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7761 fi
7762 rm -f conftest.val
7763
7764     if test "$fits_in_uint" = 1; then
7765                   cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771 #include <stddef.h>
7772         extern size_t foo;
7773         extern unsigned long foo;
7774
7775 int
7776 main ()
7777 {
7778
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7785 case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_compile") 2>conftest.er1
7791   ac_status=$?
7792   grep -v '^ *+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } && {
7797          test -z "$ac_c_werror_flag" ||
7798          test ! -s conftest.err
7799        } && test -s conftest.$ac_objext; then
7800   fits_in_uint=0
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809     fi
7810     if test -z "$result"; then
7811       if test "$fits_in_uint" = 1; then
7812         result="$res_hi$res_lo"U
7813       else
7814         result="$res_hi$res_lo"UL
7815       fi
7816     else
7817             result='~(size_t)0'
7818     fi
7819   fi
7820   { echo "$as_me:$LINENO: result: $result" >&5
7821 echo "${ECHO_T}$result" >&6; }
7822   if test "$result" != yes; then
7823
7824 cat >>confdefs.h <<_ACEOF
7825 #define SIZE_MAX $result
7826 _ACEOF
7827
7828   fi
7829
7830 { echo "$as_me:$LINENO: checking for inline" >&5
7831 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7832 if test "${ac_cv_c_inline+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   ac_cv_c_inline=no
7836 for ac_kw in inline __inline__ __inline; do
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 #ifndef __cplusplus
7844 typedef int foo_t;
7845 static $ac_kw foo_t static_foo () {return 0; }
7846 $ac_kw foo_t foo () {return 0; }
7847 #endif
7848
7849 _ACEOF
7850 rm -f conftest.$ac_objext
7851 if { (ac_try="$ac_compile"
7852 case "(($ac_try" in
7853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854   *) ac_try_echo=$ac_try;;
7855 esac
7856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7857   (eval "$ac_compile") 2>conftest.er1
7858   ac_status=$?
7859   grep -v '^ *+' conftest.er1 >conftest.err
7860   rm -f conftest.er1
7861   cat conftest.err >&5
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); } && {
7864          test -z "$ac_c_werror_flag" ||
7865          test ! -s conftest.err
7866        } && test -s conftest.$ac_objext; then
7867   ac_cv_c_inline=$ac_kw
7868 else
7869   echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872
7873 fi
7874
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876   test "$ac_cv_c_inline" != no && break
7877 done
7878
7879 fi
7880 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7881 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7882
7883
7884 case $ac_cv_c_inline in
7885   inline | yes) ;;
7886   *)
7887     case $ac_cv_c_inline in
7888       no) ac_val=;;
7889       *) ac_val=$ac_cv_c_inline;;
7890     esac
7891     cat >>confdefs.h <<_ACEOF
7892 #ifndef __cplusplus
7893 #define inline $ac_val
7894 #endif
7895 _ACEOF
7896     ;;
7897 esac
7898
7899
7900
7901
7902
7903 for ac_header in stdint.h
7904 do
7905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7907   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7910   echo $ECHO_N "(cached) $ECHO_C" >&6
7911 fi
7912 ac_res=`eval echo '${'$as_ac_Header'}'`
7913                { echo "$as_me:$LINENO: result: $ac_res" >&5
7914 echo "${ECHO_T}$ac_res" >&6; }
7915 else
7916   # Is the header compilable?
7917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 $ac_includes_default
7926 #include <$ac_header>
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932   *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935   (eval "$ac_compile") 2>conftest.er1
7936   ac_status=$?
7937   grep -v '^ *+' conftest.er1 >conftest.err
7938   rm -f conftest.er1
7939   cat conftest.err >&5
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); } && {
7942          test -z "$ac_c_werror_flag" ||
7943          test ! -s conftest.err
7944        } && test -s conftest.$ac_objext; then
7945   ac_header_compiler=yes
7946 else
7947   echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950         ac_header_compiler=no
7951 fi
7952
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7955 echo "${ECHO_T}$ac_header_compiler" >&6; }
7956
7957 # Is the header present?
7958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h.  */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h.  */
7966 #include <$ac_header>
7967 _ACEOF
7968 if { (ac_try="$ac_cpp conftest.$ac_ext"
7969 case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } >/dev/null && {
7981          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7982          test ! -s conftest.err
7983        }; then
7984   ac_header_preproc=yes
7985 else
7986   echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7988
7989   ac_header_preproc=no
7990 fi
7991
7992 rm -f conftest.err conftest.$ac_ext
7993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7994 echo "${ECHO_T}$ac_header_preproc" >&6; }
7995
7996 # So?  What about this header?
7997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7998   yes:no: )
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8003     ac_header_preproc=yes
8004     ;;
8005   no:yes:* )
8006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8018     ( cat <<\_ASBOX
8019 ## --------------------------------- ##
8020 ## Report this to bug-cvs@nongnu.org ##
8021 ## --------------------------------- ##
8022 _ASBOX
8023      ) | sed "s/^/$as_me: WARNING:     /" >&2
8024     ;;
8025 esac
8026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   eval "$as_ac_Header=\$ac_header_preproc"
8032 fi
8033 ac_res=`eval echo '${'$as_ac_Header'}'`
8034                { echo "$as_me:$LINENO: result: $ac_res" >&5
8035 echo "${ECHO_T}$ac_res" >&6; }
8036
8037 fi
8038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8039   cat >>confdefs.h <<_ACEOF
8040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8041 _ACEOF
8042
8043 fi
8044
8045 done
8046
8047
8048
8049
8050 cat >>confdefs.h <<\_ACEOF
8051 #define getpass cvs_getpass
8052 _ACEOF
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 for ac_func in \
8090         fchdir \
8091         fchmod \
8092         fsync \
8093         ftime \
8094         geteuid \
8095         getgroups \
8096         getopt \
8097         getpagesize \
8098         gettimeofday \
8099         initgroups \
8100         login \
8101         logout \
8102         mknod \
8103         mkstemp \
8104         mktemp \
8105         putenv \
8106         readlink \
8107         regcomp \
8108         regerror \
8109         regexec \
8110         regfree \
8111         sigaction \
8112         sigblock \
8113         sigprocmask \
8114         sigsetmask \
8115         sigvec \
8116         tempnam \
8117         timezone \
8118         tzset \
8119         vprintf \
8120         wait3 \
8121
8122 do
8123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8124 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8126 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8127   echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129   cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8137 #define $ac_func innocuous_$ac_func
8138
8139 /* System header to define __stub macros and hopefully few prototypes,
8140     which can conflict with char $ac_func (); below.
8141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8142     <limits.h> exists even on freestanding compilers.  */
8143
8144 #ifdef __STDC__
8145 # include <limits.h>
8146 #else
8147 # include <assert.h>
8148 #endif
8149
8150 #undef $ac_func
8151
8152 /* Override any GCC internal prototype to avoid an error.
8153    Use char because int might match the return type of a GCC
8154    builtin and then its argument prototype would still apply.  */
8155 #ifdef __cplusplus
8156 extern "C"
8157 #endif
8158 char $ac_func ();
8159 /* The GNU C library defines this for functions which it implements
8160     to always fail with ENOSYS.  Some functions are actually named
8161     something starting with __ and the normal name is an alias.  */
8162 #if defined __stub_$ac_func || defined __stub___$ac_func
8163 choke me
8164 #endif
8165
8166 int
8167 main ()
8168 {
8169 return $ac_func ();
8170   ;
8171   return 0;
8172 }
8173 _ACEOF
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (ac_try="$ac_link"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_link") 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && {
8188          test -z "$ac_c_werror_flag" ||
8189          test ! -s conftest.err
8190        } && test -s conftest$ac_exeext &&
8191        $as_test_x conftest$ac_exeext; then
8192   eval "$as_ac_var=yes"
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197         eval "$as_ac_var=no"
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201       conftest$ac_exeext conftest.$ac_ext
8202 fi
8203 ac_res=`eval echo '${'$as_ac_var'}'`
8204                { echo "$as_me:$LINENO: result: $ac_res" >&5
8205 echo "${ECHO_T}$ac_res" >&6; }
8206 if test `eval echo '${'$as_ac_var'}'` = yes; then
8207   cat >>confdefs.h <<_ACEOF
8208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209 _ACEOF
8210
8211 fi
8212 done
8213
8214 # we only need one of the following
8215
8216
8217
8218 for ac_func in \
8219         nanosleep \
8220         usleep \
8221         select \
8222
8223 do
8224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8227 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8238 #define $ac_func innocuous_$ac_func
8239
8240 /* System header to define __stub macros and hopefully few prototypes,
8241     which can conflict with char $ac_func (); below.
8242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243     <limits.h> exists even on freestanding compilers.  */
8244
8245 #ifdef __STDC__
8246 # include <limits.h>
8247 #else
8248 # include <assert.h>
8249 #endif
8250
8251 #undef $ac_func
8252
8253 /* Override any GCC internal prototype to avoid an error.
8254    Use char because int might match the return type of a GCC
8255    builtin and then its argument prototype would still apply.  */
8256 #ifdef __cplusplus
8257 extern "C"
8258 #endif
8259 char $ac_func ();
8260 /* The GNU C library defines this for functions which it implements
8261     to always fail with ENOSYS.  Some functions are actually named
8262     something starting with __ and the normal name is an alias.  */
8263 #if defined __stub_$ac_func || defined __stub___$ac_func
8264 choke me
8265 #endif
8266
8267 int
8268 main ()
8269 {
8270 return $ac_func ();
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_link") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } && {
8289          test -z "$ac_c_werror_flag" ||
8290          test ! -s conftest.err
8291        } && test -s conftest$ac_exeext &&
8292        $as_test_x conftest$ac_exeext; then
8293   eval "$as_ac_var=yes"
8294 else
8295   echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8297
8298         eval "$as_ac_var=no"
8299 fi
8300
8301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8302       conftest$ac_exeext conftest.$ac_ext
8303 fi
8304 ac_res=`eval echo '${'$as_ac_var'}'`
8305                { echo "$as_me:$LINENO: result: $ac_res" >&5
8306 echo "${ECHO_T}$ac_res" >&6; }
8307 if test `eval echo '${'$as_ac_var'}'` = yes; then
8308   cat >>confdefs.h <<_ACEOF
8309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8310 _ACEOF
8311  break
8312 fi
8313 done
8314
8315
8316
8317 cat >>confdefs.h <<\_ACEOF
8318 #define HAVE_STRCHR 1
8319 _ACEOF
8320
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define HAVE_MEMCHR 1
8324 _ACEOF
8325
8326
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define REGEX_MALLOC 1
8330 _ACEOF
8331
8332
8333 cat >>confdefs.h <<\_ACEOF
8334 #define _REGEX_RE_COMP 1
8335 _ACEOF
8336
8337
8338 for ac_header in vfork.h
8339 do
8340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8342   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 fi
8347 ac_res=`eval echo '${'$as_ac_Header'}'`
8348                { echo "$as_me:$LINENO: result: $ac_res" >&5
8349 echo "${ECHO_T}$ac_res" >&6; }
8350 else
8351   # Is the header compilable?
8352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8354 cat >conftest.$ac_ext <<_ACEOF
8355 /* confdefs.h.  */
8356 _ACEOF
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h.  */
8360 $ac_includes_default
8361 #include <$ac_header>
8362 _ACEOF
8363 rm -f conftest.$ac_objext
8364 if { (ac_try="$ac_compile"
8365 case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370   (eval "$ac_compile") 2>conftest.er1
8371   ac_status=$?
8372   grep -v '^ *+' conftest.er1 >conftest.err
8373   rm -f conftest.er1
8374   cat conftest.err >&5
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); } && {
8377          test -z "$ac_c_werror_flag" ||
8378          test ! -s conftest.err
8379        } && test -s conftest.$ac_objext; then
8380   ac_header_compiler=yes
8381 else
8382   echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385         ac_header_compiler=no
8386 fi
8387
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8390 echo "${ECHO_T}$ac_header_compiler" >&6; }
8391
8392 # Is the header present?
8393 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8395 cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 #include <$ac_header>
8402 _ACEOF
8403 if { (ac_try="$ac_cpp conftest.$ac_ext"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8410   ac_status=$?
8411   grep -v '^ *+' conftest.er1 >conftest.err
8412   rm -f conftest.er1
8413   cat conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } >/dev/null && {
8416          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8417          test ! -s conftest.err
8418        }; then
8419   ac_header_preproc=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424   ac_header_preproc=no
8425 fi
8426
8427 rm -f conftest.err conftest.$ac_ext
8428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8429 echo "${ECHO_T}$ac_header_preproc" >&6; }
8430
8431 # So?  What about this header?
8432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8433   yes:no: )
8434     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8436     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8438     ac_header_preproc=yes
8439     ;;
8440   no:yes:* )
8441     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8443     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8444 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8445     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8447     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8448 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8451     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8453     ( cat <<\_ASBOX
8454 ## --------------------------------- ##
8455 ## Report this to bug-cvs@nongnu.org ##
8456 ## --------------------------------- ##
8457 _ASBOX
8458      ) | sed "s/^/$as_me: WARNING:     /" >&2
8459     ;;
8460 esac
8461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8464   echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466   eval "$as_ac_Header=\$ac_header_preproc"
8467 fi
8468 ac_res=`eval echo '${'$as_ac_Header'}'`
8469                { echo "$as_me:$LINENO: result: $ac_res" >&5
8470 echo "${ECHO_T}$ac_res" >&6; }
8471
8472 fi
8473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8474   cat >>confdefs.h <<_ACEOF
8475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8476 _ACEOF
8477
8478 fi
8479
8480 done
8481
8482
8483
8484 for ac_func in fork vfork
8485 do
8486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8490   echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492   cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8500 #define $ac_func innocuous_$ac_func
8501
8502 /* System header to define __stub macros and hopefully few prototypes,
8503     which can conflict with char $ac_func (); below.
8504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505     <limits.h> exists even on freestanding compilers.  */
8506
8507 #ifdef __STDC__
8508 # include <limits.h>
8509 #else
8510 # include <assert.h>
8511 #endif
8512
8513 #undef $ac_func
8514
8515 /* Override any GCC internal prototype to avoid an error.
8516    Use char because int might match the return type of a GCC
8517    builtin and then its argument prototype would still apply.  */
8518 #ifdef __cplusplus
8519 extern "C"
8520 #endif
8521 char $ac_func ();
8522 /* The GNU C library defines this for functions which it implements
8523     to always fail with ENOSYS.  Some functions are actually named
8524     something starting with __ and the normal name is an alias.  */
8525 #if defined __stub_$ac_func || defined __stub___$ac_func
8526 choke me
8527 #endif
8528
8529 int
8530 main ()
8531 {
8532 return $ac_func ();
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (ac_try="$ac_link"
8539 case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_link") 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } && {
8551          test -z "$ac_c_werror_flag" ||
8552          test ! -s conftest.err
8553        } && test -s conftest$ac_exeext &&
8554        $as_test_x conftest$ac_exeext; then
8555   eval "$as_ac_var=yes"
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8559
8560         eval "$as_ac_var=no"
8561 fi
8562
8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8564       conftest$ac_exeext conftest.$ac_ext
8565 fi
8566 ac_res=`eval echo '${'$as_ac_var'}'`
8567                { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569 if test `eval echo '${'$as_ac_var'}'` = yes; then
8570   cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8572 _ACEOF
8573
8574 fi
8575 done
8576
8577 if test "x$ac_cv_func_fork" = xyes; then
8578   { echo "$as_me:$LINENO: checking for working fork" >&5
8579 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
8580 if test "${ac_cv_func_fork_works+set}" = set; then
8581   echo $ECHO_N "(cached) $ECHO_C" >&6
8582 else
8583   if test "$cross_compiling" = yes; then
8584   ac_cv_func_fork_works=cross
8585 else
8586   cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h.  */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h.  */
8592 $ac_includes_default
8593 int
8594 main ()
8595 {
8596
8597           /* By Ruediger Kuhlmann. */
8598           return fork () < 0;
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest$ac_exeext
8605 if { (ac_try="$ac_link"
8606 case "(($ac_try" in
8607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608   *) ac_try_echo=$ac_try;;
8609 esac
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611   (eval "$ac_link") 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8615   { (case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_try") 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; }; then
8624   ac_cv_func_fork_works=yes
8625 else
8626   echo "$as_me: program exited with status $ac_status" >&5
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8629
8630 ( exit $ac_status )
8631 ac_cv_func_fork_works=no
8632 fi
8633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8634 fi
8635
8636
8637 fi
8638 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
8639 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
8640
8641 else
8642   ac_cv_func_fork_works=$ac_cv_func_fork
8643 fi
8644 if test "x$ac_cv_func_fork_works" = xcross; then
8645   case $host in
8646     *-*-amigaos* | *-*-msdosdjgpp*)
8647       # Override, as these systems have only a dummy fork() stub
8648       ac_cv_func_fork_works=no
8649       ;;
8650     *)
8651       ac_cv_func_fork_works=yes
8652       ;;
8653   esac
8654   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8655 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8656 fi
8657 ac_cv_func_vfork_works=$ac_cv_func_vfork
8658 if test "x$ac_cv_func_vfork" = xyes; then
8659   { echo "$as_me:$LINENO: checking for working vfork" >&5
8660 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
8661 if test "${ac_cv_func_vfork_works+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   if test "$cross_compiling" = yes; then
8665   ac_cv_func_vfork_works=cross
8666 else
8667   cat >conftest.$ac_ext <<_ACEOF
8668 /* confdefs.h.  */
8669 _ACEOF
8670 cat confdefs.h >>conftest.$ac_ext
8671 cat >>conftest.$ac_ext <<_ACEOF
8672 /* end confdefs.h.  */
8673 /* Thanks to Paul Eggert for this test.  */
8674 $ac_includes_default
8675 #include <sys/wait.h>
8676 #ifdef HAVE_VFORK_H
8677 # include <vfork.h>
8678 #endif
8679 /* On some sparc systems, changes by the child to local and incoming
8680    argument registers are propagated back to the parent.  The compiler
8681    is told about this with #include <vfork.h>, but some compilers
8682    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
8683    static variable whose address is put into a register that is
8684    clobbered by the vfork.  */
8685 static void
8686 #ifdef __cplusplus
8687 sparc_address_test (int arg)
8688 # else
8689 sparc_address_test (arg) int arg;
8690 #endif
8691 {
8692   static pid_t child;
8693   if (!child) {
8694     child = vfork ();
8695     if (child < 0) {
8696       perror ("vfork");
8697       _exit(2);
8698     }
8699     if (!child) {
8700       arg = getpid();
8701       write(-1, "", 0);
8702       _exit (arg);
8703     }
8704   }
8705 }
8706
8707 int
8708 main ()
8709 {
8710   pid_t parent = getpid ();
8711   pid_t child;
8712
8713   sparc_address_test (0);
8714
8715   child = vfork ();
8716
8717   if (child == 0) {
8718     /* Here is another test for sparc vfork register problems.  This
8719        test uses lots of local variables, at least as many local
8720        variables as main has allocated so far including compiler
8721        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
8722        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
8723        reuse the register of parent for one of the local variables,
8724        since it will think that parent can't possibly be used any more
8725        in this routine.  Assigning to the local variable will thus
8726        munge parent in the parent process.  */
8727     pid_t
8728       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8729       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8730     /* Convince the compiler that p..p7 are live; otherwise, it might
8731        use the same hardware register for all 8 local variables.  */
8732     if (p != p1 || p != p2 || p != p3 || p != p4
8733         || p != p5 || p != p6 || p != p7)
8734       _exit(1);
8735
8736     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8737        from child file descriptors.  If the child closes a descriptor
8738        before it execs or exits, this munges the parent's descriptor
8739        as well.  Test for this by closing stdout in the child.  */
8740     _exit(close(fileno(stdout)) != 0);
8741   } else {
8742     int status;
8743     struct stat st;
8744
8745     while (wait(&status) != child)
8746       ;
8747     return (
8748          /* Was there some problem with vforking?  */
8749          child < 0
8750
8751          /* Did the child fail?  (This shouldn't happen.)  */
8752          || status
8753
8754          /* Did the vfork/compiler bug occur?  */
8755          || parent != getpid()
8756
8757          /* Did the file descriptor bug occur?  */
8758          || fstat(fileno(stdout), &st) != 0
8759          );
8760   }
8761 }
8762 _ACEOF
8763 rm -f conftest$ac_exeext
8764 if { (ac_try="$ac_link"
8765 case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_link") 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; }; then
8783   ac_cv_func_vfork_works=yes
8784 else
8785   echo "$as_me: program exited with status $ac_status" >&5
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ( exit $ac_status )
8790 ac_cv_func_vfork_works=no
8791 fi
8792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8793 fi
8794
8795
8796 fi
8797 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
8798 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
8799
8800 fi;
8801 if test "x$ac_cv_func_fork_works" = xcross; then
8802   ac_cv_func_vfork_works=$ac_cv_func_vfork
8803   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8804 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8805 fi
8806
8807 if test "x$ac_cv_func_vfork_works" = xyes; then
8808
8809 cat >>confdefs.h <<\_ACEOF
8810 #define HAVE_WORKING_VFORK 1
8811 _ACEOF
8812
8813 else
8814
8815 cat >>confdefs.h <<\_ACEOF
8816 #define vfork fork
8817 _ACEOF
8818
8819 fi
8820 if test "x$ac_cv_func_fork_works" = xyes; then
8821
8822 cat >>confdefs.h <<\_ACEOF
8823 #define HAVE_WORKING_FORK 1
8824 _ACEOF
8825
8826 fi
8827
8828 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8829 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
8830 if test "${ac_cv_func_closedir_void+set}" = set; then
8831   echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833   if test "$cross_compiling" = yes; then
8834   ac_cv_func_closedir_void=yes
8835 else
8836   cat >conftest.$ac_ext <<_ACEOF
8837 /* confdefs.h.  */
8838 _ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h.  */
8842 $ac_includes_default
8843 #include <$ac_header_dirent>
8844 #ifndef __cplusplus
8845 int closedir ();
8846 #endif
8847
8848 int
8849 main ()
8850 {
8851 return closedir (opendir (".")) != 0;
8852   ;
8853   return 0;
8854 }
8855 _ACEOF
8856 rm -f conftest$ac_exeext
8857 if { (ac_try="$ac_link"
8858 case "(($ac_try" in
8859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860   *) ac_try_echo=$ac_try;;
8861 esac
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863   (eval "$ac_link") 2>&5
8864   ac_status=$?
8865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8867   { (case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_try") 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   ac_cv_func_closedir_void=no
8877 else
8878   echo "$as_me: program exited with status $ac_status" >&5
8879 echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882 ( exit $ac_status )
8883 ac_cv_func_closedir_void=yes
8884 fi
8885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8886 fi
8887
8888
8889 fi
8890 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8891 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
8892 if test $ac_cv_func_closedir_void = yes; then
8893
8894 cat >>confdefs.h <<\_ACEOF
8895 #define CLOSEDIR_VOID 1
8896 _ACEOF
8897
8898 fi
8899
8900
8901 { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
8902 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
8903 if test "${ac_cv_search_getspnam+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   ac_func_search_save_LIBS=$LIBS
8907 cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913
8914 /* Override any GCC internal prototype to avoid an error.
8915    Use char because int might match the return type of a GCC
8916    builtin and then its argument prototype would still apply.  */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char getspnam ();
8921 int
8922 main ()
8923 {
8924 return getspnam ();
8925   ;
8926   return 0;
8927 }
8928 _ACEOF
8929 for ac_lib in '' sec gen; do
8930   if test -z "$ac_lib"; then
8931     ac_res="none required"
8932   else
8933     ac_res=-l$ac_lib
8934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8935   fi
8936   rm -f conftest.$ac_objext conftest$ac_exeext
8937 if { (ac_try="$ac_link"
8938 case "(($ac_try" in
8939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940   *) ac_try_echo=$ac_try;;
8941 esac
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943   (eval "$ac_link") 2>conftest.er1
8944   ac_status=$?
8945   grep -v '^ *+' conftest.er1 >conftest.err
8946   rm -f conftest.er1
8947   cat conftest.err >&5
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); } && {
8950          test -z "$ac_c_werror_flag" ||
8951          test ! -s conftest.err
8952        } && test -s conftest$ac_exeext &&
8953        $as_test_x conftest$ac_exeext; then
8954   ac_cv_search_getspnam=$ac_res
8955 else
8956   echo "$as_me: failed program was:" >&5
8957 sed 's/^/| /' conftest.$ac_ext >&5
8958
8959
8960 fi
8961
8962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8963       conftest$ac_exeext
8964   if test "${ac_cv_search_getspnam+set}" = set; then
8965   break
8966 fi
8967 done
8968 if test "${ac_cv_search_getspnam+set}" = set; then
8969   :
8970 else
8971   ac_cv_search_getspnam=no
8972 fi
8973 rm conftest.$ac_ext
8974 LIBS=$ac_func_search_save_LIBS
8975 fi
8976 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
8977 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
8978 ac_res=$ac_cv_search_getspnam
8979 if test "$ac_res" != no; then
8980   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8981
8982 cat >>confdefs.h <<\_ACEOF
8983 #define HAVE_GETSPNAM 1
8984 _ACEOF
8985
8986 fi
8987
8988
8989
8990
8991
8992
8993 for ac_header in $ac_header_list
8994 do
8995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8997   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 fi
9002 ac_res=`eval echo '${'$as_ac_Header'}'`
9003                { echo "$as_me:$LINENO: result: $ac_res" >&5
9004 echo "${ECHO_T}$ac_res" >&6; }
9005 else
9006   # Is the header compilable?
9007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 $ac_includes_default
9016 #include <$ac_header>
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (ac_try="$ac_compile"
9020 case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_compile") 2>conftest.er1
9026   ac_status=$?
9027   grep -v '^ *+' conftest.er1 >conftest.err
9028   rm -f conftest.er1
9029   cat conftest.err >&5
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } && {
9032          test -z "$ac_c_werror_flag" ||
9033          test ! -s conftest.err
9034        } && test -s conftest.$ac_objext; then
9035   ac_header_compiler=yes
9036 else
9037   echo "$as_me: failed program was:" >&5
9038 sed 's/^/| /' conftest.$ac_ext >&5
9039
9040         ac_header_compiler=no
9041 fi
9042
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9045 echo "${ECHO_T}$ac_header_compiler" >&6; }
9046
9047 # Is the header present?
9048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9050 cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #include <$ac_header>
9057 _ACEOF
9058 if { (ac_try="$ac_cpp conftest.$ac_ext"
9059 case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } >/dev/null && {
9071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9072          test ! -s conftest.err
9073        }; then
9074   ac_header_preproc=yes
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079   ac_header_preproc=no
9080 fi
9081
9082 rm -f conftest.err conftest.$ac_ext
9083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9084 echo "${ECHO_T}$ac_header_preproc" >&6; }
9085
9086 # So?  What about this header?
9087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9088   yes:no: )
9089     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9091     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9093     ac_header_preproc=yes
9094     ;;
9095   no:yes:* )
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9099 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9103 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9106     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9108     ( cat <<\_ASBOX
9109 ## --------------------------------- ##
9110 ## Report this to bug-cvs@nongnu.org ##
9111 ## --------------------------------- ##
9112 _ASBOX
9113      ) | sed "s/^/$as_me: WARNING:     /" >&2
9114     ;;
9115 esac
9116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9119   echo $ECHO_N "(cached) $ECHO_C" >&6
9120 else
9121   eval "$as_ac_Header=\$ac_header_preproc"
9122 fi
9123 ac_res=`eval echo '${'$as_ac_Header'}'`
9124                { echo "$as_me:$LINENO: result: $ac_res" >&5
9125 echo "${ECHO_T}$ac_res" >&6; }
9126
9127 fi
9128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9129   cat >>confdefs.h <<_ACEOF
9130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9131 _ACEOF
9132
9133 fi
9134
9135 done
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
9146 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
9147 if test "${ac_cv_func_utime_null+set}" = set; then
9148   echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150   rm -f conftest.data; >conftest.data
9151 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
9152 if test "$cross_compiling" = yes; then
9153   ac_cv_func_utime_null=no
9154 else
9155   cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h.  */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h.  */
9161 $ac_includes_default
9162                #ifdef HAVE_UTIME_H
9163                # include <utime.h>
9164                #endif
9165 int
9166 main ()
9167 {
9168 struct stat s, t;
9169   return ! (stat ("conftest.data", &s) == 0
9170             && utime ("conftest.data", 0) == 0
9171             && stat ("conftest.data", &t) == 0
9172             && t.st_mtime >= s.st_mtime
9173             && t.st_mtime - s.st_mtime < 120);
9174   ;
9175   return 0;
9176 }
9177 _ACEOF
9178 rm -f conftest$ac_exeext
9179 if { (ac_try="$ac_link"
9180 case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185   (eval "$ac_link") 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9189   { (case "(($ac_try" in
9190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9191   *) ac_try_echo=$ac_try;;
9192 esac
9193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9194   (eval "$ac_try") 2>&5
9195   ac_status=$?
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); }; }; then
9198   ac_cv_func_utime_null=yes
9199 else
9200   echo "$as_me: program exited with status $ac_status" >&5
9201 echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ( exit $ac_status )
9205 ac_cv_func_utime_null=no
9206 fi
9207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9208 fi
9209
9210
9211 fi
9212 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
9213 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
9214 if test $ac_cv_func_utime_null = yes; then
9215
9216 cat >>confdefs.h <<\_ACEOF
9217 #define HAVE_UTIME_NULL 1
9218 _ACEOF
9219
9220 fi
9221 rm -f conftest.data
9222
9223 { echo "$as_me:$LINENO: checking for long file names" >&5
9224 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9225 if test "${ac_cv_sys_long_file_names+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   ac_cv_sys_long_file_names=yes
9229 # Test for long file names in all the places we know might matter:
9230 #      .                the current directory, where building will happen
9231 #      $prefix/lib      where we will be installing things
9232 #      $exec_prefix/lib likewise
9233 #      $TMPDIR          if set, where it might want to write temporary files
9234 #      /tmp             where it might want to write temporary files
9235 #      /var/tmp         likewise
9236 #      /usr/tmp         likewise
9237 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9238   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9239   # in the usual case where exec_prefix is '${prefix}'.
9240   case $ac_dir in #(
9241     . | /* | ?:[\\/]*) ;; #(
9242     *) continue;;
9243   esac
9244   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9245   ac_xdir=$ac_dir/cf$$
9246   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9247   ac_tf1=$ac_xdir/conftest9012345
9248   ac_tf2=$ac_xdir/conftest9012346
9249   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9250     ac_cv_sys_long_file_names=no
9251   rm -f -r "$ac_xdir" 2>/dev/null
9252   test $ac_cv_sys_long_file_names = no && break
9253 done
9254 fi
9255 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9256 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9257 if test $ac_cv_sys_long_file_names = yes; then
9258
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_LONG_FILE_NAMES 1
9261 _ACEOF
9262
9263 fi
9264
9265
9266 { echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
9267 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6; }
9268 if test "${ac_cv_func_fnmatch_works+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   # Some versions of Solaris, SCO, and the GNU C Library
9272    # have a broken or incompatible fnmatch.
9273    # So we run a test program.  If we are cross-compiling, take no chance.
9274    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
9275    if test "$cross_compiling" = yes; then
9276   ac_cv_func_fnmatch_works=cross
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284 #include <fnmatch.h>
9285 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
9286 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
9287
9288 int
9289 main ()
9290 {
9291 return
9292            (!(y ("a*", "abc", 0)
9293               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
9294               && y ("a\\\\bc", "abc", 0)
9295               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
9296               && y ("*x", ".x", 0)
9297               && n ("*x", ".x", FNM_PERIOD)
9298               && 1));
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest$ac_exeext
9304 if { (ac_try="$ac_link"
9305 case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310   (eval "$ac_link") 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9314   { (case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319   (eval "$ac_try") 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_func_fnmatch_works=yes
9324 else
9325   echo "$as_me: program exited with status $ac_status" >&5
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ( exit $ac_status )
9330 ac_cv_func_fnmatch_works=no
9331 fi
9332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9333 fi
9334
9335
9336 fi
9337 { echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
9338 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6; }
9339 if test $ac_cv_func_fnmatch_works = yes; then
9340
9341 cat >>confdefs.h <<\_ACEOF
9342 #define HAVE_FNMATCH 1
9343 _ACEOF
9344
9345 fi
9346
9347
9348
9349 if test "$ac_cv_func_fnmatch_works" = no; then
9350   case " $LIBOBJS " in
9351   *" fnmatch.$ac_objext "* ) ;;
9352   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
9353  ;;
9354 esac
9355
9356   ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.h.in"
9357
9358
9359 fi
9360
9361 # Try to find connect and gethostbyname.
9362
9363 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
9364 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
9365 if test "${ac_cv_lib_nsl_main+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lnsl  $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h.  */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h.  */
9376
9377
9378 int
9379 main ()
9380 {
9381 return main ();
9382   ;
9383   return 0;
9384 }
9385 _ACEOF
9386 rm -f conftest.$ac_objext conftest$ac_exeext
9387 if { (ac_try="$ac_link"
9388 case "(($ac_try" in
9389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9390   *) ac_try_echo=$ac_try;;
9391 esac
9392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9393   (eval "$ac_link") 2>conftest.er1
9394   ac_status=$?
9395   grep -v '^ *+' conftest.er1 >conftest.err
9396   rm -f conftest.er1
9397   cat conftest.err >&5
9398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399   (exit $ac_status); } && {
9400          test -z "$ac_c_werror_flag" ||
9401          test ! -s conftest.err
9402        } && test -s conftest$ac_exeext &&
9403        $as_test_x conftest$ac_exeext; then
9404   ac_cv_lib_nsl_main=yes
9405 else
9406   echo "$as_me: failed program was:" >&5
9407 sed 's/^/| /' conftest.$ac_ext >&5
9408
9409         ac_cv_lib_nsl_main=no
9410 fi
9411
9412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9413       conftest$ac_exeext conftest.$ac_ext
9414 LIBS=$ac_check_lib_save_LIBS
9415 fi
9416 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
9417 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
9418 if test $ac_cv_lib_nsl_main = yes; then
9419   cat >>confdefs.h <<_ACEOF
9420 #define HAVE_LIBNSL 1
9421 _ACEOF
9422
9423   LIBS="-lnsl $LIBS"
9424
9425 fi
9426
9427 { echo "$as_me:$LINENO: checking for library containing connect" >&5
9428 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
9429 if test "${ac_cv_search_connect+set}" = set; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   ac_func_search_save_LIBS=$LIBS
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441    Use char because int might match the return type of a GCC
9442    builtin and then its argument prototype would still apply.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char connect ();
9447 int
9448 main ()
9449 {
9450 return connect ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 for ac_lib in '' xnet socket inet; do
9456   if test -z "$ac_lib"; then
9457     ac_res="none required"
9458   else
9459     ac_res=-l$ac_lib
9460     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9461   fi
9462   rm -f conftest.$ac_objext conftest$ac_exeext
9463 if { (ac_try="$ac_link"
9464 case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469   (eval "$ac_link") 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } && {
9476          test -z "$ac_c_werror_flag" ||
9477          test ! -s conftest.err
9478        } && test -s conftest$ac_exeext &&
9479        $as_test_x conftest$ac_exeext; then
9480   ac_cv_search_connect=$ac_res
9481 else
9482   echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9484
9485
9486 fi
9487
9488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9489       conftest$ac_exeext
9490   if test "${ac_cv_search_connect+set}" = set; then
9491   break
9492 fi
9493 done
9494 if test "${ac_cv_search_connect+set}" = set; then
9495   :
9496 else
9497   ac_cv_search_connect=no
9498 fi
9499 rm conftest.$ac_ext
9500 LIBS=$ac_func_search_save_LIBS
9501 fi
9502 { echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
9503 echo "${ECHO_T}$ac_cv_search_connect" >&6; }
9504 ac_res=$ac_cv_search_connect
9505 if test "$ac_res" != no; then
9506   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9507
9508 cat >>confdefs.h <<\_ACEOF
9509 #define HAVE_CONNECT 1
9510 _ACEOF
9511
9512 fi
9513
9514 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9515 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
9516 if test "${ac_cv_search_gethostbyname+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   ac_func_search_save_LIBS=$LIBS
9520 cat >conftest.$ac_ext <<_ACEOF
9521 /* confdefs.h.  */
9522 _ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h.  */
9526
9527 /* Override any GCC internal prototype to avoid an error.
9528    Use char because int might match the return type of a GCC
9529    builtin and then its argument prototype would still apply.  */
9530 #ifdef __cplusplus
9531 extern "C"
9532 #endif
9533 char gethostbyname ();
9534 int
9535 main ()
9536 {
9537 return gethostbyname ();
9538   ;
9539   return 0;
9540 }
9541 _ACEOF
9542 for ac_lib in '' netinet; do
9543   if test -z "$ac_lib"; then
9544     ac_res="none required"
9545   else
9546     ac_res=-l$ac_lib
9547     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9548   fi
9549   rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9551 case "(($ac_try" in
9552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553   *) ac_try_echo=$ac_try;;
9554 esac
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556   (eval "$ac_link") 2>conftest.er1
9557   ac_status=$?
9558   grep -v '^ *+' conftest.er1 >conftest.err
9559   rm -f conftest.er1
9560   cat conftest.err >&5
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); } && {
9563          test -z "$ac_c_werror_flag" ||
9564          test ! -s conftest.err
9565        } && test -s conftest$ac_exeext &&
9566        $as_test_x conftest$ac_exeext; then
9567   ac_cv_search_gethostbyname=$ac_res
9568 else
9569   echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9571
9572
9573 fi
9574
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576       conftest$ac_exeext
9577   if test "${ac_cv_search_gethostbyname+set}" = set; then
9578   break
9579 fi
9580 done
9581 if test "${ac_cv_search_gethostbyname+set}" = set; then
9582   :
9583 else
9584   ac_cv_search_gethostbyname=no
9585 fi
9586 rm conftest.$ac_ext
9587 LIBS=$ac_func_search_save_LIBS
9588 fi
9589 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9590 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
9591 ac_res=$ac_cv_search_gethostbyname
9592 if test "$ac_res" != no; then
9593   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9594
9595 fi
9596
9597
9598
9599
9600 KRB4=/usr/kerberos
9601
9602
9603 # Check whether --with-krb4 was given.
9604 if test "${with_krb4+set}" = set; then
9605   withval=$with_krb4; KRB4=$with_krb4
9606 fi
9607 { echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
9608 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6; }
9609 { echo "$as_me:$LINENO: result: " >&5
9610 echo "${ECHO_T}" >&6; }
9611
9612
9613 krb_h=
9614 { echo "$as_me:$LINENO: checking for krb.h" >&5
9615 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
9616 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
9617    hold_cflags=$CFLAGS
9618    CFLAGS="$CFLAGS -I$KRB4/include"
9619    cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 #include <krb.h>
9626 int
9627 main ()
9628 {
9629 int i;
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9636 case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_link") 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } && {
9648          test -z "$ac_c_werror_flag" ||
9649          test ! -s conftest.err
9650        } && test -s conftest$ac_exeext &&
9651        $as_test_x conftest$ac_exeext; then
9652   krb_h=yes krb_incdir=$KRB4/include
9653 else
9654   echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.$ac_ext >&5
9656
9657         CFLAGS=$hold_cflags
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 { (ac_try="$ac_link"
9675 case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } && {
9687          test -z "$ac_c_werror_flag" ||
9688          test ! -s conftest.err
9689        } && test -s conftest$ac_exeext &&
9690        $as_test_x conftest$ac_exeext; then
9691   krb_h=yes krb_incdir=
9692 else
9693   echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9695
9696
9697 fi
9698
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700       conftest$ac_exeext conftest.$ac_ext
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9704       conftest$ac_exeext conftest.$ac_ext
9705    CFLAGS=$hold_cflags
9706 else
9707    cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713 #include <krb.h>
9714 int
9715 main ()
9716 {
9717 int i;
9718   ;
9719   return 0;
9720 }
9721 _ACEOF
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (ac_try="$ac_link"
9724 case "(($ac_try" in
9725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9726   *) ac_try_echo=$ac_try;;
9727 esac
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729   (eval "$ac_link") 2>conftest.er1
9730   ac_status=$?
9731   grep -v '^ *+' conftest.er1 >conftest.err
9732   rm -f conftest.er1
9733   cat conftest.err >&5
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } && {
9736          test -z "$ac_c_werror_flag" ||
9737          test ! -s conftest.err
9738        } && test -s conftest$ac_exeext &&
9739        $as_test_x conftest$ac_exeext; then
9740   krb_h=yes krb_incdir=
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745
9746 fi
9747
9748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9749       conftest$ac_exeext conftest.$ac_ext
9750 fi
9751 if test -z "$krb_h"; then
9752   cat >conftest.$ac_ext <<_ACEOF
9753 /* confdefs.h.  */
9754 _ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h.  */
9758 #include <krb.h>
9759 int
9760 main ()
9761 {
9762 int i;
9763   ;
9764   return 0;
9765 }
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9769 case "(($ac_try" in
9770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771   *) ac_try_echo=$ac_try;;
9772 esac
9773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9774   (eval "$ac_link") 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } && {
9781          test -z "$ac_c_werror_flag" ||
9782          test ! -s conftest.err
9783        } && test -s conftest$ac_exeext &&
9784        $as_test_x conftest$ac_exeext; then
9785   krb_h=yes krb_incdir=
9786 else
9787   echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790         if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
9791        hold_cflags=$CFLAGS
9792        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
9793        cat >conftest.$ac_ext <<_ACEOF
9794 /* confdefs.h.  */
9795 _ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h.  */
9799 #include <krb.h>
9800 int
9801 main ()
9802 {
9803 int i;
9804   ;
9805   return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (ac_try="$ac_link"
9810 case "(($ac_try" in
9811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812   *) ac_try_echo=$ac_try;;
9813 esac
9814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9815   (eval "$ac_link") 2>conftest.er1
9816   ac_status=$?
9817   grep -v '^ *+' conftest.er1 >conftest.err
9818   rm -f conftest.er1
9819   cat conftest.err >&5
9820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821   (exit $ac_status); } && {
9822          test -z "$ac_c_werror_flag" ||
9823          test ! -s conftest.err
9824        } && test -s conftest$ac_exeext &&
9825        $as_test_x conftest$ac_exeext; then
9826   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
9827 else
9828   echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831
9832 fi
9833
9834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9835       conftest$ac_exeext conftest.$ac_ext
9836        CFLAGS=$hold_cflags
9837      fi
9838 fi
9839
9840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9841       conftest$ac_exeext conftest.$ac_ext
9842 fi
9843 { echo "$as_me:$LINENO: result: $krb_h" >&5
9844 echo "${ECHO_T}$krb_h" >&6; }
9845
9846 includeopt=
9847
9848 if test -n "$krb_h"; then
9849   krb_lib=
9850   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
9851        hold_ldflags=$LDFLAGS
9852        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
9853        { echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9854 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6; }
9855 if test "${ac_cv_lib_krb_printf+set}" = set; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   ac_check_lib_save_LIBS=$LIBS
9859 LIBS="-lkrb  $LIBS"
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866
9867 /* Override any GCC internal prototype to avoid an error.
9868    Use char because int might match the return type of a GCC
9869    builtin and then its argument prototype would still apply.  */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char printf ();
9874 int
9875 main ()
9876 {
9877 return printf ();
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_link") 2>conftest.er1
9890   ac_status=$?
9891   grep -v '^ *+' conftest.er1 >conftest.err
9892   rm -f conftest.er1
9893   cat conftest.err >&5
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } && {
9896          test -z "$ac_c_werror_flag" ||
9897          test ! -s conftest.err
9898        } && test -s conftest$ac_exeext &&
9899        $as_test_x conftest$ac_exeext; then
9900   ac_cv_lib_krb_printf=yes
9901 else
9902   echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905         ac_cv_lib_krb_printf=no
9906 fi
9907
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909       conftest$ac_exeext conftest.$ac_ext
9910 LIBS=$ac_check_lib_save_LIBS
9911 fi
9912 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
9913 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6; }
9914 if test $ac_cv_lib_krb_printf = yes; then
9915   krb_lib=yes krb_libdir=${KRB4}/lib
9916 else
9917   LDFLAGS=$hold_ldflags
9918             # Using open here instead of printf so we don't
9919             # get confused by the cached value for printf from above.
9920             { echo "$as_me:$LINENO: checking for open in -lkrb" >&5
9921 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6; }
9922 if test "${ac_cv_lib_krb_open+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-lkrb  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any GCC internal prototype to avoid an error.
9935    Use char because int might match the return type of a GCC
9936    builtin and then its argument prototype would still apply.  */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 char open ();
9941 int
9942 main ()
9943 {
9944 return open ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (ac_try="$ac_link"
9951 case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_link") 2>conftest.er1
9957   ac_status=$?
9958   grep -v '^ *+' conftest.er1 >conftest.err
9959   rm -f conftest.er1
9960   cat conftest.err >&5
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } && {
9963          test -z "$ac_c_werror_flag" ||
9964          test ! -s conftest.err
9965        } && test -s conftest$ac_exeext &&
9966        $as_test_x conftest$ac_exeext; then
9967   ac_cv_lib_krb_open=yes
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972         ac_cv_lib_krb_open=no
9973 fi
9974
9975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9976       conftest$ac_exeext conftest.$ac_ext
9977 LIBS=$ac_check_lib_save_LIBS
9978 fi
9979 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
9980 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6; }
9981 if test $ac_cv_lib_krb_open = yes; then
9982   krb_lib=yes krb_libdir=
9983 fi
9984
9985 fi
9986
9987        LDFLAGS=$hold_ldflags
9988   else
9989        { echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
9990 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6; }
9991 if test "${ac_cv_lib_krb_printf+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   ac_check_lib_save_LIBS=$LIBS
9995 LIBS="-lkrb  $LIBS"
9996 cat >conftest.$ac_ext <<_ACEOF
9997 /* confdefs.h.  */
9998 _ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h.  */
10002
10003 /* Override any GCC internal prototype to avoid an error.
10004    Use char because int might match the return type of a GCC
10005    builtin and then its argument prototype would still apply.  */
10006 #ifdef __cplusplus
10007 extern "C"
10008 #endif
10009 char printf ();
10010 int
10011 main ()
10012 {
10013 return printf ();
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (ac_try="$ac_link"
10020 case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_link") 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } && {
10032          test -z "$ac_c_werror_flag" ||
10033          test ! -s conftest.err
10034        } && test -s conftest$ac_exeext &&
10035        $as_test_x conftest$ac_exeext; then
10036   ac_cv_lib_krb_printf=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041         ac_cv_lib_krb_printf=no
10042 fi
10043
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045       conftest$ac_exeext conftest.$ac_ext
10046 LIBS=$ac_check_lib_save_LIBS
10047 fi
10048 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
10049 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6; }
10050 if test $ac_cv_lib_krb_printf = yes; then
10051   krb_lib=yes krb_libdir=
10052 fi
10053
10054        { echo "$as_me:$LINENO: checking for krb_recvauth" >&5
10055 echo $ECHO_N "checking for krb_recvauth... $ECHO_C" >&6; }
10056 if test "${ac_cv_func_krb_recvauth+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065 /* Define krb_recvauth to an innocuous variant, in case <limits.h> declares krb_recvauth.
10066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10067 #define krb_recvauth innocuous_krb_recvauth
10068
10069 /* System header to define __stub macros and hopefully few prototypes,
10070     which can conflict with char krb_recvauth (); below.
10071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10072     <limits.h> exists even on freestanding compilers.  */
10073
10074 #ifdef __STDC__
10075 # include <limits.h>
10076 #else
10077 # include <assert.h>
10078 #endif
10079
10080 #undef krb_recvauth
10081
10082 /* Override any GCC internal prototype to avoid an error.
10083    Use char because int might match the return type of a GCC
10084    builtin and then its argument prototype would still apply.  */
10085 #ifdef __cplusplus
10086 extern "C"
10087 #endif
10088 char krb_recvauth ();
10089 /* The GNU C library defines this for functions which it implements
10090     to always fail with ENOSYS.  Some functions are actually named
10091     something starting with __ and the normal name is an alias.  */
10092 #if defined __stub_krb_recvauth || defined __stub___krb_recvauth
10093 choke me
10094 #endif
10095
10096 int
10097 main ()
10098 {
10099 return krb_recvauth ();
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (ac_try="$ac_link"
10106 case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_link") 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } && {
10118          test -z "$ac_c_werror_flag" ||
10119          test ! -s conftest.err
10120        } && test -s conftest$ac_exeext &&
10121        $as_test_x conftest$ac_exeext; then
10122   ac_cv_func_krb_recvauth=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127         ac_cv_func_krb_recvauth=no
10128 fi
10129
10130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10131       conftest$ac_exeext conftest.$ac_ext
10132 fi
10133 { echo "$as_me:$LINENO: result: $ac_cv_func_krb_recvauth" >&5
10134 echo "${ECHO_T}$ac_cv_func_krb_recvauth" >&6; }
10135 if test $ac_cv_func_krb_recvauth = yes; then
10136   krb_lib=yes krb_libdir=
10137 fi
10138
10139   fi
10140   if test -n "$krb_lib"; then
10141
10142 cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_KERBEROS 1
10144 _ACEOF
10145
10146     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
10147     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
10148     # -ldes in the command line.  Don't do it permanently so that we honor
10149     # the user's setting for LDFLAGS
10150     hold_ldflags=$LDFLAGS
10151     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
10152     { echo "$as_me:$LINENO: checking for printf in -ldes" >&5
10153 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_des_printf+set}" = set; then
10155   echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157   ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-ldes  $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165
10166 /* Override any GCC internal prototype to avoid an error.
10167    Use char because int might match the return type of a GCC
10168    builtin and then its argument prototype would still apply.  */
10169 #ifdef __cplusplus
10170 extern "C"
10171 #endif
10172 char printf ();
10173 int
10174 main ()
10175 {
10176 return printf ();
10177   ;
10178   return 0;
10179 }
10180 _ACEOF
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_link") 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } && {
10195          test -z "$ac_c_werror_flag" ||
10196          test ! -s conftest.err
10197        } && test -s conftest$ac_exeext &&
10198        $as_test_x conftest$ac_exeext; then
10199   ac_cv_lib_des_printf=yes
10200 else
10201   echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.$ac_ext >&5
10203
10204         ac_cv_lib_des_printf=no
10205 fi
10206
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208       conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10210 fi
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
10212 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6; }
10213 if test $ac_cv_lib_des_printf = yes; then
10214   LIBS="${LIBS} -ldes"
10215 fi
10216
10217
10218 { echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb" >&5
10219 echo $ECHO_N "checking for krb_recvauth in -lkrb... $ECHO_C" >&6; }
10220 if test "${ac_cv_lib_krb_krb_recvauth+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lkrb  $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231
10232 /* Override any GCC internal prototype to avoid an error.
10233    Use char because int might match the return type of a GCC
10234    builtin and then its argument prototype would still apply.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char krb_recvauth ();
10239 int
10240 main ()
10241 {
10242 return krb_recvauth ();
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251   *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254   (eval "$ac_link") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } && {
10261          test -z "$ac_c_werror_flag" ||
10262          test ! -s conftest.err
10263        } && test -s conftest$ac_exeext &&
10264        $as_test_x conftest$ac_exeext; then
10265   ac_cv_lib_krb_krb_recvauth=yes
10266 else
10267   echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10269
10270         ac_cv_lib_krb_krb_recvauth=no
10271 fi
10272
10273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10274       conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_lib_save_LIBS
10276 fi
10277 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_recvauth" >&5
10278 echo "${ECHO_T}$ac_cv_lib_krb_krb_recvauth" >&6; }
10279 if test $ac_cv_lib_krb_krb_recvauth = yes; then
10280   cat >>confdefs.h <<_ACEOF
10281 #define HAVE_LIBKRB 1
10282 _ACEOF
10283
10284   LIBS="-lkrb $LIBS"
10285
10286 fi
10287
10288
10289 { echo "$as_me:$LINENO: checking for krb_recvauth in -lkrb4" >&5
10290 echo $ECHO_N "checking for krb_recvauth in -lkrb4... $ECHO_C" >&6; }
10291 if test "${ac_cv_lib_krb4_krb_recvauth+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   ac_check_lib_save_LIBS=$LIBS
10295 LIBS="-lkrb4  $LIBS"
10296 cat >conftest.$ac_ext <<_ACEOF
10297 /* confdefs.h.  */
10298 _ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h.  */
10302
10303 /* Override any GCC internal prototype to avoid an error.
10304    Use char because int might match the return type of a GCC
10305    builtin and then its argument prototype would still apply.  */
10306 #ifdef __cplusplus
10307 extern "C"
10308 #endif
10309 char krb_recvauth ();
10310 int
10311 main ()
10312 {
10313 return krb_recvauth ();
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext conftest$ac_exeext
10319 if { (ac_try="$ac_link"
10320 case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_link") 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } && {
10332          test -z "$ac_c_werror_flag" ||
10333          test ! -s conftest.err
10334        } && test -s conftest$ac_exeext &&
10335        $as_test_x conftest$ac_exeext; then
10336   ac_cv_lib_krb4_krb_recvauth=yes
10337 else
10338   echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341         ac_cv_lib_krb4_krb_recvauth=no
10342 fi
10343
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345       conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_recvauth" >&5
10349 echo "${ECHO_T}$ac_cv_lib_krb4_krb_recvauth" >&6; }
10350 if test $ac_cv_lib_krb4_krb_recvauth = yes; then
10351   cat >>confdefs.h <<_ACEOF
10352 #define HAVE_LIBKRB4 1
10353 _ACEOF
10354
10355   LIBS="-lkrb4 $LIBS"
10356
10357 fi
10358
10359     LDFLAGS=$hold_ldflags
10360     if test -n "$krb_incdir"; then
10361       includeopt="${includeopt} -I$krb_incdir"
10362     fi
10363   fi
10364 fi
10365
10366 for ac_func in krb_get_err_text
10367 do
10368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h.  */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h.  */
10380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10382 #define $ac_func innocuous_$ac_func
10383
10384 /* System header to define __stub macros and hopefully few prototypes,
10385     which can conflict with char $ac_func (); below.
10386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387     <limits.h> exists even on freestanding compilers.  */
10388
10389 #ifdef __STDC__
10390 # include <limits.h>
10391 #else
10392 # include <assert.h>
10393 #endif
10394
10395 #undef $ac_func
10396
10397 /* Override any GCC internal prototype to avoid an error.
10398    Use char because int might match the return type of a GCC
10399    builtin and then its argument prototype would still apply.  */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char $ac_func ();
10404 /* The GNU C library defines this for functions which it implements
10405     to always fail with ENOSYS.  Some functions are actually named
10406     something starting with __ and the normal name is an alias.  */
10407 #if defined __stub_$ac_func || defined __stub___$ac_func
10408 choke me
10409 #endif
10410
10411 int
10412 main ()
10413 {
10414 return $ac_func ();
10415   ;
10416   return 0;
10417 }
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_link") 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } && {
10433          test -z "$ac_c_werror_flag" ||
10434          test ! -s conftest.err
10435        } && test -s conftest$ac_exeext &&
10436        $as_test_x conftest$ac_exeext; then
10437   eval "$as_ac_var=yes"
10438 else
10439   echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10441
10442         eval "$as_ac_var=no"
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446       conftest$ac_exeext conftest.$ac_ext
10447 fi
10448 ac_res=`eval echo '${'$as_ac_var'}'`
10449                { echo "$as_me:$LINENO: result: $ac_res" >&5
10450 echo "${ECHO_T}$ac_res" >&6; }
10451 if test `eval echo '${'$as_ac_var'}'` = yes; then
10452   cat >>confdefs.h <<_ACEOF
10453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10454 _ACEOF
10455
10456 fi
10457 done
10458
10459
10460
10461
10462 #
10463 # Use --with-gssapi[=DIR] to enable GSSAPI support.
10464 #
10465 # defaults to enabled with DIR in default list below
10466 #
10467 # Search for /SUNHEA/ and read the comments about this default below.
10468 #
10469
10470 # Check whether --with-gssapi was given.
10471 if test "${with_gssapi+set}" = set; then
10472   withval=$with_gssapi;
10473 else
10474   with_gssapi=yes
10475 fi
10476
10477 #
10478 # Try to locate a GSSAPI installation if no location was specified, assuming
10479 # GSSAPI was enabled (the default).
10480 #
10481 if test -n "$acx_gssapi_cv_gssapi"; then
10482   # Granted, this is a slightly ugly way to print this info, but the
10483   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
10484   # AC_CACHE_CHECK worse
10485   { echo "$as_me:$LINENO: checking for GSSAPI" >&5
10486 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
10487 else :; fi
10488 if test "${acx_gssapi_cv_gssapi+set}" = set; then
10489   echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491
10492 if test x$with_gssapi = xyes; then
10493   # --with but no location specified
10494   # assume a gssapi.h or gssapi/gssapi.h locates our install.
10495   #
10496   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
10497   # package installs gssapi.h whether or not the necessary libraries are
10498   # installed.  I'm still not sure whether to consider this a bug.  The long
10499   # way around is to not consider GSSPAI installed unless gss_import_name is
10500   # found, but that brings up a lot of other hassles, like continuing to let
10501   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
10502   # as a debugging aid.  The short way around is to disable GSSAPI by default,
10503   # but I think Sun users have been faced with this for awhile and I haven't
10504   # heard many complaints.
10505   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10506   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
10507     if test x$acx_gssapi_cv_gssapi = xno; then
10508       break
10509     fi
10510     if test x$acx_gssapi_cv_gssapi = xyes; then
10511       { echo "$as_me:$LINENO: checking for GSSAPI" >&5
10512 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
10513       { echo "$as_me:$LINENO: result: " >&5
10514 echo "${ECHO_T}" >&6; }
10515     else
10516       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
10517       { echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
10518 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6; }
10519       { echo "$as_me:$LINENO: result: " >&5
10520 echo "${ECHO_T}" >&6; }
10521     fi
10522     unset ac_cv_header_gssapi_h
10523     unset ac_cv_header_gssapi_gssapi_h
10524     unset ac_cv_header_krb5_h
10525
10526
10527
10528 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
10529 do
10530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10532   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535   echo $ECHO_N "(cached) $ECHO_C" >&6
10536 fi
10537 ac_res=`eval echo '${'$as_ac_Header'}'`
10538                { echo "$as_me:$LINENO: result: $ac_res" >&5
10539 echo "${ECHO_T}$ac_res" >&6; }
10540 else
10541   # Is the header compilable?
10542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 $ac_includes_default
10551 #include <$ac_header>
10552 _ACEOF
10553 rm -f conftest.$ac_objext
10554 if { (ac_try="$ac_compile"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_compile") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && {
10567          test -z "$ac_c_werror_flag" ||
10568          test ! -s conftest.err
10569        } && test -s conftest.$ac_objext; then
10570   ac_header_compiler=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575         ac_header_compiler=no
10576 fi
10577
10578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10580 echo "${ECHO_T}$ac_header_compiler" >&6; }
10581
10582 # Is the header present?
10583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 #include <$ac_header>
10592 _ACEOF
10593 if { (ac_try="$ac_cpp conftest.$ac_ext"
10594 case "(($ac_try" in
10595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596   *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } >/dev/null && {
10606          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10607          test ! -s conftest.err
10608        }; then
10609   ac_header_preproc=yes
10610 else
10611   echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614   ac_header_preproc=no
10615 fi
10616
10617 rm -f conftest.err conftest.$ac_ext
10618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6; }
10620
10621 # So?  What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623   yes:no: )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628     ac_header_preproc=yes
10629     ;;
10630   no:yes:* )
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643     ( cat <<\_ASBOX
10644 ## --------------------------------- ##
10645 ## Report this to bug-cvs@nongnu.org ##
10646 ## --------------------------------- ##
10647 _ASBOX
10648      ) | sed "s/^/$as_me: WARNING:     /" >&2
10649     ;;
10650 esac
10651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10654   echo $ECHO_N "(cached) $ECHO_C" >&6
10655 else
10656   eval "$as_ac_Header=\$ac_header_preproc"
10657 fi
10658 ac_res=`eval echo '${'$as_ac_Header'}'`
10659                { echo "$as_me:$LINENO: result: $ac_res" >&5
10660 echo "${ECHO_T}$ac_res" >&6; }
10661
10662 fi
10663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10664   cat >>confdefs.h <<_ACEOF
10665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10666 _ACEOF
10667
10668 fi
10669
10670 done
10671
10672     if (test "$ac_cv_header_gssapi_h" = yes ||
10673           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
10674         test "$ac_cv_header_krb5_h" = yes; then
10675       break
10676     fi
10677   done
10678   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
10679 else
10680   acx_gssapi_cv_gssapi=$with_gssapi
10681 fi
10682 { echo "$as_me:$LINENO: checking for GSSAPI" >&5
10683 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6; }
10684
10685 fi
10686 { echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
10687 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6; }
10688
10689 #
10690 # Set up GSSAPI includes for later use.  We don't bother to check for
10691 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
10692 #
10693 if test x$acx_gssapi_cv_gssapi = xyes; then
10694   # no special includes necessary
10695   GSSAPI_INCLUDES=""
10696 else
10697   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
10698   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
10699 fi
10700
10701 #
10702 # Get the rest of the information CVS needs to compile with GSSAPI support
10703 #
10704 if test x$acx_gssapi_cv_gssapi != xno; then
10705   # define HAVE_GSSAPI and set up the includes
10706
10707 cat >>confdefs.h <<\_ACEOF
10708 #define HAVE_GSSAPI
10709 _ACEOF
10710
10711   includeopt=$includeopt$GSSAPI_INCLUDES
10712
10713   # locate any other headers
10714   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
10715   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
10716
10717
10718
10719
10720 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
10721 do
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727   echo $ECHO_N "(cached) $ECHO_C" >&6
10728 fi
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730                { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10732 else
10733   # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 $ac_includes_default
10743 #include <$ac_header>
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749   *) ac_try_echo=$ac_try;;
10750 esac
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752   (eval "$ac_compile") 2>conftest.er1
10753   ac_status=$?
10754   grep -v '^ *+' conftest.er1 >conftest.err
10755   rm -f conftest.er1
10756   cat conftest.err >&5
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } && {
10759          test -z "$ac_c_werror_flag" ||
10760          test ! -s conftest.err
10761        } && test -s conftest.$ac_objext; then
10762   ac_header_compiler=yes
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767         ac_header_compiler=no
10768 fi
10769
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10772 echo "${ECHO_T}$ac_header_compiler" >&6; }
10773
10774 # Is the header present?
10775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 #include <$ac_header>
10784 _ACEOF
10785 if { (ac_try="$ac_cpp conftest.$ac_ext"
10786 case "(($ac_try" in
10787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788   *) ac_try_echo=$ac_try;;
10789 esac
10790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10792   ac_status=$?
10793   grep -v '^ *+' conftest.er1 >conftest.err
10794   rm -f conftest.er1
10795   cat conftest.err >&5
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); } >/dev/null && {
10798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10799          test ! -s conftest.err
10800        }; then
10801   ac_header_preproc=yes
10802 else
10803   echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10805
10806   ac_header_preproc=no
10807 fi
10808
10809 rm -f conftest.err conftest.$ac_ext
10810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10811 echo "${ECHO_T}$ac_header_preproc" >&6; }
10812
10813 # So?  What about this header?
10814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10815   yes:no: )
10816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10820     ac_header_preproc=yes
10821     ;;
10822   no:yes:* )
10823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10835     ( cat <<\_ASBOX
10836 ## --------------------------------- ##
10837 ## Report this to bug-cvs@nongnu.org ##
10838 ## --------------------------------- ##
10839 _ASBOX
10840      ) | sed "s/^/$as_me: WARNING:     /" >&2
10841     ;;
10842 esac
10843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   eval "$as_ac_Header=\$ac_header_preproc"
10849 fi
10850 ac_res=`eval echo '${'$as_ac_Header'}'`
10851                { echo "$as_me:$LINENO: result: $ac_res" >&5
10852 echo "${ECHO_T}$ac_res" >&6; }
10853
10854 fi
10855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10856   cat >>confdefs.h <<_ACEOF
10857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10858 _ACEOF
10859
10860 fi
10861
10862 done
10863
10864   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
10865   { echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
10866 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6; }
10867 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870
10871     acx_gssapi_cv_gss_c_nt_hostbased_service=no
10872     if test "$ac_cv_header_gssapi_h" = "yes"; then
10873       cat >conftest.$ac_ext <<_ACEOF
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879 #include <gssapi.h>
10880
10881 _ACEOF
10882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10883   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10884   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10885 else
10886
10887         cat >conftest.$ac_ext <<_ACEOF
10888 /* confdefs.h.  */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h.  */
10893 #include <gssapi.h>
10894
10895 _ACEOF
10896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10897   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10898   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10899 fi
10900 rm -f conftest*
10901
10902
10903 fi
10904 rm -f conftest*
10905
10906     fi
10907     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10908        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
10909       cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h.  */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h.  */
10915 #include <gssapi/gssapi.h>
10916
10917 _ACEOF
10918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10919   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10920   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10921 else
10922
10923         cat >conftest.$ac_ext <<_ACEOF
10924 /* confdefs.h.  */
10925 _ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h.  */
10929 #include <gssapi/gssapi.h>
10930
10931 _ACEOF
10932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10933   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10934   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10935 fi
10936 rm -f conftest*
10937
10938
10939 fi
10940 rm -f conftest*
10941
10942     else :; fi
10943     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
10944        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
10945       cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 #include <gssapi/gssapi_generic.h>
10952
10953 _ACEOF
10954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10955   $EGREP "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
10956   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
10957 else
10958
10959         cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965 #include <gssapi/gssapi_generic.h>
10966
10967 _ACEOF
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969   $EGREP "gss_nt_service_name" >/dev/null 2>&1; then
10970   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
10971 fi
10972 rm -f conftest*
10973
10974
10975 fi
10976 rm -f conftest*
10977
10978     else :; fi
10979
10980 fi
10981 { echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
10982 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6; }
10983   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
10984      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
10985     # don't define for yes since that means it already means something and
10986     # don't define for no since we'd rather the compiler catch the error
10987     # It's debatable whether we'd prefer that the compiler catch the error
10988     #  - it seems our estranged developer is more likely to be familiar with
10989     #    the intricacies of the compiler than with those of autoconf, but by
10990     #    the same token, maybe we'd rather alert them to the fact that most
10991     #    of the support they need to fix the problem is installed if they can
10992     #    simply locate the appropriate symbol.
10993
10994 cat >>confdefs.h <<_ACEOF
10995 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
10996 _ACEOF
10997
10998   else :; fi
10999
11000   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
11001
11002   # Expect the libs to be installed parallel to the headers
11003   #
11004   # We could try once with and once without, but I'm not sure it's worth the
11005   # trouble.
11006   if test x$acx_gssapi_cv_gssapi != xyes; then
11007     if test -z "$LIBS"; then
11008       LIBS="-L$acx_gssapi_cv_gssapi/lib"
11009     else
11010       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
11011     fi
11012   else :; fi
11013
11014       #
11015   # Some of the order below is particular due to library dependencies
11016   #
11017
11018   #
11019   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
11020   #                     that it could have been installed from elsewhere.
11021   #
11022   { echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
11023 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6; }
11024 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   ac_func_search_save_LIBS=$LIBS
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034
11035 /* Override any GCC internal prototype to avoid an error.
11036    Use char because int might match the return type of a GCC
11037    builtin and then its argument prototype would still apply.  */
11038 #ifdef __cplusplus
11039 extern "C"
11040 #endif
11041 char des_set_odd_parity ();
11042 int
11043 main ()
11044 {
11045 return des_set_odd_parity ();
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 for ac_lib in '' des; do
11051   if test -z "$ac_lib"; then
11052     ac_res="none required"
11053   else
11054     ac_res=-l$ac_lib
11055     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11056   fi
11057   rm -f conftest.$ac_objext conftest$ac_exeext
11058 if { (ac_try="$ac_link"
11059 case "(($ac_try" in
11060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061   *) ac_try_echo=$ac_try;;
11062 esac
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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          test -z "$ac_c_werror_flag" ||
11072          test ! -s conftest.err
11073        } && test -s conftest$ac_exeext &&
11074        $as_test_x conftest$ac_exeext; then
11075   ac_cv_search_des_set_odd_parity=$ac_res
11076 else
11077   echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080
11081 fi
11082
11083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11084       conftest$ac_exeext
11085   if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
11086   break
11087 fi
11088 done
11089 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
11090   :
11091 else
11092   ac_cv_search_des_set_odd_parity=no
11093 fi
11094 rm conftest.$ac_ext
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 ac_res=$ac_cv_search_des_set_odd_parity
11100 if test "$ac_res" != no; then
11101   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11102
11103 fi
11104
11105
11106   #
11107   # com_err             Heimdal K 0.3d
11108   #
11109   # com_err             MIT K5 v1.2.2-beta1
11110   #
11111   { echo "$as_me:$LINENO: checking for library containing com_err" >&5
11112 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
11113 if test "${ac_cv_search_com_err+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   ac_func_search_save_LIBS=$LIBS
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 GCC internal prototype to avoid an error.
11125    Use char because int might match the return type of a GCC
11126    builtin and then its argument prototype would still apply.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 char com_err ();
11131 int
11132 main ()
11133 {
11134 return com_err ();
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 for ac_lib in '' com_err; do
11140   if test -z "$ac_lib"; then
11141     ac_res="none required"
11142   else
11143     ac_res=-l$ac_lib
11144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11145   fi
11146   rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_link") 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } && {
11160          test -z "$ac_c_werror_flag" ||
11161          test ! -s conftest.err
11162        } && test -s conftest$ac_exeext &&
11163        $as_test_x conftest$ac_exeext; then
11164   ac_cv_search_com_err=$ac_res
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169
11170 fi
11171
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173       conftest$ac_exeext
11174   if test "${ac_cv_search_com_err+set}" = set; then
11175   break
11176 fi
11177 done
11178 if test "${ac_cv_search_com_err+set}" = set; then
11179   :
11180 else
11181   ac_cv_search_com_err=no
11182 fi
11183 rm conftest.$ac_ext
11184 LIBS=$ac_func_search_save_LIBS
11185 fi
11186 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
11187 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
11188 ac_res=$ac_cv_search_com_err
11189 if test "$ac_res" != no; then
11190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11191
11192 fi
11193
11194
11195   #
11196   # asn1                Heimdal K 0.3d          -lcom_err
11197   #
11198   { echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
11199 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6; }
11200 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   ac_func_search_save_LIBS=$LIBS
11204 cat >conftest.$ac_ext <<_ACEOF
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212    Use char because int might match the return type of a GCC
11213    builtin and then its argument prototype would still apply.  */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char initialize_asn1_error_table_r ();
11218 int
11219 main ()
11220 {
11221 return initialize_asn1_error_table_r ();
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 for ac_lib in '' asn1; do
11227   if test -z "$ac_lib"; then
11228     ac_res="none required"
11229   else
11230     ac_res=-l$ac_lib
11231     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11232   fi
11233   rm -f conftest.$ac_objext conftest$ac_exeext
11234 if { (ac_try="$ac_link"
11235 case "(($ac_try" in
11236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237   *) ac_try_echo=$ac_try;;
11238 esac
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240   (eval "$ac_link") 2>conftest.er1
11241   ac_status=$?
11242   grep -v '^ *+' conftest.er1 >conftest.err
11243   rm -f conftest.er1
11244   cat conftest.err >&5
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } && {
11247          test -z "$ac_c_werror_flag" ||
11248          test ! -s conftest.err
11249        } && test -s conftest$ac_exeext &&
11250        $as_test_x conftest$ac_exeext; then
11251   ac_cv_search_initialize_asn1_error_table_r=$ac_res
11252 else
11253   echo "$as_me: failed program was:" >&5
11254 sed 's/^/| /' conftest.$ac_ext >&5
11255
11256
11257 fi
11258
11259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11260       conftest$ac_exeext
11261   if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
11262   break
11263 fi
11264 done
11265 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
11266   :
11267 else
11268   ac_cv_search_initialize_asn1_error_table_r=no
11269 fi
11270 rm conftest.$ac_ext
11271 LIBS=$ac_func_search_save_LIBS
11272 fi
11273 { echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
11274 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6; }
11275 ac_res=$ac_cv_search_initialize_asn1_error_table_r
11276 if test "$ac_res" != no; then
11277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11278
11279 fi
11280
11281
11282   #
11283   # resolv              required, but not installed by Heimdal K 0.3d
11284   #
11285   # resolv              MIT K5 1.2.2-beta1
11286   #                     Linux 2.2.17
11287   #
11288   { echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
11289 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6; }
11290 if test "${ac_cv_search___dn_expand+set}" = set; then
11291   echo $ECHO_N "(cached) $ECHO_C" >&6
11292 else
11293   ac_func_search_save_LIBS=$LIBS
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h.  */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h.  */
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302    Use char because int might match the return type of a GCC
11303    builtin and then its argument prototype would still apply.  */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char __dn_expand ();
11308 int
11309 main ()
11310 {
11311 return __dn_expand ();
11312   ;
11313   return 0;
11314 }
11315 _ACEOF
11316 for ac_lib in '' resolv; do
11317   if test -z "$ac_lib"; then
11318     ac_res="none required"
11319   else
11320     ac_res=-l$ac_lib
11321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11322   fi
11323   rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_link") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } && {
11337          test -z "$ac_c_werror_flag" ||
11338          test ! -s conftest.err
11339        } && test -s conftest$ac_exeext &&
11340        $as_test_x conftest$ac_exeext; then
11341   ac_cv_search___dn_expand=$ac_res
11342 else
11343   echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350       conftest$ac_exeext
11351   if test "${ac_cv_search___dn_expand+set}" = set; then
11352   break
11353 fi
11354 done
11355 if test "${ac_cv_search___dn_expand+set}" = set; then
11356   :
11357 else
11358   ac_cv_search___dn_expand=no
11359 fi
11360 rm conftest.$ac_ext
11361 LIBS=$ac_func_search_save_LIBS
11362 fi
11363 { echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
11364 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6; }
11365 ac_res=$ac_cv_search___dn_expand
11366 if test "$ac_res" != no; then
11367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11368
11369 fi
11370
11371
11372   #
11373   # crypto             Need by gssapi under FreeBSD 5.4
11374   #
11375   { echo "$as_me:$LINENO: checking for library containing RC4" >&5
11376 echo $ECHO_N "checking for library containing RC4... $ECHO_C" >&6; }
11377 if test "${ac_cv_search_RC4+set}" = set; then
11378   echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380   ac_func_search_save_LIBS=$LIBS
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389    Use char because int might match the return type of a GCC
11390    builtin and then its argument prototype would still apply.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char RC4 ();
11395 int
11396 main ()
11397 {
11398 return RC4 ();
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 for ac_lib in '' crypto; do
11404   if test -z "$ac_lib"; then
11405     ac_res="none required"
11406   else
11407     ac_res=-l$ac_lib
11408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11409   fi
11410   rm -f conftest.$ac_objext conftest$ac_exeext
11411 if { (ac_try="$ac_link"
11412 case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_link") 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } && {
11424          test -z "$ac_c_werror_flag" ||
11425          test ! -s conftest.err
11426        } && test -s conftest$ac_exeext &&
11427        $as_test_x conftest$ac_exeext; then
11428   ac_cv_search_RC4=$ac_res
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433
11434 fi
11435
11436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11437       conftest$ac_exeext
11438   if test "${ac_cv_search_RC4+set}" = set; then
11439   break
11440 fi
11441 done
11442 if test "${ac_cv_search_RC4+set}" = set; then
11443   :
11444 else
11445   ac_cv_search_RC4=no
11446 fi
11447 rm conftest.$ac_ext
11448 LIBS=$ac_func_search_save_LIBS
11449 fi
11450 { echo "$as_me:$LINENO: result: $ac_cv_search_RC4" >&5
11451 echo "${ECHO_T}$ac_cv_search_RC4" >&6; }
11452 ac_res=$ac_cv_search_RC4
11453 if test "$ac_res" != no; then
11454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11455
11456 fi
11457
11458
11459   #
11460   # crypt              Needed by roken under FreeBSD 4.6.
11461   #
11462   { echo "$as_me:$LINENO: checking for library containing crypt" >&5
11463 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
11464 if test "${ac_cv_search_crypt+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   ac_func_search_save_LIBS=$LIBS
11468 cat >conftest.$ac_ext <<_ACEOF
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char crypt ();
11482 int
11483 main ()
11484 {
11485 return crypt ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 for ac_lib in '' crypt; do
11491   if test -z "$ac_lib"; then
11492     ac_res="none required"
11493   else
11494     ac_res=-l$ac_lib
11495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11496   fi
11497   rm -f conftest.$ac_objext conftest$ac_exeext
11498 if { (ac_try="$ac_link"
11499 case "(($ac_try" in
11500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501   *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504   (eval "$ac_link") 2>conftest.er1
11505   ac_status=$?
11506   grep -v '^ *+' conftest.er1 >conftest.err
11507   rm -f conftest.er1
11508   cat conftest.err >&5
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); } && {
11511          test -z "$ac_c_werror_flag" ||
11512          test ! -s conftest.err
11513        } && test -s conftest$ac_exeext &&
11514        $as_test_x conftest$ac_exeext; then
11515   ac_cv_search_crypt=$ac_res
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11524       conftest$ac_exeext
11525   if test "${ac_cv_search_crypt+set}" = set; then
11526   break
11527 fi
11528 done
11529 if test "${ac_cv_search_crypt+set}" = set; then
11530   :
11531 else
11532   ac_cv_search_crypt=no
11533 fi
11534 rm conftest.$ac_ext
11535 LIBS=$ac_func_search_save_LIBS
11536 fi
11537 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
11538 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
11539 ac_res=$ac_cv_search_crypt
11540 if test "$ac_res" != no; then
11541   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11542
11543 fi
11544
11545
11546   #
11547   # roken               Heimdal K 0.3d          -lresolv
11548   # roken               FreeBSD 4.6             -lcrypt
11549   #
11550   { echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
11551 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6; }
11552 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
11553   echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555   ac_func_search_save_LIBS=$LIBS
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h.  */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h.  */
11562
11563 /* Override any GCC internal prototype to avoid an error.
11564    Use char because int might match the return type of a GCC
11565    builtin and then its argument prototype would still apply.  */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 char roken_gethostbyaddr ();
11570 int
11571 main ()
11572 {
11573 return roken_gethostbyaddr ();
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 for ac_lib in '' roken; do
11579   if test -z "$ac_lib"; then
11580     ac_res="none required"
11581   else
11582     ac_res=-l$ac_lib
11583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11584   fi
11585   rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (ac_try="$ac_link"
11587 case "(($ac_try" in
11588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589   *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592   (eval "$ac_link") 2>conftest.er1
11593   ac_status=$?
11594   grep -v '^ *+' conftest.er1 >conftest.err
11595   rm -f conftest.er1
11596   cat conftest.err >&5
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } && {
11599          test -z "$ac_c_werror_flag" ||
11600          test ! -s conftest.err
11601        } && test -s conftest$ac_exeext &&
11602        $as_test_x conftest$ac_exeext; then
11603   ac_cv_search_roken_gethostbyaddr=$ac_res
11604 else
11605   echo "$as_me: failed program was:" >&5
11606 sed 's/^/| /' conftest.$ac_ext >&5
11607
11608
11609 fi
11610
11611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11612       conftest$ac_exeext
11613   if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
11614   break
11615 fi
11616 done
11617 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
11618   :
11619 else
11620   ac_cv_search_roken_gethostbyaddr=no
11621 fi
11622 rm conftest.$ac_ext
11623 LIBS=$ac_func_search_save_LIBS
11624 fi
11625 { echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
11626 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6; }
11627 ac_res=$ac_cv_search_roken_gethostbyaddr
11628 if test "$ac_res" != no; then
11629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11630
11631 fi
11632
11633
11634   #
11635   # k5crypto            MIT K5 v1.2.2-beta1
11636   #
11637   { echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
11638 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6; }
11639 if test "${ac_cv_search_valid_enctype+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   ac_func_search_save_LIBS=$LIBS
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649
11650 /* Override any GCC internal prototype to avoid an error.
11651    Use char because int might match the return type of a GCC
11652    builtin and then its argument prototype would still apply.  */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char valid_enctype ();
11657 int
11658 main ()
11659 {
11660 return valid_enctype ();
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 for ac_lib in '' k5crypto; do
11666   if test -z "$ac_lib"; then
11667     ac_res="none required"
11668   else
11669     ac_res=-l$ac_lib
11670     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11671   fi
11672   rm -f conftest.$ac_objext conftest$ac_exeext
11673 if { (ac_try="$ac_link"
11674 case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_link") 2>conftest.er1
11680   ac_status=$?
11681   grep -v '^ *+' conftest.er1 >conftest.err
11682   rm -f conftest.er1
11683   cat conftest.err >&5
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); } && {
11686          test -z "$ac_c_werror_flag" ||
11687          test ! -s conftest.err
11688        } && test -s conftest$ac_exeext &&
11689        $as_test_x conftest$ac_exeext; then
11690   ac_cv_search_valid_enctype=$ac_res
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695
11696 fi
11697
11698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11699       conftest$ac_exeext
11700   if test "${ac_cv_search_valid_enctype+set}" = set; then
11701   break
11702 fi
11703 done
11704 if test "${ac_cv_search_valid_enctype+set}" = set; then
11705   :
11706 else
11707   ac_cv_search_valid_enctype=no
11708 fi
11709 rm conftest.$ac_ext
11710 LIBS=$ac_func_search_save_LIBS
11711 fi
11712 { echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
11713 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6; }
11714 ac_res=$ac_cv_search_valid_enctype
11715 if test "$ac_res" != no; then
11716   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11717
11718 fi
11719
11720
11721   #
11722   # gen                 ? ? ?                   Needed on Irix 5.3 with some
11723   #                     Irix 5.3                version of Kerberos.  I'm not
11724   #                                             sure which since Irix didn't
11725   #                                             get any testing this time
11726   #                                             around.  Original comment:
11727   #
11728   # This is necessary on Irix 5.3, in order to link against libkrb5 --
11729   # there, an_to_ln.o refers to things defined only in -lgen.
11730   #
11731   { echo "$as_me:$LINENO: checking for library containing compile" >&5
11732 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6; }
11733 if test "${ac_cv_search_compile+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   ac_func_search_save_LIBS=$LIBS
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743
11744 /* Override any GCC internal prototype to avoid an error.
11745    Use char because int might match the return type of a GCC
11746    builtin and then its argument prototype would still apply.  */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 char compile ();
11751 int
11752 main ()
11753 {
11754 return compile ();
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 for ac_lib in '' gen; do
11760   if test -z "$ac_lib"; then
11761     ac_res="none required"
11762   else
11763     ac_res=-l$ac_lib
11764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11765   fi
11766   rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_link") 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } && {
11780          test -z "$ac_c_werror_flag" ||
11781          test ! -s conftest.err
11782        } && test -s conftest$ac_exeext &&
11783        $as_test_x conftest$ac_exeext; then
11784   ac_cv_search_compile=$ac_res
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789
11790 fi
11791
11792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11793       conftest$ac_exeext
11794   if test "${ac_cv_search_compile+set}" = set; then
11795   break
11796 fi
11797 done
11798 if test "${ac_cv_search_compile+set}" = set; then
11799   :
11800 else
11801   ac_cv_search_compile=no
11802 fi
11803 rm conftest.$ac_ext
11804 LIBS=$ac_func_search_save_LIBS
11805 fi
11806 { echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
11807 echo "${ECHO_T}$ac_cv_search_compile" >&6; }
11808 ac_res=$ac_cv_search_compile
11809 if test "$ac_res" != no; then
11810   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11811
11812 fi
11813
11814
11815   #
11816   # krb5                ? ? ?                   -lgen -l???
11817   #                     Irix 5.3
11818   #
11819   # krb5                MIT K5 v1.1.1
11820   #
11821   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
11822   #                     Linux 2.2.17
11823   #
11824   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
11825   #
11826   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
11827   #
11828   { echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
11829 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6; }
11830 if test "${ac_cv_search_krb5_free_context+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833   ac_func_search_save_LIBS=$LIBS
11834 cat >conftest.$ac_ext <<_ACEOF
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840
11841 /* Override any GCC internal prototype to avoid an error.
11842    Use char because int might match the return type of a GCC
11843    builtin and then its argument prototype would still apply.  */
11844 #ifdef __cplusplus
11845 extern "C"
11846 #endif
11847 char krb5_free_context ();
11848 int
11849 main ()
11850 {
11851 return krb5_free_context ();
11852   ;
11853   return 0;
11854 }
11855 _ACEOF
11856 for ac_lib in '' krb5; do
11857   if test -z "$ac_lib"; then
11858     ac_res="none required"
11859   else
11860     ac_res=-l$ac_lib
11861     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11862   fi
11863   rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (ac_try="$ac_link"
11865 case "(($ac_try" in
11866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867   *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870   (eval "$ac_link") 2>conftest.er1
11871   ac_status=$?
11872   grep -v '^ *+' conftest.er1 >conftest.err
11873   rm -f conftest.er1
11874   cat conftest.err >&5
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); } && {
11877          test -z "$ac_c_werror_flag" ||
11878          test ! -s conftest.err
11879        } && test -s conftest$ac_exeext &&
11880        $as_test_x conftest$ac_exeext; then
11881   ac_cv_search_krb5_free_context=$ac_res
11882 else
11883   echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886
11887 fi
11888
11889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11890       conftest$ac_exeext
11891   if test "${ac_cv_search_krb5_free_context+set}" = set; then
11892   break
11893 fi
11894 done
11895 if test "${ac_cv_search_krb5_free_context+set}" = set; then
11896   :
11897 else
11898   ac_cv_search_krb5_free_context=no
11899 fi
11900 rm conftest.$ac_ext
11901 LIBS=$ac_func_search_save_LIBS
11902 fi
11903 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
11904 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6; }
11905 ac_res=$ac_cv_search_krb5_free_context
11906 if test "$ac_res" != no; then
11907   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11908
11909 fi
11910
11911
11912   #
11913   # gss                 This may be the only lib needed under HP-UX, so find it
11914   #                     first.
11915   #
11916   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
11917   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
11918   #                     Kerberos are installed and in the path, this will leave
11919   #                     some of the libraries above in LIBS unnecessarily, but
11920   #                     noone would ever do that, right?
11921   #
11922   # gss                 HP-UX                   ???
11923   #
11924   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
11925   #
11926   # gssapi              Heimdal K 0.3d          -lkrb5
11927   #
11928   { echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
11929 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6; }
11930 if test "${ac_cv_search_gss_import_name+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   ac_func_search_save_LIBS=$LIBS
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h.  */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h.  */
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942    Use char because int might match the return type of a GCC
11943    builtin and then its argument prototype would still apply.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char gss_import_name ();
11948 int
11949 main ()
11950 {
11951 return gss_import_name ();
11952   ;
11953   return 0;
11954 }
11955 _ACEOF
11956 for ac_lib in '' gss gssapi_krb5 gssapi; do
11957   if test -z "$ac_lib"; then
11958     ac_res="none required"
11959   else
11960     ac_res=-l$ac_lib
11961     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11962   fi
11963   rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967   *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970   (eval "$ac_link") 2>conftest.er1
11971   ac_status=$?
11972   grep -v '^ *+' conftest.er1 >conftest.err
11973   rm -f conftest.er1
11974   cat conftest.err >&5
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } && {
11977          test -z "$ac_c_werror_flag" ||
11978          test ! -s conftest.err
11979        } && test -s conftest$ac_exeext &&
11980        $as_test_x conftest$ac_exeext; then
11981   ac_cv_search_gss_import_name=$ac_res
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986
11987 fi
11988
11989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11990       conftest$ac_exeext
11991   if test "${ac_cv_search_gss_import_name+set}" = set; then
11992   break
11993 fi
11994 done
11995 if test "${ac_cv_search_gss_import_name+set}" = set; then
11996   :
11997 else
11998   ac_cv_search_gss_import_name=no
11999 fi
12000 rm conftest.$ac_ext
12001 LIBS=$ac_func_search_save_LIBS
12002 fi
12003 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
12004 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6; }
12005 ac_res=$ac_cv_search_gss_import_name
12006 if test "$ac_res" != no; then
12007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12008
12009 fi
12010
12011 fi
12012
12013
12014
12015
12016
12017
12018 # Let the confiscator request a specific editor
12019
12020 # Check whether --with-editor was given.
12021 if test "${with_editor+set}" = set; then
12022   withval=$with_editor;
12023 else
12024   with_editor=yes
12025 fi
12026
12027
12028 # If --with-editor was supplied with an argument, let it override $EDITOR from
12029 # the user's environment.  We need to unset EDITOR here because AC_CHECK_PROGS
12030 # will let the value of EDITOR ride when it is set rather than searching.  We
12031 # ignore the --without-editor case since it will be caught below.
12032 if test -n "$EDITOR" && test yes != $with_editor; then
12033   $as_unset EDITOR || test "${EDITOR+set}" != set || { EDITOR=; export EDITOR; }
12034 fi
12035
12036 # Set the default when --with-editor wasn't supplied or when it was supplied
12037 # without an argument.
12038 if test yes = $with_editor; then
12039   with_editor="vim vi emacs nano pico edit"
12040 fi
12041
12042 if echo $with_editor |grep ^/ >/dev/null; then
12043   # If $with_editor is an absolute path, issue a warning if the executable
12044   # doesn't exist or isn't usable, but then trust the user and use it
12045   # regardless
12046   EDITOR=$with_editor
12047   { echo "$as_me:$LINENO: checking for an editor" >&5
12048 echo $ECHO_N "checking for an editor... $ECHO_C" >&6; }
12049   { echo "$as_me:$LINENO: result: $EDITOR" >&5
12050 echo "${ECHO_T}$EDITOR" >&6; }
12051   if ! test -f $with_editor \
12052       || ! test -x $with_editor; then
12053     # warn the user that they may encounter problems
12054     { echo "$as_me:$LINENO: WARNING: \`$with_editor' is not a path to an executable file" >&5
12055 echo "$as_me: WARNING: \`$with_editor' is not a path to an executable file" >&2;}
12056   fi
12057 elif test no != "${with_editor}"; then
12058   # Search for an editor
12059   for ac_prog in $with_editor
12060 do
12061   # Extract the first word of "$ac_prog", so it can be a program name with args.
12062 set dummy $ac_prog; ac_word=$2
12063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12065 if test "${ac_cv_prog_EDITOR+set}" = set; then
12066   echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068   if test -n "$EDITOR"; then
12069   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
12070 else
12071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12072 for as_dir in $PATH
12073 do
12074   IFS=$as_save_IFS
12075   test -z "$as_dir" && as_dir=.
12076   for ac_exec_ext in '' $ac_executable_extensions; do
12077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12078     ac_cv_prog_EDITOR="$ac_prog"
12079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12080     break 2
12081   fi
12082 done
12083 done
12084 IFS=$as_save_IFS
12085
12086 fi
12087 fi
12088 EDITOR=$ac_cv_prog_EDITOR
12089 if test -n "$EDITOR"; then
12090   { echo "$as_me:$LINENO: result: $EDITOR" >&5
12091 echo "${ECHO_T}$EDITOR" >&6; }
12092 else
12093   { echo "$as_me:$LINENO: result: no" >&5
12094 echo "${ECHO_T}no" >&6; }
12095 fi
12096
12097
12098   test -n "$EDITOR" && break
12099 done
12100 test -n "$EDITOR" || EDITOR="no"
12101
12102     if test no = "${EDITOR}"; then
12103       { { echo "$as_me:$LINENO: error:
12104     Failed to find a text file editor.  CVS cannot be compiled
12105     without a default log message editor.  Searched for
12106     \`$with_editor'.  Try \`configure --with-editor'." >&5
12107 echo "$as_me: error:
12108     Failed to find a text file editor.  CVS cannot be compiled
12109     without a default log message editor.  Searched for
12110     \`$with_editor'.  Try \`configure --with-editor'." >&2;}
12111    { (exit 1); exit 1; }; }
12112     fi
12113 else
12114   { { echo "$as_me:$LINENO: error:
12115     CVS cannot be compiled without a default log message editor.
12116     Try \`configure --with-editor'." >&5
12117 echo "$as_me: error:
12118     CVS cannot be compiled without a default log message editor.
12119     Try \`configure --with-editor'." >&2;}
12120    { (exit 1); exit 1; }; }
12121 fi
12122
12123
12124 cat >>confdefs.h <<_ACEOF
12125 #define EDITOR_DFLT "$EDITOR"
12126 _ACEOF
12127
12128
12129
12130
12131 # What remote shell transport should the :extssh: client cvs default to using?
12132
12133 # Check whether --with-ssh was given.
12134 if test "${with_ssh+set}" = set; then
12135   withval=$with_ssh;
12136 else
12137   with_ssh="ssh lshc ssh2"
12138 fi
12139
12140
12141 if test no = "$with_ssh"; then
12142   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'ssh'." >&5
12143 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'ssh'." >&2;}
12144   with_ssh=ssh
12145 elif test yes = "$with_ssh"; then
12146   # Make --with-ssh mean the same thing as --with-ssh=ssh
12147   with_ssh=ssh
12148 fi
12149
12150 if echo $with_ssh |grep ^/ >/dev/null; then
12151   # If $with_ssh is an absolute path, issue a warning if the executable
12152   # doesn't exist or isn't usable, but then trust the user and use it
12153   # regardless
12154   with_default_ssh=$with_ssh
12155   { echo "$as_me:$LINENO: checking for a remote shell" >&5
12156 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6; }
12157   if ! test -f $with_ssh \
12158       || ! test -x $with_ssh; then
12159     # warn the user that they may encounter problems
12160     { echo "$as_me:$LINENO: WARNING: $with_ssh is not a path to an executable file" >&5
12161 echo "$as_me: WARNING: $with_ssh is not a path to an executable file" >&2;}
12162   fi
12163 else
12164   # Search for a remote shell
12165   for ac_prog in $with_ssh
12166 do
12167   # Extract the first word of "$ac_prog", so it can be a program name with args.
12168 set dummy $ac_prog; ac_word=$2
12169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12171 if test "${ac_cv_prog_with_default_ssh+set}" = set; then
12172   echo $ECHO_N "(cached) $ECHO_C" >&6
12173 else
12174   if test -n "$with_default_ssh"; then
12175   ac_cv_prog_with_default_ssh="$with_default_ssh" # Let the user override the test.
12176 else
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12179 do
12180   IFS=$as_save_IFS
12181   test -z "$as_dir" && as_dir=.
12182   for ac_exec_ext in '' $ac_executable_extensions; do
12183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184     ac_cv_prog_with_default_ssh="$ac_prog"
12185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12186     break 2
12187   fi
12188 done
12189 done
12190 IFS=$as_save_IFS
12191
12192 fi
12193 fi
12194 with_default_ssh=$ac_cv_prog_with_default_ssh
12195 if test -n "$with_default_ssh"; then
12196   { echo "$as_me:$LINENO: result: $with_default_ssh" >&5
12197 echo "${ECHO_T}$with_default_ssh" >&6; }
12198 else
12199   { echo "$as_me:$LINENO: result: no" >&5
12200 echo "${ECHO_T}no" >&6; }
12201 fi
12202
12203
12204   test -n "$with_default_ssh" && break
12205 done
12206 test -n "$with_default_ssh" || with_default_ssh=""ssh""
12207
12208 fi
12209
12210
12211 cat >>confdefs.h <<_ACEOF
12212 #define SSH_DFLT "$with_default_ssh"
12213 _ACEOF
12214
12215
12216
12217
12218 # What remote shell transport should our client cvs default to using?
12219
12220 # Check whether --with-rsh was given.
12221 if test "${with_rsh+set}" = set; then
12222   withval=$with_rsh;
12223 else
12224           with_rsh="remsh rsh ssh lshc ssh2"
12225 fi
12226
12227
12228 if test no = "$with_rsh"; then
12229   { echo "$as_me:$LINENO: WARNING: Failed to find usable remote shell. Using 'rsh'." >&5
12230 echo "$as_me: WARNING: Failed to find usable remote shell. Using 'rsh'." >&2;}
12231   with_rsh=rsh
12232 elif test yes = "$with_rsh"; then
12233   # Make --with-rsh mean the same thing as --with-rsh=rsh
12234   with_rsh=rsh
12235 fi
12236
12237 if echo $with_rsh |grep ^/ >/dev/null; then
12238   # If $with_rsh is an absolute path, issue a warning if the executable
12239   # doesn't exist or isn't usable, but then trust the user and use it
12240   # regardless
12241   with_default_rsh=$with_rsh
12242   { echo "$as_me:$LINENO: checking for a remote shell" >&5
12243 echo $ECHO_N "checking for a remote shell... $ECHO_C" >&6; }
12244   if ! test -f $with_rsh \
12245       || ! test -x $with_rsh; then
12246     # warn the user that they may encounter problems
12247     { echo "$as_me:$LINENO: WARNING: $with_rsh is not a path to an executable file" >&5
12248 echo "$as_me: WARNING: $with_rsh is not a path to an executable file" >&2;}
12249   fi
12250 else
12251   # Search for a remote shell
12252   for ac_prog in $with_rsh
12253 do
12254   # Extract the first word of "$ac_prog", so it can be a program name with args.
12255 set dummy $ac_prog; ac_word=$2
12256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12258 if test "${ac_cv_prog_with_default_rsh+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   if test -n "$with_default_rsh"; then
12262   ac_cv_prog_with_default_rsh="$with_default_rsh" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269   for ac_exec_ext in '' $ac_executable_extensions; do
12270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271     ac_cv_prog_with_default_rsh="$ac_prog"
12272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276 done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 with_default_rsh=$ac_cv_prog_with_default_rsh
12282 if test -n "$with_default_rsh"; then
12283   { echo "$as_me:$LINENO: result: $with_default_rsh" >&5
12284 echo "${ECHO_T}$with_default_rsh" >&6; }
12285 else
12286   { echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6; }
12288 fi
12289
12290
12291   test -n "$with_default_rsh" && break
12292 done
12293 test -n "$with_default_rsh" || with_default_rsh=""rsh""
12294
12295 fi
12296
12297
12298 cat >>confdefs.h <<_ACEOF
12299 #define RSH_DFLT "$with_default_rsh"
12300 _ACEOF
12301
12302
12303
12304
12305 # Check whether --with-tmpdir was given.
12306 if test "${with_tmpdir+set}" = set; then
12307   withval=$with_tmpdir;
12308 fi
12309
12310
12311 { echo "$as_me:$LINENO: checking for temporary directory" >&5
12312 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6; }
12313 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
12314   for with_tmpdir in /tmp /var/tmp no; do
12315     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
12316         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
12317       break
12318     fi
12319   done
12320   if test no = "$with_tmpdir"; then
12321     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
12322 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
12323     with_tmpdir=/tmp
12324   fi
12325   { echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12326 echo "${ECHO_T}$with_tmpdir" >&6; }
12327 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
12328   { echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12329 echo "${ECHO_T}$with_tmpdir" >&6; }
12330   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
12331 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
12332    { (exit 1); exit 1; }; }
12333 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
12334         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
12335   { echo "$as_me:$LINENO: result: $with_tmpdir" >&5
12336 echo "${ECHO_T}$with_tmpdir" >&6; }
12337   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12338      exist or lacks sufficient permissions for read/write." >&5
12339 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
12340      exist or lacks sufficient permissions for read/write." >&2;}
12341 fi
12342
12343
12344 cat >>confdefs.h <<_ACEOF
12345 #define TMPDIR_DFLT "$with_tmpdir"
12346 _ACEOF
12347
12348
12349
12350
12351
12352
12353 # Check whether --with-umask was given.
12354 if test "${with_umask+set}" = set; then
12355   withval=$with_umask;
12356 fi
12357
12358
12359 if test -z "$with_umask" || test yes = "$with_umask"; then
12360   with_umask=002
12361 elif test no = "$with_umask"; then
12362   with_umask=000
12363 fi
12364
12365
12366 cat >>confdefs.h <<_ACEOF
12367 #define UMASK_DFLT $with_umask
12368 _ACEOF
12369
12370
12371
12372
12373 # Check whether --with-cvs-admin-group was given.
12374 if test "${with_cvs_admin_group+set}" = set; then
12375   withval=$with_cvs_admin_group;
12376 else
12377   with_cvs_admin_group=cvsadmin
12378 fi
12379
12380
12381 if test yes = "$with_cvs_admin_group"; then
12382   with_cvs_admin_group=cvsadmin
12383 fi
12384 if test no != "$with_cvs_admin_group"; then
12385
12386 cat >>confdefs.h <<_ACEOF
12387 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
12388 _ACEOF
12389
12390 fi
12391
12392
12393
12394
12395 # Check whether --enable-cvs-ndbm was given.
12396 if test "${enable_cvs_ndbm+set}" = set; then
12397   enableval=$enable_cvs_ndbm;
12398 else
12399   enable_cvs_ndbm=yes
12400 fi
12401
12402 if test no != "$enable_cvs_ndbm"; then
12403
12404 cat >>confdefs.h <<\_ACEOF
12405 #define MY_NDBM 1
12406 _ACEOF
12407
12408 fi
12409
12410
12411
12412
12413
12414
12415 # Check whether --enable-mmap was given.
12416 if test "${enable_mmap+set}" = set; then
12417   enableval=$enable_mmap;
12418 fi
12419
12420
12421 if test no != "$enable_mmap"; then
12422
12423
12424 for ac_header in stdlib.h unistd.h
12425 do
12426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12428   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 fi
12433 ac_res=`eval echo '${'$as_ac_Header'}'`
12434                { echo "$as_me:$LINENO: result: $ac_res" >&5
12435 echo "${ECHO_T}$ac_res" >&6; }
12436 else
12437   # Is the header compilable?
12438 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12440 cat >conftest.$ac_ext <<_ACEOF
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446 $ac_includes_default
12447 #include <$ac_header>
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (ac_try="$ac_compile"
12451 case "(($ac_try" in
12452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12453   *) ac_try_echo=$ac_try;;
12454 esac
12455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12456   (eval "$ac_compile") 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } && {
12463          test -z "$ac_c_werror_flag" ||
12464          test ! -s conftest.err
12465        } && test -s conftest.$ac_objext; then
12466   ac_header_compiler=yes
12467 else
12468   echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.$ac_ext >&5
12470
12471         ac_header_compiler=no
12472 fi
12473
12474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12476 echo "${ECHO_T}$ac_header_compiler" >&6; }
12477
12478 # Is the header present?
12479 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12480 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12481 cat >conftest.$ac_ext <<_ACEOF
12482 /* confdefs.h.  */
12483 _ACEOF
12484 cat confdefs.h >>conftest.$ac_ext
12485 cat >>conftest.$ac_ext <<_ACEOF
12486 /* end confdefs.h.  */
12487 #include <$ac_header>
12488 _ACEOF
12489 if { (ac_try="$ac_cpp conftest.$ac_ext"
12490 case "(($ac_try" in
12491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492   *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12496   ac_status=$?
12497   grep -v '^ *+' conftest.er1 >conftest.err
12498   rm -f conftest.er1
12499   cat conftest.err >&5
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); } >/dev/null && {
12502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12503          test ! -s conftest.err
12504        }; then
12505   ac_header_preproc=yes
12506 else
12507   echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510   ac_header_preproc=no
12511 fi
12512
12513 rm -f conftest.err conftest.$ac_ext
12514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12515 echo "${ECHO_T}$ac_header_preproc" >&6; }
12516
12517 # So?  What about this header?
12518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12519   yes:no: )
12520     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12521 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12524     ac_header_preproc=yes
12525     ;;
12526   no:yes:* )
12527     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12528 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12529     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12530 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12531     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12532 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12533     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12534 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12537     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12538 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12539     ( cat <<\_ASBOX
12540 ## --------------------------------- ##
12541 ## Report this to bug-cvs@nongnu.org ##
12542 ## --------------------------------- ##
12543 _ASBOX
12544      ) | sed "s/^/$as_me: WARNING:     /" >&2
12545     ;;
12546 esac
12547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   eval "$as_ac_Header=\$ac_header_preproc"
12553 fi
12554 ac_res=`eval echo '${'$as_ac_Header'}'`
12555                { echo "$as_me:$LINENO: result: $ac_res" >&5
12556 echo "${ECHO_T}$ac_res" >&6; }
12557
12558 fi
12559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12560   cat >>confdefs.h <<_ACEOF
12561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12562 _ACEOF
12563
12564 fi
12565
12566 done
12567
12568
12569 for ac_func in getpagesize
12570 do
12571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12585 #define $ac_func innocuous_$ac_func
12586
12587 /* System header to define __stub macros and hopefully few prototypes,
12588     which can conflict with char $ac_func (); below.
12589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12590     <limits.h> exists even on freestanding compilers.  */
12591
12592 #ifdef __STDC__
12593 # include <limits.h>
12594 #else
12595 # include <assert.h>
12596 #endif
12597
12598 #undef $ac_func
12599
12600 /* Override any GCC internal prototype to avoid an error.
12601    Use char because int might match the return type of a GCC
12602    builtin and then its argument prototype would still apply.  */
12603 #ifdef __cplusplus
12604 extern "C"
12605 #endif
12606 char $ac_func ();
12607 /* The GNU C library defines this for functions which it implements
12608     to always fail with ENOSYS.  Some functions are actually named
12609     something starting with __ and the normal name is an alias.  */
12610 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 choke me
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 return $ac_func ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (ac_try="$ac_link"
12624 case "(($ac_try" in
12625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12626   *) ac_try_echo=$ac_try;;
12627 esac
12628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12629   (eval "$ac_link") 2>conftest.er1
12630   ac_status=$?
12631   grep -v '^ *+' conftest.er1 >conftest.err
12632   rm -f conftest.er1
12633   cat conftest.err >&5
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } && {
12636          test -z "$ac_c_werror_flag" ||
12637          test ! -s conftest.err
12638        } && test -s conftest$ac_exeext &&
12639        $as_test_x conftest$ac_exeext; then
12640   eval "$as_ac_var=yes"
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645         eval "$as_ac_var=no"
12646 fi
12647
12648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12649       conftest$ac_exeext conftest.$ac_ext
12650 fi
12651 ac_res=`eval echo '${'$as_ac_var'}'`
12652                { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12654 if test `eval echo '${'$as_ac_var'}'` = yes; then
12655   cat >>confdefs.h <<_ACEOF
12656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 _ACEOF
12658
12659 fi
12660 done
12661
12662 { echo "$as_me:$LINENO: checking for working mmap" >&5
12663 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
12664 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   if test "$cross_compiling" = yes; then
12668   ac_cv_func_mmap_fixed_mapped=no
12669 else
12670   cat >conftest.$ac_ext <<_ACEOF
12671 /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676 $ac_includes_default
12677 /* malloc might have been renamed as rpl_malloc. */
12678 #undef malloc
12679
12680 /* Thanks to Mike Haertel and Jim Avera for this test.
12681    Here is a matrix of mmap possibilities:
12682         mmap private not fixed
12683         mmap private fixed at somewhere currently unmapped
12684         mmap private fixed at somewhere already mapped
12685         mmap shared not fixed
12686         mmap shared fixed at somewhere currently unmapped
12687         mmap shared fixed at somewhere already mapped
12688    For private mappings, we should verify that changes cannot be read()
12689    back from the file, nor mmap's back from the file at a different
12690    address.  (There have been systems where private was not correctly
12691    implemented like the infamous i386 svr4.0, and systems where the
12692    VM page cache was not coherent with the file system buffer cache
12693    like early versions of FreeBSD and possibly contemporary NetBSD.)
12694    For shared mappings, we should conversely verify that changes get
12695    propagated back to all the places they're supposed to be.
12696
12697    Grep wants private fixed already mapped.
12698    The main things grep needs to know about mmap are:
12699    * does it exist and is it safe to write into the mmap'd area
12700    * how to use it (BSD variants)  */
12701
12702 #include <fcntl.h>
12703 #include <sys/mman.h>
12704
12705 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12706 char *malloc ();
12707 #endif
12708
12709 /* This mess was copied from the GNU getpagesize.h.  */
12710 #ifndef HAVE_GETPAGESIZE
12711 /* Assume that all systems that can run configure have sys/param.h.  */
12712 # ifndef HAVE_SYS_PARAM_H
12713 #  define HAVE_SYS_PARAM_H 1
12714 # endif
12715
12716 # ifdef _SC_PAGESIZE
12717 #  define getpagesize() sysconf(_SC_PAGESIZE)
12718 # else /* no _SC_PAGESIZE */
12719 #  ifdef HAVE_SYS_PARAM_H
12720 #   include <sys/param.h>
12721 #   ifdef EXEC_PAGESIZE
12722 #    define getpagesize() EXEC_PAGESIZE
12723 #   else /* no EXEC_PAGESIZE */
12724 #    ifdef NBPG
12725 #     define getpagesize() NBPG * CLSIZE
12726 #     ifndef CLSIZE
12727 #      define CLSIZE 1
12728 #     endif /* no CLSIZE */
12729 #    else /* no NBPG */
12730 #     ifdef NBPC
12731 #      define getpagesize() NBPC
12732 #     else /* no NBPC */
12733 #      ifdef PAGESIZE
12734 #       define getpagesize() PAGESIZE
12735 #      endif /* PAGESIZE */
12736 #     endif /* no NBPC */
12737 #    endif /* no NBPG */
12738 #   endif /* no EXEC_PAGESIZE */
12739 #  else /* no HAVE_SYS_PARAM_H */
12740 #   define getpagesize() 8192   /* punt totally */
12741 #  endif /* no HAVE_SYS_PARAM_H */
12742 # endif /* no _SC_PAGESIZE */
12743
12744 #endif /* no HAVE_GETPAGESIZE */
12745
12746 int
12747 main ()
12748 {
12749   char *data, *data2, *data3;
12750   int i, pagesize;
12751   int fd;
12752
12753   pagesize = getpagesize ();
12754
12755   /* First, make a file with some known garbage in it. */
12756   data = (char *) malloc (pagesize);
12757   if (!data)
12758     return 1;
12759   for (i = 0; i < pagesize; ++i)
12760     *(data + i) = rand ();
12761   umask (0);
12762   fd = creat ("conftest.mmap", 0600);
12763   if (fd < 0)
12764     return 1;
12765   if (write (fd, data, pagesize) != pagesize)
12766     return 1;
12767   close (fd);
12768
12769   /* Next, try to mmap the file at a fixed address which already has
12770      something else allocated at it.  If we can, also make sure that
12771      we see the same garbage.  */
12772   fd = open ("conftest.mmap", O_RDWR);
12773   if (fd < 0)
12774     return 1;
12775   data2 = (char *) malloc (2 * pagesize);
12776   if (!data2)
12777     return 1;
12778   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12779   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12780                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12781     return 1;
12782   for (i = 0; i < pagesize; ++i)
12783     if (*(data + i) != *(data2 + i))
12784       return 1;
12785
12786   /* Finally, make sure that changes to the mapped area do not
12787      percolate back to the file as seen by read().  (This is a bug on
12788      some variants of i386 svr4.0.)  */
12789   for (i = 0; i < pagesize; ++i)
12790     *(data2 + i) = *(data2 + i) + 1;
12791   data3 = (char *) malloc (pagesize);
12792   if (!data3)
12793     return 1;
12794   if (read (fd, data3, pagesize) != pagesize)
12795     return 1;
12796   for (i = 0; i < pagesize; ++i)
12797     if (*(data + i) != *(data3 + i))
12798       return 1;
12799   close (fd);
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807   *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810   (eval "$ac_link") 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12814   { (case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_try") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_cv_func_mmap_fixed_mapped=yes
12824 else
12825   echo "$as_me: program exited with status $ac_status" >&5
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ( exit $ac_status )
12830 ac_cv_func_mmap_fixed_mapped=no
12831 fi
12832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12833 fi
12834
12835
12836 fi
12837 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12838 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12839 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12840
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_MMAP 1
12843 _ACEOF
12844
12845 fi
12846 rm -f conftest.mmap
12847
12848 fi
12849
12850 # Check for options requesting client and server feature. If none are
12851 # given and we have connect(), we want the full client & server arrangement.
12852 # Check whether --enable-client was given.
12853 if test "${enable_client+set}" = set; then
12854   enableval=$enable_client;
12855 else
12856   if test "$ac_cv_search_connect" != no; then
12857     enable_client=yes
12858   fi
12859 fi
12860
12861 if test no != "$enable_client"; then
12862
12863 cat >>confdefs.h <<\_ACEOF
12864 #define CLIENT_SUPPORT 1
12865 _ACEOF
12866
12867 fi
12868
12869 # Check whether --enable-password-authenticated-client was given.
12870 if test "${enable_password_authenticated_client+set}" = set; then
12871   enableval=$enable_password_authenticated_client;
12872 fi
12873
12874
12875 if test no != "$enable_password_authenticated_client"; then
12876   if test no != "$enable_client"; then
12877
12878 cat >>confdefs.h <<\_ACEOF
12879 #define AUTH_CLIENT_SUPPORT 1
12880 _ACEOF
12881
12882   else
12883     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-client is meaningless with
12884        the CVS client disabled (--disable-client)" >&5
12885 echo "$as_me: WARNING: --enable-password-authenticated-client is meaningless with
12886        the CVS client disabled (--disable-client)" >&2;}
12887   fi
12888 fi
12889
12890
12891 # Check whether --enable-server was given.
12892 if test "${enable_server+set}" = set; then
12893   enableval=$enable_server;
12894 else
12895   if test "$ac_cv_search_connect" != no; then
12896      enable_server=yes
12897    fi
12898 fi
12899
12900
12901 if test no != "$enable_server"; then
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define SERVER_SUPPORT 1
12905 _ACEOF
12906
12907
12908             { echo "$as_me:$LINENO: checking for library containing crypt" >&5
12909 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
12910 if test "${ac_cv_search_crypt+set}" = set; then
12911   echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913   ac_func_search_save_LIBS=$LIBS
12914 cat >conftest.$ac_ext <<_ACEOF
12915 /* confdefs.h.  */
12916 _ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h.  */
12920
12921 /* Override any GCC internal prototype to avoid an error.
12922    Use char because int might match the return type of a GCC
12923    builtin and then its argument prototype would still apply.  */
12924 #ifdef __cplusplus
12925 extern "C"
12926 #endif
12927 char crypt ();
12928 int
12929 main ()
12930 {
12931 return crypt ();
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 for ac_lib in '' crypt; do
12937   if test -z "$ac_lib"; then
12938     ac_res="none required"
12939   else
12940     ac_res=-l$ac_lib
12941     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12942   fi
12943   rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_link") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } && {
12957          test -z "$ac_c_werror_flag" ||
12958          test ! -s conftest.err
12959        } && test -s conftest$ac_exeext &&
12960        $as_test_x conftest$ac_exeext; then
12961   ac_cv_search_crypt=$ac_res
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966
12967 fi
12968
12969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12970       conftest$ac_exeext
12971   if test "${ac_cv_search_crypt+set}" = set; then
12972   break
12973 fi
12974 done
12975 if test "${ac_cv_search_crypt+set}" = set; then
12976   :
12977 else
12978   ac_cv_search_crypt=no
12979 fi
12980 rm conftest.$ac_ext
12981 LIBS=$ac_func_search_save_LIBS
12982 fi
12983 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
12984 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
12985 ac_res=$ac_cv_search_crypt
12986 if test "$ac_res" != no; then
12987   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12988
12989 cat >>confdefs.h <<\_ACEOF
12990 #define HAVE_CRYPT 1
12991 _ACEOF
12992
12993
12994 cat >>confdefs.h <<\_ACEOF
12995 #define AUTH_SERVER_SUPPORT 1
12996 _ACEOF
12997
12998 fi
12999
13000           # Check whether --enable-server-flow-control was given.
13001 if test "${enable_server_flow_control+set}" = set; then
13002   enableval=$enable_server_flow_control; if test yes = $enable_server_flow_control; then
13003        enable_server_flow_control=1M,2M
13004      fi
13005 else
13006   enable_server_flow_control=1M,2M
13007 fi
13008
13009   if test no != $enable_server_flow_control; then
13010     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
13011     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
13012     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
13013     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
13014     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
13015     case $ccvs_lwm_E in
13016         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
13017         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
13018         k) ccvs_lwm="$ccvs_lwm * 1024";;
13019         b | '') ;;
13020         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
13021                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
13022 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
13023                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
13024    { (exit 1); exit 1; }; }
13025       esac
13026     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
13027     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
13028     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
13029     case $ccvs_hwm_E in
13030         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
13031         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
13032         k) ccvs_hwm="$ccvs_hwm * 1024";;
13033         b | '') ccvs_hwm="$ccvs_hwm";;
13034         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
13035                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
13036 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
13037                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
13038    { (exit 1); exit 1; }; }
13039       esac
13040
13041
13042 cat >>confdefs.h <<\_ACEOF
13043 #define SERVER_FLOWCONTROL 1
13044 _ACEOF
13045
13046
13047 cat >>confdefs.h <<_ACEOF
13048 #define SERVER_LO_WATER ($ccvs_lwm)
13049 _ACEOF
13050
13051
13052 cat >>confdefs.h <<_ACEOF
13053 #define SERVER_HI_WATER ($ccvs_hwm)
13054 _ACEOF
13055
13056   fi # enable_server_flow_control
13057 fi # enable_server
13058
13059
13060
13061 # Check whether --enable-case-sensitivity was given.
13062 if test "${enable_case_sensitivity+set}" = set; then
13063   enableval=$enable_case_sensitivity; case "$enable_case_sensitivity" in
13064        yes | no | auto) ;;
13065        *)
13066           { { echo "$as_me:$LINENO: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&5
13067 echo "$as_me: error: Unrecognized argument to --enable-case-sensitivity: \`$enable_case_sensitivity'.  Acceptable values are \`yes', \`no', and \`auto'." >&2;}
13068    { (exit 1); exit 1; }; }
13069           ;;
13070      esac
13071 else
13072   enable_case_sensitivity=auto
13073 fi
13074
13075
13076 acx_forced=' (forced)'
13077 { echo "$as_me:$LINENO: checking for a case sensitive file system" >&5
13078 echo $ECHO_N "checking for a case sensitive file system... $ECHO_C" >&6; }
13079 if test $enable_case_sensitivity = auto; then
13080         if test "${acx_cv_case_sensitive+set}" = set; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083    rm -f ac_TEST_filenames_CASE_sensitive
13084     echo foo >ac_test_filenames_case_sensitive
13085     if test -f ac_TEST_filenames_CASE_sensitive; then
13086       acx_cv_case_sensitive=no
13087     else
13088       acx_cv_case_sensitive=yes
13089     fi
13090     rm ac_test_filenames_case_sensitive
13091
13092 fi
13093
13094   enable_case_sensitivity=$acx_cv_case_sensitive
13095   acx_forced=
13096 fi
13097 { echo "$as_me:$LINENO: result: $enable_case_sensitivity$acx_forced" >&5
13098 echo "${ECHO_T}$enable_case_sensitivity$acx_forced" >&6; }
13099 if test $enable_case_sensitivity = no; then
13100
13101 cat >>confdefs.h <<\_ACEOF
13102 #define FILENAMES_CASE_INSENSITIVE 1
13103 _ACEOF
13104
13105       case " $LIBOBJS " in
13106   *" fncase.$ac_objext "* ) ;;
13107   *) LIBOBJS="$LIBOBJS fncase.$ac_objext"
13108  ;;
13109 esac
13110
13111 fi
13112
13113
13114
13115
13116 # Check whether --enable-encryption was given.
13117 if test "${enable_encryption+set}" = set; then
13118   enableval=$enable_encryption;
13119 else
13120   enable_encryption=no
13121 fi
13122
13123 if test "$enable_encryption" = yes; then
13124   if test no != "$with_client" || test no != "$with_server"; then
13125
13126 cat >>confdefs.h <<\_ACEOF
13127 #define ENCRYPTION 1
13128 _ACEOF
13129
13130   else
13131     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless when neither the CVS client
13132        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
13133 echo "$as_me: WARNING: --enable-encryption is meaningless when neither the CVS client
13134        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
13135   fi
13136 fi
13137
13138
13139
13140
13141 # Check whether --enable-force-editor was given.
13142 if test "${enable_force_editor+set}" = set; then
13143   enableval=$enable_force_editor;
13144 else
13145   enable_force_editor=no
13146 fi
13147
13148
13149 if test yes = "$enable_force_editor"; then
13150
13151 cat >>confdefs.h <<\_ACEOF
13152 #define FORCE_USE_EDITOR 1
13153 _ACEOF
13154
13155 fi
13156
13157
13158
13159
13160 # Check whether --enable-rootcommit was given.
13161 if test "${enable_rootcommit+set}" = set; then
13162   enableval=$enable_rootcommit;
13163 else
13164   enable_rootcommit=no
13165 fi
13166
13167 if test "$enable_rootcommit" = no; then
13168
13169 cat >>confdefs.h <<\_ACEOF
13170 #define CVS_BADROOT 1
13171 _ACEOF
13172
13173 fi
13174
13175
13176
13177
13178
13179
13180
13181
13182 { echo "$as_me:$LINENO: checking for cygwin32" >&5
13183 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6; }
13184 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
13185   echo $ECHO_N "(cached) $ECHO_C" >&6
13186 else
13187   cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193
13194 int
13195 main ()
13196 {
13197 return __CYGWIN32__;
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206   *) ac_try_echo=$ac_try;;
13207 esac
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209   (eval "$ac_compile") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } && {
13216          test -z "$ac_c_werror_flag" ||
13217          test ! -s conftest.err
13218        } && test -s conftest.$ac_objext; then
13219   ccvs_cv_sys_cygwin32=yes
13220 else
13221   echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224         ccvs_cv_sys_cygwin32=no
13225 fi
13226
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228 fi
13229 { echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
13230 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6; }
13231 if test $ccvs_cv_sys_cygwin32 = yes; then
13232   LIBS="$LIBS -ladvapi32"
13233
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define UTIME_EXPECTS_WRITABLE 1
13237 _ACEOF
13238
13239
13240
13241 cat >>confdefs.h <<\_ACEOF
13242 #define USE_SETMODE_STDOUT 1
13243 _ACEOF
13244
13245
13246 cat >>confdefs.h <<\_ACEOF
13247 #define HAVE_SETMODE 1
13248 _ACEOF
13249
13250 fi
13251
13252 ac_config_files="$ac_config_files contrib/check_cvs"
13253
13254 ac_config_files="$ac_config_files contrib/clmerge"
13255
13256 ac_config_files="$ac_config_files contrib/cln_hist"
13257
13258 ac_config_files="$ac_config_files contrib/commit_prep"
13259
13260 ac_config_files="$ac_config_files contrib/cvs_acls"
13261
13262 ac_config_files="$ac_config_files contrib/log"
13263
13264 ac_config_files="$ac_config_files contrib/log_accum"
13265
13266 ac_config_files="$ac_config_files contrib/mfpipe"
13267
13268 ac_config_files="$ac_config_files contrib/pvcs2rcs"
13269
13270 ac_config_files="$ac_config_files contrib/rcs2log:contrib/rcs2log.sh"
13271
13272 ac_config_files="$ac_config_files contrib/rcslock"
13273
13274 ac_config_files="$ac_config_files contrib/sccs2rcs"
13275
13276 ac_config_files="$ac_config_files doc/mkman:doc/mkman.pl"
13277
13278 ac_config_files="$ac_config_files src/cvsbug"
13279
13280 ac_config_files="$ac_config_files windows-NT/fix-msvc-mak:windows-NT/fix-msvc-mak-head.pl:windows-NT/fix-msvc-mak.pl"
13281
13282
13283 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"
13284
13285
13286 cat >confcache <<\_ACEOF
13287 # This file is a shell script that caches the results of configure
13288 # tests run on this system so they can be shared between configure
13289 # scripts and configure runs, see configure's option --config-cache.
13290 # It is not useful on other systems.  If it contains results you don't
13291 # want to keep, you may remove or edit it.
13292 #
13293 # config.status only pays attention to the cache file if you give it
13294 # the --recheck option to rerun configure.
13295 #
13296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13298 # following values.
13299
13300 _ACEOF
13301
13302 # The following way of writing the cache mishandles newlines in values,
13303 # but we know of no workaround that is simple, portable, and efficient.
13304 # So, we kill variables containing newlines.
13305 # Ultrix sh set writes to stderr and can't be redirected directly,
13306 # and sets the high bit in the cache file unless we assign to the vars.
13307 (
13308   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13309     eval ac_val=\$$ac_var
13310     case $ac_val in #(
13311     *${as_nl}*)
13312       case $ac_var in #(
13313       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13314 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13315       esac
13316       case $ac_var in #(
13317       _ | IFS | as_nl) ;; #(
13318       *) $as_unset $ac_var ;;
13319       esac ;;
13320     esac
13321   done
13322
13323   (set) 2>&1 |
13324     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13325     *${as_nl}ac_space=\ *)
13326       # `set' does not quote correctly, so add quotes (double-quote
13327       # substitution turns \\\\ into \\, and sed turns \\ into \).
13328       sed -n \
13329         "s/'/'\\\\''/g;
13330           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13331       ;; #(
13332     *)
13333       # `set' quotes correctly as required by POSIX, so do not add quotes.
13334       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13335       ;;
13336     esac |
13337     sort
13338 ) |
13339   sed '
13340      /^ac_cv_env_/b end
13341      t clear
13342      :clear
13343      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13344      t end
13345      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13346      :end' >>confcache
13347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13348   if test -w "$cache_file"; then
13349     test "x$cache_file" != "x/dev/null" &&
13350       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13351 echo "$as_me: updating cache $cache_file" >&6;}
13352     cat confcache >$cache_file
13353   else
13354     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13355 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13356   fi
13357 fi
13358 rm -f confcache
13359
13360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13361 # Let make expand exec_prefix.
13362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13363
13364 DEFS=-DHAVE_CONFIG_H
13365
13366 ac_libobjs=
13367 ac_ltlibobjs=
13368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13369   # 1. Remove the extension, and $U if already installed.
13370   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13371   ac_i=`echo "$ac_i" | sed "$ac_script"`
13372   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13373   #    will be set to the directory where LIBOBJS objects are built.
13374   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13375   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13376 done
13377 LIBOBJS=$ac_libobjs
13378
13379 LTLIBOBJS=$ac_ltlibobjs
13380
13381
13382 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13383   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13384 Usually this means the macro was only invoked conditionally." >&5
13385 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13386 Usually this means the macro was only invoked conditionally." >&2;}
13387    { (exit 1); exit 1; }; }
13388 fi
13389 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13390   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13391 Usually this means the macro was only invoked conditionally." >&5
13392 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13393 Usually this means the macro was only invoked conditionally." >&2;}
13394    { (exit 1); exit 1; }; }
13395 fi
13396 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13397   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13398 Usually this means the macro was only invoked conditionally." >&5
13399 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13400 Usually this means the macro was only invoked conditionally." >&2;}
13401    { (exit 1); exit 1; }; }
13402 fi
13403 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
13404   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13405 Usually this means the macro was only invoked conditionally." >&5
13406 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
13407 Usually this means the macro was only invoked conditionally." >&2;}
13408    { (exit 1); exit 1; }; }
13409 fi
13410
13411 : ${CONFIG_STATUS=./config.status}
13412 ac_clean_files_save=$ac_clean_files
13413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13414 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13415 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13416 cat >$CONFIG_STATUS <<_ACEOF
13417 #! $SHELL
13418 # Generated by $as_me.
13419 # Run this file to recreate the current configuration.
13420 # Compiler output produced by configure, useful for debugging
13421 # configure, is in config.log if it exists.
13422
13423 debug=false
13424 ac_cs_recheck=false
13425 ac_cs_silent=false
13426 SHELL=\${CONFIG_SHELL-$SHELL}
13427 _ACEOF
13428
13429 cat >>$CONFIG_STATUS <<\_ACEOF
13430 ## --------------------- ##
13431 ## M4sh Initialization.  ##
13432 ## --------------------- ##
13433
13434 # Be more Bourne compatible
13435 DUALCASE=1; export DUALCASE # for MKS sh
13436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13437   emulate sh
13438   NULLCMD=:
13439   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13440   # is contrary to our usage.  Disable this feature.
13441   alias -g '${1+"$@"}'='"$@"'
13442   setopt NO_GLOB_SUBST
13443 else
13444   case `(set -o) 2>/dev/null` in
13445   *posix*) set -o posix ;;
13446 esac
13447
13448 fi
13449
13450
13451
13452
13453 # PATH needs CR
13454 # Avoid depending upon Character Ranges.
13455 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13456 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13457 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13458 as_cr_digits='0123456789'
13459 as_cr_alnum=$as_cr_Letters$as_cr_digits
13460
13461 # The user is always right.
13462 if test "${PATH_SEPARATOR+set}" != set; then
13463   echo "#! /bin/sh" >conf$$.sh
13464   echo  "exit 0"   >>conf$$.sh
13465   chmod +x conf$$.sh
13466   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13467     PATH_SEPARATOR=';'
13468   else
13469     PATH_SEPARATOR=:
13470   fi
13471   rm -f conf$$.sh
13472 fi
13473
13474 # Support unset when possible.
13475 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13476   as_unset=unset
13477 else
13478   as_unset=false
13479 fi
13480
13481
13482 # IFS
13483 # We need space, tab and new line, in precisely that order.  Quoting is
13484 # there to prevent editors from complaining about space-tab.
13485 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13486 # splitting by setting IFS to empty value.)
13487 as_nl='
13488 '
13489 IFS=" ""        $as_nl"
13490
13491 # Find who we are.  Look in the path if we contain no directory separator.
13492 case $0 in
13493   *[\\/]* ) as_myself=$0 ;;
13494   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13495 for as_dir in $PATH
13496 do
13497   IFS=$as_save_IFS
13498   test -z "$as_dir" && as_dir=.
13499   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13500 done
13501 IFS=$as_save_IFS
13502
13503      ;;
13504 esac
13505 # We did not find ourselves, most probably we were run as `sh COMMAND'
13506 # in which case we are not to be found in the path.
13507 if test "x$as_myself" = x; then
13508   as_myself=$0
13509 fi
13510 if test ! -f "$as_myself"; then
13511   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13512   { (exit 1); exit 1; }
13513 fi
13514
13515 # Work around bugs in pre-3.0 UWIN ksh.
13516 for as_var in ENV MAIL MAILPATH
13517 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13518 done
13519 PS1='$ '
13520 PS2='> '
13521 PS4='+ '
13522
13523 # NLS nuisances.
13524 for as_var in \
13525   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13526   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13527   LC_TELEPHONE LC_TIME
13528 do
13529   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13530     eval $as_var=C; export $as_var
13531   else
13532     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13533   fi
13534 done
13535
13536 # Required to use basename.
13537 if expr a : '\(a\)' >/dev/null 2>&1 &&
13538    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13539   as_expr=expr
13540 else
13541   as_expr=false
13542 fi
13543
13544 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13545   as_basename=basename
13546 else
13547   as_basename=false
13548 fi
13549
13550
13551 # Name of the executable.
13552 as_me=`$as_basename -- "$0" ||
13553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13554          X"$0" : 'X\(//\)$' \| \
13555          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13556 echo X/"$0" |
13557     sed '/^.*\/\([^/][^/]*\)\/*$/{
13558             s//\1/
13559             q
13560           }
13561           /^X\/\(\/\/\)$/{
13562             s//\1/
13563             q
13564           }
13565           /^X\/\(\/\).*/{
13566             s//\1/
13567             q
13568           }
13569           s/.*/./; q'`
13570
13571 # CDPATH.
13572 $as_unset CDPATH
13573
13574
13575
13576   as_lineno_1=$LINENO
13577   as_lineno_2=$LINENO
13578   test "x$as_lineno_1" != "x$as_lineno_2" &&
13579   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13580
13581   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13582   # uniformly replaced by the line number.  The first 'sed' inserts a
13583   # line-number line after each line using $LINENO; the second 'sed'
13584   # does the real work.  The second script uses 'N' to pair each
13585   # line-number line with the line containing $LINENO, and appends
13586   # trailing '-' during substitution so that $LINENO is not a special
13587   # case at line end.
13588   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13589   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13590   # E. McMahon (1931-1989) for sed's syntax.  :-)
13591   sed -n '
13592     p
13593     /[$]LINENO/=
13594   ' <$as_myself |
13595     sed '
13596       s/[$]LINENO.*/&-/
13597       t lineno
13598       b
13599       :lineno
13600       N
13601       :loop
13602       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13603       t loop
13604       s/-\n.*//
13605     ' >$as_me.lineno &&
13606   chmod +x "$as_me.lineno" ||
13607     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13608    { (exit 1); exit 1; }; }
13609
13610   # Don't try to exec as it changes $[0], causing all sort of problems
13611   # (the dirname of $[0] is not the place where we might find the
13612   # original and so on.  Autoconf is especially sensitive to this).
13613   . "./$as_me.lineno"
13614   # Exit status is that of the last command.
13615   exit
13616 }
13617
13618
13619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13620   as_dirname=dirname
13621 else
13622   as_dirname=false
13623 fi
13624
13625 ECHO_C= ECHO_N= ECHO_T=
13626 case `echo -n x` in
13627 -n*)
13628   case `echo 'x\c'` in
13629   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13630   *)   ECHO_C='\c';;
13631   esac;;
13632 *)
13633   ECHO_N='-n';;
13634 esac
13635
13636 if expr a : '\(a\)' >/dev/null 2>&1 &&
13637    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13638   as_expr=expr
13639 else
13640   as_expr=false
13641 fi
13642
13643 rm -f conf$$ conf$$.exe conf$$.file
13644 if test -d conf$$.dir; then
13645   rm -f conf$$.dir/conf$$.file
13646 else
13647   rm -f conf$$.dir
13648   mkdir conf$$.dir
13649 fi
13650 echo >conf$$.file
13651 if ln -s conf$$.file conf$$ 2>/dev/null; then
13652   as_ln_s='ln -s'
13653   # ... but there are two gotchas:
13654   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13655   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13656   # In both cases, we have to default to `cp -p'.
13657   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13658     as_ln_s='cp -p'
13659 elif ln conf$$.file conf$$ 2>/dev/null; then
13660   as_ln_s=ln
13661 else
13662   as_ln_s='cp -p'
13663 fi
13664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13665 rmdir conf$$.dir 2>/dev/null
13666
13667 if mkdir -p . 2>/dev/null; then
13668   as_mkdir_p=:
13669 else
13670   test -d ./-p && rmdir ./-p
13671   as_mkdir_p=false
13672 fi
13673
13674 if test -x / >/dev/null 2>&1; then
13675   as_test_x='test -x'
13676 else
13677   if ls -dL / >/dev/null 2>&1; then
13678     as_ls_L_option=L
13679   else
13680     as_ls_L_option=
13681   fi
13682   as_test_x='
13683     eval sh -c '\''
13684       if test -d "$1"; then
13685         test -d "$1/.";
13686       else
13687         case $1 in
13688         -*)set "./$1";;
13689         esac;
13690         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13691         ???[sx]*):;;*)false;;esac;fi
13692     '\'' sh
13693   '
13694 fi
13695 as_executable_p=$as_test_x
13696
13697 # Sed expression to map a string onto a valid CPP name.
13698 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13699
13700 # Sed expression to map a string onto a valid variable name.
13701 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13702
13703
13704 exec 6>&1
13705
13706 # Save the log message, to keep $[0] and so on meaningful, and to
13707 # report actual input values of CONFIG_FILES etc. instead of their
13708 # values after options handling.
13709 ac_log="
13710 This file was extended by Concurrent Versions System (CVS) $as_me 1.11.22.1, which was
13711 generated by GNU Autoconf 2.61.  Invocation command line was
13712
13713   CONFIG_FILES    = $CONFIG_FILES
13714   CONFIG_HEADERS  = $CONFIG_HEADERS
13715   CONFIG_LINKS    = $CONFIG_LINKS
13716   CONFIG_COMMANDS = $CONFIG_COMMANDS
13717   $ $0 $@
13718
13719 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13720 "
13721
13722 _ACEOF
13723
13724 cat >>$CONFIG_STATUS <<_ACEOF
13725 # Files that config.status was made for.
13726 config_files="$ac_config_files"
13727 config_headers="$ac_config_headers"
13728 config_links="$ac_config_links"
13729 config_commands="$ac_config_commands"
13730
13731 _ACEOF
13732
13733 cat >>$CONFIG_STATUS <<\_ACEOF
13734 ac_cs_usage="\
13735 \`$as_me' instantiates files from templates according to the
13736 current configuration.
13737
13738 Usage: $0 [OPTIONS] [FILE]...
13739
13740   -h, --help       print this help, then exit
13741   -V, --version    print version number and configuration settings, then exit
13742   -q, --quiet      do not print progress messages
13743   -d, --debug      don't remove temporary files
13744       --recheck    update $as_me by reconfiguring in the same conditions
13745   --file=FILE[:TEMPLATE]
13746                    instantiate the configuration file FILE
13747   --header=FILE[:TEMPLATE]
13748                    instantiate the configuration header FILE
13749
13750 Configuration files:
13751 $config_files
13752
13753 Configuration headers:
13754 $config_headers
13755
13756 Configuration links:
13757 $config_links
13758
13759 Configuration commands:
13760 $config_commands
13761
13762 Report bugs to <bug-autoconf@gnu.org>."
13763
13764 _ACEOF
13765 cat >>$CONFIG_STATUS <<_ACEOF
13766 ac_cs_version="\\
13767 Concurrent Versions System (CVS) config.status 1.11.22.1
13768 configured by $0, generated by GNU Autoconf 2.61,
13769   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13770
13771 Copyright (C) 2006 Free Software Foundation, Inc.
13772 This config.status script is free software; the Free Software Foundation
13773 gives unlimited permission to copy, distribute and modify it."
13774
13775 ac_pwd='$ac_pwd'
13776 srcdir='$srcdir'
13777 INSTALL='$INSTALL'
13778 MKDIR_P='$MKDIR_P'
13779 _ACEOF
13780
13781 cat >>$CONFIG_STATUS <<\_ACEOF
13782 # If no file are specified by the user, then we need to provide default
13783 # value.  By we need to know if files were specified by the user.
13784 ac_need_defaults=:
13785 while test $# != 0
13786 do
13787   case $1 in
13788   --*=*)
13789     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13790     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13791     ac_shift=:
13792     ;;
13793   *)
13794     ac_option=$1
13795     ac_optarg=$2
13796     ac_shift=shift
13797     ;;
13798   esac
13799
13800   case $ac_option in
13801   # Handling of the options.
13802   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13803     ac_cs_recheck=: ;;
13804   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13805     echo "$ac_cs_version"; exit ;;
13806   --debug | --debu | --deb | --de | --d | -d )
13807     debug=: ;;
13808   --file | --fil | --fi | --f )
13809     $ac_shift
13810     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13811     ac_need_defaults=false;;
13812   --header | --heade | --head | --hea )
13813     $ac_shift
13814     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13815     ac_need_defaults=false;;
13816   --he | --h)
13817     # Conflict between --help and --header
13818     { echo "$as_me: error: ambiguous option: $1
13819 Try \`$0 --help' for more information." >&2
13820    { (exit 1); exit 1; }; };;
13821   --help | --hel | -h )
13822     echo "$ac_cs_usage"; exit ;;
13823   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13824   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13825     ac_cs_silent=: ;;
13826
13827   # This is an error.
13828   -*) { echo "$as_me: error: unrecognized option: $1
13829 Try \`$0 --help' for more information." >&2
13830    { (exit 1); exit 1; }; } ;;
13831
13832   *) ac_config_targets="$ac_config_targets $1"
13833      ac_need_defaults=false ;;
13834
13835   esac
13836   shift
13837 done
13838
13839 ac_configure_extra_args=
13840
13841 if $ac_cs_silent; then
13842   exec 6>/dev/null
13843   ac_configure_extra_args="$ac_configure_extra_args --silent"
13844 fi
13845
13846 _ACEOF
13847 cat >>$CONFIG_STATUS <<_ACEOF
13848 if \$ac_cs_recheck; then
13849   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13850   CONFIG_SHELL=$SHELL
13851   export CONFIG_SHELL
13852   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13853 fi
13854
13855 _ACEOF
13856 cat >>$CONFIG_STATUS <<\_ACEOF
13857 exec 5>>config.log
13858 {
13859   echo
13860   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13861 ## Running $as_me. ##
13862 _ASBOX
13863   echo "$ac_log"
13864 } >&5
13865
13866 _ACEOF
13867 cat >>$CONFIG_STATUS <<_ACEOF
13868 #
13869 # INIT-COMMANDS
13870 #
13871 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13872
13873 _ACEOF
13874
13875 cat >>$CONFIG_STATUS <<\_ACEOF
13876
13877 # Handling of arguments.
13878 for ac_config_target in $ac_config_targets
13879 do
13880   case $ac_config_target in
13881     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13882     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13883     "lib/fnmatch.h") CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.h.in" ;;
13884     "contrib/check_cvs") CONFIG_FILES="$CONFIG_FILES contrib/check_cvs" ;;
13885     "contrib/clmerge") CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
13886     "contrib/cln_hist") CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
13887     "contrib/commit_prep") CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
13888     "contrib/cvs_acls") CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
13889     "contrib/log") CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
13890     "contrib/log_accum") CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
13891     "contrib/mfpipe") CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
13892     "contrib/pvcs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
13893     "contrib/rcs2log") CONFIG_FILES="$CONFIG_FILES contrib/rcs2log:contrib/rcs2log.sh" ;;
13894     "contrib/rcslock") CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
13895     "contrib/sccs2rcs") CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
13896     "doc/mkman") CONFIG_FILES="$CONFIG_FILES doc/mkman:doc/mkman.pl" ;;
13897     "src/cvsbug") CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
13898     "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" ;;
13899     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13900     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
13901     "cvs.spec") CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
13902     "diff/Makefile") CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
13903     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13904     "emx/Makefile") CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
13905     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13906     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13907     "os2/Makefile") CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
13908     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13909     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
13910     "vms/Makefile") CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
13911     "windows-NT/Makefile") CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
13912     "windows-NT/SCC/Makefile") CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
13913     "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
13914
13915   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13916 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13917    { (exit 1); exit 1; }; };;
13918   esac
13919 done
13920
13921
13922 # If the user did not use the arguments to specify the items to instantiate,
13923 # then the envvar interface is used.  Set only those that are not.
13924 # We use the long form for the default assignment because of an extremely
13925 # bizarre bug on SunOS 4.1.3.
13926 if $ac_need_defaults; then
13927   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13928   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13929   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13930   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13931 fi
13932
13933 # Have a temporary directory for convenience.  Make it in the build tree
13934 # simply because there is no reason against having it here, and in addition,
13935 # creating and moving files from /tmp can sometimes cause problems.
13936 # Hook for its removal unless debugging.
13937 # Note that there is a small window in which the directory will not be cleaned:
13938 # after its creation but before its name has been assigned to `$tmp'.
13939 $debug ||
13940 {
13941   tmp=
13942   trap 'exit_status=$?
13943   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13944 ' 0
13945   trap '{ (exit 1); exit 1; }' 1 2 13 15
13946 }
13947 # Create a (secure) tmp directory for tmp files.
13948
13949 {
13950   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13951   test -n "$tmp" && test -d "$tmp"
13952 }  ||
13953 {
13954   tmp=./conf$$-$RANDOM
13955   (umask 077 && mkdir "$tmp")
13956 } ||
13957 {
13958    echo "$me: cannot create a temporary directory in ." >&2
13959    { (exit 1); exit 1; }
13960 }
13961
13962 #
13963 # Set up the sed scripts for CONFIG_FILES section.
13964 #
13965
13966 # No need to generate the scripts if there are no CONFIG_FILES.
13967 # This happens for instance when ./config.status config.h
13968 if test -n "$CONFIG_FILES"; then
13969
13970 _ACEOF
13971
13972 # Create sed commands to just substitute file output variables.
13973
13974 # Remaining file output variables are in a fragment that also has non-file
13975 # output varibles.
13976
13977
13978
13979 ac_delim='%!_!# '
13980 for ac_last_try in false false false false false :; do
13981   cat >conf$$subs.sed <<_ACEOF
13982 SHELL!$SHELL$ac_delim
13983 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13984 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13985 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13986 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13987 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13988 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13989 exec_prefix!$exec_prefix$ac_delim
13990 prefix!$prefix$ac_delim
13991 program_transform_name!$program_transform_name$ac_delim
13992 bindir!$bindir$ac_delim
13993 sbindir!$sbindir$ac_delim
13994 libexecdir!$libexecdir$ac_delim
13995 datarootdir!$datarootdir$ac_delim
13996 datadir!$datadir$ac_delim
13997 sysconfdir!$sysconfdir$ac_delim
13998 sharedstatedir!$sharedstatedir$ac_delim
13999 localstatedir!$localstatedir$ac_delim
14000 includedir!$includedir$ac_delim
14001 oldincludedir!$oldincludedir$ac_delim
14002 docdir!$docdir$ac_delim
14003 infodir!$infodir$ac_delim
14004 htmldir!$htmldir$ac_delim
14005 dvidir!$dvidir$ac_delim
14006 pdfdir!$pdfdir$ac_delim
14007 psdir!$psdir$ac_delim
14008 libdir!$libdir$ac_delim
14009 localedir!$localedir$ac_delim
14010 mandir!$mandir$ac_delim
14011 DEFS!$DEFS$ac_delim
14012 ECHO_C!$ECHO_C$ac_delim
14013 ECHO_N!$ECHO_N$ac_delim
14014 ECHO_T!$ECHO_T$ac_delim
14015 LIBS!$LIBS$ac_delim
14016 build_alias!$build_alias$ac_delim
14017 host_alias!$host_alias$ac_delim
14018 target_alias!$target_alias$ac_delim
14019 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14020 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14021 INSTALL_DATA!$INSTALL_DATA$ac_delim
14022 am__isrc!$am__isrc$ac_delim
14023 CYGPATH_W!$CYGPATH_W$ac_delim
14024 PACKAGE!$PACKAGE$ac_delim
14025 VERSION!$VERSION$ac_delim
14026 ACLOCAL!$ACLOCAL$ac_delim
14027 AUTOCONF!$AUTOCONF$ac_delim
14028 AUTOMAKE!$AUTOMAKE$ac_delim
14029 AUTOHEADER!$AUTOHEADER$ac_delim
14030 MAKEINFO!$MAKEINFO$ac_delim
14031 install_sh!$install_sh$ac_delim
14032 STRIP!$STRIP$ac_delim
14033 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14034 mkdir_p!$mkdir_p$ac_delim
14035 AWK!$AWK$ac_delim
14036 SET_MAKE!$SET_MAKE$ac_delim
14037 am__leading_dot!$am__leading_dot$ac_delim
14038 AMTAR!$AMTAR$ac_delim
14039 am__tar!$am__tar$ac_delim
14040 am__untar!$am__untar$ac_delim
14041 ac_prefix_program!$ac_prefix_program$ac_delim
14042 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
14043 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
14044 MAINT!$MAINT$ac_delim
14045 CC!$CC$ac_delim
14046 CFLAGS!$CFLAGS$ac_delim
14047 LDFLAGS!$LDFLAGS$ac_delim
14048 CPPFLAGS!$CPPFLAGS$ac_delim
14049 ac_ct_CC!$ac_ct_CC$ac_delim
14050 EXEEXT!$EXEEXT$ac_delim
14051 OBJEXT!$OBJEXT$ac_delim
14052 DEPDIR!$DEPDIR$ac_delim
14053 am__include!$am__include$ac_delim
14054 am__quote!$am__quote$ac_delim
14055 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14056 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14057 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14058 CCDEPMODE!$CCDEPMODE$ac_delim
14059 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14060 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14061 CPP!$CPP$ac_delim
14062 GREP!$GREP$ac_delim
14063 EGREP!$EGREP$ac_delim
14064 RANLIB!$RANLIB$ac_delim
14065 YACC!$YACC$ac_delim
14066 YFLAGS!$YFLAGS$ac_delim
14067 LN_S!$LN_S$ac_delim
14068 PERL!$PERL$ac_delim
14069 CSH!$CSH$ac_delim
14070 MKTEMP!$MKTEMP$ac_delim
14071 SENDMAIL!$SENDMAIL$ac_delim
14072 PR!$PR$ac_delim
14073 ROFF!$ROFF$ac_delim
14074 PS2PDF!$PS2PDF$ac_delim
14075 TEXI2DVI!$TEXI2DVI$ac_delim
14076 _ACEOF
14077
14078   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
14079     break
14080   elif $ac_last_try; then
14081     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14082 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14083    { (exit 1); exit 1; }; }
14084   else
14085     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14086   fi
14087 done
14088
14089 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14090 if test -n "$ac_eof"; then
14091   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14092   ac_eof=`expr $ac_eof + 1`
14093 fi
14094
14095 cat >>$CONFIG_STATUS <<_ACEOF
14096 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14097 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14098 /^[      ]*@MKTEMP_SH_FUNCTION@[         ]*$/{
14099 r $MKTEMP_SH_FUNCTION
14100 d
14101 }
14102 _ACEOF
14103 sed '
14104 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14105 s/^/s,@/; s/!/@,|#_!!_#|/
14106 :n
14107 t n
14108 s/'"$ac_delim"'$/,g/; t
14109 s/$/\\/; p
14110 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14111 ' >>$CONFIG_STATUS <conf$$subs.sed
14112 rm -f conf$$subs.sed
14113 cat >>$CONFIG_STATUS <<_ACEOF
14114 CEOF$ac_eof
14115 _ACEOF
14116
14117
14118 ac_delim='%!_!# '
14119 for ac_last_try in false false false false false :; do
14120   cat >conf$$subs.sed <<_ACEOF
14121 MAKE_TARGETS_IN_VPATH_TRUE!$MAKE_TARGETS_IN_VPATH_TRUE$ac_delim
14122 MAKE_TARGETS_IN_VPATH_FALSE!$MAKE_TARGETS_IN_VPATH_FALSE$ac_delim
14123 LIBOBJS!$LIBOBJS$ac_delim
14124 KRB4!$KRB4$ac_delim
14125 includeopt!$includeopt$ac_delim
14126 EDITOR!$EDITOR$ac_delim
14127 with_default_ssh!$with_default_ssh$ac_delim
14128 with_default_rsh!$with_default_rsh$ac_delim
14129 LTLIBOBJS!$LTLIBOBJS$ac_delim
14130 _ACEOF
14131
14132   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
14133     break
14134   elif $ac_last_try; then
14135     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14136 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14137    { (exit 1); exit 1; }; }
14138   else
14139     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14140   fi
14141 done
14142
14143 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14144 if test -n "$ac_eof"; then
14145   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14146   ac_eof=`expr $ac_eof + 1`
14147 fi
14148
14149 cat >>$CONFIG_STATUS <<_ACEOF
14150 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14152 _ACEOF
14153 sed '
14154 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14155 s/^/s,@/; s/!/@,|#_!!_#|/
14156 :n
14157 t n
14158 s/'"$ac_delim"'$/,g/; t
14159 s/$/\\/; p
14160 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14161 ' >>$CONFIG_STATUS <conf$$subs.sed
14162 rm -f conf$$subs.sed
14163 cat >>$CONFIG_STATUS <<_ACEOF
14164 :end
14165 s/|#_!!_#|//g
14166 CEOF$ac_eof
14167 _ACEOF
14168
14169
14170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14172 # trailing colons and then remove the whole line if VPATH becomes empty
14173 # (actually we leave an empty line to preserve line numbers).
14174 if test "x$srcdir" = x.; then
14175   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14176 s/:*\$(srcdir):*/:/
14177 s/:*\${srcdir}:*/:/
14178 s/:*@srcdir@:*/:/
14179 s/^\([^=]*=[     ]*\):*/\1/
14180 s/:*$//
14181 s/^[^=]*=[       ]*$//
14182 }'
14183 fi
14184
14185 cat >>$CONFIG_STATUS <<\_ACEOF
14186 fi # test -n "$CONFIG_FILES"
14187
14188
14189 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
14190 do
14191   case $ac_tag in
14192   :[FHLC]) ac_mode=$ac_tag; continue;;
14193   esac
14194   case $ac_mode$ac_tag in
14195   :[FHL]*:*);;
14196   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14197 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14198    { (exit 1); exit 1; }; };;
14199   :[FH]-) ac_tag=-:-;;
14200   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14201   esac
14202   ac_save_IFS=$IFS
14203   IFS=:
14204   set x $ac_tag
14205   IFS=$ac_save_IFS
14206   shift
14207   ac_file=$1
14208   shift
14209
14210   case $ac_mode in
14211   :L) ac_source=$1;;
14212   :[FH])
14213     ac_file_inputs=
14214     for ac_f
14215     do
14216       case $ac_f in
14217       -) ac_f="$tmp/stdin";;
14218       *) # Look for the file first in the build tree, then in the source tree
14219          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14220          # because $ac_f cannot contain `:'.
14221          test -f "$ac_f" ||
14222            case $ac_f in
14223            [\\/$]*) false;;
14224            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14225            esac ||
14226            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14227 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14228    { (exit 1); exit 1; }; };;
14229       esac
14230       ac_file_inputs="$ac_file_inputs $ac_f"
14231     done
14232
14233     # Let's still pretend it is `configure' which instantiates (i.e., don't
14234     # use $as_me), people would be surprised to read:
14235     #    /* config.h.  Generated by config.status.  */
14236     configure_input="Generated from "`IFS=:
14237           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14238     if test x"$ac_file" != x-; then
14239       configure_input="$ac_file.  $configure_input"
14240       { echo "$as_me:$LINENO: creating $ac_file" >&5
14241 echo "$as_me: creating $ac_file" >&6;}
14242     fi
14243
14244     case $ac_tag in
14245     *:-:* | *:-) cat >"$tmp/stdin";;
14246     esac
14247     ;;
14248   esac
14249
14250   ac_dir=`$as_dirname -- "$ac_file" ||
14251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252          X"$ac_file" : 'X\(//\)[^/]' \| \
14253          X"$ac_file" : 'X\(//\)$' \| \
14254          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14255 echo X"$ac_file" |
14256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257             s//\1/
14258             q
14259           }
14260           /^X\(\/\/\)[^/].*/{
14261             s//\1/
14262             q
14263           }
14264           /^X\(\/\/\)$/{
14265             s//\1/
14266             q
14267           }
14268           /^X\(\/\).*/{
14269             s//\1/
14270             q
14271           }
14272           s/.*/./; q'`
14273   { as_dir="$ac_dir"
14274   case $as_dir in #(
14275   -*) as_dir=./$as_dir;;
14276   esac
14277   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14278     as_dirs=
14279     while :; do
14280       case $as_dir in #(
14281       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14282       *) as_qdir=$as_dir;;
14283       esac
14284       as_dirs="'$as_qdir' $as_dirs"
14285       as_dir=`$as_dirname -- "$as_dir" ||
14286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14287          X"$as_dir" : 'X\(//\)[^/]' \| \
14288          X"$as_dir" : 'X\(//\)$' \| \
14289          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14290 echo X"$as_dir" |
14291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14292             s//\1/
14293             q
14294           }
14295           /^X\(\/\/\)[^/].*/{
14296             s//\1/
14297             q
14298           }
14299           /^X\(\/\/\)$/{
14300             s//\1/
14301             q
14302           }
14303           /^X\(\/\).*/{
14304             s//\1/
14305             q
14306           }
14307           s/.*/./; q'`
14308       test -d "$as_dir" && break
14309     done
14310     test -z "$as_dirs" || eval "mkdir $as_dirs"
14311   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14312 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14313    { (exit 1); exit 1; }; }; }
14314   ac_builddir=.
14315
14316 case "$ac_dir" in
14317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14318 *)
14319   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14320   # A ".." for each directory in $ac_dir_suffix.
14321   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14322   case $ac_top_builddir_sub in
14323   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14324   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14325   esac ;;
14326 esac
14327 ac_abs_top_builddir=$ac_pwd
14328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14329 # for backward compatibility:
14330 ac_top_builddir=$ac_top_build_prefix
14331
14332 case $srcdir in
14333   .)  # We are building in place.
14334     ac_srcdir=.
14335     ac_top_srcdir=$ac_top_builddir_sub
14336     ac_abs_top_srcdir=$ac_pwd ;;
14337   [\\/]* | ?:[\\/]* )  # Absolute name.
14338     ac_srcdir=$srcdir$ac_dir_suffix;
14339     ac_top_srcdir=$srcdir
14340     ac_abs_top_srcdir=$srcdir ;;
14341   *) # Relative name.
14342     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14343     ac_top_srcdir=$ac_top_build_prefix$srcdir
14344     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14345 esac
14346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14347
14348
14349   case $ac_mode in
14350   :F)
14351   #
14352   # CONFIG_FILE
14353   #
14354
14355   case $INSTALL in
14356   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14357   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14358   esac
14359   ac_MKDIR_P=$MKDIR_P
14360   case $MKDIR_P in
14361   [\\/$]* | ?:[\\/]* ) ;;
14362   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14363   esac
14364 _ACEOF
14365
14366 cat >>$CONFIG_STATUS <<\_ACEOF
14367 # If the template does not know about datarootdir, expand it.
14368 # FIXME: This hack should be removed a few years after 2.60.
14369 ac_datarootdir_hack=; ac_datarootdir_seen=
14370
14371 case `sed -n '/datarootdir/ {
14372   p
14373   q
14374 }
14375 /@datadir@/p
14376 /@docdir@/p
14377 /@infodir@/p
14378 /@localedir@/p
14379 /@mandir@/p
14380 ' $ac_file_inputs` in
14381 *datarootdir*) ac_datarootdir_seen=yes;;
14382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14383   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14384 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14385 _ACEOF
14386 cat >>$CONFIG_STATUS <<_ACEOF
14387   ac_datarootdir_hack='
14388   s&@datadir@&$datadir&g
14389   s&@docdir@&$docdir&g
14390   s&@infodir@&$infodir&g
14391   s&@localedir@&$localedir&g
14392   s&@mandir@&$mandir&g
14393     s&\\\${datarootdir}&$datarootdir&g' ;;
14394 esac
14395 _ACEOF
14396
14397 # Neutralize VPATH when `$srcdir' = `.'.
14398 # Shell code in configure.ac might set extrasub.
14399 # FIXME: do we really want to maintain this feature?
14400 cat >>$CONFIG_STATUS <<_ACEOF
14401   sed "$ac_vpsub
14402 $extrasub
14403 _ACEOF
14404 cat >>$CONFIG_STATUS <<\_ACEOF
14405 :t
14406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14407 s&@configure_input@&$configure_input&;t t
14408 s&@top_builddir@&$ac_top_builddir_sub&;t t
14409 s&@srcdir@&$ac_srcdir&;t t
14410 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14411 s&@top_srcdir@&$ac_top_srcdir&;t t
14412 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14413 s&@builddir@&$ac_builddir&;t t
14414 s&@abs_builddir@&$ac_abs_builddir&;t t
14415 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14416 s&@INSTALL@&$ac_INSTALL&;t t
14417 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14418 $ac_datarootdir_hack
14419 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14420
14421 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14422   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14423   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14424   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14425 which seems to be undefined.  Please make sure it is defined." >&5
14426 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14427 which seems to be undefined.  Please make sure it is defined." >&2;}
14428
14429   rm -f "$tmp/stdin"
14430   case $ac_file in
14431   -) cat "$tmp/out"; rm -f "$tmp/out";;
14432   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14433   esac
14434  ;;
14435   :H)
14436   #
14437   # CONFIG_HEADER
14438   #
14439 _ACEOF
14440
14441 # Transform confdefs.h into a sed script `conftest.defines', that
14442 # substitutes the proper values into config.h.in to produce config.h.
14443 rm -f conftest.defines conftest.tail
14444 # First, append a space to every undef/define line, to ease matching.
14445 echo 's/$/ /' >conftest.defines
14446 # Then, protect against being on the right side of a sed subst, or in
14447 # an unquoted here document, in config.status.  If some macros were
14448 # called several times there might be several #defines for the same
14449 # symbol, which is useless.  But do not sort them, since the last
14450 # AC_DEFINE must be honored.
14451 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14452 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14453 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14454 # PARAMS is the parameter list in the macro definition--in most cases, it's
14455 # just an empty string.
14456 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
14457 ac_dB='\\)[      (].*,\\1define\\2'
14458 ac_dC=' '
14459 ac_dD=' ,'
14460
14461 uniq confdefs.h |
14462   sed -n '
14463         t rset
14464         :rset
14465         s/^[     ]*#[    ]*define[       ][      ]*//
14466         t ok
14467         d
14468         :ok
14469         s/[\\&,]/\\&/g
14470         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14471         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14472   ' >>conftest.defines
14473
14474 # Remove the space that was appended to ease matching.
14475 # Then replace #undef with comments.  This is necessary, for
14476 # example, in the case of _POSIX_SOURCE, which is predefined and required
14477 # on some systems where configure will not decide to define it.
14478 # (The regexp can be short, since the line contains either #define or #undef.)
14479 echo 's/ $//
14480 s,^[     #]*u.*,/* & */,' >>conftest.defines
14481
14482 # Break up conftest.defines:
14483 ac_max_sed_lines=50
14484
14485 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14486 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14487 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14488 # et cetera.
14489 ac_in='$ac_file_inputs'
14490 ac_out='"$tmp/out1"'
14491 ac_nxt='"$tmp/out2"'
14492
14493 while :
14494 do
14495   # Write a here document:
14496     cat >>$CONFIG_STATUS <<_ACEOF
14497     # First, check the format of the line:
14498     cat >"\$tmp/defines.sed" <<\\CEOF
14499 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
14500 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
14501 b
14502 :def
14503 _ACEOF
14504   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14505   echo 'CEOF
14506     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14507   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14508   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14509   grep . conftest.tail >/dev/null || break
14510   rm -f conftest.defines
14511   mv conftest.tail conftest.defines
14512 done
14513 rm -f conftest.defines conftest.tail
14514
14515 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14516 cat >>$CONFIG_STATUS <<\_ACEOF
14517   if test x"$ac_file" != x-; then
14518     echo "/* $configure_input  */" >"$tmp/config.h"
14519     cat "$ac_result" >>"$tmp/config.h"
14520     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14521       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14522 echo "$as_me: $ac_file is unchanged" >&6;}
14523     else
14524       rm -f $ac_file
14525       mv "$tmp/config.h" $ac_file
14526     fi
14527   else
14528     echo "/* $configure_input  */"
14529     cat "$ac_result"
14530   fi
14531   rm -f "$tmp/out12"
14532 # Compute $ac_file's index in $config_headers.
14533 _am_stamp_count=1
14534 for _am_header in $config_headers :; do
14535   case $_am_header in
14536     $ac_file | $ac_file:* )
14537       break ;;
14538     * )
14539       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14540   esac
14541 done
14542 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14543 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14544          X$ac_file : 'X\(//\)[^/]' \| \
14545          X$ac_file : 'X\(//\)$' \| \
14546          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14547 echo X$ac_file |
14548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14549             s//\1/
14550             q
14551           }
14552           /^X\(\/\/\)[^/].*/{
14553             s//\1/
14554             q
14555           }
14556           /^X\(\/\/\)$/{
14557             s//\1/
14558             q
14559           }
14560           /^X\(\/\).*/{
14561             s//\1/
14562             q
14563           }
14564           s/.*/./; q'`/stamp-h$_am_stamp_count
14565  ;;
14566   :L)
14567   #
14568   # CONFIG_LINK
14569   #
14570
14571   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
14572 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
14573
14574   if test ! -r "$srcdir/$ac_source"; then
14575     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14576 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14577    { (exit 1); exit 1; }; }
14578   fi
14579   rm -f "$ac_file"
14580
14581   # Try a relative symlink, then a hard link, then a copy.
14582   case $srcdir in
14583   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14584       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
14585   esac
14586   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14587     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
14588     cp -p "$srcdir/$ac_source" "$ac_file" ||
14589     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
14590 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
14591    { (exit 1); exit 1; }; }
14592  ;;
14593   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14594 echo "$as_me: executing $ac_file commands" >&6;}
14595  ;;
14596   esac
14597
14598
14599   case $ac_file$ac_mode in
14600     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14601   # Strip MF so we end up with the name of the file.
14602   mf=`echo "$mf" | sed -e 's/:.*$//'`
14603   # Check whether this is an Automake generated Makefile or not.
14604   # We used to match only the files named `Makefile.in', but
14605   # some people rename them; so instead we look at the file content.
14606   # Grep'ing the first line is not enough: some people post-process
14607   # each Makefile.in and add a new line on top of each file to say so.
14608   # Grep'ing the whole file is not good either: AIX grep has a line
14609   # limit of 2048, but all sed's we know have understand at least 4000.
14610   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
14611     dirpart=`$as_dirname -- "$mf" ||
14612 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14613          X"$mf" : 'X\(//\)[^/]' \| \
14614          X"$mf" : 'X\(//\)$' \| \
14615          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14616 echo X"$mf" |
14617     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14618             s//\1/
14619             q
14620           }
14621           /^X\(\/\/\)[^/].*/{
14622             s//\1/
14623             q
14624           }
14625           /^X\(\/\/\)$/{
14626             s//\1/
14627             q
14628           }
14629           /^X\(\/\).*/{
14630             s//\1/
14631             q
14632           }
14633           s/.*/./; q'`
14634   else
14635     continue
14636   fi
14637   # Extract the definition of DEPDIR, am__include, and am__quote
14638   # from the Makefile without running `make'.
14639   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14640   test -z "$DEPDIR" && continue
14641   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14642   test -z "am__include" && continue
14643   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14644   # When using ansi2knr, U may be empty or an underscore; expand it
14645   U=`sed -n 's/^U = //p' < "$mf"`
14646   # Find all dependency output files, they are included files with
14647   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14648   # simplest approach to changing $(DEPDIR) to its actual value in the
14649   # expansion.
14650   for file in `sed -n "
14651     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14652        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14653     # Make sure the directory exists.
14654     test -f "$dirpart/$file" && continue
14655     fdir=`$as_dirname -- "$file" ||
14656 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14657          X"$file" : 'X\(//\)[^/]' \| \
14658          X"$file" : 'X\(//\)$' \| \
14659          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14660 echo X"$file" |
14661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14662             s//\1/
14663             q
14664           }
14665           /^X\(\/\/\)[^/].*/{
14666             s//\1/
14667             q
14668           }
14669           /^X\(\/\/\)$/{
14670             s//\1/
14671             q
14672           }
14673           /^X\(\/\).*/{
14674             s//\1/
14675             q
14676           }
14677           s/.*/./; q'`
14678     { as_dir=$dirpart/$fdir
14679   case $as_dir in #(
14680   -*) as_dir=./$as_dir;;
14681   esac
14682   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14683     as_dirs=
14684     while :; do
14685       case $as_dir in #(
14686       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14687       *) as_qdir=$as_dir;;
14688       esac
14689       as_dirs="'$as_qdir' $as_dirs"
14690       as_dir=`$as_dirname -- "$as_dir" ||
14691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14692          X"$as_dir" : 'X\(//\)[^/]' \| \
14693          X"$as_dir" : 'X\(//\)$' \| \
14694          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14695 echo X"$as_dir" |
14696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14697             s//\1/
14698             q
14699           }
14700           /^X\(\/\/\)[^/].*/{
14701             s//\1/
14702             q
14703           }
14704           /^X\(\/\/\)$/{
14705             s//\1/
14706             q
14707           }
14708           /^X\(\/\).*/{
14709             s//\1/
14710             q
14711           }
14712           s/.*/./; q'`
14713       test -d "$as_dir" && break
14714     done
14715     test -z "$as_dirs" || eval "mkdir $as_dirs"
14716   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14717 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14718    { (exit 1); exit 1; }; }; }
14719     # echo "creating $dirpart/$file"
14720     echo '# dummy' > "$dirpart/$file"
14721   done
14722 done
14723  ;;
14724     "contrib/check_cvs":F) chmod +x contrib/check_cvs ;;
14725     "contrib/clmerge":F) chmod +x contrib/clmerge ;;
14726     "contrib/cln_hist":F) chmod +x contrib/cln_hist ;;
14727     "contrib/commit_prep":F) chmod +x contrib/commit_prep ;;
14728     "contrib/cvs_acls":F) chmod +x contrib/cvs_acls ;;
14729     "contrib/log":F) chmod +x contrib/log ;;
14730     "contrib/log_accum":F) chmod +x contrib/log_accum ;;
14731     "contrib/mfpipe":F) chmod +x contrib/mfpipe ;;
14732     "contrib/pvcs2rcs":F) chmod +x contrib/pvcs2rcs ;;
14733     "contrib/rcs2log":F) chmod +x contrib/rcs2log ;;
14734     "contrib/rcslock":F) chmod +x contrib/rcslock ;;
14735     "contrib/sccs2rcs":F) chmod +x contrib/sccs2rcs ;;
14736     "doc/mkman":F) chmod +x doc/mkman ;;
14737     "src/cvsbug":F) chmod +x src/cvsbug ;;
14738     "windows-NT/fix-msvc-mak":F) chmod +x windows-NT/fix-msvc-mak ;;
14739
14740   esac
14741 done # for ac_tag
14742
14743
14744 { (exit 0); exit 0; }
14745 _ACEOF
14746 chmod +x $CONFIG_STATUS
14747 ac_clean_files=$ac_clean_files_save
14748
14749
14750 # configure is writing to config.log, and then calls config.status.
14751 # config.status does its own redirection, appending to config.log.
14752 # Unfortunately, on DOS this fails, as config.log is still kept open
14753 # by configure, so config.status won't be able to write to it; its
14754 # output is simply discarded.  So we exec the FD to /dev/null,
14755 # effectively closing config.log, so it can be properly (re)opened and
14756 # appended to by config.status.  When coming back to configure, we
14757 # need to make the FD available again.
14758 if test "$no_create" != yes; then
14759   ac_cs_success=:
14760   ac_config_status_args=
14761   test "$silent" = yes &&
14762     ac_config_status_args="$ac_config_status_args --quiet"
14763   exec 5>/dev/null
14764   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14765   exec 5>>config.log
14766   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14767   # would make configure fail if this is the last instruction.
14768   $ac_cs_success || { (exit 1); exit 1; }
14769 fi
14770
14771
14772
14773
14774 # Report the state of this version of CVS if this is from dev.
14775     cat <<EOF
14776
14777 You are about to use an unreleased version of CVS.  Be sure to
14778 read the relevant mailing lists, most importantly <info-cvs@nongnu.org>.
14779
14780 Below you will find information on the status of this version of CVS.
14781
14782
14783 EOF
14784     sed -n '/^\* Status/,$p' $srcdir/BUGS
14785