]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/cvs/configure
This commit was generated by cvs2svn to compensate for changes in r117397,
[FreeBSD/FreeBSD.git] / contrib / cvs / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53 for Concurrent Versions System (CVS) 1.11.5.
4 #
5 # Report bugs to <bug-cvs@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # 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 if expr a : '\(a\)' >/dev/null 2>&1; then
13   as_expr=expr
14 else
15   as_expr=false
16 fi
17
18
19 ## --------------------- ##
20 ## M4sh Initialization.  ##
21 ## --------------------- ##
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # NLS nuisances.
32 # Support unset when possible.
33 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34   as_unset=unset
35 else
36   as_unset=false
37 fi
38
39 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
40     { $as_unset LANG || test "${LANG+set}" != set; } ||
41       { LANG=C; export LANG; }
42 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
43     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
44       { LC_ALL=C; export LC_ALL; }
45 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
46     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
47       { LC_TIME=C; export LC_TIME; }
48 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
49     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
50       { LC_CTYPE=C; export LC_CTYPE; }
51 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
52     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
53       { LANGUAGE=C; export LANGUAGE; }
54 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
55     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
56       { LC_COLLATE=C; export LC_COLLATE; }
57 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
58     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
59       { LC_NUMERIC=C; export LC_NUMERIC; }
60 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
61     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
62       { LC_MESSAGES=C; export LC_MESSAGES; }
63
64
65 # Name of the executable.
66 as_me=`(basename "$0") 2>/dev/null ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77 # PATH needs CR, and LINENO needs CR and PATH.
78 # Avoid depending upon Character Ranges.
79 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
80 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
81 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
82 as_cr_digits='0123456789'
83 as_cr_alnum=$as_cr_Letters$as_cr_digits
84
85 # The user is always right.
86 if test "${PATH_SEPARATOR+set}" != set; then
87   echo "#! /bin/sh" >conftest.sh
88   echo  "exit 0"   >>conftest.sh
89   chmod +x conftest.sh
90   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
91     PATH_SEPARATOR=';'
92   else
93     PATH_SEPARATOR=:
94   fi
95   rm -f conftest.sh
96 fi
97
98
99   as_lineno_1=$LINENO
100   as_lineno_2=$LINENO
101   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
102   test "x$as_lineno_1" != "x$as_lineno_2" &&
103   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
104   # Find who we are.  Look in the path if we contain no path at all
105   # relative or not.
106   case $0 in
107     *[\\/]* ) as_myself=$0 ;;
108     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
109 for as_dir in $PATH
110 do
111   IFS=$as_save_IFS
112   test -z "$as_dir" && as_dir=.
113   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
114 done
115
116        ;;
117   esac
118   # We did not find ourselves, most probably we were run as `sh COMMAND'
119   # in which case we are not to be found in the path.
120   if test "x$as_myself" = x; then
121     as_myself=$0
122   fi
123   if test ! -f "$as_myself"; then
124     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
125    { (exit 1); exit 1; }; }
126   fi
127   case $CONFIG_SHELL in
128   '')
129     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
130 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131 do
132   IFS=$as_save_IFS
133   test -z "$as_dir" && as_dir=.
134   for as_base in sh bash ksh sh5; do
135          case $as_dir in
136          /*)
137            if ("$as_dir/$as_base" -c '
138   as_lineno_1=$LINENO
139   as_lineno_2=$LINENO
140   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
141   test "x$as_lineno_1" != "x$as_lineno_2" &&
142   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
143              CONFIG_SHELL=$as_dir/$as_base
144              export CONFIG_SHELL
145              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
146            fi;;
147          esac
148        done
149 done
150 ;;
151   esac
152
153   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
154   # uniformly replaced by the line number.  The first 'sed' inserts a
155   # line-number line before each line; the second 'sed' does the real
156   # work.  The second script uses 'N' to pair each line-number line
157   # with the numbered line, and appends trailing '-' during
158   # substitution so that $LINENO is not a special case at line end.
159   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
160   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
161   sed '=' <$as_myself |
162     sed '
163       N
164       s,$,-,
165       : loop
166       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167       t loop
168       s,-$,,
169       s,^['$as_cr_digits']*\n,,
170     ' >$as_me.lineno &&
171   chmod +x $as_me.lineno ||
172     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
173    { (exit 1); exit 1; }; }
174
175   # Don't try to exec as it changes $[0], causing all sort of problems
176   # (the dirname of $[0] is not the place where we might find the
177   # original and so on.  Autoconf is especially sensible to this).
178   . ./$as_me.lineno
179   # Exit status is that of the last command.
180   exit
181 }
182
183
184 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
185   *c*,-n*) ECHO_N= ECHO_C='
186 ' ECHO_T='      ' ;;
187   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
188   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
189 esac
190
191 if expr a : '\(a\)' >/dev/null 2>&1; then
192   as_expr=expr
193 else
194   as_expr=false
195 fi
196
197 rm -f conf$$ conf$$.exe conf$$.file
198 echo >conf$$.file
199 if ln -s conf$$.file conf$$ 2>/dev/null; then
200   # We could just check for DJGPP; but this test a) works b) is more generic
201   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
202   if test -f conf$$.exe; then
203     # Don't use ln at all; we don't have any links
204     as_ln_s='cp -p'
205   else
206     as_ln_s='ln -s'
207   fi
208 elif ln conf$$.file conf$$ 2>/dev/null; then
209   as_ln_s=ln
210 else
211   as_ln_s='cp -p'
212 fi
213 rm -f conf$$ conf$$.exe conf$$.file
214
215 as_executable_p="test -f"
216
217 # Sed expression to map a string onto a valid CPP name.
218 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
219
220 # Sed expression to map a string onto a valid variable name.
221 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
222
223
224 # IFS
225 # We need space, tab and new line, in precisely that order.
226 as_nl='
227 '
228 IFS="   $as_nl"
229
230 # CDPATH.
231 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
232
233
234 # Name of the host.
235 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
236 # so uname gets run too.
237 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
238
239 exec 6>&1
240
241 #
242 # Initializations.
243 #
244 ac_default_prefix=/usr/local
245 cross_compiling=no
246 subdirs=
247 MFLAGS=
248 MAKEFLAGS=
249 SHELL=${CONFIG_SHELL-/bin/sh}
250
251 # Maximum number of lines to put in a shell here document.
252 # This variable seems obsolete.  It should probably be removed, and
253 # only ac_max_sed_lines should be used.
254 : ${ac_max_here_lines=38}
255
256 # Identity of this package.
257 PACKAGE_NAME='Concurrent Versions System (CVS)'
258 PACKAGE_TARNAME='cvs'
259 PACKAGE_VERSION='1.11.5'
260 PACKAGE_STRING='Concurrent Versions System (CVS) 1.11.5'
261 PACKAGE_BUGREPORT='bug-cvs@gnu.org'
262
263 ac_unique_file="src/cvs.h"
264 # Factoring default headers for most tests.
265 ac_includes_default="\
266 #include <stdio.h>
267 #if HAVE_SYS_TYPES_H
268 # include <sys/types.h>
269 #endif
270 #if HAVE_SYS_STAT_H
271 # include <sys/stat.h>
272 #endif
273 #if STDC_HEADERS
274 # include <stdlib.h>
275 # include <stddef.h>
276 #else
277 # if HAVE_STDLIB_H
278 #  include <stdlib.h>
279 # endif
280 #endif
281 #if HAVE_STRING_H
282 # if !STDC_HEADERS && HAVE_MEMORY_H
283 #  include <memory.h>
284 # endif
285 # include <string.h>
286 #endif
287 #if HAVE_STRINGS_H
288 # include <strings.h>
289 #endif
290 #if HAVE_INTTYPES_H
291 # include <inttypes.h>
292 #else
293 # if HAVE_STDINT_H
294 #  include <stdint.h>
295 # endif
296 #endif
297 #if HAVE_UNISTD_H
298 # include <unistd.h>
299 #endif"
300
301
302 # Initialize some variables set by options.
303 ac_init_help=
304 ac_init_version=false
305 # The variables have the same names as the options, with
306 # dashes changed to underlines.
307 cache_file=/dev/null
308 exec_prefix=NONE
309 no_create=
310 no_recursion=
311 prefix=NONE
312 program_prefix=NONE
313 program_suffix=NONE
314 program_transform_name=s,x,x,
315 silent=
316 site=
317 srcdir=
318 verbose=
319 x_includes=NONE
320 x_libraries=NONE
321
322 # Installation directory options.
323 # These are left unexpanded so users can "make install exec_prefix=/foo"
324 # and all the variables that are supposed to be based on exec_prefix
325 # by default will actually change.
326 # Use braces instead of parens because sh, perl, etc. also accept them.
327 bindir='${exec_prefix}/bin'
328 sbindir='${exec_prefix}/sbin'
329 libexecdir='${exec_prefix}/libexec'
330 datadir='${prefix}/share'
331 sysconfdir='${prefix}/etc'
332 sharedstatedir='${prefix}/com'
333 localstatedir='${prefix}/var'
334 libdir='${exec_prefix}/lib'
335 includedir='${prefix}/include'
336 oldincludedir='/usr/include'
337 infodir='${prefix}/info'
338 mandir='${prefix}/man'
339
340 ac_prev=
341 for ac_option
342 do
343   # If the previous option needs an argument, assign it.
344   if test -n "$ac_prev"; then
345     eval "$ac_prev=\$ac_option"
346     ac_prev=
347     continue
348   fi
349
350   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
351
352   # Accept the important Cygnus configure options, so we can diagnose typos.
353
354   case $ac_option in
355
356   -bindir | --bindir | --bindi | --bind | --bin | --bi)
357     ac_prev=bindir ;;
358   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359     bindir=$ac_optarg ;;
360
361   -build | --build | --buil | --bui | --bu)
362     ac_prev=build_alias ;;
363   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
364     build_alias=$ac_optarg ;;
365
366   -cache-file | --cache-file | --cache-fil | --cache-fi \
367   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
368     ac_prev=cache_file ;;
369   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
370   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
371     cache_file=$ac_optarg ;;
372
373   --config-cache | -C)
374     cache_file=config.cache ;;
375
376   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
377     ac_prev=datadir ;;
378   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
379   | --da=*)
380     datadir=$ac_optarg ;;
381
382   -disable-* | --disable-*)
383     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
384     # Reject names that are not valid shell variable names.
385     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
386       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
387    { (exit 1); exit 1; }; }
388     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
389     eval "enable_$ac_feature=no" ;;
390
391   -enable-* | --enable-*)
392     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
393     # Reject names that are not valid shell variable names.
394     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
395       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
396    { (exit 1); exit 1; }; }
397     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
398     case $ac_option in
399       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400       *) ac_optarg=yes ;;
401     esac
402     eval "enable_$ac_feature='$ac_optarg'" ;;
403
404   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
405   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
406   | --exec | --exe | --ex)
407     ac_prev=exec_prefix ;;
408   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
409   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
410   | --exec=* | --exe=* | --ex=*)
411     exec_prefix=$ac_optarg ;;
412
413   -gas | --gas | --ga | --g)
414     # Obsolete; use --with-gas.
415     with_gas=yes ;;
416
417   -help | --help | --hel | --he | -h)
418     ac_init_help=long ;;
419   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
420     ac_init_help=recursive ;;
421   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
422     ac_init_help=short ;;
423
424   -host | --host | --hos | --ho)
425     ac_prev=host_alias ;;
426   -host=* | --host=* | --hos=* | --ho=*)
427     host_alias=$ac_optarg ;;
428
429   -includedir | --includedir | --includedi | --included | --include \
430   | --includ | --inclu | --incl | --inc)
431     ac_prev=includedir ;;
432   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
433   | --includ=* | --inclu=* | --incl=* | --inc=*)
434     includedir=$ac_optarg ;;
435
436   -infodir | --infodir | --infodi | --infod | --info | --inf)
437     ac_prev=infodir ;;
438   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
439     infodir=$ac_optarg ;;
440
441   -libdir | --libdir | --libdi | --libd)
442     ac_prev=libdir ;;
443   -libdir=* | --libdir=* | --libdi=* | --libd=*)
444     libdir=$ac_optarg ;;
445
446   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
447   | --libexe | --libex | --libe)
448     ac_prev=libexecdir ;;
449   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
450   | --libexe=* | --libex=* | --libe=*)
451     libexecdir=$ac_optarg ;;
452
453   -localstatedir | --localstatedir | --localstatedi | --localstated \
454   | --localstate | --localstat | --localsta | --localst \
455   | --locals | --local | --loca | --loc | --lo)
456     ac_prev=localstatedir ;;
457   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
458   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
459   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
460     localstatedir=$ac_optarg ;;
461
462   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
463     ac_prev=mandir ;;
464   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
465     mandir=$ac_optarg ;;
466
467   -nfp | --nfp | --nf)
468     # Obsolete; use --without-fp.
469     with_fp=no ;;
470
471   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472   | --no-cr | --no-c | -n)
473     no_create=yes ;;
474
475   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
476   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477     no_recursion=yes ;;
478
479   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
480   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
481   | --oldin | --oldi | --old | --ol | --o)
482     ac_prev=oldincludedir ;;
483   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
484   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
485   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
486     oldincludedir=$ac_optarg ;;
487
488   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
489     ac_prev=prefix ;;
490   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491     prefix=$ac_optarg ;;
492
493   -program-prefix | --program-prefix | --program-prefi | --program-pref \
494   | --program-pre | --program-pr | --program-p)
495     ac_prev=program_prefix ;;
496   -program-prefix=* | --program-prefix=* | --program-prefi=* \
497   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
498     program_prefix=$ac_optarg ;;
499
500   -program-suffix | --program-suffix | --program-suffi | --program-suff \
501   | --program-suf | --program-su | --program-s)
502     ac_prev=program_suffix ;;
503   -program-suffix=* | --program-suffix=* | --program-suffi=* \
504   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
505     program_suffix=$ac_optarg ;;
506
507   -program-transform-name | --program-transform-name \
508   | --program-transform-nam | --program-transform-na \
509   | --program-transform-n | --program-transform- \
510   | --program-transform | --program-transfor \
511   | --program-transfo | --program-transf \
512   | --program-trans | --program-tran \
513   | --progr-tra | --program-tr | --program-t)
514     ac_prev=program_transform_name ;;
515   -program-transform-name=* | --program-transform-name=* \
516   | --program-transform-nam=* | --program-transform-na=* \
517   | --program-transform-n=* | --program-transform-=* \
518   | --program-transform=* | --program-transfor=* \
519   | --program-transfo=* | --program-transf=* \
520   | --program-trans=* | --program-tran=* \
521   | --progr-tra=* | --program-tr=* | --program-t=*)
522     program_transform_name=$ac_optarg ;;
523
524   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
525   | -silent | --silent | --silen | --sile | --sil)
526     silent=yes ;;
527
528   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
529     ac_prev=sbindir ;;
530   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
531   | --sbi=* | --sb=*)
532     sbindir=$ac_optarg ;;
533
534   -sharedstatedir | --sharedstatedir | --sharedstatedi \
535   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
536   | --sharedst | --shareds | --shared | --share | --shar \
537   | --sha | --sh)
538     ac_prev=sharedstatedir ;;
539   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
540   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
541   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
542   | --sha=* | --sh=*)
543     sharedstatedir=$ac_optarg ;;
544
545   -site | --site | --sit)
546     ac_prev=site ;;
547   -site=* | --site=* | --sit=*)
548     site=$ac_optarg ;;
549
550   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
551     ac_prev=srcdir ;;
552   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553     srcdir=$ac_optarg ;;
554
555   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
556   | --syscon | --sysco | --sysc | --sys | --sy)
557     ac_prev=sysconfdir ;;
558   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
559   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
560     sysconfdir=$ac_optarg ;;
561
562   -target | --target | --targe | --targ | --tar | --ta | --t)
563     ac_prev=target_alias ;;
564   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
565     target_alias=$ac_optarg ;;
566
567   -v | -verbose | --verbose | --verbos | --verbo | --verb)
568     verbose=yes ;;
569
570   -version | --version | --versio | --versi | --vers | -V)
571     ac_init_version=: ;;
572
573   -with-* | --with-*)
574     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
575     # Reject names that are not valid shell variable names.
576     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577       { echo "$as_me: error: invalid package name: $ac_package" >&2
578    { (exit 1); exit 1; }; }
579     ac_package=`echo $ac_package| sed 's/-/_/g'`
580     case $ac_option in
581       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582       *) ac_optarg=yes ;;
583     esac
584     eval "with_$ac_package='$ac_optarg'" ;;
585
586   -without-* | --without-*)
587     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package | sed 's/-/_/g'`
593     eval "with_$ac_package=no" ;;
594
595   --x)
596     # Obsolete; use --with-x.
597     with_x=yes ;;
598
599   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
600   | --x-incl | --x-inc | --x-in | --x-i)
601     ac_prev=x_includes ;;
602   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
603   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
604     x_includes=$ac_optarg ;;
605
606   -x-libraries | --x-libraries | --x-librarie | --x-librari \
607   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
608     ac_prev=x_libraries ;;
609   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
610   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
611     x_libraries=$ac_optarg ;;
612
613   -*) { echo "$as_me: error: unrecognized option: $ac_option
614 Try \`$0 --help' for more information." >&2
615    { (exit 1); exit 1; }; }
616     ;;
617
618   *=*)
619     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
620     # Reject names that are not valid shell variable names.
621     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
622       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
623    { (exit 1); exit 1; }; }
624     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
625     eval "$ac_envvar='$ac_optarg'"
626     export $ac_envvar ;;
627
628   *)
629     # FIXME: should be removed in autoconf 3.0.
630     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
631     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
632       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
633     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
634     ;;
635
636   esac
637 done
638
639 if test -n "$ac_prev"; then
640   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
641   { echo "$as_me: error: missing argument to $ac_option" >&2
642    { (exit 1); exit 1; }; }
643 fi
644
645 # Be sure to have absolute paths.
646 for ac_var in exec_prefix prefix
647 do
648   eval ac_val=$`echo $ac_var`
649   case $ac_val in
650     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
651     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
652    { (exit 1); exit 1; }; };;
653   esac
654 done
655
656 # Be sure to have absolute paths.
657 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
658               localstatedir libdir includedir oldincludedir infodir mandir
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # There might be people who depend on the old broken behavior: `$host'
669 # used to hold the argument of --host etc.
670 # FIXME: To remove some day.
671 build=$build_alias
672 host=$host_alias
673 target=$target_alias
674
675 # FIXME: To remove some day.
676 if test "x$host_alias" != x; then
677   if test "x$build_alias" = x; then
678     cross_compiling=maybe
679     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
680     If a cross compiler is detected then cross compile mode will be used." >&2
681   elif test "x$build_alias" != "x$host_alias"; then
682     cross_compiling=yes
683   fi
684 fi
685
686 ac_tool_prefix=
687 test -n "$host_alias" && ac_tool_prefix=$host_alias-
688
689 test "$silent" = yes && exec 6>/dev/null
690
691
692 # Find the source files, if location was not specified.
693 if test -z "$srcdir"; then
694   ac_srcdir_defaulted=yes
695   # Try the directory containing this script, then its parent.
696   ac_confdir=`(dirname "$0") 2>/dev/null ||
697 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
698          X"$0" : 'X\(//\)[^/]' \| \
699          X"$0" : 'X\(//\)$' \| \
700          X"$0" : 'X\(/\)' \| \
701          .     : '\(.\)' 2>/dev/null ||
702 echo X"$0" |
703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
705           /^X\(\/\/\)$/{ s//\1/; q; }
706           /^X\(\/\).*/{ s//\1/; q; }
707           s/.*/./; q'`
708   srcdir=$ac_confdir
709   if test ! -r $srcdir/$ac_unique_file; then
710     srcdir=..
711   fi
712 else
713   ac_srcdir_defaulted=no
714 fi
715 if test ! -r $srcdir/$ac_unique_file; then
716   if test "$ac_srcdir_defaulted" = yes; then
717     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
718    { (exit 1); exit 1; }; }
719   else
720     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
721    { (exit 1); exit 1; }; }
722   fi
723 fi
724 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
725 ac_env_build_alias_set=${build_alias+set}
726 ac_env_build_alias_value=$build_alias
727 ac_cv_env_build_alias_set=${build_alias+set}
728 ac_cv_env_build_alias_value=$build_alias
729 ac_env_host_alias_set=${host_alias+set}
730 ac_env_host_alias_value=$host_alias
731 ac_cv_env_host_alias_set=${host_alias+set}
732 ac_cv_env_host_alias_value=$host_alias
733 ac_env_target_alias_set=${target_alias+set}
734 ac_env_target_alias_value=$target_alias
735 ac_cv_env_target_alias_set=${target_alias+set}
736 ac_cv_env_target_alias_value=$target_alias
737 ac_env_CC_set=${CC+set}
738 ac_env_CC_value=$CC
739 ac_cv_env_CC_set=${CC+set}
740 ac_cv_env_CC_value=$CC
741 ac_env_CFLAGS_set=${CFLAGS+set}
742 ac_env_CFLAGS_value=$CFLAGS
743 ac_cv_env_CFLAGS_set=${CFLAGS+set}
744 ac_cv_env_CFLAGS_value=$CFLAGS
745 ac_env_LDFLAGS_set=${LDFLAGS+set}
746 ac_env_LDFLAGS_value=$LDFLAGS
747 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
748 ac_cv_env_LDFLAGS_value=$LDFLAGS
749 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
750 ac_env_CPPFLAGS_value=$CPPFLAGS
751 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
752 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
753 ac_env_CPP_set=${CPP+set}
754 ac_env_CPP_value=$CPP
755 ac_cv_env_CPP_set=${CPP+set}
756 ac_cv_env_CPP_value=$CPP
757 ac_env_EDITOR_set=${EDITOR+set}
758 ac_env_EDITOR_value=$EDITOR
759 ac_cv_env_EDITOR_set=${EDITOR+set}
760 ac_cv_env_EDITOR_value=$EDITOR
761
762 #
763 # Report the --help message.
764 #
765 if test "$ac_init_help" = "long"; then
766   # Omit some internal or obsolete options to make the list less imposing.
767   # This message is too long to be a string in the A/UX 3.1 sh.
768   cat <<_ACEOF
769 \`configure' configures Concurrent Versions System (CVS) 1.11.5 to adapt to many kinds of systems.
770
771 Usage: $0 [OPTION]... [VAR=VALUE]...
772
773 To assign environment variables (e.g., CC, CFLAGS...), specify them as
774 VAR=VALUE.  See below for descriptions of some of the useful variables.
775
776 Defaults for the options are specified in brackets.
777
778 Configuration:
779   -h, --help              display this help and exit
780       --help=short        display options specific to this package
781       --help=recursive    display the short help of all the included packages
782   -V, --version           display version information and exit
783   -q, --quiet, --silent   do not print \`checking...' messages
784       --cache-file=FILE   cache test results in FILE [disabled]
785   -C, --config-cache      alias for \`--cache-file=config.cache'
786   -n, --no-create         do not create output files
787       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
788
789 _ACEOF
790
791   cat <<_ACEOF
792 Installation directories:
793   --prefix=PREFIX         install architecture-independent files in PREFIX
794                           [$ac_default_prefix]
795   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
796                           [PREFIX]
797
798 By default, \`make install' will install all the files in
799 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
800 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
801 for instance \`--prefix=\$HOME'.
802
803 For better control, use the options below.
804
805 Fine tuning of the installation directories:
806   --bindir=DIR           user executables [EPREFIX/bin]
807   --sbindir=DIR          system admin executables [EPREFIX/sbin]
808   --libexecdir=DIR       program executables [EPREFIX/libexec]
809   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
810   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
811   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
812   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
813   --libdir=DIR           object code libraries [EPREFIX/lib]
814   --includedir=DIR       C header files [PREFIX/include]
815   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
816   --infodir=DIR          info documentation [PREFIX/info]
817   --mandir=DIR           man documentation [PREFIX/man]
818 _ACEOF
819
820   cat <<\_ACEOF
821
822 Program names:
823   --program-prefix=PREFIX            prepend PREFIX to installed program names
824   --program-suffix=SUFFIX            append SUFFIX to installed program names
825   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
826 _ACEOF
827 fi
828
829 if test -n "$ac_init_help"; then
830   case $ac_init_help in
831      short | recursive ) echo "Configuration of Concurrent Versions System (CVS) 1.11.5:";;
832    esac
833   cat <<\_ACEOF
834
835 Optional Features:
836   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
837   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
838   --disable-dependency-tracking Speeds up one-time builds
839   --enable-dependency-tracking  Do not reject slow dependency extractors
840   --enable-cvs-ndbm       Use the NDBM library distributed with CVS rather
841                           than attempting to use a system NDBM library.
842                           Disabling this may not work. (default)
843   --enable-client         Include code for running as a remote client
844                           (default)
845   --enable-password-authenticated-client
846                           Enable pserver as a remote access method in the CVS
847                           client (default)
848   --enable-server         Include code for running as a server (default)
849   --enable-server-flow-control
850                           If you are working with a large remote repository
851                           and a 'cvs checkout' is swamping your network and
852                           memory, define these to enable flow control. You may
853                           optionally pass a low water mark in bytes and a high
854                           water mark in bytes, separated by commas. (default
855                           is enabled 1M,2M)
856   --enable-encryption     Enable encryption support (disabled by default)
857   --enable-force-editor   When committing or importing files, you must enter a
858                           log message. Normally, you can do this either via
859                           the -m flag on the command line, the -F flag on the
860                           command line, or an editor will be started for you.
861                           If you like to use logging templates (the rcsinfo
862                           file within the $CVSROOT/CVSROOT directory), you
863                           might want to force people to use the editor even if
864                           they specify a message with -m or -F.
865                           --enable-force-editor will cause the -m or -F
866                           message to be appended to the temp file when the
867                           editor is started. (disabled by default)
868   --enable-rootcommit     Allow the root user to commit files (disabled by
869                           default)
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-krb4             Kerberos 4 directory (default /usr/kerberos)
875   --with-gssapi           GSSAPI directory (default autoselects)
876   --with-editor           The default text editor CVS should use for log
877                           messages (default autoselects)
878   --with-tmpdir           The temporary directory CVS should use as a default
879                           (default autoselects)
880   --with-umask            Set the umask CVS will use by default in the
881                           repository (default 002)
882   --with-cvs-admin-group=GROUP
883                           The CVS admin command is restricted to the members
884                           of this group. If this group does not exist, all
885                           users are allowed to run CVS admin. To disable the
886                           CVS admin command for all users, create an empty
887                           group by specifying the --with-cvs-admin-group=
888                           option. To disable access control for CVS admin, run
889                           configure with the --without-cvs-admin-group option.
890                           (default 'cvsadmin')
891
892 Some influential environment variables:
893   CC          C compiler command
894   CFLAGS      C compiler flags
895   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
896               nonstandard directory <lib dir>
897   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
898               headers in a nonstandard directory <include dir>
899   CPP         C preprocessor
900   EDITOR      The text editor CVS will use by default for log messages.
901
902 Use these variables to override the choices made by `configure' or to help
903 it to find libraries and programs with nonstandard names/locations.
904
905 Report bugs to <bug-cvs@gnu.org>.
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910   # If there are subdirs, report their specific --help.
911   ac_popdir=`pwd`
912   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913     test -d $ac_dir || continue
914     ac_builddir=.
915
916 if test "$ac_dir" != .; then
917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918   # A "../" for each directory in $ac_dir_suffix.
919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921   ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925   .)  # No --srcdir option.  We are building in place.
926     ac_srcdir=.
927     if test -z "$ac_top_builddir"; then
928        ac_top_srcdir=.
929     else
930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931     fi ;;
932   [\\/]* | ?:[\\/]* )  # Absolute path.
933     ac_srcdir=$srcdir$ac_dir_suffix;
934     ac_top_srcdir=$srcdir ;;
935   *) # Relative path.
936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
940 # absolute.
941 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
943 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968 Concurrent Versions System (CVS) configure 1.11.5
969 generated by GNU Autoconf 2.53
970
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976   exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by Concurrent Versions System (CVS) $as_me 1.11.5, which was
984 generated by GNU Autoconf 2.53.  Invocation command line was
985
986   $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017   IFS=$as_save_IFS
1018   test -z "$as_dir" && as_dir=.
1019   echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1037 ac_configure_args=
1038 ac_sep=
1039 for ac_arg
1040 do
1041   case $ac_arg in
1042   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043   | --no-cr | --no-c | -n ) continue ;;
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     continue ;;
1047   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049   esac
1050   case " $ac_configure_args " in
1051     *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1052     *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053        ac_sep=" " ;;
1054   esac
1055   # Get rid of the leading space.
1056 done
1057
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log.  We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064   # Save into config.log some information that might help in debugging.
1065   {
1066     echo
1067     cat <<\_ASBOX
1068 ## ---------------- ##
1069 ## Cache variables. ##
1070 ## ---------------- ##
1071 _ASBOX
1072     echo
1073     # The following way of writing the cache mishandles newlines in values,
1074 {
1075   (set) 2>&1 |
1076     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1077     *ac_space=\ *)
1078       sed -n \
1079         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1080           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081       ;;
1082     *)
1083       sed -n \
1084         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1085       ;;
1086     esac;
1087 }
1088     echo
1089     if test -s confdefs.h; then
1090       cat <<\_ASBOX
1091 ## ----------- ##
1092 ## confdefs.h. ##
1093 ## ----------- ##
1094 _ASBOX
1095       echo
1096       sed "/^$/d" confdefs.h
1097       echo
1098     fi
1099     test "$ac_signal" != 0 &&
1100       echo "$as_me: caught signal $ac_signal"
1101     echo "$as_me: exit $exit_status"
1102   } >&5
1103   rm -f core core.* *.core &&
1104   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1105     exit $exit_status
1106      ' 0
1107 for ac_signal in 1 2 13 15; do
1108   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1109 done
1110 ac_signal=0
1111
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1115 echo >confdefs.h
1116
1117 # Predefined preprocessor variables.
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1141 _ACEOF
1142
1143
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147   if test "x$prefix" != xNONE; then
1148     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1149   else
1150     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1151   fi
1152 fi
1153 for ac_site_file in $CONFIG_SITE; do
1154   if test -r "$ac_site_file"; then
1155     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157     sed 's/^/| /' "$ac_site_file" >&5
1158     . "$ac_site_file"
1159   fi
1160 done
1161
1162 if test -r "$cache_file"; then
1163   # Some versions of bash will fail to source /dev/null (special
1164   # files actually), so we avoid doing that.
1165   if test -f "$cache_file"; then
1166     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1168     case $cache_file in
1169       [\\/]* | ?:[\\/]* ) . $cache_file;;
1170       *)                      . ./$cache_file;;
1171     esac
1172   fi
1173 else
1174   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1176   >$cache_file
1177 fi
1178
1179 # Check that the precious variables saved in the cache have kept the same
1180 # value.
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185   eval ac_new_set=\$ac_env_${ac_var}_set
1186   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187   eval ac_new_val="\$ac_env_${ac_var}_value"
1188   case $ac_old_set,$ac_new_set in
1189     set,)
1190       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192       ac_cache_corrupted=: ;;
1193     ,set)
1194       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196       ac_cache_corrupted=: ;;
1197     ,);;
1198     *)
1199       if test "x$ac_old_val" != "x$ac_new_val"; then
1200         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1203 echo "$as_me:   former value:  $ac_old_val" >&2;}
1204         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1205 echo "$as_me:   current value: $ac_new_val" >&2;}
1206         ac_cache_corrupted=:
1207       fi;;
1208   esac
1209   # Pass precious variables to config.status.
1210   if test "$ac_new_set" = set; then
1211     case $ac_new_val in
1212     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214     *) ac_arg=$ac_var=$ac_new_val ;;
1215     esac
1216     case " $ac_configure_args " in
1217       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1218       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1219     esac
1220   fi
1221 done
1222 if $ac_cache_corrupted; then
1223   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227    { (exit 1); exit 1; }; }
1228 fi
1229
1230 ac_ext=c
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262 am__api_version="1.6"
1263 ac_aux_dir=
1264 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1265   if test -f $ac_dir/install-sh; then
1266     ac_aux_dir=$ac_dir
1267     ac_install_sh="$ac_aux_dir/install-sh -c"
1268     break
1269   elif test -f $ac_dir/install.sh; then
1270     ac_aux_dir=$ac_dir
1271     ac_install_sh="$ac_aux_dir/install.sh -c"
1272     break
1273   elif test -f $ac_dir/shtool; then
1274     ac_aux_dir=$ac_dir
1275     ac_install_sh="$ac_aux_dir/shtool install -c"
1276     break
1277   fi
1278 done
1279 if test -z "$ac_aux_dir"; then
1280   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1281 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1282    { (exit 1); exit 1; }; }
1283 fi
1284 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1285 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1286 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1287
1288 # Find a good install program.  We prefer a C program (faster),
1289 # so one script is as good as another.  But avoid the broken or
1290 # incompatible versions:
1291 # SysV /etc/install, /usr/sbin/install
1292 # SunOS /usr/etc/install
1293 # IRIX /sbin/install
1294 # AIX /bin/install
1295 # AmigaOS /C/install, which installs bootblocks on floppy discs
1296 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1297 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1298 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1299 # ./install, which can be erroneously created by make from ./install.sh.
1300 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1301 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1302 if test -z "$INSTALL"; then
1303 if test "${ac_cv_path_install+set}" = set; then
1304   echo $ECHO_N "(cached) $ECHO_C" >&6
1305 else
1306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1307 for as_dir in $PATH
1308 do
1309   IFS=$as_save_IFS
1310   test -z "$as_dir" && as_dir=.
1311   # Account for people who put trailing slashes in PATH elements.
1312 case $as_dir/ in
1313   ./ | .// | /cC/* | \
1314   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1315   /usr/ucb/* ) ;;
1316   *)
1317     # OSF1 and SCO ODT 3.0 have their own names for install.
1318     # Don't use installbsd from OSF since it installs stuff as root
1319     # by default.
1320     for ac_prog in ginstall scoinst install; do
1321       for ac_exec_ext in '' $ac_executable_extensions; do
1322         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1323           if test $ac_prog = install &&
1324             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1325             # AIX install.  It has an incompatible calling convention.
1326             :
1327           elif test $ac_prog = install &&
1328             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1329             # program-specific install script used by HP pwplus--don't use.
1330             :
1331           else
1332             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1333             break 3
1334           fi
1335         fi
1336       done
1337     done
1338     ;;
1339 esac
1340 done
1341
1342
1343 fi
1344   if test "${ac_cv_path_install+set}" = set; then
1345     INSTALL=$ac_cv_path_install
1346   else
1347     # As a last resort, use the slow shell script.  We don't cache a
1348     # path for INSTALL within a source directory, because that will
1349     # break other packages using the cache if that directory is
1350     # removed, or if the path is relative.
1351     INSTALL=$ac_install_sh
1352   fi
1353 fi
1354 echo "$as_me:$LINENO: result: $INSTALL" >&5
1355 echo "${ECHO_T}$INSTALL" >&6
1356
1357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1358 # It thinks the first close brace ends the variable substitution.
1359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1360
1361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1362
1363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1364
1365 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1366 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1367 # Just in case
1368 sleep 1
1369 echo timestamp > conftest.file
1370 # Do `set' in a subshell so we don't clobber the current shell's
1371 # arguments.  Must try -L first in case configure is actually a
1372 # symlink; some systems play weird games with the mod time of symlinks
1373 # (eg FreeBSD returns the mod time of the symlink's containing
1374 # directory).
1375 if (
1376    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1377    if test "$*" = "X"; then
1378       # -L didn't work.
1379       set X `ls -t $srcdir/configure conftest.file`
1380    fi
1381    rm -f conftest.file
1382    if test "$*" != "X $srcdir/configure conftest.file" \
1383       && test "$*" != "X conftest.file $srcdir/configure"; then
1384
1385       # If neither matched, then we have a broken ls.  This can happen
1386       # if, for instance, CONFIG_SHELL is bash and it inherits a
1387       # broken ls alias from the environment.  This has actually
1388       # happened.  Such a system could not be considered "sane".
1389       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1390 alias in your environment" >&5
1391 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1392 alias in your environment" >&2;}
1393    { (exit 1); exit 1; }; }
1394    fi
1395
1396    test "$2" = conftest.file
1397    )
1398 then
1399    # Ok.
1400    :
1401 else
1402    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1403 Check your system clock" >&5
1404 echo "$as_me: error: newly created file is older than distributed files!
1405 Check your system clock" >&2;}
1406    { (exit 1); exit 1; }; }
1407 fi
1408 echo "$as_me:$LINENO: result: yes" >&5
1409 echo "${ECHO_T}yes" >&6
1410 test "$program_prefix" != NONE &&
1411   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1412 # Use a double $ so make ignores it.
1413 test "$program_suffix" != NONE &&
1414   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1415 # Double any \ or $.  echo might interpret backslashes.
1416 # By default was `s,x,x', remove it if useless.
1417 cat <<\_ACEOF >conftest.sed
1418 s/[\\$]/&&/g;s/;s,x,x,$//
1419 _ACEOF
1420 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1421 rm conftest.sed
1422
1423
1424 # expand $ac_aux_dir to an absolute path
1425 am_aux_dir=`cd $ac_aux_dir && pwd`
1426
1427 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1428 # Use eval to expand $SHELL
1429 if eval "$MISSING --run true"; then
1430   am_missing_run="$MISSING --run "
1431 else
1432   am_missing_run=
1433   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1434 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1435 fi
1436
1437 for ac_prog in gawk mawk nawk awk
1438 do
1439   # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_AWK+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   if test -n "$AWK"; then
1447   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452   IFS=$as_save_IFS
1453   test -z "$as_dir" && as_dir=.
1454   for ac_exec_ext in '' $ac_executable_extensions; do
1455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456     ac_cv_prog_AWK="$ac_prog"
1457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458     break 2
1459   fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 AWK=$ac_cv_prog_AWK
1466 if test -n "$AWK"; then
1467   echo "$as_me:$LINENO: result: $AWK" >&5
1468 echo "${ECHO_T}$AWK" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474   test -n "$AWK" && break
1475 done
1476
1477 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1478 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1479 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1480 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1481   echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483   cat >conftest.make <<\_ACEOF
1484 all:
1485         @echo 'ac_maketemp="${MAKE}"'
1486 _ACEOF
1487 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1488 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1489 if test -n "$ac_maketemp"; then
1490   eval ac_cv_prog_make_${ac_make}_set=yes
1491 else
1492   eval ac_cv_prog_make_${ac_make}_set=no
1493 fi
1494 rm -f conftest.make
1495 fi
1496 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1497   echo "$as_me:$LINENO: result: yes" >&5
1498 echo "${ECHO_T}yes" >&6
1499   SET_MAKE=
1500 else
1501   echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1503   SET_MAKE="MAKE=${MAKE-make}"
1504 fi
1505
1506  # test to see if srcdir already configured
1507 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1508    test -f $srcdir/config.status; then
1509   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1510 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1511    { (exit 1); exit 1; }; }
1512 fi
1513
1514 # Define the identity of the package.
1515  PACKAGE=cvs
1516  VERSION=1.11.5
1517
1518
1519 # Some tools Automake needs.
1520
1521 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1522
1523
1524 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1525
1526
1527 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1528
1529
1530 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1531
1532
1533 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1534
1535
1536 AMTAR=${AMTAR-"${am_missing_run}tar"}
1537
1538 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1539
1540 # Installed binaries are usually stripped using `strip' when the user
1541 # run `make install-strip'.  However `strip' might not be the right
1542 # tool to use in cross-compilation environments, therefore Automake
1543 # will honor the `STRIP' environment variable to overrule this program.
1544 if test "$cross_compiling" != no; then
1545   if test -n "$ac_tool_prefix"; then
1546   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}strip; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_STRIP+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$STRIP"; then
1554   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 STRIP=$ac_cv_prog_STRIP
1573 if test -n "$STRIP"; then
1574   echo "$as_me:$LINENO: result: $STRIP" >&5
1575 echo "${ECHO_T}$STRIP" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_STRIP"; then
1583   ac_ct_STRIP=$STRIP
1584   # Extract the first word of "strip", so it can be a program name with args.
1585 set dummy strip; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   if test -n "$ac_ct_STRIP"; then
1592   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   for ac_exec_ext in '' $ac_executable_extensions; do
1600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601     ac_cv_prog_ac_ct_STRIP="strip"
1602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603     break 2
1604   fi
1605 done
1606 done
1607
1608   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1609 fi
1610 fi
1611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1612 if test -n "$ac_ct_STRIP"; then
1613   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1614 echo "${ECHO_T}$ac_ct_STRIP" >&6
1615 else
1616   echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 fi
1619
1620   STRIP=$ac_ct_STRIP
1621 else
1622   STRIP="$ac_cv_prog_STRIP"
1623 fi
1624
1625 fi
1626 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1627
1628 # We need awk for the "check" target.  The system "awk" is bad on
1629 # some platforms.
1630
1631
1632
1633
1634
1635 if test "x$prefix" = xNONE; then
1636   echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1637   # Extract the first word of "cvs", so it can be a program name with args.
1638 set dummy cvs; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1642   echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644   case $ac_prefix_program in
1645   [\\/]* | ?:[\\/]*)
1646   ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1647   ;;
1648   *)
1649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663   ;;
1664 esac
1665 fi
1666 ac_prefix_program=$ac_cv_path_ac_prefix_program
1667
1668 if test -n "$ac_prefix_program"; then
1669   echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1670 echo "${ECHO_T}$ac_prefix_program" >&6
1671 else
1672   echo "$as_me:$LINENO: result: no" >&5
1673 echo "${ECHO_T}no" >&6
1674 fi
1675
1676   if test -n $ac_prefix_program; then
1677     prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1678 $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1679          X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1680          X"$ac_prefix_program" : 'X\(//\)$' \| \
1681          X"$ac_prefix_program" : 'X\(/\)' \| \
1682          .     : '\(.\)' 2>/dev/null ||
1683 echo X"$ac_prefix_program" |
1684     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1685           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1686           /^X\(\/\/\)$/{ s//\1/; q; }
1687           /^X\(\/\).*/{ s//\1/; q; }
1688           s/.*/./; q'`
1689     prefix=`(dirname "$prefix") 2>/dev/null ||
1690 $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1691          X"$prefix" : 'X\(//\)[^/]' \| \
1692          X"$prefix" : 'X\(//\)$' \| \
1693          X"$prefix" : 'X\(/\)' \| \
1694          .     : '\(.\)' 2>/dev/null ||
1695 echo X"$prefix" |
1696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1697           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1698           /^X\(\/\/\)$/{ s//\1/; q; }
1699           /^X\(\/\).*/{ s//\1/; q; }
1700           s/.*/./; q'`
1701   fi
1702 fi
1703
1704 # Add the stamp file to the list of files AC keeps track of,
1705 # along with our hook.
1706 ac_config_headers="$ac_config_headers config.h"
1707
1708
1709
1710
1711 ac_ext=c
1712 ac_cpp='$CPP $CPPFLAGS'
1713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1716 if test -n "$ac_tool_prefix"; then
1717   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1718 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1719 echo "$as_me:$LINENO: checking for $ac_word" >&5
1720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1721 if test "${ac_cv_prog_CC+set}" = set; then
1722   echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724   if test -n "$CC"; then
1725   ac_cv_prog_CC="$CC" # Let the user override the test.
1726 else
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 for as_dir in $PATH
1729 do
1730   IFS=$as_save_IFS
1731   test -z "$as_dir" && as_dir=.
1732   for ac_exec_ext in '' $ac_executable_extensions; do
1733   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1734     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736     break 2
1737   fi
1738 done
1739 done
1740
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$ac_cv_prog_CC"; then
1754   ac_ct_CC=$CC
1755   # Extract the first word of "gcc", so it can be a program name with args.
1756 set dummy gcc; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$ac_ct_CC"; then
1763   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_ac_ct_CC="gcc"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1782 if test -n "$ac_ct_CC"; then
1783   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1784 echo "${ECHO_T}$ac_ct_CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790   CC=$ac_ct_CC
1791 else
1792   CC="$ac_cv_prog_CC"
1793 fi
1794
1795 if test -z "$CC"; then
1796   if test -n "$ac_tool_prefix"; then
1797   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1798 set dummy ${ac_tool_prefix}cc; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$CC"; then
1805   ac_cv_prog_CC="$CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     ac_cv_prog_CC="${ac_tool_prefix}cc"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820
1821 fi
1822 fi
1823 CC=$ac_cv_prog_CC
1824 if test -n "$CC"; then
1825   echo "$as_me:$LINENO: result: $CC" >&5
1826 echo "${ECHO_T}$CC" >&6
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 fi
1831
1832 fi
1833 if test -z "$ac_cv_prog_CC"; then
1834   ac_ct_CC=$CC
1835   # Extract the first word of "cc", so it can be a program name with args.
1836 set dummy cc; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test -n "$ac_ct_CC"; then
1843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850   for ac_exec_ext in '' $ac_executable_extensions; do
1851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852     ac_cv_prog_ac_ct_CC="cc"
1853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854     break 2
1855   fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1862 if test -n "$ac_ct_CC"; then
1863   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1864 echo "${ECHO_T}$ac_ct_CC" >&6
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870   CC=$ac_ct_CC
1871 else
1872   CC="$ac_cv_prog_CC"
1873 fi
1874
1875 fi
1876 if test -z "$CC"; then
1877   # Extract the first word of "cc", so it can be a program name with args.
1878 set dummy cc; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_CC+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$CC"; then
1885   ac_cv_prog_CC="$CC" # Let the user override the test.
1886 else
1887   ac_prog_rejected=no
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   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1896        ac_prog_rejected=yes
1897        continue
1898      fi
1899     ac_cv_prog_CC="cc"
1900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901     break 2
1902   fi
1903 done
1904 done
1905
1906 if test $ac_prog_rejected = yes; then
1907   # We found a bogon in the path, so make sure we never use it.
1908   set dummy $ac_cv_prog_CC
1909   shift
1910   if test $# != 0; then
1911     # We chose a different compiler from the bogus one.
1912     # However, it has the same basename, so the bogon will be chosen
1913     # first if we set CC to just the basename; use the full file name.
1914     shift
1915     set dummy "$as_dir/$ac_word" ${1+"$@"}
1916     shift
1917     ac_cv_prog_CC="$@"
1918   fi
1919 fi
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924   echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927   echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$CC"; then
1933   if test -n "$ac_tool_prefix"; then
1934   for ac_prog in cl
1935   do
1936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1938 echo "$as_me:$LINENO: checking for $ac_word" >&5
1939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1940 if test "${ac_cv_prog_CC+set}" = set; then
1941   echo $ECHO_N "(cached) $ECHO_C" >&6
1942 else
1943   if test -n "$CC"; then
1944   ac_cv_prog_CC="$CC" # Let the user override the test.
1945 else
1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 for as_dir in $PATH
1948 do
1949   IFS=$as_save_IFS
1950   test -z "$as_dir" && as_dir=.
1951   for ac_exec_ext in '' $ac_executable_extensions; do
1952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1953     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1955     break 2
1956   fi
1957 done
1958 done
1959
1960 fi
1961 fi
1962 CC=$ac_cv_prog_CC
1963 if test -n "$CC"; then
1964   echo "$as_me:$LINENO: result: $CC" >&5
1965 echo "${ECHO_T}$CC" >&6
1966 else
1967   echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1969 fi
1970
1971     test -n "$CC" && break
1972   done
1973 fi
1974 if test -z "$CC"; then
1975   ac_ct_CC=$CC
1976   for ac_prog in cl
1977 do
1978   # Extract the first word of "$ac_prog", so it can be a program name with args.
1979 set dummy $ac_prog; ac_word=$2
1980 echo "$as_me:$LINENO: checking for $ac_word" >&5
1981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1983   echo $ECHO_N "(cached) $ECHO_C" >&6
1984 else
1985   if test -n "$ac_ct_CC"; then
1986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1987 else
1988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989 for as_dir in $PATH
1990 do
1991   IFS=$as_save_IFS
1992   test -z "$as_dir" && as_dir=.
1993   for ac_exec_ext in '' $ac_executable_extensions; do
1994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995     ac_cv_prog_ac_ct_CC="$ac_prog"
1996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997     break 2
1998   fi
1999 done
2000 done
2001
2002 fi
2003 fi
2004 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2005 if test -n "$ac_ct_CC"; then
2006   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2007 echo "${ECHO_T}$ac_ct_CC" >&6
2008 else
2009   echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2011 fi
2012
2013   test -n "$ac_ct_CC" && break
2014 done
2015
2016   CC=$ac_ct_CC
2017 fi
2018
2019 fi
2020
2021
2022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2024    { (exit 1); exit 1; }; }
2025
2026 # Provide some information about the compiler.
2027 echo "$as_me:$LINENO:" \
2028      "checking for C compiler version" >&5
2029 ac_compiler=`set X $ac_compile; echo $2`
2030 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2031   (eval $ac_compiler --version </dev/null >&5) 2>&5
2032   ac_status=$?
2033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034   (exit $ac_status); }
2035 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2036   (eval $ac_compiler -v </dev/null >&5) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); }
2040 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2041   (eval $ac_compiler -V </dev/null >&5) 2>&5
2042   ac_status=$?
2043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044   (exit $ac_status); }
2045
2046 cat >conftest.$ac_ext <<_ACEOF
2047 #line $LINENO "configure"
2048 #include "confdefs.h"
2049
2050 #ifdef F77_DUMMY_MAIN
2051 #  ifdef __cplusplus
2052      extern "C"
2053 #  endif
2054    int F77_DUMMY_MAIN() { return 1; }
2055 #endif
2056 int
2057 main ()
2058 {
2059
2060   ;
2061   return 0;
2062 }
2063 _ACEOF
2064 ac_clean_files_save=$ac_clean_files
2065 ac_clean_files="$ac_clean_files a.out a.exe"
2066 # Try to create an executable without -o first, disregard a.out.
2067 # It will help us diagnose broken compilers, and finding out an intuition
2068 # of exeext.
2069 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2070 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2072 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2073   (eval $ac_link_default) 2>&5
2074   ac_status=$?
2075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076   (exit $ac_status); }; then
2077   # Find the output, starting from the most likely.  This scheme is
2078 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2079 # resort.
2080
2081 # Be careful to initialize this variable, since it used to be cached.
2082 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2083 ac_cv_exeext=
2084 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2085                 ls a.out conftest 2>/dev/null;
2086                 ls a.* conftest.* 2>/dev/null`; do
2087   case $ac_file in
2088     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2089     a.out ) # We found the default executable, but exeext='' is most
2090             # certainly right.
2091             break;;
2092     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2093           # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2094           export ac_cv_exeext
2095           break;;
2096     * ) break;;
2097   esac
2098 done
2099 else
2100   echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2103 echo "$as_me: error: C compiler cannot create executables" >&2;}
2104    { (exit 77); exit 77; }; }
2105 fi
2106
2107 ac_exeext=$ac_cv_exeext
2108 echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6
2110
2111 # Check the compiler produces executables we can run.  If not, either
2112 # the compiler is broken, or we cross compile.
2113 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2114 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2115 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2116 # If not cross compiling, check that we can run a simple program.
2117 if test "$cross_compiling" != yes; then
2118   if { ac_try='./$ac_file'
2119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120   (eval $ac_try) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }; }; then
2124     cross_compiling=no
2125   else
2126     if test "$cross_compiling" = maybe; then
2127         cross_compiling=yes
2128     else
2129         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2130 If you meant to cross compile, use \`--host'." >&5
2131 echo "$as_me: error: cannot run C compiled programs.
2132 If you meant to cross compile, use \`--host'." >&2;}
2133    { (exit 1); exit 1; }; }
2134     fi
2135   fi
2136 fi
2137 echo "$as_me:$LINENO: result: yes" >&5
2138 echo "${ECHO_T}yes" >&6
2139
2140 rm -f a.out a.exe conftest$ac_cv_exeext
2141 ac_clean_files=$ac_clean_files_save
2142 # Check the compiler produces executables we can run.  If not, either
2143 # the compiler is broken, or we cross compile.
2144 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2145 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2146 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2147 echo "${ECHO_T}$cross_compiling" >&6
2148
2149 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2150 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2152   (eval $ac_link) 2>&5
2153   ac_status=$?
2154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155   (exit $ac_status); }; then
2156   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2157 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2158 # work properly (i.e., refer to `conftest.exe'), while it won't with
2159 # `rm'.
2160 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2161   case $ac_file in
2162     *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164           export ac_cv_exeext
2165           break;;
2166     * ) break;;
2167   esac
2168 done
2169 else
2170   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2172    { (exit 1); exit 1; }; }
2173 fi
2174
2175 rm -f conftest$ac_cv_exeext
2176 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2177 echo "${ECHO_T}$ac_cv_exeext" >&6
2178
2179 rm -f conftest.$ac_ext
2180 EXEEXT=$ac_cv_exeext
2181 ac_exeext=$EXEEXT
2182 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2183 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2184 if test "${ac_cv_objext+set}" = set; then
2185   echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187   cat >conftest.$ac_ext <<_ACEOF
2188 #line $LINENO "configure"
2189 #include "confdefs.h"
2190
2191 #ifdef F77_DUMMY_MAIN
2192 #  ifdef __cplusplus
2193      extern "C"
2194 #  endif
2195    int F77_DUMMY_MAIN() { return 1; }
2196 #endif
2197 int
2198 main ()
2199 {
2200
2201   ;
2202   return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.o conftest.obj
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207   (eval $ac_compile) 2>&5
2208   ac_status=$?
2209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }; then
2211   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2214     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2215        break;;
2216   esac
2217 done
2218 else
2219   echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2225
2226 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2227 fi
2228 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2229 echo "${ECHO_T}$ac_cv_objext" >&6
2230 OBJEXT=$ac_cv_objext
2231 ac_objext=$OBJEXT
2232 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2233 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2234 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   cat >conftest.$ac_ext <<_ACEOF
2238 #line $LINENO "configure"
2239 #include "confdefs.h"
2240
2241 #ifdef F77_DUMMY_MAIN
2242 #  ifdef __cplusplus
2243      extern "C"
2244 #  endif
2245    int F77_DUMMY_MAIN() { return 1; }
2246 #endif
2247 int
2248 main ()
2249 {
2250 #ifndef __GNUC__
2251        choke me
2252 #endif
2253
2254   ;
2255   return 0;
2256 }
2257 _ACEOF
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260   (eval $ac_compile) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); } &&
2264          { ac_try='test -s conftest.$ac_objext'
2265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266   (eval $ac_try) 2>&5
2267   ac_status=$?
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); }; }; then
2270   ac_compiler_gnu=yes
2271 else
2272   echo "$as_me: failed program was:" >&5
2273 cat conftest.$ac_ext >&5
2274 ac_compiler_gnu=no
2275 fi
2276 rm -f conftest.$ac_objext conftest.$ac_ext
2277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2278
2279 fi
2280 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2281 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2282 GCC=`test $ac_compiler_gnu = yes && echo yes`
2283 ac_test_CFLAGS=${CFLAGS+set}
2284 ac_save_CFLAGS=$CFLAGS
2285 CFLAGS="-g"
2286 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2287 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2288 if test "${ac_cv_prog_cc_g+set}" = set; then
2289   echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291   cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 #include "confdefs.h"
2294
2295 #ifdef F77_DUMMY_MAIN
2296 #  ifdef __cplusplus
2297      extern "C"
2298 #  endif
2299    int F77_DUMMY_MAIN() { return 1; }
2300 #endif
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311   (eval $ac_compile) 2>&5
2312   ac_status=$?
2313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314   (exit $ac_status); } &&
2315          { ac_try='test -s conftest.$ac_objext'
2316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317   (eval $ac_try) 2>&5
2318   ac_status=$?
2319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320   (exit $ac_status); }; }; then
2321   ac_cv_prog_cc_g=yes
2322 else
2323   echo "$as_me: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
2325 ac_cv_prog_cc_g=no
2326 fi
2327 rm -f conftest.$ac_objext conftest.$ac_ext
2328 fi
2329 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331 if test "$ac_test_CFLAGS" = set; then
2332   CFLAGS=$ac_save_CFLAGS
2333 elif test $ac_cv_prog_cc_g = yes; then
2334   if test "$GCC" = yes; then
2335     CFLAGS="-g -O2"
2336   else
2337     CFLAGS="-g"
2338   fi
2339 else
2340   if test "$GCC" = yes; then
2341     CFLAGS="-O2"
2342   else
2343     CFLAGS=
2344   fi
2345 fi
2346 # Some people use a C++ compiler to compile C.  Since we use `exit',
2347 # in C++ we need to declare it.  In case someone uses the same compiler
2348 # for both compiling C and C++ we need to have the C++ compiler decide
2349 # the declaration of exit, since it's the most demanding environment.
2350 cat >conftest.$ac_ext <<_ACEOF
2351 #ifndef __cplusplus
2352   choke me
2353 #endif
2354 _ACEOF
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357   (eval $ac_compile) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); } &&
2361          { ac_try='test -s conftest.$ac_objext'
2362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363   (eval $ac_try) 2>&5
2364   ac_status=$?
2365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366   (exit $ac_status); }; }; then
2367   for ac_declaration in \
2368    ''\
2369    '#include <stdlib.h>' \
2370    'extern "C" void std::exit (int) throw (); using std::exit;' \
2371    'extern "C" void std::exit (int); using std::exit;' \
2372    'extern "C" void exit (int) throw ();' \
2373    'extern "C" void exit (int);' \
2374    'void exit (int);'
2375 do
2376   cat >conftest.$ac_ext <<_ACEOF
2377 #line $LINENO "configure"
2378 #include "confdefs.h"
2379 #include <stdlib.h>
2380 $ac_declaration
2381 #ifdef F77_DUMMY_MAIN
2382 #  ifdef __cplusplus
2383      extern "C"
2384 #  endif
2385    int F77_DUMMY_MAIN() { return 1; }
2386 #endif
2387 int
2388 main ()
2389 {
2390 exit (42);
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397   (eval $ac_compile) 2>&5
2398   ac_status=$?
2399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400   (exit $ac_status); } &&
2401          { ac_try='test -s conftest.$ac_objext'
2402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403   (eval $ac_try) 2>&5
2404   ac_status=$?
2405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406   (exit $ac_status); }; }; then
2407   :
2408 else
2409   echo "$as_me: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 continue
2412 fi
2413 rm -f conftest.$ac_objext conftest.$ac_ext
2414   cat >conftest.$ac_ext <<_ACEOF
2415 #line $LINENO "configure"
2416 #include "confdefs.h"
2417 $ac_declaration
2418 #ifdef F77_DUMMY_MAIN
2419 #  ifdef __cplusplus
2420      extern "C"
2421 #  endif
2422    int F77_DUMMY_MAIN() { return 1; }
2423 #endif
2424 int
2425 main ()
2426 {
2427 exit (42);
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 rm -f conftest.$ac_objext
2433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434   (eval $ac_compile) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 cat conftest.$ac_ext >&5
2448 fi
2449 rm -f conftest.$ac_objext conftest.$ac_ext
2450 done
2451 rm -f conftest*
2452 if test -n "$ac_declaration"; then
2453   echo '#ifdef __cplusplus' >>confdefs.h
2454   echo $ac_declaration      >>confdefs.h
2455   echo '#endif'             >>confdefs.h
2456 fi
2457
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2461 fi
2462 rm -f conftest.$ac_objext conftest.$ac_ext
2463 ac_ext=c
2464 ac_cpp='$CPP $CPPFLAGS'
2465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2468 rm -f .deps 2>/dev/null
2469 mkdir .deps 2>/dev/null
2470 if test -d .deps; then
2471   DEPDIR=.deps
2472 else
2473   # MS-DOS does not allow filenames that begin with a dot.
2474   DEPDIR=_deps
2475 fi
2476 rmdir .deps 2>/dev/null
2477
2478
2479 ac_config_commands="$ac_config_commands depfiles"
2480
2481
2482 am_make=${MAKE-make}
2483 cat > confinc << 'END'
2484 doit:
2485         @echo done
2486 END
2487 # If we don't find an include directive, just comment out the code.
2488 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2489 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2490 am__include="#"
2491 am__quote=
2492 _am_result=none
2493 # First try GNU make style include.
2494 echo "include confinc" > confmf
2495 # We grep out `Entering directory' and `Leaving directory'
2496 # messages which can occur if `w' ends up in MAKEFLAGS.
2497 # In particular we don't look at `^make:' because GNU make might
2498 # be invoked under some other name (usually "gmake"), in which
2499 # case it prints its new name instead of `make'.
2500 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2501    am__include=include
2502    am__quote=
2503    _am_result=GNU
2504 fi
2505 # Now try BSD make style include.
2506 if test "$am__include" = "#"; then
2507    echo '.include "confinc"' > confmf
2508    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2509       am__include=.include
2510       am__quote="\""
2511       _am_result=BSD
2512    fi
2513 fi
2514
2515
2516 echo "$as_me:$LINENO: result: $_am_result" >&5
2517 echo "${ECHO_T}$_am_result" >&6
2518 rm -f confinc confmf
2519
2520 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2521 if test "${enable_dependency_tracking+set}" = set; then
2522   enableval="$enable_dependency_tracking"
2523
2524 fi;
2525 if test "x$enable_dependency_tracking" != xno; then
2526   am_depcomp="$ac_aux_dir/depcomp"
2527   AMDEPBACKSLASH='\'
2528 fi
2529
2530
2531 if test "x$enable_dependency_tracking" != xno; then
2532   AMDEP_TRUE=
2533   AMDEP_FALSE='#'
2534 else
2535   AMDEP_TRUE='#'
2536   AMDEP_FALSE=
2537 fi
2538
2539
2540
2541
2542 depcc="$CC"   am_compiler_list=
2543
2544 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2545 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2546 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2550   # We make a subdir and do the tests there.  Otherwise we can end up
2551   # making bogus files that we don't know about and never remove.  For
2552   # instance it was reported that on HP-UX the gcc test will end up
2553   # making a dummy file named `D' -- because `-MD' means `put the output
2554   # in D'.
2555   mkdir conftest.dir
2556   # Copy depcomp to subdir because otherwise we won't find it if we're
2557   # using a relative directory.
2558   cp "$am_depcomp" conftest.dir
2559   cd conftest.dir
2560
2561   am_cv_CC_dependencies_compiler_type=none
2562   if test "$am_compiler_list" = ""; then
2563      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2564   fi
2565   for depmode in $am_compiler_list; do
2566     # We need to recreate these files for each test, as the compiler may
2567     # overwrite some of them when testing with obscure command lines.
2568     # This happens at least with the AIX C compiler.
2569     echo '#include "conftest.h"' > conftest.c
2570     echo 'int i;' > conftest.h
2571     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2572
2573     case $depmode in
2574     nosideeffect)
2575       # after this tag, mechanisms are not by side-effect, so they'll
2576       # only be used when explicitly requested
2577       if test "x$enable_dependency_tracking" = xyes; then
2578         continue
2579       else
2580         break
2581       fi
2582       ;;
2583     none) break ;;
2584     esac
2585     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2586     # mode.  It turns out that the SunPro C++ compiler does not properly
2587     # handle `-M -o', and we need to detect this.
2588     if depmode=$depmode \
2589        source=conftest.c object=conftest.o \
2590        depfile=conftest.Po tmpdepfile=conftest.TPo \
2591        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2592        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2593        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2594       am_cv_CC_dependencies_compiler_type=$depmode
2595       break
2596     fi
2597   done
2598
2599   cd ..
2600   rm -rf conftest.dir
2601 else
2602   am_cv_CC_dependencies_compiler_type=none
2603 fi
2604
2605 fi
2606 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2607 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2608 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2609
2610
2611 if test "x$CC" != xcc; then
2612   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2613 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2614 else
2615   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2616 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2617 fi
2618 set dummy $CC; ac_cc=`echo $2 |
2619                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2620 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 #line $LINENO "configure"
2625 #include "confdefs.h"
2626
2627 #ifdef F77_DUMMY_MAIN
2628 #  ifdef __cplusplus
2629      extern "C"
2630 #  endif
2631    int F77_DUMMY_MAIN() { return 1; }
2632 #endif
2633 int
2634 main ()
2635 {
2636
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 # Make sure it works both with $CC and with simple cc.
2642 # We do the test twice because some compilers refuse to overwrite an
2643 # existing .o file with -o, though they will create one.
2644 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2645 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651   (eval $ac_try) 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); };
2655 then
2656   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2657   if test "x$CC" != xcc; then
2658     # Test first that cc exists at all.
2659     if { ac_try='cc -c conftest.$ac_ext >&5'
2660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661   (eval $ac_try) 2>&5
2662   ac_status=$?
2663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664   (exit $ac_status); }; }; then
2665       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2666       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672   (eval $ac_try) 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); };
2676       then
2677         # cc works too.
2678         :
2679       else
2680         # cc exists but doesn't like -o.
2681         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2682       fi
2683     fi
2684   fi
2685 else
2686   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2687 fi
2688 rm -f conftest*
2689
2690 fi
2691 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2692   echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6
2694 else
2695   echo "$as_me:$LINENO: result: no" >&5
2696 echo "${ECHO_T}no" >&6
2697
2698 cat >>confdefs.h <<\_ACEOF
2699 #define NO_MINUS_C_MINUS_O 1
2700 _ACEOF
2701
2702 fi
2703
2704 # FIXME: we rely on the cache variable name because
2705 # there is no other way.
2706 set dummy $CC
2707 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2708 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2709    # Losing compiler, so override with the script.
2710    # FIXME: It is wrong to rewrite CC.
2711    # But if we don't then we get into trouble of one sort or another.
2712    # A longer-term fix would be to have automake use am__CC in this case,
2713    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2714    CC="$am_aux_dir/compile $CC"
2715 fi
2716
2717
2718
2719 ac_ext=c
2720 ac_cpp='$CPP $CPPFLAGS'
2721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2725 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2726 # On Suns, sometimes $CPP names a directory.
2727 if test -n "$CPP" && test -d "$CPP"; then
2728   CPP=
2729 fi
2730 if test -z "$CPP"; then
2731   if test "${ac_cv_prog_CPP+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734       # Double quotes because CPP needs to be expanded
2735     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2736     do
2737       ac_preproc_ok=false
2738 for ac_c_preproc_warn_flag in '' yes
2739 do
2740   # Use a header file that comes with gcc, so configuring glibc
2741   # with a fresh cross-compiler works.
2742   # On the NeXT, cc -E runs the code through the compiler's parser,
2743   # not just through cpp. "Syntax error" is here to catch this case.
2744   cat >conftest.$ac_ext <<_ACEOF
2745 #line $LINENO "configure"
2746 #include "confdefs.h"
2747 #include <assert.h>
2748                      Syntax error
2749 _ACEOF
2750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2752   ac_status=$?
2753   egrep -v '^ *\+' conftest.er1 >conftest.err
2754   rm -f conftest.er1
2755   cat conftest.err >&5
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } >/dev/null; then
2758   if test -s conftest.err; then
2759     ac_cpp_err=$ac_c_preproc_warn_flag
2760   else
2761     ac_cpp_err=
2762   fi
2763 else
2764   ac_cpp_err=yes
2765 fi
2766 if test -z "$ac_cpp_err"; then
2767   :
2768 else
2769   echo "$as_me: failed program was:" >&5
2770   cat conftest.$ac_ext >&5
2771   # Broken: fails on valid input.
2772 continue
2773 fi
2774 rm -f conftest.err conftest.$ac_ext
2775
2776   # OK, works on sane cases.  Now check whether non-existent headers
2777   # can be detected and how.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 #include "confdefs.h"
2781 #include <ac_nonexistent.h>
2782 _ACEOF
2783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2784   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2785   ac_status=$?
2786   egrep -v '^ *\+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } >/dev/null; then
2791   if test -s conftest.err; then
2792     ac_cpp_err=$ac_c_preproc_warn_flag
2793   else
2794     ac_cpp_err=
2795   fi
2796 else
2797   ac_cpp_err=yes
2798 fi
2799 if test -z "$ac_cpp_err"; then
2800   # Broken: success on invalid input.
2801 continue
2802 else
2803   echo "$as_me: failed program was:" >&5
2804   cat conftest.$ac_ext >&5
2805   # Passes both tests.
2806 ac_preproc_ok=:
2807 break
2808 fi
2809 rm -f conftest.err conftest.$ac_ext
2810
2811 done
2812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2813 rm -f conftest.err conftest.$ac_ext
2814 if $ac_preproc_ok; then
2815   break
2816 fi
2817
2818     done
2819     ac_cv_prog_CPP=$CPP
2820
2821 fi
2822   CPP=$ac_cv_prog_CPP
2823 else
2824   ac_cv_prog_CPP=$CPP
2825 fi
2826 echo "$as_me:$LINENO: result: $CPP" >&5
2827 echo "${ECHO_T}$CPP" >&6
2828 ac_preproc_ok=false
2829 for ac_c_preproc_warn_flag in '' yes
2830 do
2831   # Use a header file that comes with gcc, so configuring glibc
2832   # with a fresh cross-compiler works.
2833   # On the NeXT, cc -E runs the code through the compiler's parser,
2834   # not just through cpp. "Syntax error" is here to catch this case.
2835   cat >conftest.$ac_ext <<_ACEOF
2836 #line $LINENO "configure"
2837 #include "confdefs.h"
2838 #include <assert.h>
2839                      Syntax error
2840 _ACEOF
2841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843   ac_status=$?
2844   egrep -v '^ *\+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
2846   cat conftest.err >&5
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); } >/dev/null; then
2849   if test -s conftest.err; then
2850     ac_cpp_err=$ac_c_preproc_warn_flag
2851   else
2852     ac_cpp_err=
2853   fi
2854 else
2855   ac_cpp_err=yes
2856 fi
2857 if test -z "$ac_cpp_err"; then
2858   :
2859 else
2860   echo "$as_me: failed program was:" >&5
2861   cat conftest.$ac_ext >&5
2862   # Broken: fails on valid input.
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_ext
2866
2867   # OK, works on sane cases.  Now check whether non-existent headers
2868   # can be detected and how.
2869   cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 #include "confdefs.h"
2872 #include <ac_nonexistent.h>
2873 _ACEOF
2874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876   ac_status=$?
2877   egrep -v '^ *\+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } >/dev/null; then
2882   if test -s conftest.err; then
2883     ac_cpp_err=$ac_c_preproc_warn_flag
2884   else
2885     ac_cpp_err=
2886   fi
2887 else
2888   ac_cpp_err=yes
2889 fi
2890 if test -z "$ac_cpp_err"; then
2891   # Broken: success on invalid input.
2892 continue
2893 else
2894   echo "$as_me: failed program was:" >&5
2895   cat conftest.$ac_ext >&5
2896   # Passes both tests.
2897 ac_preproc_ok=:
2898 break
2899 fi
2900 rm -f conftest.err conftest.$ac_ext
2901
2902 done
2903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2904 rm -f conftest.err conftest.$ac_ext
2905 if $ac_preproc_ok; then
2906   :
2907 else
2908   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2910    { (exit 1); exit 1; }; }
2911 fi
2912
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
2919
2920
2921 echo "$as_me:$LINENO: checking for AIX" >&5
2922 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2924 #line $LINENO "configure"
2925 #include "confdefs.h"
2926 #ifdef _AIX
2927   yes
2928 #endif
2929
2930 _ACEOF
2931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2932   egrep "yes" >/dev/null 2>&1; then
2933   echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6
2935 cat >>confdefs.h <<\_ACEOF
2936 #define _ALL_SOURCE 1
2937 _ACEOF
2938
2939 else
2940   echo "$as_me:$LINENO: result: no" >&5
2941 echo "${ECHO_T}no" >&6
2942 fi
2943 rm -f conftest*
2944
2945
2946 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2948 if test "${ac_cv_header_stdc+set}" = set; then
2949   echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951   cat >conftest.$ac_ext <<_ACEOF
2952 #line $LINENO "configure"
2953 #include "confdefs.h"
2954 #include <stdlib.h>
2955 #include <stdarg.h>
2956 #include <string.h>
2957 #include <float.h>
2958
2959 _ACEOF
2960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2962   ac_status=$?
2963   egrep -v '^ *\+' conftest.er1 >conftest.err
2964   rm -f conftest.er1
2965   cat conftest.err >&5
2966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967   (exit $ac_status); } >/dev/null; then
2968   if test -s conftest.err; then
2969     ac_cpp_err=$ac_c_preproc_warn_flag
2970   else
2971     ac_cpp_err=
2972   fi
2973 else
2974   ac_cpp_err=yes
2975 fi
2976 if test -z "$ac_cpp_err"; then
2977   ac_cv_header_stdc=yes
2978 else
2979   echo "$as_me: failed program was:" >&5
2980   cat conftest.$ac_ext >&5
2981   ac_cv_header_stdc=no
2982 fi
2983 rm -f conftest.err conftest.$ac_ext
2984
2985 if test $ac_cv_header_stdc = yes; then
2986   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2987   cat >conftest.$ac_ext <<_ACEOF
2988 #line $LINENO "configure"
2989 #include "confdefs.h"
2990 #include <string.h>
2991
2992 _ACEOF
2993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2994   egrep "memchr" >/dev/null 2>&1; then
2995   :
2996 else
2997   ac_cv_header_stdc=no
2998 fi
2999 rm -f conftest*
3000
3001 fi
3002
3003 if test $ac_cv_header_stdc = yes; then
3004   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 #include "confdefs.h"
3008 #include <stdlib.h>
3009
3010 _ACEOF
3011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3012   egrep "free" >/dev/null 2>&1; then
3013   :
3014 else
3015   ac_cv_header_stdc=no
3016 fi
3017 rm -f conftest*
3018
3019 fi
3020
3021 if test $ac_cv_header_stdc = yes; then
3022   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3023   if test "$cross_compiling" = yes; then
3024   :
3025 else
3026   cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3028 #include "confdefs.h"
3029 #include <ctype.h>
3030 #if ((' ' & 0x0FF) == 0x020)
3031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3033 #else
3034 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3035                      || ('j' <= (c) && (c) <= 'r') \
3036                      || ('s' <= (c) && (c) <= 'z'))
3037 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3038 #endif
3039
3040 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3041 int
3042 main ()
3043 {
3044   int i;
3045   for (i = 0; i < 256; i++)
3046     if (XOR (islower (i), ISLOWER (i))
3047         || toupper (i) != TOUPPER (i))
3048       exit(2);
3049   exit (0);
3050 }
3051 _ACEOF
3052 rm -f conftest$ac_exeext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054   (eval $ac_link) 2>&5
3055   ac_status=$?
3056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059   (eval $ac_try) 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   :
3064 else
3065   echo "$as_me: program exited with status $ac_status" >&5
3066 echo "$as_me: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 ( exit $ac_status )
3069 ac_cv_header_stdc=no
3070 fi
3071 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3072 fi
3073 fi
3074 fi
3075 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3076 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3077 if test $ac_cv_header_stdc = yes; then
3078
3079 cat >>confdefs.h <<\_ACEOF
3080 #define STDC_HEADERS 1
3081 _ACEOF
3082
3083 fi
3084
3085 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3096                   inttypes.h stdint.h unistd.h
3097 do
3098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3099 echo "$as_me:$LINENO: checking for $ac_header" >&5
3100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3102   echo $ECHO_N "(cached) $ECHO_C" >&6
3103 else
3104   cat >conftest.$ac_ext <<_ACEOF
3105 #line $LINENO "configure"
3106 #include "confdefs.h"
3107 $ac_includes_default
3108
3109 #include <$ac_header>
3110 _ACEOF
3111 rm -f conftest.$ac_objext
3112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3113   (eval $ac_compile) 2>&5
3114   ac_status=$?
3115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116   (exit $ac_status); } &&
3117          { ac_try='test -s conftest.$ac_objext'
3118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119   (eval $ac_try) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; }; then
3123   eval "$as_ac_Header=yes"
3124 else
3125   echo "$as_me: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 eval "$as_ac_Header=no"
3128 fi
3129 rm -f conftest.$ac_objext conftest.$ac_ext
3130 fi
3131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3134   cat >>confdefs.h <<_ACEOF
3135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3136 _ACEOF
3137
3138 fi
3139
3140 done
3141
3142
3143 if test "${ac_cv_header_minix_config_h+set}" = set; then
3144   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3145 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3146 if test "${ac_cv_header_minix_config_h+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 fi
3149 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3150 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3151 else
3152   # Is the header compilable?
3153 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3154 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3155 cat >conftest.$ac_ext <<_ACEOF
3156 #line $LINENO "configure"
3157 #include "confdefs.h"
3158 $ac_includes_default
3159 #include <minix/config.h>
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163   (eval $ac_compile) 2>&5
3164   ac_status=$?
3165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166   (exit $ac_status); } &&
3167          { ac_try='test -s conftest.$ac_objext'
3168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169   (eval $ac_try) 2>&5
3170   ac_status=$?
3171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); }; }; then
3173   ac_header_compiler=yes
3174 else
3175   echo "$as_me: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3177 ac_header_compiler=no
3178 fi
3179 rm -f conftest.$ac_objext conftest.$ac_ext
3180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3181 echo "${ECHO_T}$ac_header_compiler" >&6
3182
3183 # Is the header present?
3184 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3185 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3186 cat >conftest.$ac_ext <<_ACEOF
3187 #line $LINENO "configure"
3188 #include "confdefs.h"
3189 #include <minix/config.h>
3190 _ACEOF
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193   ac_status=$?
3194   egrep -v '^ *\+' conftest.er1 >conftest.err
3195   rm -f conftest.er1
3196   cat conftest.err >&5
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); } >/dev/null; then
3199   if test -s conftest.err; then
3200     ac_cpp_err=$ac_c_preproc_warn_flag
3201   else
3202     ac_cpp_err=
3203   fi
3204 else
3205   ac_cpp_err=yes
3206 fi
3207 if test -z "$ac_cpp_err"; then
3208   ac_header_preproc=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211   cat conftest.$ac_ext >&5
3212   ac_header_preproc=no
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3216 echo "${ECHO_T}$ac_header_preproc" >&6
3217
3218 # So?  What about this header?
3219 case $ac_header_compiler:$ac_header_preproc in
3220   yes:no )
3221     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3222 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3223     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3224 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3225   no:yes )
3226     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3227 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3228     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3229 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3230     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3231 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};;
3232 esac
3233 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3234 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3235 if test "${ac_cv_header_minix_config_h+set}" = set; then
3236   echo $ECHO_N "(cached) $ECHO_C" >&6
3237 else
3238   ac_cv_header_minix_config_h=$ac_header_preproc
3239 fi
3240 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3241 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3242
3243 fi
3244 if test $ac_cv_header_minix_config_h = yes; then
3245   MINIX=yes
3246 else
3247   MINIX=
3248 fi
3249
3250
3251 if test "$MINIX" = yes; then
3252
3253 cat >>confdefs.h <<\_ACEOF
3254 #define _POSIX_SOURCE 1
3255 _ACEOF
3256
3257
3258 cat >>confdefs.h <<\_ACEOF
3259 #define _POSIX_1_SOURCE 2
3260 _ACEOF
3261
3262
3263 cat >>confdefs.h <<\_ACEOF
3264 #define _MINIX 1
3265 _ACEOF
3266
3267 fi
3268
3269
3270 # Find the posix library needed on INTERACTIVE UNIX (ISC)
3271 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3272 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3273 if test "${ac_cv_search_strerror+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   ac_func_search_save_LIBS=$LIBS
3277 ac_cv_search_strerror=no
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 #include "confdefs.h"
3281
3282 /* Override any gcc2 internal prototype to avoid an error.  */
3283 #ifdef __cplusplus
3284 extern "C"
3285 #endif
3286 /* We use char because int might match the return type of a gcc2
3287    builtin and then its argument prototype would still apply.  */
3288 char strerror ();
3289 #ifdef F77_DUMMY_MAIN
3290 #  ifdef __cplusplus
3291      extern "C"
3292 #  endif
3293    int F77_DUMMY_MAIN() { return 1; }
3294 #endif
3295 int
3296 main ()
3297 {
3298 strerror ();
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext conftest$ac_exeext
3304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3305   (eval $ac_link) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); } &&
3309          { ac_try='test -s conftest$ac_exeext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   ac_cv_search_strerror="none required"
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 cat conftest.$ac_ext >&5
3319 fi
3320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3321 if test "$ac_cv_search_strerror" = no; then
3322   for ac_lib in cposix; do
3323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3324     cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 #include "confdefs.h"
3327
3328 /* Override any gcc2 internal prototype to avoid an error.  */
3329 #ifdef __cplusplus
3330 extern "C"
3331 #endif
3332 /* We use char because int might match the return type of a gcc2
3333    builtin and then its argument prototype would still apply.  */
3334 char strerror ();
3335 #ifdef F77_DUMMY_MAIN
3336 #  ifdef __cplusplus
3337      extern "C"
3338 #  endif
3339    int F77_DUMMY_MAIN() { return 1; }
3340 #endif
3341 int
3342 main ()
3343 {
3344 strerror ();
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext conftest$ac_exeext
3350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3351   (eval $ac_link) 2>&5
3352   ac_status=$?
3353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354   (exit $ac_status); } &&
3355          { ac_try='test -s conftest$ac_exeext'
3356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357   (eval $ac_try) 2>&5
3358   ac_status=$?
3359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360   (exit $ac_status); }; }; then
3361   ac_cv_search_strerror="-l$ac_lib"
3362 break
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 fi
3367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3368   done
3369 fi
3370 LIBS=$ac_func_search_save_LIBS
3371 fi
3372 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3373 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3374 if test "$ac_cv_search_strerror" != no; then
3375   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3376
3377 fi
3378
3379
3380
3381 if test -n "$ac_tool_prefix"; then
3382   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_RANLIB+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   if test -n "$RANLIB"; then
3390   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397   for ac_exec_ext in '' $ac_executable_extensions; do
3398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404 done
3405
3406 fi
3407 fi
3408 RANLIB=$ac_cv_prog_RANLIB
3409 if test -n "$RANLIB"; then
3410   echo "$as_me:$LINENO: result: $RANLIB" >&5
3411 echo "${ECHO_T}$RANLIB" >&6
3412 else
3413   echo "$as_me:$LINENO: result: no" >&5
3414 echo "${ECHO_T}no" >&6
3415 fi
3416
3417 fi
3418 if test -z "$ac_cv_prog_RANLIB"; then
3419   ac_ct_RANLIB=$RANLIB
3420   # Extract the first word of "ranlib", so it can be a program name with args.
3421 set dummy ranlib; ac_word=$2
3422 echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3425   echo $ECHO_N "(cached) $ECHO_C" >&6
3426 else
3427   if test -n "$ac_ct_RANLIB"; then
3428   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_ac_ct_RANLIB="ranlib"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3445 fi
3446 fi
3447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3448 if test -n "$ac_ct_RANLIB"; then
3449   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456   RANLIB=$ac_ct_RANLIB
3457 else
3458   RANLIB="$ac_cv_prog_RANLIB"
3459 fi
3460
3461 for ac_prog in 'bison -y' byacc
3462 do
3463   # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_prog_YACC+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   if test -n "$YACC"; then
3471   ac_cv_prog_YACC="$YACC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478   for ac_exec_ext in '' $ac_executable_extensions; do
3479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     ac_cv_prog_YACC="$ac_prog"
3481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485 done
3486
3487 fi
3488 fi
3489 YACC=$ac_cv_prog_YACC
3490 if test -n "$YACC"; then
3491   echo "$as_me:$LINENO: result: $YACC" >&5
3492 echo "${ECHO_T}$YACC" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498   test -n "$YACC" && break
3499 done
3500 test -n "$YACC" || YACC="yacc"
3501
3502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3504 LN_S=$as_ln_s
3505 if test "$LN_S" = "ln -s"; then
3506   echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6
3508 else
3509   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3510 echo "${ECHO_T}no, using $LN_S" >&6
3511 fi
3512
3513
3514
3515 # Extract the first word of "perl", so it can be a program name with args.
3516 set dummy perl; ac_word=$2
3517 echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3519 if test "${ac_cv_path_PERL+set}" = set; then
3520   echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522   case $PERL in
3523   [\\/]* | ?:[\\/]*)
3524   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3525   ;;
3526   *)
3527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH
3529 do
3530   IFS=$as_save_IFS
3531   test -z "$as_dir" && as_dir=.
3532   for ac_exec_ext in '' $ac_executable_extensions; do
3533   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3534     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
3535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3536     break 2
3537   fi
3538 done
3539 done
3540
3541   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
3542   ;;
3543 esac
3544 fi
3545 PERL=$ac_cv_path_PERL
3546
3547 if test -n "$PERL"; then
3548   echo "$as_me:$LINENO: result: $PERL" >&5
3549 echo "${ECHO_T}$PERL" >&6
3550 else
3551   echo "$as_me:$LINENO: result: no" >&5
3552 echo "${ECHO_T}no" >&6
3553 fi
3554
3555 # Extract the first word of "csh", so it can be a program name with args.
3556 set dummy csh; ac_word=$2
3557 echo "$as_me:$LINENO: checking for $ac_word" >&5
3558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3559 if test "${ac_cv_path_CSH+set}" = set; then
3560   echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562   case $CSH in
3563   [\\/]* | ?:[\\/]*)
3564   ac_cv_path_CSH="$CSH" # Let the user override the test with a path.
3565   ;;
3566   *)
3567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3569 do
3570   IFS=$as_save_IFS
3571   test -z "$as_dir" && as_dir=.
3572   for ac_exec_ext in '' $ac_executable_extensions; do
3573   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3574     ac_cv_path_CSH="$as_dir/$ac_word$ac_exec_ext"
3575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576     break 2
3577   fi
3578 done
3579 done
3580
3581   test -z "$ac_cv_path_CSH" && ac_cv_path_CSH="no"
3582   ;;
3583 esac
3584 fi
3585 CSH=$ac_cv_path_CSH
3586
3587 if test -n "$CSH"; then
3588   echo "$as_me:$LINENO: result: $CSH" >&5
3589 echo "${ECHO_T}$CSH" >&6
3590 else
3591   echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3593 fi
3594
3595 # Extract the first word of "pr", so it can be a program name with args.
3596 set dummy pr; ac_word=$2
3597 echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599 if test "${ac_cv_path_PR+set}" = set; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   case $PR in
3603   [\\/]* | ?:[\\/]*)
3604   ac_cv_path_PR="$PR" # Let the user override the test with a path.
3605   ;;
3606   *)
3607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614     ac_cv_path_PR="$as_dir/$ac_word$ac_exec_ext"
3615     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619 done
3620
3621   test -z "$ac_cv_path_PR" && ac_cv_path_PR="no"
3622   ;;
3623 esac
3624 fi
3625 PR=$ac_cv_path_PR
3626
3627 if test -n "$PR"; then
3628   echo "$as_me:$LINENO: result: $PR" >&5
3629 echo "${ECHO_T}$PR" >&6
3630 else
3631   echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6
3633 fi
3634
3635 # For diff/util.c
3636 if test x"$PR" != xno; then
3637
3638 cat >>confdefs.h <<_ACEOF
3639 #define PR_PROGRAM "$PR"
3640 _ACEOF
3641
3642 fi
3643
3644 missing_dir=`cd $ac_aux_dir && pwd`
3645 glocs="$PATH:/usr/local/bin:/usr/contrib/bin:/usr/gnu/bin:/local/bin:/local/gnu/bin:/gnu/bin"
3646 for ac_prog in groff roff
3647 do
3648   # Extract the first word of "$ac_prog", so it can be a program name with args.
3649 set dummy $ac_prog; ac_word=$2
3650 echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_path_ROFF+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655   case $ROFF in
3656   [\\/]* | ?:[\\/]*)
3657   ac_cv_path_ROFF="$ROFF" # Let the user override the test with a path.
3658   ;;
3659   *)
3660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $glocs
3662 do
3663   IFS=$as_save_IFS
3664   test -z "$as_dir" && as_dir=.
3665   for ac_exec_ext in '' $ac_executable_extensions; do
3666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667     ac_cv_path_ROFF="$as_dir/$ac_word$ac_exec_ext"
3668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669     break 2
3670   fi
3671 done
3672 done
3673
3674   ;;
3675 esac
3676 fi
3677 ROFF=$ac_cv_path_ROFF
3678
3679 if test -n "$ROFF"; then
3680   echo "$as_me:$LINENO: result: $ROFF" >&5
3681 echo "${ECHO_T}$ROFF" >&6
3682 else
3683   echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3685 fi
3686
3687   test -n "$ROFF" && break
3688 done
3689 test -n "$ROFF" || ROFF="$missing_dir/missing roff"
3690
3691 # Extract the first word of "ps2pdf", so it can be a program name with args.
3692 set dummy ps2pdf; ac_word=$2
3693 echo "$as_me:$LINENO: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_path_PS2PDF+set}" = set; then
3696   echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698   case $PS2PDF in
3699   [\\/]* | ?:[\\/]*)
3700   ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
3701   ;;
3702   *)
3703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708   for ac_exec_ext in '' $ac_executable_extensions; do
3709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3710     ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
3711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715 done
3716
3717   test -z "$ac_cv_path_PS2PDF" && ac_cv_path_PS2PDF="$missing_dir/missing ps2pdf"
3718   ;;
3719 esac
3720 fi
3721 PS2PDF=$ac_cv_path_PS2PDF
3722
3723 if test -n "$PS2PDF"; then
3724   echo "$as_me:$LINENO: result: $PS2PDF" >&5
3725 echo "${ECHO_T}$PS2PDF" >&6
3726 else
3727   echo "$as_me:$LINENO: result: no" >&5
3728 echo "${ECHO_T}no" >&6
3729 fi
3730
3731 # Extract the first word of "texi2dvi", so it can be a program name with args.
3732 set dummy texi2dvi; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_path_TEXI2DVI+set}" = set; then
3736   echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738   case $TEXI2DVI in
3739   [\\/]* | ?:[\\/]*)
3740   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
3741   ;;
3742   *)
3743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748   for ac_exec_ext in '' $ac_executable_extensions; do
3749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
3751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755 done
3756
3757   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI="$missing_dir/missing texi2dvi"
3758   ;;
3759 esac
3760 fi
3761 TEXI2DVI=$ac_cv_path_TEXI2DVI
3762
3763 if test -n "$TEXI2DVI"; then
3764   echo "$as_me:$LINENO: result: $TEXI2DVI" >&5
3765 echo "${ECHO_T}$TEXI2DVI" >&6
3766 else
3767   echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769 fi
3770
3771
3772 echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
3773 echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
3774 if test "${ac_cv_sys_interpreter+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   echo '#! /bin/cat
3778 exit 69
3779 ' >conftest
3780 chmod u+x conftest
3781 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
3782 if test $? -ne 69; then
3783    ac_cv_sys_interpreter=yes
3784 else
3785    ac_cv_sys_interpreter=no
3786 fi
3787 rm -f conftest
3788 fi
3789 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
3790 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
3791 interpval=$ac_cv_sys_interpreter
3792
3793 if test X"$ac_cv_sys_interpreter" != X"yes" ; then
3794   # silly trick to avoid problems in AC macros...
3795   ac_msg='perl scripts using #! may not be invoked properly'
3796   { echo "$as_me:$LINENO: WARNING: $ac_msg" >&5
3797 echo "$as_me: WARNING: $ac_msg" >&2;}
3798 fi
3799
3800 # BSD's logo is a devil for a reason, hey?
3801 echo "$as_me:$LINENO: checking for BSD VPATH bug in make" >&5
3802 echo $ECHO_N "checking for BSD VPATH bug in make... $ECHO_C" >&6
3803 if test "${ccvs_cv_bsd_make_vpath_bug+set}" = set; then
3804   echo $ECHO_N "(cached) $ECHO_C" >&6
3805 else
3806   if test ! -d ac_test_dir ; then
3807         { ac_try='mkdir ac_test_dir'
3808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809   (eval $ac_try) 2>&5
3810   ac_status=$?
3811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812   (exit $ac_status); }; }
3813 fi
3814 cat >conftestmake <<EOF
3815 VPATH = ac_test_dir
3816 ac_test_target: ac_test_dep
3817         echo BSD VPATH bug present >&2
3818 ac_test_dep: ac_test_dep_dep
3819 EOF
3820 touch ac_test_dir/ac_test_dep_dep
3821 touch ac_test_dir/ac_test_dep
3822 touch ac_test_target
3823 # Don't know why, but the following test doesn't work under FreeBSD 4.2
3824 # without this sleep command
3825 sleep 1
3826 if { ac_try='make -f conftestmake 2>&1 >/dev/null |grep ^BSD\ VPATH\ bug\ present\$ >/dev/null'
3827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828   (eval $ac_try) 2>&5
3829   ac_status=$?
3830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831   (exit $ac_status); }; } ; then
3832         ccvs_cv_bsd_make_vpath_bug=yes
3833 else
3834         ccvs_cv_bsd_make_vpath_bug=no
3835 fi
3836 { ac_try='rm -rf ac_test_dir ac_test_target conftestmake'
3837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838   (eval $ac_try) 2>&5
3839   ac_status=$?
3840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841   (exit $ac_status); }; }
3842 fi
3843 echo "$as_me:$LINENO: result: $ccvs_cv_bsd_make_vpath_bug" >&5
3844 echo "${ECHO_T}$ccvs_cv_bsd_make_vpath_bug" >&6
3845 # We also don't need to worry about the bug when $srcdir = $builddir
3846
3847
3848 if \
3849                 test $ccvs_cv_bsd_make_vpath_bug = no \
3850                 || test $srcdir = .; then
3851   MAKE_TARGETS_IN_VPATH_TRUE=
3852   MAKE_TARGETS_IN_VPATH_FALSE='#'
3853 else
3854   MAKE_TARGETS_IN_VPATH_TRUE='#'
3855   MAKE_TARGETS_IN_VPATH_FALSE=
3856 fi
3857
3858
3859
3860
3861
3862
3863
3864 ac_header_dirent=no
3865 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3866   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3867 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3868 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 #line $LINENO "configure"
3874 #include "confdefs.h"
3875 #include <sys/types.h>
3876 #include <$ac_hdr>
3877
3878 #ifdef F77_DUMMY_MAIN
3879 #  ifdef __cplusplus
3880      extern "C"
3881 #  endif
3882    int F77_DUMMY_MAIN() { return 1; }
3883 #endif
3884 int
3885 main ()
3886 {
3887 if ((DIR *) 0)
3888 return 0;
3889   ;
3890   return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest.$ac_objext
3894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3895   (eval $ac_compile) 2>&5
3896   ac_status=$?
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } &&
3899          { ac_try='test -s conftest.$ac_objext'
3900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901   (eval $ac_try) 2>&5
3902   ac_status=$?
3903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); }; }; then
3905   eval "$as_ac_Header=yes"
3906 else
3907   echo "$as_me: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3909 eval "$as_ac_Header=no"
3910 fi
3911 rm -f conftest.$ac_objext conftest.$ac_ext
3912 fi
3913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3916   cat >>confdefs.h <<_ACEOF
3917 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3918 _ACEOF
3919
3920 ac_header_dirent=$ac_hdr; break
3921 fi
3922
3923 done
3924 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3925 if test $ac_header_dirent = dirent.h; then
3926   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3927 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3928 if test "${ac_cv_search_opendir+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   ac_func_search_save_LIBS=$LIBS
3932 ac_cv_search_opendir=no
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 #include "confdefs.h"
3936
3937 /* Override any gcc2 internal prototype to avoid an error.  */
3938 #ifdef __cplusplus
3939 extern "C"
3940 #endif
3941 /* We use char because int might match the return type of a gcc2
3942    builtin and then its argument prototype would still apply.  */
3943 char opendir ();
3944 #ifdef F77_DUMMY_MAIN
3945 #  ifdef __cplusplus
3946      extern "C"
3947 #  endif
3948    int F77_DUMMY_MAIN() { return 1; }
3949 #endif
3950 int
3951 main ()
3952 {
3953 opendir ();
3954   ;
3955   return 0;
3956 }
3957 _ACEOF
3958 rm -f conftest.$ac_objext conftest$ac_exeext
3959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3960   (eval $ac_link) 2>&5
3961   ac_status=$?
3962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } &&
3964          { ac_try='test -s conftest$ac_exeext'
3965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966   (eval $ac_try) 2>&5
3967   ac_status=$?
3968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969   (exit $ac_status); }; }; then
3970   ac_cv_search_opendir="none required"
3971 else
3972   echo "$as_me: failed program was:" >&5
3973 cat conftest.$ac_ext >&5
3974 fi
3975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3976 if test "$ac_cv_search_opendir" = no; then
3977   for ac_lib in dir; do
3978     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3979     cat >conftest.$ac_ext <<_ACEOF
3980 #line $LINENO "configure"
3981 #include "confdefs.h"
3982
3983 /* Override any gcc2 internal prototype to avoid an error.  */
3984 #ifdef __cplusplus
3985 extern "C"
3986 #endif
3987 /* We use char because int might match the return type of a gcc2
3988    builtin and then its argument prototype would still apply.  */
3989 char opendir ();
3990 #ifdef F77_DUMMY_MAIN
3991 #  ifdef __cplusplus
3992      extern "C"
3993 #  endif
3994    int F77_DUMMY_MAIN() { return 1; }
3995 #endif
3996 int
3997 main ()
3998 {
3999 opendir ();
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006   (eval $ac_link) 2>&5
4007   ac_status=$?
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } &&
4010          { ac_try='test -s conftest$ac_exeext'
4011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012   (eval $ac_try) 2>&5
4013   ac_status=$?
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); }; }; then
4016   ac_cv_search_opendir="-l$ac_lib"
4017 break
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4021 fi
4022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4023   done
4024 fi
4025 LIBS=$ac_func_search_save_LIBS
4026 fi
4027 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4028 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4029 if test "$ac_cv_search_opendir" != no; then
4030   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4031
4032 fi
4033
4034 else
4035   echo "$as_me:$LINENO: checking for library containing opendir" >&5
4036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4037 if test "${ac_cv_search_opendir+set}" = set; then
4038   echo $ECHO_N "(cached) $ECHO_C" >&6
4039 else
4040   ac_func_search_save_LIBS=$LIBS
4041 ac_cv_search_opendir=no
4042 cat >conftest.$ac_ext <<_ACEOF
4043 #line $LINENO "configure"
4044 #include "confdefs.h"
4045
4046 /* Override any gcc2 internal prototype to avoid an error.  */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 /* We use char because int might match the return type of a gcc2
4051    builtin and then its argument prototype would still apply.  */
4052 char opendir ();
4053 #ifdef F77_DUMMY_MAIN
4054 #  ifdef __cplusplus
4055      extern "C"
4056 #  endif
4057    int F77_DUMMY_MAIN() { return 1; }
4058 #endif
4059 int
4060 main ()
4061 {
4062 opendir ();
4063   ;
4064   return 0;
4065 }
4066 _ACEOF
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4069   (eval $ac_link) 2>&5
4070   ac_status=$?
4071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072   (exit $ac_status); } &&
4073          { ac_try='test -s conftest$ac_exeext'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079   ac_cv_search_opendir="none required"
4080 else
4081   echo "$as_me: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 fi
4084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4085 if test "$ac_cv_search_opendir" = no; then
4086   for ac_lib in x; do
4087     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4088     cat >conftest.$ac_ext <<_ACEOF
4089 #line $LINENO "configure"
4090 #include "confdefs.h"
4091
4092 /* Override any gcc2 internal prototype to avoid an error.  */
4093 #ifdef __cplusplus
4094 extern "C"
4095 #endif
4096 /* We use char because int might match the return type of a gcc2
4097    builtin and then its argument prototype would still apply.  */
4098 char opendir ();
4099 #ifdef F77_DUMMY_MAIN
4100 #  ifdef __cplusplus
4101      extern "C"
4102 #  endif
4103    int F77_DUMMY_MAIN() { return 1; }
4104 #endif
4105 int
4106 main ()
4107 {
4108 opendir ();
4109   ;
4110   return 0;
4111 }
4112 _ACEOF
4113 rm -f conftest.$ac_objext conftest$ac_exeext
4114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115   (eval $ac_link) 2>&5
4116   ac_status=$?
4117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118   (exit $ac_status); } &&
4119          { ac_try='test -s conftest$ac_exeext'
4120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4121   (eval $ac_try) 2>&5
4122   ac_status=$?
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); }; }; then
4125   ac_cv_search_opendir="-l$ac_lib"
4126 break
4127 else
4128   echo "$as_me: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 fi
4131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4132   done
4133 fi
4134 LIBS=$ac_func_search_save_LIBS
4135 fi
4136 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4137 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4138 if test "$ac_cv_search_opendir" != no; then
4139   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4140
4141 fi
4142
4143 fi
4144
4145 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4147 if test "${ac_cv_header_stdc+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   cat >conftest.$ac_ext <<_ACEOF
4151 #line $LINENO "configure"
4152 #include "confdefs.h"
4153 #include <stdlib.h>
4154 #include <stdarg.h>
4155 #include <string.h>
4156 #include <float.h>
4157
4158 _ACEOF
4159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4161   ac_status=$?
4162   egrep -v '^ *\+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } >/dev/null; then
4167   if test -s conftest.err; then
4168     ac_cpp_err=$ac_c_preproc_warn_flag
4169   else
4170     ac_cpp_err=
4171   fi
4172 else
4173   ac_cpp_err=yes
4174 fi
4175 if test -z "$ac_cpp_err"; then
4176   ac_cv_header_stdc=yes
4177 else
4178   echo "$as_me: failed program was:" >&5
4179   cat conftest.$ac_ext >&5
4180   ac_cv_header_stdc=no
4181 fi
4182 rm -f conftest.err conftest.$ac_ext
4183
4184 if test $ac_cv_header_stdc = yes; then
4185   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 #line $LINENO "configure"
4188 #include "confdefs.h"
4189 #include <string.h>
4190
4191 _ACEOF
4192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4193   egrep "memchr" >/dev/null 2>&1; then
4194   :
4195 else
4196   ac_cv_header_stdc=no
4197 fi
4198 rm -f conftest*
4199
4200 fi
4201
4202 if test $ac_cv_header_stdc = yes; then
4203   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4204   cat >conftest.$ac_ext <<_ACEOF
4205 #line $LINENO "configure"
4206 #include "confdefs.h"
4207 #include <stdlib.h>
4208
4209 _ACEOF
4210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211   egrep "free" >/dev/null 2>&1; then
4212   :
4213 else
4214   ac_cv_header_stdc=no
4215 fi
4216 rm -f conftest*
4217
4218 fi
4219
4220 if test $ac_cv_header_stdc = yes; then
4221   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222   if test "$cross_compiling" = yes; then
4223   :
4224 else
4225   cat >conftest.$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4227 #include "confdefs.h"
4228 #include <ctype.h>
4229 #if ((' ' & 0x0FF) == 0x020)
4230 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4231 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4232 #else
4233 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4234                      || ('j' <= (c) && (c) <= 'r') \
4235                      || ('s' <= (c) && (c) <= 'z'))
4236 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4237 #endif
4238
4239 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4240 int
4241 main ()
4242 {
4243   int i;
4244   for (i = 0; i < 256; i++)
4245     if (XOR (islower (i), ISLOWER (i))
4246         || toupper (i) != TOUPPER (i))
4247       exit(2);
4248   exit (0);
4249 }
4250 _ACEOF
4251 rm -f conftest$ac_exeext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4253   (eval $ac_link) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258   (eval $ac_try) 2>&5
4259   ac_status=$?
4260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); }; }; then
4262   :
4263 else
4264   echo "$as_me: program exited with status $ac_status" >&5
4265 echo "$as_me: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4267 ( exit $ac_status )
4268 ac_cv_header_stdc=no
4269 fi
4270 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 fi
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4276 if test $ac_cv_header_stdc = yes; then
4277
4278 cat >>confdefs.h <<\_ACEOF
4279 #define STDC_HEADERS 1
4280 _ACEOF
4281
4282 fi
4283
4284 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4285 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
4286 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   cat >conftest.$ac_ext <<_ACEOF
4290 #line $LINENO "configure"
4291 #include "confdefs.h"
4292 #include <sys/types.h>
4293 #include <sys/wait.h>
4294 #ifndef WEXITSTATUS
4295 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4296 #endif
4297 #ifndef WIFEXITED
4298 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4299 #endif
4300
4301 #ifdef F77_DUMMY_MAIN
4302 #  ifdef __cplusplus
4303      extern "C"
4304 #  endif
4305    int F77_DUMMY_MAIN() { return 1; }
4306 #endif
4307 int
4308 main ()
4309 {
4310   int s;
4311   wait (&s);
4312   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 rm -f conftest.$ac_objext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319   (eval $ac_compile) 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); } &&
4323          { ac_try='test -s conftest.$ac_objext'
4324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325   (eval $ac_try) 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; }; then
4329   ac_cv_header_sys_wait_h=yes
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 cat conftest.$ac_ext >&5
4333 ac_cv_header_sys_wait_h=no
4334 fi
4335 rm -f conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4338 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
4339 if test $ac_cv_header_sys_wait_h = yes; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define HAVE_SYS_WAIT_H 1
4343 _ACEOF
4344
4345 fi
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366 for ac_header in \
4367         errno.h \
4368         direct.h \
4369         fcntl.h \
4370         fnmatch.h \
4371         io.h \
4372         limits.h \
4373         memory.h \
4374         ndbm.h \
4375         string.h \
4376         syslog.h \
4377         sys/bsdtypes.h \
4378         sys/file.h \
4379         sys/param.h \
4380         sys/resource.h \
4381         sys/select.h \
4382         sys/time.h \
4383         sys/timeb.h \
4384         unistd.h \
4385         utime.h\
4386
4387 do
4388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390   echo "$as_me:$LINENO: checking for $ac_header" >&5
4391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393   echo $ECHO_N "(cached) $ECHO_C" >&6
4394 fi
4395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4397 else
4398   # Is the header compilable?
4399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4402 #line $LINENO "configure"
4403 #include "confdefs.h"
4404 $ac_includes_default
4405 #include <$ac_header>
4406 _ACEOF
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409   (eval $ac_compile) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } &&
4413          { ac_try='test -s conftest.$ac_objext'
4414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415   (eval $ac_try) 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; }; then
4419   ac_header_compiler=yes
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4423 ac_header_compiler=no
4424 fi
4425 rm -f conftest.$ac_objext conftest.$ac_ext
4426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4427 echo "${ECHO_T}$ac_header_compiler" >&6
4428
4429 # Is the header present?
4430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line $LINENO "configure"
4434 #include "confdefs.h"
4435 #include <$ac_header>
4436 _ACEOF
4437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4439   ac_status=$?
4440   egrep -v '^ *\+' conftest.er1 >conftest.err
4441   rm -f conftest.er1
4442   cat conftest.err >&5
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } >/dev/null; then
4445   if test -s conftest.err; then
4446     ac_cpp_err=$ac_c_preproc_warn_flag
4447   else
4448     ac_cpp_err=
4449   fi
4450 else
4451   ac_cpp_err=yes
4452 fi
4453 if test -z "$ac_cpp_err"; then
4454   ac_header_preproc=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457   cat conftest.$ac_ext >&5
4458   ac_header_preproc=no
4459 fi
4460 rm -f conftest.err conftest.$ac_ext
4461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4462 echo "${ECHO_T}$ac_header_preproc" >&6
4463
4464 # So?  What about this header?
4465 case $ac_header_compiler:$ac_header_preproc in
4466   yes:no )
4467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4471   no:yes )
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4474     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4476     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4478 esac
4479 echo "$as_me:$LINENO: checking for $ac_header" >&5
4480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482   echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484   eval "$as_ac_Header=$ac_header_preproc"
4485 fi
4486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488
4489 fi
4490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491   cat >>confdefs.h <<_ACEOF
4492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493 _ACEOF
4494
4495 fi
4496
4497 done
4498
4499 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
4500 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4501 if test "${ac_cv_header_stat_broken+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   cat >conftest.$ac_ext <<_ACEOF
4505 #line $LINENO "configure"
4506 #include "confdefs.h"
4507 #include <sys/types.h>
4508 #include <sys/stat.h>
4509
4510 #if defined(S_ISBLK) && defined(S_IFDIR)
4511 # if S_ISBLK (S_IFDIR)
4512 You lose.
4513 # endif
4514 #endif
4515
4516 #if defined(S_ISBLK) && defined(S_IFCHR)
4517 # if S_ISBLK (S_IFCHR)
4518 You lose.
4519 # endif
4520 #endif
4521
4522 #if defined(S_ISLNK) && defined(S_IFREG)
4523 # if S_ISLNK (S_IFREG)
4524 You lose.
4525 # endif
4526 #endif
4527
4528 #if defined(S_ISSOCK) && defined(S_IFREG)
4529 # if S_ISSOCK (S_IFREG)
4530 You lose.
4531 # endif
4532 #endif
4533
4534 _ACEOF
4535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4536   egrep "You lose" >/dev/null 2>&1; then
4537   ac_cv_header_stat_broken=yes
4538 else
4539   ac_cv_header_stat_broken=no
4540 fi
4541 rm -f conftest*
4542
4543 fi
4544 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
4545 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4546 if test $ac_cv_header_stat_broken = yes; then
4547
4548 cat >>confdefs.h <<\_ACEOF
4549 #define STAT_MACROS_BROKEN 1
4550 _ACEOF
4551
4552 fi
4553
4554 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4555 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4556 if test "${ac_cv_header_time+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 #line $LINENO "configure"
4561 #include "confdefs.h"
4562 #include <sys/types.h>
4563 #include <sys/time.h>
4564 #include <time.h>
4565
4566 #ifdef F77_DUMMY_MAIN
4567 #  ifdef __cplusplus
4568      extern "C"
4569 #  endif
4570    int F77_DUMMY_MAIN() { return 1; }
4571 #endif
4572 int
4573 main ()
4574 {
4575 if ((struct tm *) 0)
4576 return 0;
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583   (eval $ac_compile) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -s conftest.$ac_objext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   ac_cv_header_time=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4597 ac_cv_header_time=no
4598 fi
4599 rm -f conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4602 echo "${ECHO_T}$ac_cv_header_time" >&6
4603 if test $ac_cv_header_time = yes; then
4604
4605 cat >>confdefs.h <<\_ACEOF
4606 #define TIME_WITH_SYS_TIME 1
4607 _ACEOF
4608
4609 fi
4610
4611
4612 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4613 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4614 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   ac_cv_prog_cc_stdc=no
4618 ac_save_CC=$CC
4619 cat >conftest.$ac_ext <<_ACEOF
4620 #line $LINENO "configure"
4621 #include "confdefs.h"
4622 #include <stdarg.h>
4623 #include <stdio.h>
4624 #include <sys/types.h>
4625 #include <sys/stat.h>
4626 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4627 struct buf { int x; };
4628 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4629 static char *e (p, i)
4630      char **p;
4631      int i;
4632 {
4633   return p[i];
4634 }
4635 static char *f (char * (*g) (char **, int), char **p, ...)
4636 {
4637   char *s;
4638   va_list v;
4639   va_start (v,p);
4640   s = g (p, va_arg (v,int));
4641   va_end (v);
4642   return s;
4643 }
4644 int test (int i, double x);
4645 struct s1 {int (*f) (int a);};
4646 struct s2 {int (*f) (double a);};
4647 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4648 int argc;
4649 char **argv;
4650 #ifdef F77_DUMMY_MAIN
4651 #  ifdef __cplusplus
4652      extern "C"
4653 #  endif
4654    int F77_DUMMY_MAIN() { return 1; }
4655 #endif
4656 int
4657 main ()
4658 {
4659 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4660   ;
4661   return 0;
4662 }
4663 _ACEOF
4664 # Don't try gcc -ansi; that turns off useful extensions and
4665 # breaks some systems' header files.
4666 # AIX                   -qlanglvl=ansi
4667 # Ultrix and OSF/1      -std1
4668 # HP-UX 10.20 and later -Ae
4669 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4670 # SVR4                  -Xc -D__EXTENSIONS__
4671 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4672 do
4673   CC="$ac_save_CC $ac_arg"
4674   rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>&5
4677   ac_status=$?
4678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679   (exit $ac_status); } &&
4680          { ac_try='test -s conftest.$ac_objext'
4681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682   (eval $ac_try) 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   ac_cv_prog_cc_stdc=$ac_arg
4687 break
4688 else
4689   echo "$as_me: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4691 fi
4692 rm -f conftest.$ac_objext
4693 done
4694 rm -f conftest.$ac_ext conftest.$ac_objext
4695 CC=$ac_save_CC
4696
4697 fi
4698
4699 case "x$ac_cv_prog_cc_stdc" in
4700   x|xno)
4701     echo "$as_me:$LINENO: result: none needed" >&5
4702 echo "${ECHO_T}none needed" >&6 ;;
4703   *)
4704     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4705 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4706     CC="$CC $ac_cv_prog_cc_stdc" ;;
4707 esac
4708
4709 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4710 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4711 if test "${ac_cv_c_const+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 #include "confdefs.h"
4717
4718 #ifdef F77_DUMMY_MAIN
4719 #  ifdef __cplusplus
4720      extern "C"
4721 #  endif
4722    int F77_DUMMY_MAIN() { return 1; }
4723 #endif
4724 int
4725 main ()
4726 {
4727 /* FIXME: Include the comments suggested by Paul. */
4728 #ifndef __cplusplus
4729   /* Ultrix mips cc rejects this.  */
4730   typedef int charset[2];
4731   const charset x;
4732   /* SunOS 4.1.1 cc rejects this.  */
4733   char const *const *ccp;
4734   char **p;
4735   /* NEC SVR4.0.2 mips cc rejects this.  */
4736   struct point {int x, y;};
4737   static struct point const zero = {0,0};
4738   /* AIX XL C 1.02.0.0 rejects this.
4739      It does not let you subtract one const X* pointer from another in
4740      an arm of an if-expression whose if-part is not a constant
4741      expression */
4742   const char *g = "string";
4743   ccp = &g + (g ? g-g : 0);
4744   /* HPUX 7.0 cc rejects these. */
4745   ++ccp;
4746   p = (char**) ccp;
4747   ccp = (char const *const *) p;
4748   { /* SCO 3.2v4 cc rejects this.  */
4749     char *t;
4750     char const *s = 0 ? (char *) 0 : (char const *) 0;
4751
4752     *t++ = 0;
4753   }
4754   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4755     int x[] = {25, 17};
4756     const int *foo = &x[0];
4757     ++foo;
4758   }
4759   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4760     typedef const int *iptr;
4761     iptr p = 0;
4762     ++p;
4763   }
4764   { /* AIX XL C 1.02.0.0 rejects this saying
4765        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4766     struct s { int j; const int *ap[3]; };
4767     struct s *b; b->j = 5;
4768   }
4769   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4770     const int foo = 10;
4771   }
4772 #endif
4773
4774   ;
4775   return 0;
4776 }
4777 _ACEOF
4778 rm -f conftest.$ac_objext
4779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780   (eval $ac_compile) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); } &&
4784          { ac_try='test -s conftest.$ac_objext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   ac_cv_c_const=yes
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4794 ac_cv_c_const=no
4795 fi
4796 rm -f conftest.$ac_objext conftest.$ac_ext
4797 fi
4798 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4799 echo "${ECHO_T}$ac_cv_c_const" >&6
4800 if test $ac_cv_c_const = no; then
4801
4802 cat >>confdefs.h <<\_ACEOF
4803 #define const
4804 _ACEOF
4805
4806 fi
4807
4808 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4809 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4810 if test "${ac_cv_type_uid_t+set}" = set; then
4811   echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813   cat >conftest.$ac_ext <<_ACEOF
4814 #line $LINENO "configure"
4815 #include "confdefs.h"
4816 #include <sys/types.h>
4817
4818 _ACEOF
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820   egrep "uid_t" >/dev/null 2>&1; then
4821   ac_cv_type_uid_t=yes
4822 else
4823   ac_cv_type_uid_t=no
4824 fi
4825 rm -f conftest*
4826
4827 fi
4828 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4829 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4830 if test $ac_cv_type_uid_t = no; then
4831
4832 cat >>confdefs.h <<\_ACEOF
4833 #define uid_t int
4834 _ACEOF
4835
4836
4837 cat >>confdefs.h <<\_ACEOF
4838 #define gid_t int
4839 _ACEOF
4840
4841 fi
4842
4843 echo "$as_me:$LINENO: checking for mode_t" >&5
4844 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4845 if test "${ac_cv_type_mode_t+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848   cat >conftest.$ac_ext <<_ACEOF
4849 #line $LINENO "configure"
4850 #include "confdefs.h"
4851 $ac_includes_default
4852 #ifdef F77_DUMMY_MAIN
4853 #  ifdef __cplusplus
4854      extern "C"
4855 #  endif
4856    int F77_DUMMY_MAIN() { return 1; }
4857 #endif
4858 int
4859 main ()
4860 {
4861 if ((mode_t *) 0)
4862   return 0;
4863 if (sizeof (mode_t))
4864   return 0;
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871   (eval $ac_compile) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -s conftest.$ac_objext'
4876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877   (eval $ac_try) 2>&5
4878   ac_status=$?
4879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880   (exit $ac_status); }; }; then
4881   ac_cv_type_mode_t=yes
4882 else
4883   echo "$as_me: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4885 ac_cv_type_mode_t=no
4886 fi
4887 rm -f conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
4890 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4891 if test $ac_cv_type_mode_t = yes; then
4892   :
4893 else
4894
4895 cat >>confdefs.h <<_ACEOF
4896 #define mode_t int
4897 _ACEOF
4898
4899 fi
4900
4901 echo "$as_me:$LINENO: checking for pid_t" >&5
4902 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4903 if test "${ac_cv_type_pid_t+set}" = set; then
4904   echo $ECHO_N "(cached) $ECHO_C" >&6
4905 else
4906   cat >conftest.$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 $ac_includes_default
4910 #ifdef F77_DUMMY_MAIN
4911 #  ifdef __cplusplus
4912      extern "C"
4913 #  endif
4914    int F77_DUMMY_MAIN() { return 1; }
4915 #endif
4916 int
4917 main ()
4918 {
4919 if ((pid_t *) 0)
4920   return 0;
4921 if (sizeof (pid_t))
4922   return 0;
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 rm -f conftest.$ac_objext
4928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929   (eval $ac_compile) 2>&5
4930   ac_status=$?
4931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932   (exit $ac_status); } &&
4933          { ac_try='test -s conftest.$ac_objext'
4934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935   (eval $ac_try) 2>&5
4936   ac_status=$?
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); }; }; then
4939   ac_cv_type_pid_t=yes
4940 else
4941   echo "$as_me: failed program was:" >&5
4942 cat conftest.$ac_ext >&5
4943 ac_cv_type_pid_t=no
4944 fi
4945 rm -f conftest.$ac_objext conftest.$ac_ext
4946 fi
4947 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4948 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4949 if test $ac_cv_type_pid_t = yes; then
4950   :
4951 else
4952
4953 cat >>confdefs.h <<_ACEOF
4954 #define pid_t int
4955 _ACEOF
4956
4957 fi
4958
4959 echo "$as_me:$LINENO: checking for size_t" >&5
4960 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4961 if test "${ac_cv_type_size_t+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 #include "confdefs.h"
4967 $ac_includes_default
4968 #ifdef F77_DUMMY_MAIN
4969 #  ifdef __cplusplus
4970      extern "C"
4971 #  endif
4972    int F77_DUMMY_MAIN() { return 1; }
4973 #endif
4974 int
4975 main ()
4976 {
4977 if ((size_t *) 0)
4978   return 0;
4979 if (sizeof (size_t))
4980   return 0;
4981   ;
4982   return 0;
4983 }
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987   (eval $ac_compile) 2>&5
4988   ac_status=$?
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -s conftest.$ac_objext'
4992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993   (eval $ac_try) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; }; then
4997   ac_cv_type_size_t=yes
4998 else
4999   echo "$as_me: failed program was:" >&5
5000 cat conftest.$ac_ext >&5
5001 ac_cv_type_size_t=no
5002 fi
5003 rm -f conftest.$ac_objext conftest.$ac_ext
5004 fi
5005 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5006 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5007 if test $ac_cv_type_size_t = yes; then
5008   :
5009 else
5010
5011 cat >>confdefs.h <<_ACEOF
5012 #define size_t unsigned
5013 _ACEOF
5014
5015 fi
5016
5017 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5018 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5019 if test "${ac_cv_type_signal+set}" = set; then
5020   echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022   cat >conftest.$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5026 #include <signal.h>
5027 #ifdef signal
5028 # undef signal
5029 #endif
5030 #ifdef __cplusplus
5031 extern "C" void (*signal (int, void (*)(int)))(int);
5032 #else
5033 void (*signal ()) ();
5034 #endif
5035
5036 #ifdef F77_DUMMY_MAIN
5037 #  ifdef __cplusplus
5038      extern "C"
5039 #  endif
5040    int F77_DUMMY_MAIN() { return 1; }
5041 #endif
5042 int
5043 main ()
5044 {
5045 int i;
5046   ;
5047   return 0;
5048 }
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052   (eval $ac_compile) 2>&5
5053   ac_status=$?
5054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055   (exit $ac_status); } &&
5056          { ac_try='test -s conftest.$ac_objext'
5057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058   (eval $ac_try) 2>&5
5059   ac_status=$?
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); }; }; then
5062   ac_cv_type_signal=void
5063 else
5064   echo "$as_me: failed program was:" >&5
5065 cat conftest.$ac_ext >&5
5066 ac_cv_type_signal=int
5067 fi
5068 rm -f conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5071 echo "${ECHO_T}$ac_cv_type_signal" >&6
5072
5073 cat >>confdefs.h <<_ACEOF
5074 #define RETSIGTYPE $ac_cv_type_signal
5075 _ACEOF
5076
5077
5078
5079 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
5080 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5081 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   cat >conftest.$ac_ext <<_ACEOF
5085 #line $LINENO "configure"
5086 #include "confdefs.h"
5087 $ac_includes_default
5088 #ifdef F77_DUMMY_MAIN
5089 #  ifdef __cplusplus
5090      extern "C"
5091 #  endif
5092    int F77_DUMMY_MAIN() { return 1; }
5093 #endif
5094 int
5095 main ()
5096 {
5097 static struct stat ac_aggr;
5098 if (ac_aggr.st_blksize)
5099 return 0;
5100   ;
5101   return 0;
5102 }
5103 _ACEOF
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106   (eval $ac_compile) 2>&5
5107   ac_status=$?
5108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109   (exit $ac_status); } &&
5110          { ac_try='test -s conftest.$ac_objext'
5111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112   (eval $ac_try) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); }; }; then
5116   ac_cv_member_struct_stat_st_blksize=yes
5117 else
5118   echo "$as_me: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5120 ac_cv_member_struct_stat_st_blksize=no
5121 fi
5122 rm -f conftest.$ac_objext conftest.$ac_ext
5123 fi
5124 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
5125 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5126 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5127
5128 cat >>confdefs.h <<_ACEOF
5129 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5130 _ACEOF
5131
5132
5133 fi
5134
5135 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5136 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
5137 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 #include "confdefs.h"
5143 $ac_includes_default
5144 #ifdef F77_DUMMY_MAIN
5145 #  ifdef __cplusplus
5146      extern "C"
5147 #  endif
5148    int F77_DUMMY_MAIN() { return 1; }
5149 #endif
5150 int
5151 main ()
5152 {
5153 static struct stat ac_aggr;
5154 if (ac_aggr.st_rdev)
5155 return 0;
5156   ;
5157   return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162   (eval $ac_compile) 2>&5
5163   ac_status=$?
5164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165   (exit $ac_status); } &&
5166          { ac_try='test -s conftest.$ac_objext'
5167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168   (eval $ac_try) 2>&5
5169   ac_status=$?
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); }; }; then
5172   ac_cv_member_struct_stat_st_rdev=yes
5173 else
5174   echo "$as_me: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5176 ac_cv_member_struct_stat_st_rdev=no
5177 fi
5178 rm -f conftest.$ac_objext conftest.$ac_ext
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5181 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
5182 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define HAVE_STRUCT_STAT_ST_RDEV 1
5186 _ACEOF
5187
5188
5189 fi
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203 for ac_func in \
5204         dup2 \
5205         ftruncate \
5206         gethostname \
5207         memmove \
5208         mkdir \
5209         rename \
5210         strerror \
5211         strstr \
5212         strtoul\
5213         valloc \
5214         waitpid \
5215
5216 do
5217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5218 echo "$as_me:$LINENO: checking for $ac_func" >&5
5219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5220 if eval "test \"\${$as_ac_var+set}\" = set"; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   cat >conftest.$ac_ext <<_ACEOF
5224 #line $LINENO "configure"
5225 #include "confdefs.h"
5226 /* System header to define __stub macros and hopefully few prototypes,
5227     which can conflict with char $ac_func (); below.  */
5228 #include <assert.h>
5229 /* Override any gcc2 internal prototype to avoid an error.  */
5230 #ifdef __cplusplus
5231 extern "C"
5232 #endif
5233 /* We use char because int might match the return type of a gcc2
5234    builtin and then its argument prototype would still apply.  */
5235 char $ac_func ();
5236 char (*f) ();
5237
5238 #ifdef F77_DUMMY_MAIN
5239 #  ifdef __cplusplus
5240      extern "C"
5241 #  endif
5242    int F77_DUMMY_MAIN() { return 1; }
5243 #endif
5244 int
5245 main ()
5246 {
5247 /* The GNU C library defines this for functions which it implements
5248     to always fail with ENOSYS.  Some functions are actually named
5249     something starting with __ and the normal name is an alias.  */
5250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5251 choke me
5252 #else
5253 f = $ac_func;
5254 #endif
5255
5256   ;
5257   return 0;
5258 }
5259 _ACEOF
5260 rm -f conftest.$ac_objext conftest$ac_exeext
5261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262   (eval $ac_link) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } &&
5266          { ac_try='test -s conftest$ac_exeext'
5267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268   (eval $ac_try) 2>&5
5269   ac_status=$?
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); }; }; then
5272   eval "$as_ac_var=yes"
5273 else
5274   echo "$as_me: failed program was:" >&5
5275 cat conftest.$ac_ext >&5
5276 eval "$as_ac_var=no"
5277 fi
5278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5279 fi
5280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5282 if test `eval echo '${'$as_ac_var'}'` = yes; then
5283   cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5285 _ACEOF
5286
5287 else
5288   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5289 fi
5290 done
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325 for ac_func in \
5326         fchdir \
5327         fchmod \
5328         fsync \
5329         ftime \
5330         geteuid \
5331         getgroups \
5332         getopt \
5333         getpagesize \
5334         getpassphrase \
5335         gettimeofday \
5336         initgroups \
5337         login \
5338         logout \
5339         mknod \
5340         mkstemp \
5341         mktemp \
5342         putenv \
5343         readlink \
5344         regcomp \
5345         regerror \
5346         regexec \
5347         regfree \
5348         sigaction \
5349         sigblock \
5350         sigprocmask \
5351         sigsetmask \
5352         sigvec \
5353         tempnam \
5354         timezone \
5355         tzset \
5356         vprintf \
5357         wait3 \
5358
5359 do
5360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5361 echo "$as_me:$LINENO: checking for $ac_func" >&5
5362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5363 if eval "test \"\${$as_ac_var+set}\" = set"; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 #include "confdefs.h"
5369 /* System header to define __stub macros and hopefully few prototypes,
5370     which can conflict with char $ac_func (); below.  */
5371 #include <assert.h>
5372 /* Override any gcc2 internal prototype to avoid an error.  */
5373 #ifdef __cplusplus
5374 extern "C"
5375 #endif
5376 /* We use char because int might match the return type of a gcc2
5377    builtin and then its argument prototype would still apply.  */
5378 char $ac_func ();
5379 char (*f) ();
5380
5381 #ifdef F77_DUMMY_MAIN
5382 #  ifdef __cplusplus
5383      extern "C"
5384 #  endif
5385    int F77_DUMMY_MAIN() { return 1; }
5386 #endif
5387 int
5388 main ()
5389 {
5390 /* The GNU C library defines this for functions which it implements
5391     to always fail with ENOSYS.  Some functions are actually named
5392     something starting with __ and the normal name is an alias.  */
5393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5394 choke me
5395 #else
5396 f = $ac_func;
5397 #endif
5398
5399   ;
5400   return 0;
5401 }
5402 _ACEOF
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5405   (eval $ac_link) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); } &&
5409          { ac_try='test -s conftest$ac_exeext'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   eval "$as_ac_var=yes"
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 eval "$as_ac_var=no"
5420 fi
5421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5422 fi
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5425 if test `eval echo '${'$as_ac_var'}'` = yes; then
5426   cat >>confdefs.h <<_ACEOF
5427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5428 _ACEOF
5429
5430 fi
5431 done
5432
5433 # we only need one of the following
5434
5435
5436
5437 for ac_func in \
5438         nanosleep \
5439         usleep \
5440         select \
5441
5442 do
5443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5444 echo "$as_me:$LINENO: checking for $ac_func" >&5
5445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_var+set}\" = set"; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 #include "confdefs.h"
5452 /* System header to define __stub macros and hopefully few prototypes,
5453     which can conflict with char $ac_func (); below.  */
5454 #include <assert.h>
5455 /* Override any gcc2 internal prototype to avoid an error.  */
5456 #ifdef __cplusplus
5457 extern "C"
5458 #endif
5459 /* We use char because int might match the return type of a gcc2
5460    builtin and then its argument prototype would still apply.  */
5461 char $ac_func ();
5462 char (*f) ();
5463
5464 #ifdef F77_DUMMY_MAIN
5465 #  ifdef __cplusplus
5466      extern "C"
5467 #  endif
5468    int F77_DUMMY_MAIN() { return 1; }
5469 #endif
5470 int
5471 main ()
5472 {
5473 /* The GNU C library defines this for functions which it implements
5474     to always fail with ENOSYS.  Some functions are actually named
5475     something starting with __ and the normal name is an alias.  */
5476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5477 choke me
5478 #else
5479 f = $ac_func;
5480 #endif
5481
5482   ;
5483   return 0;
5484 }
5485 _ACEOF
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5488   (eval $ac_link) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } &&
5492          { ac_try='test -s conftest$ac_exeext'
5493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494   (eval $ac_try) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); }; }; then
5498   eval "$as_ac_var=yes"
5499 else
5500   echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 eval "$as_ac_var=no"
5503 fi
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 fi
5506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5508 if test `eval echo '${'$as_ac_var'}'` = yes; then
5509   cat >>confdefs.h <<_ACEOF
5510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5511 _ACEOF
5512  break
5513 fi
5514 done
5515
5516
5517
5518 cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_STRCHR 1
5520 _ACEOF
5521
5522
5523 cat >>confdefs.h <<\_ACEOF
5524 #define HAVE_MEMCHR 1
5525 _ACEOF
5526
5527
5528
5529 cat >>confdefs.h <<\_ACEOF
5530 #define REGEX_MALLOC 1
5531 _ACEOF
5532
5533
5534 cat >>confdefs.h <<\_ACEOF
5535 #define _REGEX_RE_COMP 1
5536 _ACEOF
5537
5538
5539
5540 for ac_header in unistd.h vfork.h
5541 do
5542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5544   echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 fi
5549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5551 else
5552   # Is the header compilable?
5553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 #include "confdefs.h"
5558 $ac_includes_default
5559 #include <$ac_header>
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563   (eval $ac_compile) 2>&5
5564   ac_status=$?
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } &&
5567          { ac_try='test -s conftest.$ac_objext'
5568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569   (eval $ac_try) 2>&5
5570   ac_status=$?
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); }; }; then
5573   ac_header_compiler=yes
5574 else
5575   echo "$as_me: failed program was:" >&5
5576 cat conftest.$ac_ext >&5
5577 ac_header_compiler=no
5578 fi
5579 rm -f conftest.$ac_objext conftest.$ac_ext
5580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5581 echo "${ECHO_T}$ac_header_compiler" >&6
5582
5583 # Is the header present?
5584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5586 cat >conftest.$ac_ext <<_ACEOF
5587 #line $LINENO "configure"
5588 #include "confdefs.h"
5589 #include <$ac_header>
5590 _ACEOF
5591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5593   ac_status=$?
5594   egrep -v '^ *\+' conftest.er1 >conftest.err
5595   rm -f conftest.er1
5596   cat conftest.err >&5
5597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598   (exit $ac_status); } >/dev/null; then
5599   if test -s conftest.err; then
5600     ac_cpp_err=$ac_c_preproc_warn_flag
5601   else
5602     ac_cpp_err=
5603   fi
5604 else
5605   ac_cpp_err=yes
5606 fi
5607 if test -z "$ac_cpp_err"; then
5608   ac_header_preproc=yes
5609 else
5610   echo "$as_me: failed program was:" >&5
5611   cat conftest.$ac_ext >&5
5612   ac_header_preproc=no
5613 fi
5614 rm -f conftest.err conftest.$ac_ext
5615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5616 echo "${ECHO_T}$ac_header_preproc" >&6
5617
5618 # So?  What about this header?
5619 case $ac_header_compiler:$ac_header_preproc in
5620   yes:no )
5621     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5625   no:yes )
5626     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5628     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
5632 esac
5633 echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638   eval "$as_ac_Header=$ac_header_preproc"
5639 fi
5640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5642
5643 fi
5644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5645   cat >>confdefs.h <<_ACEOF
5646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5647 _ACEOF
5648
5649 fi
5650
5651 done
5652
5653
5654
5655 for ac_func in fork vfork
5656 do
5657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5658 echo "$as_me:$LINENO: checking for $ac_func" >&5
5659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5660 if eval "test \"\${$as_ac_var+set}\" = set"; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   cat >conftest.$ac_ext <<_ACEOF
5664 #line $LINENO "configure"
5665 #include "confdefs.h"
5666 /* System header to define __stub macros and hopefully few prototypes,
5667     which can conflict with char $ac_func (); below.  */
5668 #include <assert.h>
5669 /* Override any gcc2 internal prototype to avoid an error.  */
5670 #ifdef __cplusplus
5671 extern "C"
5672 #endif
5673 /* We use char because int might match the return type of a gcc2
5674    builtin and then its argument prototype would still apply.  */
5675 char $ac_func ();
5676 char (*f) ();
5677
5678 #ifdef F77_DUMMY_MAIN
5679 #  ifdef __cplusplus
5680      extern "C"
5681 #  endif
5682    int F77_DUMMY_MAIN() { return 1; }
5683 #endif
5684 int
5685 main ()
5686 {
5687 /* The GNU C library defines this for functions which it implements
5688     to always fail with ENOSYS.  Some functions are actually named
5689     something starting with __ and the normal name is an alias.  */
5690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5691 choke me
5692 #else
5693 f = $ac_func;
5694 #endif
5695
5696   ;
5697   return 0;
5698 }
5699 _ACEOF
5700 rm -f conftest.$ac_objext conftest$ac_exeext
5701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5702   (eval $ac_link) 2>&5
5703   ac_status=$?
5704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705   (exit $ac_status); } &&
5706          { ac_try='test -s conftest$ac_exeext'
5707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708   (eval $ac_try) 2>&5
5709   ac_status=$?
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); }; }; then
5712   eval "$as_ac_var=yes"
5713 else
5714   echo "$as_me: failed program was:" >&5
5715 cat conftest.$ac_ext >&5
5716 eval "$as_ac_var=no"
5717 fi
5718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5719 fi
5720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5722 if test `eval echo '${'$as_ac_var'}'` = yes; then
5723   cat >>confdefs.h <<_ACEOF
5724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5725 _ACEOF
5726
5727 fi
5728 done
5729
5730 ac_cv_func_fork_works=$ac_cv_func_fork
5731 if test "x$ac_cv_func_fork" = xyes; then
5732   echo "$as_me:$LINENO: checking for working fork" >&5
5733 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
5734 if test "${ac_cv_func_fork_works+set}" = set; then
5735   echo $ECHO_N "(cached) $ECHO_C" >&6
5736 else
5737   if test "$cross_compiling" = yes; then
5738   ac_cv_func_fork_works=cross
5739 else
5740   cat >conftest.$ac_ext <<_ACEOF
5741 /* By Ruediger Kuhlmann. */
5742       #include <sys/types.h>
5743       #if HAVE_UNISTD_H
5744       # include <unistd.h>
5745       #endif
5746       /* Some systems only have a dummy stub for fork() */
5747       int main ()
5748       {
5749         if (fork() < 0)
5750           exit (1);
5751         exit (0);
5752       }
5753 _ACEOF
5754 rm -f conftest$ac_exeext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5756   (eval $ac_link) 2>&5
5757   ac_status=$?
5758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761   (eval $ac_try) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); }; }; then
5765   ac_cv_func_fork_works=yes
5766 else
5767   echo "$as_me: program exited with status $ac_status" >&5
5768 echo "$as_me: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 ( exit $ac_status )
5771 ac_cv_func_fork_works=no
5772 fi
5773 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5774 fi
5775 fi
5776 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
5777 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
5778
5779 fi
5780 if test "x$ac_cv_func_fork_works" = xcross; then
5781   case $host in
5782     *-*-amigaos* | *-*-msdosdjgpp*)
5783       # Override, as these systems have only a dummy fork() stub
5784       ac_cv_func_fork_works=no
5785       ;;
5786     *)
5787       ac_cv_func_fork_works=yes
5788       ;;
5789   esac
5790   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5791 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5792 fi
5793 ac_cv_func_vfork_works=$ac_cv_func_vfork
5794 if test "x$ac_cv_func_vfork" = xyes; then
5795   echo "$as_me:$LINENO: checking for working vfork" >&5
5796 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
5797 if test "${ac_cv_func_vfork_works+set}" = set; then
5798   echo $ECHO_N "(cached) $ECHO_C" >&6
5799 else
5800   if test "$cross_compiling" = yes; then
5801   ac_cv_func_vfork_works=cross
5802 else
5803   cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 #include "confdefs.h"
5806 /* Thanks to Paul Eggert for this test.  */
5807 #include <stdio.h>
5808 #include <sys/types.h>
5809 #include <sys/stat.h>
5810 #if HAVE_UNISTD_H
5811 # include <unistd.h>
5812 #endif
5813 #if HAVE_VFORK_H
5814 # include <vfork.h>
5815 #endif
5816 /* On some sparc systems, changes by the child to local and incoming
5817    argument registers are propagated back to the parent.  The compiler
5818    is told about this with #include <vfork.h>, but some compilers
5819    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5820    static variable whose address is put into a register that is
5821    clobbered by the vfork.  */
5822 static
5823 #ifdef __cplusplus
5824 sparc_address_test (int arg)
5825 # else
5826 sparc_address_test (arg) int arg;
5827 #endif
5828 {
5829   static pid_t child;
5830   if (!child) {
5831     child = vfork ();
5832     if (child < 0) {
5833       perror ("vfork");
5834       _exit(2);
5835     }
5836     if (!child) {
5837       arg = getpid();
5838       write(-1, "", 0);
5839       _exit (arg);
5840     }
5841   }
5842 }
5843
5844 int
5845 main ()
5846 {
5847   pid_t parent = getpid ();
5848   pid_t child;
5849
5850   sparc_address_test ();
5851
5852   child = vfork ();
5853
5854   if (child == 0) {
5855     /* Here is another test for sparc vfork register problems.  This
5856        test uses lots of local variables, at least as many local
5857        variables as main has allocated so far including compiler
5858        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5859        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5860        reuse the register of parent for one of the local variables,
5861        since it will think that parent can't possibly be used any more
5862        in this routine.  Assigning to the local variable will thus
5863        munge parent in the parent process.  */
5864     pid_t
5865       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5866       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5867     /* Convince the compiler that p..p7 are live; otherwise, it might
5868        use the same hardware register for all 8 local variables.  */
5869     if (p != p1 || p != p2 || p != p3 || p != p4
5870         || p != p5 || p != p6 || p != p7)
5871       _exit(1);
5872
5873     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5874        from child file descriptors.  If the child closes a descriptor
5875        before it execs or exits, this munges the parent's descriptor
5876        as well.  Test for this by closing stdout in the child.  */
5877     _exit(close(fileno(stdout)) != 0);
5878   } else {
5879     int status;
5880     struct stat st;
5881
5882     while (wait(&status) != child)
5883       ;
5884     exit(
5885          /* Was there some problem with vforking?  */
5886          child < 0
5887
5888          /* Did the child fail?  (This shouldn't happen.)  */
5889          || status
5890
5891          /* Did the vfork/compiler bug occur?  */
5892          || parent != getpid()
5893
5894          /* Did the file descriptor bug occur?  */
5895          || fstat(fileno(stdout), &st) != 0
5896          );
5897   }
5898 }
5899 _ACEOF
5900 rm -f conftest$ac_exeext
5901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5902   (eval $ac_link) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907   (eval $ac_try) 2>&5
5908   ac_status=$?
5909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910   (exit $ac_status); }; }; then
5911   ac_cv_func_vfork_works=yes
5912 else
5913   echo "$as_me: program exited with status $ac_status" >&5
5914 echo "$as_me: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5916 ( exit $ac_status )
5917 ac_cv_func_vfork_works=no
5918 fi
5919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5920 fi
5921 fi
5922 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
5923 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
5924
5925 fi;
5926 if test "x$ac_cv_func_fork_works" = xcross; then
5927   ac_cv_func_vfork_works=ac_cv_func_vfork
5928   { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5929 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5930 fi
5931
5932 if test "x$ac_cv_func_vfork_works" = xyes; then
5933
5934 cat >>confdefs.h <<\_ACEOF
5935 #define HAVE_WORKING_VFORK 1
5936 _ACEOF
5937
5938 else
5939
5940 cat >>confdefs.h <<\_ACEOF
5941 #define vfork fork
5942 _ACEOF
5943
5944 fi
5945 if test "x$ac_cv_func_fork_works" = xyes; then
5946
5947 cat >>confdefs.h <<\_ACEOF
5948 #define HAVE_WORKING_FORK 1
5949 _ACEOF
5950
5951 fi
5952
5953 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5954 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
5955 if test "${ac_cv_func_closedir_void+set}" = set; then
5956   echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958   if test "$cross_compiling" = yes; then
5959   ac_cv_func_closedir_void=yes
5960 else
5961   cat >conftest.$ac_ext <<_ACEOF
5962 #line $LINENO "configure"
5963 #include "confdefs.h"
5964 $ac_includes_default
5965 #include <$ac_header_dirent>
5966 #ifndef __cplusplus
5967 int closedir ();
5968 #endif
5969
5970 #ifdef F77_DUMMY_MAIN
5971 #  ifdef __cplusplus
5972      extern "C"
5973 #  endif
5974    int F77_DUMMY_MAIN() { return 1; }
5975 #endif
5976 int
5977 main ()
5978 {
5979 exit (closedir (opendir (".")) != 0);
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest$ac_exeext
5985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5986   (eval $ac_link) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991   (eval $ac_try) 2>&5
5992   ac_status=$?
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); }; }; then
5995   ac_cv_func_closedir_void=no
5996 else
5997   echo "$as_me: program exited with status $ac_status" >&5
5998 echo "$as_me: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 ( exit $ac_status )
6001 ac_cv_func_closedir_void=yes
6002 fi
6003 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6004 fi
6005 fi
6006 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6007 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
6008 if test $ac_cv_func_closedir_void = yes; then
6009
6010 cat >>confdefs.h <<\_ACEOF
6011 #define CLOSEDIR_VOID 1
6012 _ACEOF
6013
6014 fi
6015
6016
6017 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
6018 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
6019 if test "${ac_cv_search_getspnam+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   ac_func_search_save_LIBS=$LIBS
6023 ac_cv_search_getspnam=no
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6026 #include "confdefs.h"
6027
6028 /* Override any gcc2 internal prototype to avoid an error.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 /* We use char because int might match the return type of a gcc2
6033    builtin and then its argument prototype would still apply.  */
6034 char getspnam ();
6035 #ifdef F77_DUMMY_MAIN
6036 #  ifdef __cplusplus
6037      extern "C"
6038 #  endif
6039    int F77_DUMMY_MAIN() { return 1; }
6040 #endif
6041 int
6042 main ()
6043 {
6044 getspnam ();
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext conftest$ac_exeext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6051   (eval $ac_link) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } &&
6055          { ac_try='test -s conftest$ac_exeext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   ac_cv_search_getspnam="none required"
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 cat conftest.$ac_ext >&5
6065 fi
6066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6067 if test "$ac_cv_search_getspnam" = no; then
6068   for ac_lib in sec gen; do
6069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6070     cat >conftest.$ac_ext <<_ACEOF
6071 #line $LINENO "configure"
6072 #include "confdefs.h"
6073
6074 /* Override any gcc2 internal prototype to avoid an error.  */
6075 #ifdef __cplusplus
6076 extern "C"
6077 #endif
6078 /* We use char because int might match the return type of a gcc2
6079    builtin and then its argument prototype would still apply.  */
6080 char getspnam ();
6081 #ifdef F77_DUMMY_MAIN
6082 #  ifdef __cplusplus
6083      extern "C"
6084 #  endif
6085    int F77_DUMMY_MAIN() { return 1; }
6086 #endif
6087 int
6088 main ()
6089 {
6090 getspnam ();
6091   ;
6092   return 0;
6093 }
6094 _ACEOF
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6097   (eval $ac_link) 2>&5
6098   ac_status=$?
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -s conftest$ac_exeext'
6102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103   (eval $ac_try) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; }; then
6107   ac_cv_search_getspnam="-l$ac_lib"
6108 break
6109 else
6110   echo "$as_me: failed program was:" >&5
6111 cat conftest.$ac_ext >&5
6112 fi
6113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6114   done
6115 fi
6116 LIBS=$ac_func_search_save_LIBS
6117 fi
6118 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
6119 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
6120 if test "$ac_cv_search_getspnam" != no; then
6121   test "$ac_cv_search_getspnam" = "none required" || LIBS="$ac_cv_search_getspnam $LIBS"
6122
6123 cat >>confdefs.h <<\_ACEOF
6124 #define HAVE_GETSPNAM 1
6125 _ACEOF
6126
6127 fi
6128
6129
6130 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
6131 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
6132 if test "${ac_cv_func_utime_null+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   rm -f conftest.data; >conftest.data
6136 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
6137 if test "$cross_compiling" = yes; then
6138   ac_cv_func_utime_null=no
6139 else
6140   cat >conftest.$ac_ext <<_ACEOF
6141 #line $LINENO "configure"
6142 #include "confdefs.h"
6143 $ac_includes_default
6144 #ifdef F77_DUMMY_MAIN
6145 #  ifdef __cplusplus
6146      extern "C"
6147 #  endif
6148    int F77_DUMMY_MAIN() { return 1; }
6149 #endif
6150 int
6151 main ()
6152 {
6153 struct stat s, t;
6154   exit (!(stat ("conftest.data", &s) == 0
6155           && utime ("conftest.data", (long *)0) == 0
6156           && stat ("conftest.data", &t) == 0
6157           && t.st_mtime >= s.st_mtime
6158           && t.st_mtime - s.st_mtime < 120));
6159   ;
6160   return 0;
6161 }
6162 _ACEOF
6163 rm -f conftest$ac_exeext
6164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6165   (eval $ac_link) 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170   (eval $ac_try) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); }; }; then
6174   ac_cv_func_utime_null=yes
6175 else
6176   echo "$as_me: program exited with status $ac_status" >&5
6177 echo "$as_me: failed program was:" >&5
6178 cat conftest.$ac_ext >&5
6179 ( exit $ac_status )
6180 ac_cv_func_utime_null=no
6181 fi
6182 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 rm -f core core.* *.core
6185 fi
6186 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
6187 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
6188 if test $ac_cv_func_utime_null = yes; then
6189
6190 cat >>confdefs.h <<\_ACEOF
6191 #define HAVE_UTIME_NULL 1
6192 _ACEOF
6193
6194 fi
6195 rm -f conftest.data
6196
6197 echo "$as_me:$LINENO: checking for long file names" >&5
6198 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
6199 if test "${ac_cv_sys_long_file_names+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   ac_cv_sys_long_file_names=yes
6203 # Test for long file names in all the places we know might matter:
6204 #      .                the current directory, where building will happen
6205 #      $prefix/lib      where we will be installing things
6206 #      $exec_prefix/lib likewise
6207 # eval it to expand exec_prefix.
6208 #      $TMPDIR          if set, where it might want to write temporary files
6209 # if $TMPDIR is not set:
6210 #      /tmp             where it might want to write temporary files
6211 #      /var/tmp         likewise
6212 #      /usr/tmp         likewise
6213 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6214   ac_tmpdirs=$TMPDIR
6215 else
6216   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
6217 fi
6218 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6219   test -d $ac_dir || continue
6220   test -w $ac_dir || continue # It is less confusing to not echo anything here.
6221   ac_xdir=$ac_dir/cf$$
6222   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
6223   ac_tf1=$ac_xdir/conftest9012345
6224   ac_tf2=$ac_xdir/conftest9012346
6225   (echo 1 >$ac_tf1) 2>/dev/null
6226   (echo 2 >$ac_tf2) 2>/dev/null
6227   ac_val=`cat $ac_tf1 2>/dev/null`
6228   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
6229     ac_cv_sys_long_file_names=no
6230     rm -rf $ac_xdir 2>/dev/null
6231     break
6232   fi
6233   rm -rf $ac_xdir 2>/dev/null
6234 done
6235 fi
6236 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6237 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6238 if test $ac_cv_sys_long_file_names = yes; then
6239
6240 cat >>confdefs.h <<\_ACEOF
6241 #define HAVE_LONG_FILE_NAMES 1
6242 _ACEOF
6243
6244 fi
6245
6246
6247 echo "$as_me:$LINENO: checking for working GNU-style fnmatch" >&5
6248 echo $ECHO_N "checking for working GNU-style fnmatch... $ECHO_C" >&6
6249 if test "${ac_cv_func_fnmatch_works+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   # Some versions of Solaris, SCO, and the GNU C Library
6253 # have a broken or incompatible fnmatch.
6254 # So we run a test program.  If we are cross-compiling, take no chance.
6255 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
6256 if test "$cross_compiling" = yes; then
6257   ac_cv_func_fnmatch_works=no
6258 else
6259   cat >conftest.$ac_ext <<_ACEOF
6260 #line $LINENO "configure"
6261 #include "confdefs.h"
6262 #include <fnmatch.h>
6263 #ifdef F77_DUMMY_MAIN
6264 #  ifdef __cplusplus
6265      extern "C"
6266 #  endif
6267    int F77_DUMMY_MAIN() { return 1; }
6268 #endif
6269 int
6270 main ()
6271 {
6272 exit (fnmatch ("a*", "abc", 0) != 0
6273         || fnmatch ("d*/*1", "d/s/1", FNM_FILE_NAME) != FNM_NOMATCH
6274         || fnmatch ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
6275         || fnmatch ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR) != 0
6276         || fnmatch ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR) != 0);
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest$ac_exeext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6283   (eval $ac_link) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288   (eval $ac_try) 2>&5
6289   ac_status=$?
6290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291   (exit $ac_status); }; }; then
6292   ac_cv_func_fnmatch_works=yes
6293 else
6294   echo "$as_me: program exited with status $ac_status" >&5
6295 echo "$as_me: failed program was:" >&5
6296 cat conftest.$ac_ext >&5
6297 ( exit $ac_status )
6298 ac_cv_func_fnmatch_works=no
6299 fi
6300 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 fi
6303 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
6304 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
6305 if test $ac_cv_func_fnmatch_works = yes; then
6306
6307 cat >>confdefs.h <<\_ACEOF
6308 #define HAVE_FNMATCH 1
6309 _ACEOF
6310
6311 fi
6312
6313 if test "$ac_cv_func_fnmatch_works" = no; then
6314   LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
6315   ac_config_links="$ac_config_links lib/fnmatch.h:lib/fnmatch.h.in"
6316
6317
6318 fi
6319
6320
6321
6322 for ac_header in stdlib.h unistd.h
6323 do
6324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6326   echo "$as_me:$LINENO: checking for $ac_header" >&5
6327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329   echo $ECHO_N "(cached) $ECHO_C" >&6
6330 fi
6331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6333 else
6334   # Is the header compilable?
6335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6337 cat >conftest.$ac_ext <<_ACEOF
6338 #line $LINENO "configure"
6339 #include "confdefs.h"
6340 $ac_includes_default
6341 #include <$ac_header>
6342 _ACEOF
6343 rm -f conftest.$ac_objext
6344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6345   (eval $ac_compile) 2>&5
6346   ac_status=$?
6347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348   (exit $ac_status); } &&
6349          { ac_try='test -s conftest.$ac_objext'
6350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351   (eval $ac_try) 2>&5
6352   ac_status=$?
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); }; }; then
6355   ac_header_compiler=yes
6356 else
6357   echo "$as_me: failed program was:" >&5
6358 cat conftest.$ac_ext >&5
6359 ac_header_compiler=no
6360 fi
6361 rm -f conftest.$ac_objext conftest.$ac_ext
6362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6363 echo "${ECHO_T}$ac_header_compiler" >&6
6364
6365 # Is the header present?
6366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 #include "confdefs.h"
6371 #include <$ac_header>
6372 _ACEOF
6373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6374   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6375   ac_status=$?
6376   egrep -v '^ *\+' conftest.er1 >conftest.err
6377   rm -f conftest.er1
6378   cat conftest.err >&5
6379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6380   (exit $ac_status); } >/dev/null; then
6381   if test -s conftest.err; then
6382     ac_cpp_err=$ac_c_preproc_warn_flag
6383   else
6384     ac_cpp_err=
6385   fi
6386 else
6387   ac_cpp_err=yes
6388 fi
6389 if test -z "$ac_cpp_err"; then
6390   ac_header_preproc=yes
6391 else
6392   echo "$as_me: failed program was:" >&5
6393   cat conftest.$ac_ext >&5
6394   ac_header_preproc=no
6395 fi
6396 rm -f conftest.err conftest.$ac_ext
6397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6398 echo "${ECHO_T}$ac_header_preproc" >&6
6399
6400 # So?  What about this header?
6401 case $ac_header_compiler:$ac_header_preproc in
6402   yes:no )
6403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6407   no:yes )
6408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6414 esac
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   eval "$as_ac_Header=$ac_header_preproc"
6421 fi
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424
6425 fi
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427   cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 _ACEOF
6430
6431 fi
6432
6433 done
6434
6435
6436 for ac_func in getpagesize
6437 do
6438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6439 echo "$as_me:$LINENO: checking for $ac_func" >&5
6440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6441 if eval "test \"\${$as_ac_var+set}\" = set"; then
6442   echo $ECHO_N "(cached) $ECHO_C" >&6
6443 else
6444   cat >conftest.$ac_ext <<_ACEOF
6445 #line $LINENO "configure"
6446 #include "confdefs.h"
6447 /* System header to define __stub macros and hopefully few prototypes,
6448     which can conflict with char $ac_func (); below.  */
6449 #include <assert.h>
6450 /* Override any gcc2 internal prototype to avoid an error.  */
6451 #ifdef __cplusplus
6452 extern "C"
6453 #endif
6454 /* We use char because int might match the return type of a gcc2
6455    builtin and then its argument prototype would still apply.  */
6456 char $ac_func ();
6457 char (*f) ();
6458
6459 #ifdef F77_DUMMY_MAIN
6460 #  ifdef __cplusplus
6461      extern "C"
6462 #  endif
6463    int F77_DUMMY_MAIN() { return 1; }
6464 #endif
6465 int
6466 main ()
6467 {
6468 /* The GNU C library defines this for functions which it implements
6469     to always fail with ENOSYS.  Some functions are actually named
6470     something starting with __ and the normal name is an alias.  */
6471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6472 choke me
6473 #else
6474 f = $ac_func;
6475 #endif
6476
6477   ;
6478   return 0;
6479 }
6480 _ACEOF
6481 rm -f conftest.$ac_objext conftest$ac_exeext
6482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6483   (eval $ac_link) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); } &&
6487          { ac_try='test -s conftest$ac_exeext'
6488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489   (eval $ac_try) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; }; then
6493   eval "$as_ac_var=yes"
6494 else
6495   echo "$as_me: failed program was:" >&5
6496 cat conftest.$ac_ext >&5
6497 eval "$as_ac_var=no"
6498 fi
6499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6500 fi
6501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6502 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6503 if test `eval echo '${'$as_ac_var'}'` = yes; then
6504   cat >>confdefs.h <<_ACEOF
6505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6506 _ACEOF
6507
6508 fi
6509 done
6510
6511 echo "$as_me:$LINENO: checking for working mmap" >&5
6512 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6513 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6514   echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516   if test "$cross_compiling" = yes; then
6517   ac_cv_func_mmap_fixed_mapped=no
6518 else
6519   cat >conftest.$ac_ext <<_ACEOF
6520 #line $LINENO "configure"
6521 #include "confdefs.h"
6522 $ac_includes_default
6523 /* malloc might have been renamed as rpl_malloc. */
6524 #undef malloc
6525
6526 /* Thanks to Mike Haertel and Jim Avera for this test.
6527    Here is a matrix of mmap possibilities:
6528         mmap private not fixed
6529         mmap private fixed at somewhere currently unmapped
6530         mmap private fixed at somewhere already mapped
6531         mmap shared not fixed
6532         mmap shared fixed at somewhere currently unmapped
6533         mmap shared fixed at somewhere already mapped
6534    For private mappings, we should verify that changes cannot be read()
6535    back from the file, nor mmap's back from the file at a different
6536    address.  (There have been systems where private was not correctly
6537    implemented like the infamous i386 svr4.0, and systems where the
6538    VM page cache was not coherent with the file system buffer cache
6539    like early versions of FreeBSD and possibly contemporary NetBSD.)
6540    For shared mappings, we should conversely verify that changes get
6541    propagated back to all the places they're supposed to be.
6542
6543    Grep wants private fixed already mapped.
6544    The main things grep needs to know about mmap are:
6545    * does it exist and is it safe to write into the mmap'd area
6546    * how to use it (BSD variants)  */
6547
6548 #include <fcntl.h>
6549 #include <sys/mman.h>
6550
6551 #if !STDC_HEADERS && !HAVE_STDLIB_H
6552 char *malloc ();
6553 #endif
6554
6555 /* This mess was copied from the GNU getpagesize.h.  */
6556 #if !HAVE_GETPAGESIZE
6557 /* Assume that all systems that can run configure have sys/param.h.  */
6558 # if !HAVE_SYS_PARAM_H
6559 #  define HAVE_SYS_PARAM_H 1
6560 # endif
6561
6562 # ifdef _SC_PAGESIZE
6563 #  define getpagesize() sysconf(_SC_PAGESIZE)
6564 # else /* no _SC_PAGESIZE */
6565 #  if HAVE_SYS_PARAM_H
6566 #   include <sys/param.h>
6567 #   ifdef EXEC_PAGESIZE
6568 #    define getpagesize() EXEC_PAGESIZE
6569 #   else /* no EXEC_PAGESIZE */
6570 #    ifdef NBPG
6571 #     define getpagesize() NBPG * CLSIZE
6572 #     ifndef CLSIZE
6573 #      define CLSIZE 1
6574 #     endif /* no CLSIZE */
6575 #    else /* no NBPG */
6576 #     ifdef NBPC
6577 #      define getpagesize() NBPC
6578 #     else /* no NBPC */
6579 #      ifdef PAGESIZE
6580 #       define getpagesize() PAGESIZE
6581 #      endif /* PAGESIZE */
6582 #     endif /* no NBPC */
6583 #    endif /* no NBPG */
6584 #   endif /* no EXEC_PAGESIZE */
6585 #  else /* no HAVE_SYS_PARAM_H */
6586 #   define getpagesize() 8192   /* punt totally */
6587 #  endif /* no HAVE_SYS_PARAM_H */
6588 # endif /* no _SC_PAGESIZE */
6589
6590 #endif /* no HAVE_GETPAGESIZE */
6591
6592 int
6593 main ()
6594 {
6595   char *data, *data2, *data3;
6596   int i, pagesize;
6597   int fd;
6598
6599   pagesize = getpagesize ();
6600
6601   /* First, make a file with some known garbage in it. */
6602   data = (char *) malloc (pagesize);
6603   if (!data)
6604     exit (1);
6605   for (i = 0; i < pagesize; ++i)
6606     *(data + i) = rand ();
6607   umask (0);
6608   fd = creat ("conftest.mmap", 0600);
6609   if (fd < 0)
6610     exit (1);
6611   if (write (fd, data, pagesize) != pagesize)
6612     exit (1);
6613   close (fd);
6614
6615   /* Next, try to mmap the file at a fixed address which already has
6616      something else allocated at it.  If we can, also make sure that
6617      we see the same garbage.  */
6618   fd = open ("conftest.mmap", O_RDWR);
6619   if (fd < 0)
6620     exit (1);
6621   data2 = (char *) malloc (2 * pagesize);
6622   if (!data2)
6623     exit (1);
6624   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6625   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6626                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6627     exit (1);
6628   for (i = 0; i < pagesize; ++i)
6629     if (*(data + i) != *(data2 + i))
6630       exit (1);
6631
6632   /* Finally, make sure that changes to the mapped area do not
6633      percolate back to the file as seen by read().  (This is a bug on
6634      some variants of i386 svr4.0.)  */
6635   for (i = 0; i < pagesize; ++i)
6636     *(data2 + i) = *(data2 + i) + 1;
6637   data3 = (char *) malloc (pagesize);
6638   if (!data3)
6639     exit (1);
6640   if (read (fd, data3, pagesize) != pagesize)
6641     exit (1);
6642   for (i = 0; i < pagesize; ++i)
6643     if (*(data + i) != *(data3 + i))
6644       exit (1);
6645   close (fd);
6646   exit (0);
6647 }
6648 _ACEOF
6649 rm -f conftest$ac_exeext
6650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6651   (eval $ac_link) 2>&5
6652   ac_status=$?
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; }; then
6660   ac_cv_func_mmap_fixed_mapped=yes
6661 else
6662   echo "$as_me: program exited with status $ac_status" >&5
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6665 ( exit $ac_status )
6666 ac_cv_func_mmap_fixed_mapped=no
6667 fi
6668 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6669 fi
6670 fi
6671 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6672 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6673 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6674
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_MMAP 1
6677 _ACEOF
6678
6679 fi
6680 rm -f conftest.mmap
6681
6682
6683 # Try to find connect and gethostbyname.
6684
6685 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
6686 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
6687 if test "${ac_cv_lib_nsl_main+set}" = set; then
6688   echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690   ac_check_lib_save_LIBS=$LIBS
6691 LIBS="-lnsl  $LIBS"
6692 cat >conftest.$ac_ext <<_ACEOF
6693 #line $LINENO "configure"
6694 #include "confdefs.h"
6695
6696
6697 #ifdef F77_DUMMY_MAIN
6698 #  ifdef __cplusplus
6699      extern "C"
6700 #  endif
6701    int F77_DUMMY_MAIN() { return 1; }
6702 #endif
6703 int
6704 main ()
6705 {
6706 main ();
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713   (eval $ac_link) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -s conftest$ac_exeext'
6718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719   (eval $ac_try) 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; }; then
6723   ac_cv_lib_nsl_main=yes
6724 else
6725   echo "$as_me: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6727 ac_cv_lib_nsl_main=no
6728 fi
6729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6730 LIBS=$ac_check_lib_save_LIBS
6731 fi
6732 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
6733 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
6734 if test $ac_cv_lib_nsl_main = yes; then
6735   cat >>confdefs.h <<_ACEOF
6736 #define HAVE_LIBNSL 1
6737 _ACEOF
6738
6739   LIBS="-lnsl $LIBS"
6740
6741 fi
6742
6743 echo "$as_me:$LINENO: checking for library containing connect" >&5
6744 echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6
6745 if test "${ac_cv_search_connect+set}" = set; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748   ac_func_search_save_LIBS=$LIBS
6749 ac_cv_search_connect=no
6750 cat >conftest.$ac_ext <<_ACEOF
6751 #line $LINENO "configure"
6752 #include "confdefs.h"
6753
6754 /* Override any gcc2 internal prototype to avoid an error.  */
6755 #ifdef __cplusplus
6756 extern "C"
6757 #endif
6758 /* We use char because int might match the return type of a gcc2
6759    builtin and then its argument prototype would still apply.  */
6760 char connect ();
6761 #ifdef F77_DUMMY_MAIN
6762 #  ifdef __cplusplus
6763      extern "C"
6764 #  endif
6765    int F77_DUMMY_MAIN() { return 1; }
6766 #endif
6767 int
6768 main ()
6769 {
6770 connect ();
6771   ;
6772   return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest.$ac_objext conftest$ac_exeext
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777   (eval $ac_link) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); } &&
6781          { ac_try='test -s conftest$ac_exeext'
6782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783   (eval $ac_try) 2>&5
6784   ac_status=$?
6785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786   (exit $ac_status); }; }; then
6787   ac_cv_search_connect="none required"
6788 else
6789   echo "$as_me: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 fi
6792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6793 if test "$ac_cv_search_connect" = no; then
6794   for ac_lib in xnet socket inet; do
6795     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6796     cat >conftest.$ac_ext <<_ACEOF
6797 #line $LINENO "configure"
6798 #include "confdefs.h"
6799
6800 /* Override any gcc2 internal prototype to avoid an error.  */
6801 #ifdef __cplusplus
6802 extern "C"
6803 #endif
6804 /* We use char because int might match the return type of a gcc2
6805    builtin and then its argument prototype would still apply.  */
6806 char connect ();
6807 #ifdef F77_DUMMY_MAIN
6808 #  ifdef __cplusplus
6809      extern "C"
6810 #  endif
6811    int F77_DUMMY_MAIN() { return 1; }
6812 #endif
6813 int
6814 main ()
6815 {
6816 connect ();
6817   ;
6818   return 0;
6819 }
6820 _ACEOF
6821 rm -f conftest.$ac_objext conftest$ac_exeext
6822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6823   (eval $ac_link) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } &&
6827          { ac_try='test -s conftest$ac_exeext'
6828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829   (eval $ac_try) 2>&5
6830   ac_status=$?
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); }; }; then
6833   ac_cv_search_connect="-l$ac_lib"
6834 break
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6838 fi
6839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6840   done
6841 fi
6842 LIBS=$ac_func_search_save_LIBS
6843 fi
6844 echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
6845 echo "${ECHO_T}$ac_cv_search_connect" >&6
6846 if test "$ac_cv_search_connect" != no; then
6847   test "$ac_cv_search_connect" = "none required" || LIBS="$ac_cv_search_connect $LIBS"
6848
6849 cat >>confdefs.h <<\_ACEOF
6850 #define HAVE_CONNECT 1
6851 _ACEOF
6852
6853 fi
6854
6855 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
6856 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
6857 if test "${ac_cv_search_gethostbyname+set}" = set; then
6858   echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860   ac_func_search_save_LIBS=$LIBS
6861 ac_cv_search_gethostbyname=no
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line $LINENO "configure"
6864 #include "confdefs.h"
6865
6866 /* Override any gcc2 internal prototype to avoid an error.  */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871    builtin and then its argument prototype would still apply.  */
6872 char gethostbyname ();
6873 #ifdef F77_DUMMY_MAIN
6874 #  ifdef __cplusplus
6875      extern "C"
6876 #  endif
6877    int F77_DUMMY_MAIN() { return 1; }
6878 #endif
6879 int
6880 main ()
6881 {
6882 gethostbyname ();
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext conftest$ac_exeext
6888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889   (eval $ac_link) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); } &&
6893          { ac_try='test -s conftest$ac_exeext'
6894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895   (eval $ac_try) 2>&5
6896   ac_status=$?
6897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898   (exit $ac_status); }; }; then
6899   ac_cv_search_gethostbyname="none required"
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 cat conftest.$ac_ext >&5
6903 fi
6904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_gethostbyname" = no; then
6906   for ac_lib in netinet; do
6907     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6908     cat >conftest.$ac_ext <<_ACEOF
6909 #line $LINENO "configure"
6910 #include "confdefs.h"
6911
6912 /* Override any gcc2 internal prototype to avoid an error.  */
6913 #ifdef __cplusplus
6914 extern "C"
6915 #endif
6916 /* We use char because int might match the return type of a gcc2
6917    builtin and then its argument prototype would still apply.  */
6918 char gethostbyname ();
6919 #ifdef F77_DUMMY_MAIN
6920 #  ifdef __cplusplus
6921      extern "C"
6922 #  endif
6923    int F77_DUMMY_MAIN() { return 1; }
6924 #endif
6925 int
6926 main ()
6927 {
6928 gethostbyname ();
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935   (eval $ac_link) 2>&5
6936   ac_status=$?
6937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938   (exit $ac_status); } &&
6939          { ac_try='test -s conftest$ac_exeext'
6940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6941   (eval $ac_try) 2>&5
6942   ac_status=$?
6943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944   (exit $ac_status); }; }; then
6945   ac_cv_search_gethostbyname="-l$ac_lib"
6946 break
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 cat conftest.$ac_ext >&5
6950 fi
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6952   done
6953 fi
6954 LIBS=$ac_func_search_save_LIBS
6955 fi
6956 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
6957 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
6958 if test "$ac_cv_search_gethostbyname" != no; then
6959   test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
6960
6961 fi
6962
6963
6964
6965
6966 KRB4=/usr/kerberos
6967
6968
6969 # Check whether --with-krb4 or --without-krb4 was given.
6970 if test "${with_krb4+set}" = set; then
6971   withval="$with_krb4"
6972   KRB4=$with_krb4
6973 fi; echo "$as_me:$LINENO: checking for KRB4 in $KRB4" >&5
6974 echo $ECHO_N "checking for KRB4 in $KRB4... $ECHO_C" >&6
6975 echo "$as_me:$LINENO: result: " >&5
6976 echo "${ECHO_T}" >&6
6977
6978
6979 krb_h=
6980 echo "$as_me:$LINENO: checking for krb.h" >&5
6981 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6
6982 if test "$cross_compiling" != yes && test -r $KRB4/include/krb.h; then
6983    hold_cflags=$CFLAGS
6984    CFLAGS="$CFLAGS -I$KRB4/include"
6985    cat >conftest.$ac_ext <<_ACEOF
6986 #line $LINENO "configure"
6987 #include "confdefs.h"
6988 #include <krb.h>
6989 #ifdef F77_DUMMY_MAIN
6990 #  ifdef __cplusplus
6991      extern "C"
6992 #  endif
6993    int F77_DUMMY_MAIN() { return 1; }
6994 #endif
6995 int
6996 main ()
6997 {
6998 int i;
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7005   (eval $ac_link) 2>&5
7006   ac_status=$?
7007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } &&
7009          { ac_try='test -s conftest$ac_exeext'
7010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7011   (eval $ac_try) 2>&5
7012   ac_status=$?
7013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014   (exit $ac_status); }; }; then
7015   krb_h=yes krb_incdir=$KRB4/include
7016 else
7017   echo "$as_me: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7019 CFLAGS=$hold_cflags
7020            cat >conftest.$ac_ext <<_ACEOF
7021 #line $LINENO "configure"
7022 #include "confdefs.h"
7023 #include <krb.h>
7024 #ifdef F77_DUMMY_MAIN
7025 #  ifdef __cplusplus
7026      extern "C"
7027 #  endif
7028    int F77_DUMMY_MAIN() { return 1; }
7029 #endif
7030 int
7031 main ()
7032 {
7033 int i;
7034   ;
7035   return 0;
7036 }
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040   (eval $ac_link) 2>&5
7041   ac_status=$?
7042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043   (exit $ac_status); } &&
7044          { ac_try='test -s conftest$ac_exeext'
7045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046   (eval $ac_try) 2>&5
7047   ac_status=$?
7048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049   (exit $ac_status); }; }; then
7050   krb_h=yes krb_incdir=
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7054 fi
7055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7056 fi
7057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7058    CFLAGS=$hold_cflags
7059 else
7060    cat >conftest.$ac_ext <<_ACEOF
7061 #line $LINENO "configure"
7062 #include "confdefs.h"
7063 #include <krb.h>
7064 #ifdef F77_DUMMY_MAIN
7065 #  ifdef __cplusplus
7066      extern "C"
7067 #  endif
7068    int F77_DUMMY_MAIN() { return 1; }
7069 #endif
7070 int
7071 main ()
7072 {
7073 int i;
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080   (eval $ac_link) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } &&
7084          { ac_try='test -s conftest$ac_exeext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   krb_h=yes krb_incdir=
7091 else
7092   echo "$as_me: failed program was:" >&5
7093 cat conftest.$ac_ext >&5
7094 fi
7095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7096 fi
7097 if test -z "$krb_h"; then
7098   cat >conftest.$ac_ext <<_ACEOF
7099 #line $LINENO "configure"
7100 #include "confdefs.h"
7101 #include <krb.h>
7102 #ifdef F77_DUMMY_MAIN
7103 #  ifdef __cplusplus
7104      extern "C"
7105 #  endif
7106    int F77_DUMMY_MAIN() { return 1; }
7107 #endif
7108 int
7109 main ()
7110 {
7111 int i;
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118   (eval $ac_link) 2>&5
7119   ac_status=$?
7120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121   (exit $ac_status); } &&
7122          { ac_try='test -s conftest$ac_exeext'
7123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124   (eval $ac_try) 2>&5
7125   ac_status=$?
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); }; }; then
7128   krb_h=yes krb_incdir=
7129 else
7130   echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 if test "$cross_compiling" != yes && test -r $KRB4/include/kerberosIV/krb.h; then
7133        hold_cflags=$CFLAGS
7134        CFLAGS="$CFLAGS -I$KRB4/include/kerberosIV"
7135        cat >conftest.$ac_ext <<_ACEOF
7136 #line $LINENO "configure"
7137 #include "confdefs.h"
7138 #include <krb.h>
7139 #ifdef F77_DUMMY_MAIN
7140 #  ifdef __cplusplus
7141      extern "C"
7142 #  endif
7143    int F77_DUMMY_MAIN() { return 1; }
7144 #endif
7145 int
7146 main ()
7147 {
7148 int i;
7149   ;
7150   return 0;
7151 }
7152 _ACEOF
7153 rm -f conftest.$ac_objext conftest$ac_exeext
7154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7155   (eval $ac_link) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); } &&
7159          { ac_try='test -s conftest$ac_exeext'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   krb_h=yes krb_incdir=$KRB4/include/kerberosIV
7166 else
7167   echo "$as_me: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 fi
7170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7171        CFLAGS=$hold_cflags
7172      fi
7173 fi
7174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7175 fi
7176 echo "$as_me:$LINENO: result: $krb_h" >&5
7177 echo "${ECHO_T}$krb_h" >&6
7178
7179 includeopt=
7180
7181 if test -n "$krb_h"; then
7182   krb_lib=
7183   if test "$cross_compiling" != yes && test -r $KRB4/lib/libkrb.a; then
7184        hold_ldflags=$LDFLAGS
7185        LDFLAGS="-L${KRB4}/lib $LDFLAGS"
7186        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
7187 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
7188 if test "${ac_cv_lib_krb_printf+set}" = set; then
7189   echo $ECHO_N "(cached) $ECHO_C" >&6
7190 else
7191   ac_check_lib_save_LIBS=$LIBS
7192 LIBS="-lkrb  $LIBS"
7193 cat >conftest.$ac_ext <<_ACEOF
7194 #line $LINENO "configure"
7195 #include "confdefs.h"
7196
7197 /* Override any gcc2 internal prototype to avoid an error.  */
7198 #ifdef __cplusplus
7199 extern "C"
7200 #endif
7201 /* We use char because int might match the return type of a gcc2
7202    builtin and then its argument prototype would still apply.  */
7203 char printf ();
7204 #ifdef F77_DUMMY_MAIN
7205 #  ifdef __cplusplus
7206      extern "C"
7207 #  endif
7208    int F77_DUMMY_MAIN() { return 1; }
7209 #endif
7210 int
7211 main ()
7212 {
7213 printf ();
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_lib_krb_printf=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7234 ac_cv_lib_krb_printf=no
7235 fi
7236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7237 LIBS=$ac_check_lib_save_LIBS
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
7240 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
7241 if test $ac_cv_lib_krb_printf = yes; then
7242   krb_lib=yes krb_libdir=${KRB4}/lib
7243 else
7244   LDFLAGS=$hold_ldflags
7245             # Using open here instead of printf so we don't
7246             # get confused by the cached value for printf from above.
7247             echo "$as_me:$LINENO: checking for open in -lkrb" >&5
7248 echo $ECHO_N "checking for open in -lkrb... $ECHO_C" >&6
7249 if test "${ac_cv_lib_krb_open+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   ac_check_lib_save_LIBS=$LIBS
7253 LIBS="-lkrb  $LIBS"
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 #include "confdefs.h"
7257
7258 /* Override any gcc2 internal prototype to avoid an error.  */
7259 #ifdef __cplusplus
7260 extern "C"
7261 #endif
7262 /* We use char because int might match the return type of a gcc2
7263    builtin and then its argument prototype would still apply.  */
7264 char open ();
7265 #ifdef F77_DUMMY_MAIN
7266 #  ifdef __cplusplus
7267      extern "C"
7268 #  endif
7269    int F77_DUMMY_MAIN() { return 1; }
7270 #endif
7271 int
7272 main ()
7273 {
7274 open ();
7275   ;
7276   return 0;
7277 }
7278 _ACEOF
7279 rm -f conftest.$ac_objext conftest$ac_exeext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7281   (eval $ac_link) 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } &&
7285          { ac_try='test -s conftest$ac_exeext'
7286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287   (eval $ac_try) 2>&5
7288   ac_status=$?
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); }; }; then
7291   ac_cv_lib_krb_open=yes
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_cv_lib_krb_open=no
7296 fi
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298 LIBS=$ac_check_lib_save_LIBS
7299 fi
7300 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_open" >&5
7301 echo "${ECHO_T}$ac_cv_lib_krb_open" >&6
7302 if test $ac_cv_lib_krb_open = yes; then
7303   krb_lib=yes krb_libdir=
7304 fi
7305
7306 fi
7307
7308        LDFLAGS=$hold_ldflags
7309   else
7310        echo "$as_me:$LINENO: checking for printf in -lkrb" >&5
7311 echo $ECHO_N "checking for printf in -lkrb... $ECHO_C" >&6
7312 if test "${ac_cv_lib_krb_printf+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   ac_check_lib_save_LIBS=$LIBS
7316 LIBS="-lkrb  $LIBS"
7317 cat >conftest.$ac_ext <<_ACEOF
7318 #line $LINENO "configure"
7319 #include "confdefs.h"
7320
7321 /* Override any gcc2 internal prototype to avoid an error.  */
7322 #ifdef __cplusplus
7323 extern "C"
7324 #endif
7325 /* We use char because int might match the return type of a gcc2
7326    builtin and then its argument prototype would still apply.  */
7327 char printf ();
7328 #ifdef F77_DUMMY_MAIN
7329 #  ifdef __cplusplus
7330      extern "C"
7331 #  endif
7332    int F77_DUMMY_MAIN() { return 1; }
7333 #endif
7334 int
7335 main ()
7336 {
7337 printf ();
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext conftest$ac_exeext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7344   (eval $ac_link) 2>&5
7345   ac_status=$?
7346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347   (exit $ac_status); } &&
7348          { ac_try='test -s conftest$ac_exeext'
7349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350   (eval $ac_try) 2>&5
7351   ac_status=$?
7352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353   (exit $ac_status); }; }; then
7354   ac_cv_lib_krb_printf=yes
7355 else
7356   echo "$as_me: failed program was:" >&5
7357 cat conftest.$ac_ext >&5
7358 ac_cv_lib_krb_printf=no
7359 fi
7360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7361 LIBS=$ac_check_lib_save_LIBS
7362 fi
7363 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_printf" >&5
7364 echo "${ECHO_T}$ac_cv_lib_krb_printf" >&6
7365 if test $ac_cv_lib_krb_printf = yes; then
7366   krb_lib=yes krb_libdir=
7367 fi
7368
7369   fi
7370   if test -n "$krb_lib"; then
7371
7372 cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_KERBEROS 1
7374 _ACEOF
7375
7376     test -n "${krb_libdir}" && LIBS="${LIBS} -L${krb_libdir}"
7377     LIBS="${LIBS} -lkrb"
7378     # Put -L${krb_libdir} in LDFLAGS temporarily so that it appears before
7379     # -ldes in the command line.  Don't do it permanently so that we honor
7380     # the user's setting for LDFLAGS
7381     hold_ldflags=$LDFLAGS
7382     test -n "${krb_libdir}" && LDFLAGS="$LDFLAGS -L${krb_libdir}"
7383     echo "$as_me:$LINENO: checking for printf in -ldes" >&5
7384 echo $ECHO_N "checking for printf in -ldes... $ECHO_C" >&6
7385 if test "${ac_cv_lib_des_printf+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   ac_check_lib_save_LIBS=$LIBS
7389 LIBS="-ldes  $LIBS"
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line $LINENO "configure"
7392 #include "confdefs.h"
7393
7394 /* Override any gcc2 internal prototype to avoid an error.  */
7395 #ifdef __cplusplus
7396 extern "C"
7397 #endif
7398 /* We use char because int might match the return type of a gcc2
7399    builtin and then its argument prototype would still apply.  */
7400 char printf ();
7401 #ifdef F77_DUMMY_MAIN
7402 #  ifdef __cplusplus
7403      extern "C"
7404 #  endif
7405    int F77_DUMMY_MAIN() { return 1; }
7406 #endif
7407 int
7408 main ()
7409 {
7410 printf ();
7411   ;
7412   return 0;
7413 }
7414 _ACEOF
7415 rm -f conftest.$ac_objext conftest$ac_exeext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7417   (eval $ac_link) 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); } &&
7421          { ac_try='test -s conftest$ac_exeext'
7422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7423   (eval $ac_try) 2>&5
7424   ac_status=$?
7425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426   (exit $ac_status); }; }; then
7427   ac_cv_lib_des_printf=yes
7428 else
7429   echo "$as_me: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7431 ac_cv_lib_des_printf=no
7432 fi
7433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7434 LIBS=$ac_check_lib_save_LIBS
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_lib_des_printf" >&5
7437 echo "${ECHO_T}$ac_cv_lib_des_printf" >&6
7438 if test $ac_cv_lib_des_printf = yes; then
7439   LIBS="${LIBS} -ldes"
7440 fi
7441
7442     LDFLAGS=$hold_ldflags
7443     if test -n "$krb_incdir"; then
7444       includeopt="${includeopt} -I$krb_incdir"
7445     fi
7446   fi
7447 fi
7448
7449 for ac_func in krb_get_err_text
7450 do
7451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7452 echo "$as_me:$LINENO: checking for $ac_func" >&5
7453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_var+set}\" = set"; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457   cat >conftest.$ac_ext <<_ACEOF
7458 #line $LINENO "configure"
7459 #include "confdefs.h"
7460 /* System header to define __stub macros and hopefully few prototypes,
7461     which can conflict with char $ac_func (); below.  */
7462 #include <assert.h>
7463 /* Override any gcc2 internal prototype to avoid an error.  */
7464 #ifdef __cplusplus
7465 extern "C"
7466 #endif
7467 /* We use char because int might match the return type of a gcc2
7468    builtin and then its argument prototype would still apply.  */
7469 char $ac_func ();
7470 char (*f) ();
7471
7472 #ifdef F77_DUMMY_MAIN
7473 #  ifdef __cplusplus
7474      extern "C"
7475 #  endif
7476    int F77_DUMMY_MAIN() { return 1; }
7477 #endif
7478 int
7479 main ()
7480 {
7481 /* The GNU C library defines this for functions which it implements
7482     to always fail with ENOSYS.  Some functions are actually named
7483     something starting with __ and the normal name is an alias.  */
7484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7485 choke me
7486 #else
7487 f = $ac_func;
7488 #endif
7489
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496   (eval $ac_link) 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } &&
7500          { ac_try='test -s conftest$ac_exeext'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; }; then
7506   eval "$as_ac_var=yes"
7507 else
7508   echo "$as_me: failed program was:" >&5
7509 cat conftest.$ac_ext >&5
7510 eval "$as_ac_var=no"
7511 fi
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7513 fi
7514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7516 if test `eval echo '${'$as_ac_var'}'` = yes; then
7517   cat >>confdefs.h <<_ACEOF
7518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7519 _ACEOF
7520
7521 fi
7522 done
7523
7524
7525
7526
7527 #
7528 # Use --with-gssapi[=DIR] to enable GSSAPI support.
7529 #
7530 # defaults to enabled with DIR in default list below
7531 #
7532 # Search for /SUNHEA/ and read the comments about this default below.
7533 #
7534
7535 # Check whether --with-gssapi or --without-gssapi was given.
7536 if test "${with_gssapi+set}" = set; then
7537   withval="$with_gssapi"
7538
7539 else
7540   with_gssapi=yes
7541 fi;
7542 #
7543 # Try to locate a GSSAPI installation if no location was specified, assuming
7544 # GSSAPI was enabled (the default).
7545 #
7546 if test -n "$acx_gssapi_cv_gssapi"; then
7547   # Granted, this is a slightly ugly way to print this info, but the
7548   # AC_CHECK_HEADER used in the search for a GSSAPI installation makes using
7549   # AC_CACHE_CHECK worse
7550   echo "$as_me:$LINENO: checking for GSSAPI" >&5
7551 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7552 else :; fi
7553 if test "${acx_gssapi_cv_gssapi+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556
7557 if test x$with_gssapi = xyes; then
7558   # --with but no location specified
7559   # assume a gssapi.h or gssapi/gssapi.h locates our install.
7560   #
7561   # This isn't always strictly true.  For instance Solaris 7's SUNHEA (header)
7562   # package installs gssapi.h whether or not the necessary libraries are
7563   # installed.  I'm still not sure whether to consider this a bug.  The long
7564   # way around is to not consider GSSPAI installed unless gss_import_name is
7565   # found, but that brings up a lot of other hassles, like continuing to let
7566   # gcc & ld generate the error messages when the user uses --with-gssapi=dir
7567   # as a debugging aid.  The short way around is to disable GSSAPI by default,
7568   # but I think Sun users have been faced with this for awhile and I haven't
7569   # heard many complaints.
7570   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
7571   for acx_gssapi_cv_gssapi in yes /usr/kerberos /usr/cygnus/kerbnet no; do
7572     if test x$acx_gssapi_cv_gssapi = xno; then
7573       break
7574     fi
7575     if test x$acx_gssapi_cv_gssapi = xyes; then
7576       echo "$as_me:$LINENO: checking for GSSAPI" >&5
7577 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7578       echo "$as_me:$LINENO: result: " >&5
7579 echo "${ECHO_T}" >&6
7580     else
7581       CPPFLAGS="$acx_gssapi_save_CPPFLAGS -I$acx_gssapi_cv_gssapi/include"
7582       echo "$as_me:$LINENO: checking for GSSAPI in $acx_gssapi_cv_gssapi" >&5
7583 echo $ECHO_N "checking for GSSAPI in $acx_gssapi_cv_gssapi... $ECHO_C" >&6
7584       echo "$as_me:$LINENO: result: " >&5
7585 echo "${ECHO_T}" >&6
7586     fi
7587     unset ac_cv_header_gssapi_h
7588     unset ac_cv_header_gssapi_gssapi_h
7589     unset ac_cv_header_krb5_h
7590
7591
7592
7593 for ac_header in gssapi.h gssapi/gssapi.h krb5.h
7594 do
7595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7597   echo "$as_me:$LINENO: checking for $ac_header" >&5
7598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600   echo $ECHO_N "(cached) $ECHO_C" >&6
7601 fi
7602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7604 else
7605   # Is the header compilable?
7606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 #include "confdefs.h"
7611 $ac_includes_default
7612 #include <$ac_header>
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7616   (eval $ac_compile) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); } &&
7620          { ac_try='test -s conftest.$ac_objext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   ac_header_compiler=yes
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7630 ac_header_compiler=no
7631 fi
7632 rm -f conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634 echo "${ECHO_T}$ac_header_compiler" >&6
7635
7636 # Is the header present?
7637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7641 #include "confdefs.h"
7642 #include <$ac_header>
7643 _ACEOF
7644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7646   ac_status=$?
7647   egrep -v '^ *\+' conftest.er1 >conftest.err
7648   rm -f conftest.er1
7649   cat conftest.err >&5
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } >/dev/null; then
7652   if test -s conftest.err; then
7653     ac_cpp_err=$ac_c_preproc_warn_flag
7654   else
7655     ac_cpp_err=
7656   fi
7657 else
7658   ac_cpp_err=yes
7659 fi
7660 if test -z "$ac_cpp_err"; then
7661   ac_header_preproc=yes
7662 else
7663   echo "$as_me: failed program was:" >&5
7664   cat conftest.$ac_ext >&5
7665   ac_header_preproc=no
7666 fi
7667 rm -f conftest.err conftest.$ac_ext
7668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7669 echo "${ECHO_T}$ac_header_preproc" >&6
7670
7671 # So?  What about this header?
7672 case $ac_header_compiler:$ac_header_preproc in
7673   yes:no )
7674     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7676     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7678   no:yes )
7679     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7680 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7681     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7682 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7685 esac
7686 echo "$as_me:$LINENO: checking for $ac_header" >&5
7687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7688 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   eval "$as_ac_Header=$ac_header_preproc"
7692 fi
7693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7695
7696 fi
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698   cat >>confdefs.h <<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7700 _ACEOF
7701
7702 fi
7703
7704 done
7705
7706     if (test "$ac_cv_header_gssapi_h" = yes ||
7707           test "$ac_cv_header_gssapi_gssapi_h" = yes) &&
7708         test "$ac_cv_header_krb5_h" = yes; then
7709       break
7710     fi
7711   done
7712   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
7713 else
7714   acx_gssapi_cv_gssapi=$with_gssapi
7715 fi
7716 echo "$as_me:$LINENO: checking for GSSAPI" >&5
7717 echo $ECHO_N "checking for GSSAPI... $ECHO_C" >&6
7718
7719 fi
7720 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gssapi" >&5
7721 echo "${ECHO_T}$acx_gssapi_cv_gssapi" >&6
7722
7723 #
7724 # Set up GSSAPI includes for later use.  We don't bother to check for
7725 # $acx_gssapi_cv_gssapi=no here since that will be caught later.
7726 #
7727 if test x$acx_gssapi_cv_gssapi = yes; then
7728   # no special includes necessary
7729   GSSAPI_INCLUDES=""
7730 else
7731   # GSSAPI at $acx_gssapi_cv_gssapi (could be 'no')
7732   GSSAPI_INCLUDES=" -I$acx_gssapi_cv_gssapi/include"
7733 fi
7734
7735 #
7736 # Get the rest of the information CVS needs to compile with GSSAPI support
7737 #
7738 if test x$acx_gssapi_cv_gssapi != xno; then
7739   # define HAVE_GSSAPI and set up the includes
7740
7741 cat >>confdefs.h <<\_ACEOF
7742 #define HAVE_GSSAPI
7743 _ACEOF
7744
7745   includeopt=$includeopt$GSSAPI_INCLUDES
7746
7747   # locate any other headers
7748   acx_gssapi_save_CPPFLAGS=$CPPFLAGS
7749   CPPFLAGS=$CPPFLAGS$GSSAPI_INCLUDES
7750
7751
7752
7753
7754 for ac_header in gssapi.h gssapi/gssapi.h gssapi/gssapi_generic.h krb5.h
7755 do
7756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758   echo "$as_me:$LINENO: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 fi
7763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7765 else
7766   # Is the header compilable?
7767 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7769 cat >conftest.$ac_ext <<_ACEOF
7770 #line $LINENO "configure"
7771 #include "confdefs.h"
7772 $ac_includes_default
7773 #include <$ac_header>
7774 _ACEOF
7775 rm -f conftest.$ac_objext
7776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777   (eval $ac_compile) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); } &&
7781          { ac_try='test -s conftest.$ac_objext'
7782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783   (eval $ac_try) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); }; }; then
7787   ac_header_compiler=yes
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7791 ac_header_compiler=no
7792 fi
7793 rm -f conftest.$ac_objext conftest.$ac_ext
7794 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7795 echo "${ECHO_T}$ac_header_compiler" >&6
7796
7797 # Is the header present?
7798 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7802 #include "confdefs.h"
7803 #include <$ac_header>
7804 _ACEOF
7805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7807   ac_status=$?
7808   egrep -v '^ *\+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } >/dev/null; then
7813   if test -s conftest.err; then
7814     ac_cpp_err=$ac_c_preproc_warn_flag
7815   else
7816     ac_cpp_err=
7817   fi
7818 else
7819   ac_cpp_err=yes
7820 fi
7821 if test -z "$ac_cpp_err"; then
7822   ac_header_preproc=yes
7823 else
7824   echo "$as_me: failed program was:" >&5
7825   cat conftest.$ac_ext >&5
7826   ac_header_preproc=no
7827 fi
7828 rm -f conftest.err conftest.$ac_ext
7829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7830 echo "${ECHO_T}$ac_header_preproc" >&6
7831
7832 # So?  What about this header?
7833 case $ac_header_compiler:$ac_header_preproc in
7834   yes:no )
7835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7839   no:yes )
7840     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7846 esac
7847 echo "$as_me:$LINENO: checking for $ac_header" >&5
7848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   eval "$as_ac_Header=$ac_header_preproc"
7853 fi
7854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7856
7857 fi
7858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7859   cat >>confdefs.h <<_ACEOF
7860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7861 _ACEOF
7862
7863 fi
7864
7865 done
7866
7867   # And look through them for GSS_C_NT_HOSTBASED_SERVICE or its alternatives
7868   echo "$as_me:$LINENO: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7869 echo $ECHO_N "checking for GSS_C_NT_HOSTBASED_SERVICE... $ECHO_C" >&6
7870 if test "${acx_gssapi_cv_gss_c_nt_hostbased_service+set}" = set; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873
7874     acx_gssapi_cv_gss_c_nt_hostbased_service=no
7875     if test "$ac_cv_header_gssapi_h" = "yes"; then
7876       cat >conftest.$ac_ext <<_ACEOF
7877 #line $LINENO "configure"
7878 #include "confdefs.h"
7879 #include <gssapi.h>
7880
7881 _ACEOF
7882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7883   egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7884   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7885 else
7886
7887         cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 #include "confdefs.h"
7890 #include <gssapi.h>
7891
7892 _ACEOF
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894   egrep "gss_nt_service_name" >/dev/null 2>&1; then
7895   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7896 fi
7897 rm -f conftest*
7898
7899
7900 fi
7901 rm -f conftest*
7902
7903     fi
7904     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
7905        test "$ac_cv_header_gssapi_gssapi_h" = "yes"; then
7906       cat >conftest.$ac_ext <<_ACEOF
7907 #line $LINENO "configure"
7908 #include "confdefs.h"
7909 #include <gssapi/gssapi.h>
7910
7911 _ACEOF
7912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7913   egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7914   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7915 else
7916
7917         cat >conftest.$ac_ext <<_ACEOF
7918 #line $LINENO "configure"
7919 #include "confdefs.h"
7920 #include <gssapi/gssapi.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   egrep "gss_nt_service_name" >/dev/null 2>&1; then
7925   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7926 fi
7927 rm -f conftest*
7928
7929
7930 fi
7931 rm -f conftest*
7932
7933     else :; fi
7934     if test $acx_gssapi_cv_gss_c_nt_hostbased_service = no &&
7935        test "$ac_cv_header_gssapi_gssapi_generic_h" = "yes"; then
7936       cat >conftest.$ac_ext <<_ACEOF
7937 #line $LINENO "configure"
7938 #include "confdefs.h"
7939 #include <gssapi/gssapi_generic.h>
7940
7941 _ACEOF
7942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7943   egrep "GSS_C_NT_HOSTBASED_SERVICE" >/dev/null 2>&1; then
7944   acx_gssapi_cv_gss_c_nt_hostbased_service=yes
7945 else
7946
7947         cat >conftest.$ac_ext <<_ACEOF
7948 #line $LINENO "configure"
7949 #include "confdefs.h"
7950 #include <gssapi/gssapi_generic.h>
7951
7952 _ACEOF
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954   egrep "gss_nt_service_name" >/dev/null 2>&1; then
7955   acx_gssapi_cv_gss_c_nt_hostbased_service=gss_nt_service_name
7956 fi
7957 rm -f conftest*
7958
7959
7960 fi
7961 rm -f conftest*
7962
7963     else :; fi
7964
7965 fi
7966 echo "$as_me:$LINENO: result: $acx_gssapi_cv_gss_c_nt_hostbased_service" >&5
7967 echo "${ECHO_T}$acx_gssapi_cv_gss_c_nt_hostbased_service" >&6
7968   if test $acx_gssapi_cv_gss_c_nt_hostbased_service != yes &&
7969      test $acx_gssapi_cv_gss_c_nt_hostbased_service != no; then
7970     # don't define for yes since that means it already means something and
7971     # don't define for no since we'd rather the compiler catch the error
7972     # It's debatable whether we'd prefer that the compiler catch the error
7973     #  - it seems our estranged developer is more likely to be familiar with
7974     #    the intricacies of the compiler than with those of autoconf, but by
7975     #    the same token, maybe we'd rather alert them to the fact that most
7976     #    of the support they need to fix the problem is installed if they can
7977     #    simply locate the appropriate symbol.
7978
7979 cat >>confdefs.h <<_ACEOF
7980 #define GSS_C_NT_HOSTBASED_SERVICE $acx_gssapi_cv_gss_c_nt_hostbased_service
7981 _ACEOF
7982
7983   else :; fi
7984
7985   CPPFLAGS=$acx_gssapi_save_CPPFLAGS
7986
7987   # Expect the libs to be installed parallel to the headers
7988   #
7989   # We could try once with and once without, but I'm not sure it's worth the
7990   # trouble.
7991   if test x$acx_gssapi_cv_gssapi != xyes; then
7992     if test -z "$LIBS"; then
7993       LIBS="-L$acx_gssapi_cv_gssapi/lib"
7994     else
7995       LIBS="-L$acx_gssapi_cv_gssapi/lib $LIBS"
7996     fi
7997   else :; fi
7998
7999       #
8000   # Some of the order below is particular due to library dependencies
8001   #
8002
8003   #
8004   # des                 Heimdal K 0.3d, but Heimdal seems to be set up such
8005   #                     that it could have been installed from elsewhere.
8006   #
8007   echo "$as_me:$LINENO: checking for library containing des_set_odd_parity" >&5
8008 echo $ECHO_N "checking for library containing des_set_odd_parity... $ECHO_C" >&6
8009 if test "${ac_cv_search_des_set_odd_parity+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   ac_func_search_save_LIBS=$LIBS
8013 ac_cv_search_des_set_odd_parity=no
8014 cat >conftest.$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 #include "confdefs.h"
8017
8018 /* Override any gcc2 internal prototype to avoid an error.  */
8019 #ifdef __cplusplus
8020 extern "C"
8021 #endif
8022 /* We use char because int might match the return type of a gcc2
8023    builtin and then its argument prototype would still apply.  */
8024 char des_set_odd_parity ();
8025 #ifdef F77_DUMMY_MAIN
8026 #  ifdef __cplusplus
8027      extern "C"
8028 #  endif
8029    int F77_DUMMY_MAIN() { return 1; }
8030 #endif
8031 int
8032 main ()
8033 {
8034 des_set_odd_parity ();
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041   (eval $ac_link) 2>&5
8042   ac_status=$?
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -s conftest$ac_exeext'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; }; then
8051   ac_cv_search_des_set_odd_parity="none required"
8052 else
8053   echo "$as_me: failed program was:" >&5
8054 cat conftest.$ac_ext >&5
8055 fi
8056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8057 if test "$ac_cv_search_des_set_odd_parity" = no; then
8058   for ac_lib in des; do
8059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8060     cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 #include "confdefs.h"
8063
8064 /* Override any gcc2 internal prototype to avoid an error.  */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 /* We use char because int might match the return type of a gcc2
8069    builtin and then its argument prototype would still apply.  */
8070 char des_set_odd_parity ();
8071 #ifdef F77_DUMMY_MAIN
8072 #  ifdef __cplusplus
8073      extern "C"
8074 #  endif
8075    int F77_DUMMY_MAIN() { return 1; }
8076 #endif
8077 int
8078 main ()
8079 {
8080 des_set_odd_parity ();
8081   ;
8082   return 0;
8083 }
8084 _ACEOF
8085 rm -f conftest.$ac_objext conftest$ac_exeext
8086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8087   (eval $ac_link) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); } &&
8091          { ac_try='test -s conftest$ac_exeext'
8092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093   (eval $ac_try) 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_search_des_set_odd_parity="-l$ac_lib"
8098 break
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8102 fi
8103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8104   done
8105 fi
8106 LIBS=$ac_func_search_save_LIBS
8107 fi
8108 echo "$as_me:$LINENO: result: $ac_cv_search_des_set_odd_parity" >&5
8109 echo "${ECHO_T}$ac_cv_search_des_set_odd_parity" >&6
8110 if test "$ac_cv_search_des_set_odd_parity" != no; then
8111   test "$ac_cv_search_des_set_odd_parity" = "none required" || LIBS="$ac_cv_search_des_set_odd_parity $LIBS"
8112
8113 fi
8114
8115
8116   #
8117   # com_err             Heimdal K 0.3d
8118   #
8119   # com_err             MIT K5 v1.2.2-beta1
8120   #
8121   echo "$as_me:$LINENO: checking for library containing com_err" >&5
8122 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6
8123 if test "${ac_cv_search_com_err+set}" = set; then
8124   echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126   ac_func_search_save_LIBS=$LIBS
8127 ac_cv_search_com_err=no
8128 cat >conftest.$ac_ext <<_ACEOF
8129 #line $LINENO "configure"
8130 #include "confdefs.h"
8131
8132 /* Override any gcc2 internal prototype to avoid an error.  */
8133 #ifdef __cplusplus
8134 extern "C"
8135 #endif
8136 /* We use char because int might match the return type of a gcc2
8137    builtin and then its argument prototype would still apply.  */
8138 char com_err ();
8139 #ifdef F77_DUMMY_MAIN
8140 #  ifdef __cplusplus
8141      extern "C"
8142 #  endif
8143    int F77_DUMMY_MAIN() { return 1; }
8144 #endif
8145 int
8146 main ()
8147 {
8148 com_err ();
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 rm -f conftest.$ac_objext conftest$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155   (eval $ac_link) 2>&5
8156   ac_status=$?
8157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158   (exit $ac_status); } &&
8159          { ac_try='test -s conftest$ac_exeext'
8160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8161   (eval $ac_try) 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; }; then
8165   ac_cv_search_com_err="none required"
8166 else
8167   echo "$as_me: failed program was:" >&5
8168 cat conftest.$ac_ext >&5
8169 fi
8170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8171 if test "$ac_cv_search_com_err" = no; then
8172   for ac_lib in com_err; do
8173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8174     cat >conftest.$ac_ext <<_ACEOF
8175 #line $LINENO "configure"
8176 #include "confdefs.h"
8177
8178 /* Override any gcc2 internal prototype to avoid an error.  */
8179 #ifdef __cplusplus
8180 extern "C"
8181 #endif
8182 /* We use char because int might match the return type of a gcc2
8183    builtin and then its argument prototype would still apply.  */
8184 char com_err ();
8185 #ifdef F77_DUMMY_MAIN
8186 #  ifdef __cplusplus
8187      extern "C"
8188 #  endif
8189    int F77_DUMMY_MAIN() { return 1; }
8190 #endif
8191 int
8192 main ()
8193 {
8194 com_err ();
8195   ;
8196   return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201   (eval $ac_link) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } &&
8205          { ac_try='test -s conftest$ac_exeext'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; }; then
8211   ac_cv_search_com_err="-l$ac_lib"
8212 break
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 cat conftest.$ac_ext >&5
8216 fi
8217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8218   done
8219 fi
8220 LIBS=$ac_func_search_save_LIBS
8221 fi
8222 echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8223 echo "${ECHO_T}$ac_cv_search_com_err" >&6
8224 if test "$ac_cv_search_com_err" != no; then
8225   test "$ac_cv_search_com_err" = "none required" || LIBS="$ac_cv_search_com_err $LIBS"
8226
8227 fi
8228
8229
8230   #
8231   # asn1                Heimdal K 0.3d          -lcom_err
8232   #
8233   echo "$as_me:$LINENO: checking for library containing initialize_asn1_error_table_r" >&5
8234 echo $ECHO_N "checking for library containing initialize_asn1_error_table_r... $ECHO_C" >&6
8235 if test "${ac_cv_search_initialize_asn1_error_table_r+set}" = set; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   ac_func_search_save_LIBS=$LIBS
8239 ac_cv_search_initialize_asn1_error_table_r=no
8240 cat >conftest.$ac_ext <<_ACEOF
8241 #line $LINENO "configure"
8242 #include "confdefs.h"
8243
8244 /* Override any gcc2 internal prototype to avoid an error.  */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 /* We use char because int might match the return type of a gcc2
8249    builtin and then its argument prototype would still apply.  */
8250 char initialize_asn1_error_table_r ();
8251 #ifdef F77_DUMMY_MAIN
8252 #  ifdef __cplusplus
8253      extern "C"
8254 #  endif
8255    int F77_DUMMY_MAIN() { return 1; }
8256 #endif
8257 int
8258 main ()
8259 {
8260 initialize_asn1_error_table_r ();
8261   ;
8262   return 0;
8263 }
8264 _ACEOF
8265 rm -f conftest.$ac_objext conftest$ac_exeext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8267   (eval $ac_link) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } &&
8271          { ac_try='test -s conftest$ac_exeext'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   ac_cv_search_initialize_asn1_error_table_r="none required"
8278 else
8279   echo "$as_me: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 fi
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 if test "$ac_cv_search_initialize_asn1_error_table_r" = no; then
8284   for ac_lib in asn1; do
8285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8286     cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8288 #include "confdefs.h"
8289
8290 /* Override any gcc2 internal prototype to avoid an error.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 /* We use char because int might match the return type of a gcc2
8295    builtin and then its argument prototype would still apply.  */
8296 char initialize_asn1_error_table_r ();
8297 #ifdef F77_DUMMY_MAIN
8298 #  ifdef __cplusplus
8299      extern "C"
8300 #  endif
8301    int F77_DUMMY_MAIN() { return 1; }
8302 #endif
8303 int
8304 main ()
8305 {
8306 initialize_asn1_error_table_r ();
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8313   (eval $ac_link) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); } &&
8317          { ac_try='test -s conftest$ac_exeext'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; }; then
8323   ac_cv_search_initialize_asn1_error_table_r="-l$ac_lib"
8324 break
8325 else
8326   echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8328 fi
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8330   done
8331 fi
8332 LIBS=$ac_func_search_save_LIBS
8333 fi
8334 echo "$as_me:$LINENO: result: $ac_cv_search_initialize_asn1_error_table_r" >&5
8335 echo "${ECHO_T}$ac_cv_search_initialize_asn1_error_table_r" >&6
8336 if test "$ac_cv_search_initialize_asn1_error_table_r" != no; then
8337   test "$ac_cv_search_initialize_asn1_error_table_r" = "none required" || LIBS="$ac_cv_search_initialize_asn1_error_table_r $LIBS"
8338
8339 fi
8340
8341
8342   #
8343   # resolv              required, but not installed by Heimdal K 0.3d
8344   #
8345   # resolv              MIT K5 1.2.2-beta1
8346   #                     Linux 2.2.17
8347   #
8348   echo "$as_me:$LINENO: checking for library containing __dn_expand" >&5
8349 echo $ECHO_N "checking for library containing __dn_expand... $ECHO_C" >&6
8350 if test "${ac_cv_search___dn_expand+set}" = set; then
8351   echo $ECHO_N "(cached) $ECHO_C" >&6
8352 else
8353   ac_func_search_save_LIBS=$LIBS
8354 ac_cv_search___dn_expand=no
8355 cat >conftest.$ac_ext <<_ACEOF
8356 #line $LINENO "configure"
8357 #include "confdefs.h"
8358
8359 /* Override any gcc2 internal prototype to avoid an error.  */
8360 #ifdef __cplusplus
8361 extern "C"
8362 #endif
8363 /* We use char because int might match the return type of a gcc2
8364    builtin and then its argument prototype would still apply.  */
8365 char __dn_expand ();
8366 #ifdef F77_DUMMY_MAIN
8367 #  ifdef __cplusplus
8368      extern "C"
8369 #  endif
8370    int F77_DUMMY_MAIN() { return 1; }
8371 #endif
8372 int
8373 main ()
8374 {
8375 __dn_expand ();
8376   ;
8377   return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8382   (eval $ac_link) 2>&5
8383   ac_status=$?
8384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385   (exit $ac_status); } &&
8386          { ac_try='test -s conftest$ac_exeext'
8387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388   (eval $ac_try) 2>&5
8389   ac_status=$?
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); }; }; then
8392   ac_cv_search___dn_expand="none required"
8393 else
8394   echo "$as_me: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8396 fi
8397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 if test "$ac_cv_search___dn_expand" = no; then
8399   for ac_lib in resolv; do
8400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8401     cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 #include "confdefs.h"
8404
8405 /* Override any gcc2 internal prototype to avoid an error.  */
8406 #ifdef __cplusplus
8407 extern "C"
8408 #endif
8409 /* We use char because int might match the return type of a gcc2
8410    builtin and then its argument prototype would still apply.  */
8411 char __dn_expand ();
8412 #ifdef F77_DUMMY_MAIN
8413 #  ifdef __cplusplus
8414      extern "C"
8415 #  endif
8416    int F77_DUMMY_MAIN() { return 1; }
8417 #endif
8418 int
8419 main ()
8420 {
8421 __dn_expand ();
8422   ;
8423   return 0;
8424 }
8425 _ACEOF
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428   (eval $ac_link) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -s conftest$ac_exeext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   ac_cv_search___dn_expand="-l$ac_lib"
8439 break
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 cat conftest.$ac_ext >&5
8443 fi
8444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8445   done
8446 fi
8447 LIBS=$ac_func_search_save_LIBS
8448 fi
8449 echo "$as_me:$LINENO: result: $ac_cv_search___dn_expand" >&5
8450 echo "${ECHO_T}$ac_cv_search___dn_expand" >&6
8451 if test "$ac_cv_search___dn_expand" != no; then
8452   test "$ac_cv_search___dn_expand" = "none required" || LIBS="$ac_cv_search___dn_expand $LIBS"
8453
8454 fi
8455
8456
8457   #
8458   # roken               Heimdal K 0.3d          -lresolv
8459   #
8460   echo "$as_me:$LINENO: checking for library containing roken_gethostbyaddr" >&5
8461 echo $ECHO_N "checking for library containing roken_gethostbyaddr... $ECHO_C" >&6
8462 if test "${ac_cv_search_roken_gethostbyaddr+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   ac_func_search_save_LIBS=$LIBS
8466 ac_cv_search_roken_gethostbyaddr=no
8467 cat >conftest.$ac_ext <<_ACEOF
8468 #line $LINENO "configure"
8469 #include "confdefs.h"
8470
8471 /* Override any gcc2 internal prototype to avoid an error.  */
8472 #ifdef __cplusplus
8473 extern "C"
8474 #endif
8475 /* We use char because int might match the return type of a gcc2
8476    builtin and then its argument prototype would still apply.  */
8477 char roken_gethostbyaddr ();
8478 #ifdef F77_DUMMY_MAIN
8479 #  ifdef __cplusplus
8480      extern "C"
8481 #  endif
8482    int F77_DUMMY_MAIN() { return 1; }
8483 #endif
8484 int
8485 main ()
8486 {
8487 roken_gethostbyaddr ();
8488   ;
8489   return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494   (eval $ac_link) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -s conftest$ac_exeext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_cv_search_roken_gethostbyaddr="none required"
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8508 fi
8509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 if test "$ac_cv_search_roken_gethostbyaddr" = no; then
8511   for ac_lib in roken; do
8512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8513     cat >conftest.$ac_ext <<_ACEOF
8514 #line $LINENO "configure"
8515 #include "confdefs.h"
8516
8517 /* Override any gcc2 internal prototype to avoid an error.  */
8518 #ifdef __cplusplus
8519 extern "C"
8520 #endif
8521 /* We use char because int might match the return type of a gcc2
8522    builtin and then its argument prototype would still apply.  */
8523 char roken_gethostbyaddr ();
8524 #ifdef F77_DUMMY_MAIN
8525 #  ifdef __cplusplus
8526      extern "C"
8527 #  endif
8528    int F77_DUMMY_MAIN() { return 1; }
8529 #endif
8530 int
8531 main ()
8532 {
8533 roken_gethostbyaddr ();
8534   ;
8535   return 0;
8536 }
8537 _ACEOF
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8540   (eval $ac_link) 2>&5
8541   ac_status=$?
8542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543   (exit $ac_status); } &&
8544          { ac_try='test -s conftest$ac_exeext'
8545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8546   (eval $ac_try) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); }; }; then
8550   ac_cv_search_roken_gethostbyaddr="-l$ac_lib"
8551 break
8552 else
8553   echo "$as_me: failed program was:" >&5
8554 cat conftest.$ac_ext >&5
8555 fi
8556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8557   done
8558 fi
8559 LIBS=$ac_func_search_save_LIBS
8560 fi
8561 echo "$as_me:$LINENO: result: $ac_cv_search_roken_gethostbyaddr" >&5
8562 echo "${ECHO_T}$ac_cv_search_roken_gethostbyaddr" >&6
8563 if test "$ac_cv_search_roken_gethostbyaddr" != no; then
8564   test "$ac_cv_search_roken_gethostbyaddr" = "none required" || LIBS="$ac_cv_search_roken_gethostbyaddr $LIBS"
8565
8566 fi
8567
8568
8569   #
8570   # k5crypto            MIT K5 v1.2.2-beta1
8571   #
8572   echo "$as_me:$LINENO: checking for library containing valid_enctype" >&5
8573 echo $ECHO_N "checking for library containing valid_enctype... $ECHO_C" >&6
8574 if test "${ac_cv_search_valid_enctype+set}" = set; then
8575   echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577   ac_func_search_save_LIBS=$LIBS
8578 ac_cv_search_valid_enctype=no
8579 cat >conftest.$ac_ext <<_ACEOF
8580 #line $LINENO "configure"
8581 #include "confdefs.h"
8582
8583 /* Override any gcc2 internal prototype to avoid an error.  */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 /* We use char because int might match the return type of a gcc2
8588    builtin and then its argument prototype would still apply.  */
8589 char valid_enctype ();
8590 #ifdef F77_DUMMY_MAIN
8591 #  ifdef __cplusplus
8592      extern "C"
8593 #  endif
8594    int F77_DUMMY_MAIN() { return 1; }
8595 #endif
8596 int
8597 main ()
8598 {
8599 valid_enctype ();
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 rm -f conftest.$ac_objext conftest$ac_exeext
8605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8606   (eval $ac_link) 2>&5
8607   ac_status=$?
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -s conftest$ac_exeext'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; }; then
8616   ac_cv_search_valid_enctype="none required"
8617 else
8618   echo "$as_me: failed program was:" >&5
8619 cat conftest.$ac_ext >&5
8620 fi
8621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8622 if test "$ac_cv_search_valid_enctype" = no; then
8623   for ac_lib in k5crypto; do
8624     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8625     cat >conftest.$ac_ext <<_ACEOF
8626 #line $LINENO "configure"
8627 #include "confdefs.h"
8628
8629 /* Override any gcc2 internal prototype to avoid an error.  */
8630 #ifdef __cplusplus
8631 extern "C"
8632 #endif
8633 /* We use char because int might match the return type of a gcc2
8634    builtin and then its argument prototype would still apply.  */
8635 char valid_enctype ();
8636 #ifdef F77_DUMMY_MAIN
8637 #  ifdef __cplusplus
8638      extern "C"
8639 #  endif
8640    int F77_DUMMY_MAIN() { return 1; }
8641 #endif
8642 int
8643 main ()
8644 {
8645 valid_enctype ();
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652   (eval $ac_link) 2>&5
8653   ac_status=$?
8654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } &&
8656          { ac_try='test -s conftest$ac_exeext'
8657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658   (eval $ac_try) 2>&5
8659   ac_status=$?
8660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661   (exit $ac_status); }; }; then
8662   ac_cv_search_valid_enctype="-l$ac_lib"
8663 break
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 cat conftest.$ac_ext >&5
8667 fi
8668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8669   done
8670 fi
8671 LIBS=$ac_func_search_save_LIBS
8672 fi
8673 echo "$as_me:$LINENO: result: $ac_cv_search_valid_enctype" >&5
8674 echo "${ECHO_T}$ac_cv_search_valid_enctype" >&6
8675 if test "$ac_cv_search_valid_enctype" != no; then
8676   test "$ac_cv_search_valid_enctype" = "none required" || LIBS="$ac_cv_search_valid_enctype $LIBS"
8677
8678 fi
8679
8680
8681   #
8682   # gen                 ? ? ?                   Needed on Irix 5.3 with some
8683   #                     Irix 5.3                version of Kerberos.  I'm not
8684   #                                             sure which since Irix didn't
8685   #                                             get any testing this time
8686   #                                             around.  Original comment:
8687   #
8688   # This is necessary on Irix 5.3, in order to link against libkrb5 --
8689   # there, an_to_ln.o refers to things defined only in -lgen.
8690   #
8691   echo "$as_me:$LINENO: checking for library containing compile" >&5
8692 echo $ECHO_N "checking for library containing compile... $ECHO_C" >&6
8693 if test "${ac_cv_search_compile+set}" = set; then
8694   echo $ECHO_N "(cached) $ECHO_C" >&6
8695 else
8696   ac_func_search_save_LIBS=$LIBS
8697 ac_cv_search_compile=no
8698 cat >conftest.$ac_ext <<_ACEOF
8699 #line $LINENO "configure"
8700 #include "confdefs.h"
8701
8702 /* Override any gcc2 internal prototype to avoid an error.  */
8703 #ifdef __cplusplus
8704 extern "C"
8705 #endif
8706 /* We use char because int might match the return type of a gcc2
8707    builtin and then its argument prototype would still apply.  */
8708 char compile ();
8709 #ifdef F77_DUMMY_MAIN
8710 #  ifdef __cplusplus
8711      extern "C"
8712 #  endif
8713    int F77_DUMMY_MAIN() { return 1; }
8714 #endif
8715 int
8716 main ()
8717 {
8718 compile ();
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 rm -f conftest.$ac_objext conftest$ac_exeext
8724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725   (eval $ac_link) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); } &&
8729          { ac_try='test -s conftest$ac_exeext'
8730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8731   (eval $ac_try) 2>&5
8732   ac_status=$?
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); }; }; then
8735   ac_cv_search_compile="none required"
8736 else
8737   echo "$as_me: failed program was:" >&5
8738 cat conftest.$ac_ext >&5
8739 fi
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 if test "$ac_cv_search_compile" = no; then
8742   for ac_lib in gen; do
8743     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8744     cat >conftest.$ac_ext <<_ACEOF
8745 #line $LINENO "configure"
8746 #include "confdefs.h"
8747
8748 /* Override any gcc2 internal prototype to avoid an error.  */
8749 #ifdef __cplusplus
8750 extern "C"
8751 #endif
8752 /* We use char because int might match the return type of a gcc2
8753    builtin and then its argument prototype would still apply.  */
8754 char compile ();
8755 #ifdef F77_DUMMY_MAIN
8756 #  ifdef __cplusplus
8757      extern "C"
8758 #  endif
8759    int F77_DUMMY_MAIN() { return 1; }
8760 #endif
8761 int
8762 main ()
8763 {
8764 compile ();
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771   (eval $ac_link) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } &&
8775          { ac_try='test -s conftest$ac_exeext'
8776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777   (eval $ac_try) 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; }; then
8781   ac_cv_search_compile="-l$ac_lib"
8782 break
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8786 fi
8787 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8788   done
8789 fi
8790 LIBS=$ac_func_search_save_LIBS
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_search_compile" >&5
8793 echo "${ECHO_T}$ac_cv_search_compile" >&6
8794 if test "$ac_cv_search_compile" != no; then
8795   test "$ac_cv_search_compile" = "none required" || LIBS="$ac_cv_search_compile $LIBS"
8796
8797 fi
8798
8799
8800   #
8801   # krb5                ? ? ?                   -lgen -l???
8802   #                     Irix 5.3
8803   #
8804   # krb5                MIT K5 v1.1.1
8805   #
8806   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err
8807   #                     Linux 2.2.17
8808   #
8809   # krb5                MIT K5 v1.2.2-beta1     -lcrypto -lcom_err -lresolv
8810   #
8811   # krb5                Heimdal K 0.3d          -lasn1 -lroken -ldes
8812   #
8813   echo "$as_me:$LINENO: checking for library containing krb5_free_context" >&5
8814 echo $ECHO_N "checking for library containing krb5_free_context... $ECHO_C" >&6
8815 if test "${ac_cv_search_krb5_free_context+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   ac_func_search_save_LIBS=$LIBS
8819 ac_cv_search_krb5_free_context=no
8820 cat >conftest.$ac_ext <<_ACEOF
8821 #line $LINENO "configure"
8822 #include "confdefs.h"
8823
8824 /* Override any gcc2 internal prototype to avoid an error.  */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 /* We use char because int might match the return type of a gcc2
8829    builtin and then its argument prototype would still apply.  */
8830 char krb5_free_context ();
8831 #ifdef F77_DUMMY_MAIN
8832 #  ifdef __cplusplus
8833      extern "C"
8834 #  endif
8835    int F77_DUMMY_MAIN() { return 1; }
8836 #endif
8837 int
8838 main ()
8839 {
8840 krb5_free_context ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847   (eval $ac_link) 2>&5
8848   ac_status=$?
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -s conftest$ac_exeext'
8852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853   (eval $ac_try) 2>&5
8854   ac_status=$?
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); }; }; then
8857   ac_cv_search_krb5_free_context="none required"
8858 else
8859   echo "$as_me: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8861 fi
8862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 if test "$ac_cv_search_krb5_free_context" = no; then
8864   for ac_lib in krb5; do
8865     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8866     cat >conftest.$ac_ext <<_ACEOF
8867 #line $LINENO "configure"
8868 #include "confdefs.h"
8869
8870 /* Override any gcc2 internal prototype to avoid an error.  */
8871 #ifdef __cplusplus
8872 extern "C"
8873 #endif
8874 /* We use char because int might match the return type of a gcc2
8875    builtin and then its argument prototype would still apply.  */
8876 char krb5_free_context ();
8877 #ifdef F77_DUMMY_MAIN
8878 #  ifdef __cplusplus
8879      extern "C"
8880 #  endif
8881    int F77_DUMMY_MAIN() { return 1; }
8882 #endif
8883 int
8884 main ()
8885 {
8886 krb5_free_context ();
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893   (eval $ac_link) 2>&5
8894   ac_status=$?
8895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896   (exit $ac_status); } &&
8897          { ac_try='test -s conftest$ac_exeext'
8898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8899   (eval $ac_try) 2>&5
8900   ac_status=$?
8901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902   (exit $ac_status); }; }; then
8903   ac_cv_search_krb5_free_context="-l$ac_lib"
8904 break
8905 else
8906   echo "$as_me: failed program was:" >&5
8907 cat conftest.$ac_ext >&5
8908 fi
8909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8910   done
8911 fi
8912 LIBS=$ac_func_search_save_LIBS
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_search_krb5_free_context" >&5
8915 echo "${ECHO_T}$ac_cv_search_krb5_free_context" >&6
8916 if test "$ac_cv_search_krb5_free_context" != no; then
8917   test "$ac_cv_search_krb5_free_context" = "none required" || LIBS="$ac_cv_search_krb5_free_context $LIBS"
8918
8919 fi
8920
8921
8922   #
8923   # gssapi_krb5         Only lib needed with MIT K5 v1.2.1, so find it first in
8924   #                     order to prefer MIT Kerberos.  If both MIT & Heimdal
8925   #                     Kerberos are installed and in the path, this will leave
8926   #                     some of the libraries above in LIBS unnecessarily, but
8927   #                     noone would ever do that, right?
8928   #
8929   # gssapi_krb5         MIT K5 v1.2.2-beta1     -lkrb5
8930   #
8931   # gssapi              Heimdal K 0.3d          -lkrb5
8932   #
8933   echo "$as_me:$LINENO: checking for library containing gss_import_name" >&5
8934 echo $ECHO_N "checking for library containing gss_import_name... $ECHO_C" >&6
8935 if test "${ac_cv_search_gss_import_name+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   ac_func_search_save_LIBS=$LIBS
8939 ac_cv_search_gss_import_name=no
8940 cat >conftest.$ac_ext <<_ACEOF
8941 #line $LINENO "configure"
8942 #include "confdefs.h"
8943
8944 /* Override any gcc2 internal prototype to avoid an error.  */
8945 #ifdef __cplusplus
8946 extern "C"
8947 #endif
8948 /* We use char because int might match the return type of a gcc2
8949    builtin and then its argument prototype would still apply.  */
8950 char gss_import_name ();
8951 #ifdef F77_DUMMY_MAIN
8952 #  ifdef __cplusplus
8953      extern "C"
8954 #  endif
8955    int F77_DUMMY_MAIN() { return 1; }
8956 #endif
8957 int
8958 main ()
8959 {
8960 gss_import_name ();
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8967   (eval $ac_link) 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -s conftest$ac_exeext'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   ac_cv_search_gss_import_name="none required"
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 fi
8982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 if test "$ac_cv_search_gss_import_name" = no; then
8984   for ac_lib in gssapi_krb5 gssapi; do
8985     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8986     cat >conftest.$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8988 #include "confdefs.h"
8989
8990 /* Override any gcc2 internal prototype to avoid an error.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 /* We use char because int might match the return type of a gcc2
8995    builtin and then its argument prototype would still apply.  */
8996 char gss_import_name ();
8997 #ifdef F77_DUMMY_MAIN
8998 #  ifdef __cplusplus
8999      extern "C"
9000 #  endif
9001    int F77_DUMMY_MAIN() { return 1; }
9002 #endif
9003 int
9004 main ()
9005 {
9006 gss_import_name ();
9007   ;
9008   return 0;
9009 }
9010 _ACEOF
9011 rm -f conftest.$ac_objext conftest$ac_exeext
9012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013   (eval $ac_link) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); } &&
9017          { ac_try='test -s conftest$ac_exeext'
9018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9019   (eval $ac_try) 2>&5
9020   ac_status=$?
9021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022   (exit $ac_status); }; }; then
9023   ac_cv_search_gss_import_name="-l$ac_lib"
9024 break
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 fi
9029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9030   done
9031 fi
9032 LIBS=$ac_func_search_save_LIBS
9033 fi
9034 echo "$as_me:$LINENO: result: $ac_cv_search_gss_import_name" >&5
9035 echo "${ECHO_T}$ac_cv_search_gss_import_name" >&6
9036 if test "$ac_cv_search_gss_import_name" != no; then
9037   test "$ac_cv_search_gss_import_name" = "none required" || LIBS="$ac_cv_search_gss_import_name $LIBS"
9038
9039 fi
9040
9041 fi
9042
9043
9044
9045
9046
9047
9048 # Let the confiscator request a specific editor
9049
9050 # Check whether --with-editor or --without-editor was given.
9051 if test "${with_editor+set}" = set; then
9052   withval="$with_editor"
9053
9054 else
9055   with_editor="vi emacs pico edit"
9056 fi;
9057
9058
9059 if echo $with_editor |grep ^/ >/dev/null; then
9060   # If $with_editor is an absolute path, issue a warning if the executable
9061   # doesn't exist or isn't usable, but then trust the user and use it
9062   # regardless
9063   EDITOR=$with_editor
9064   echo "$as_me:$LINENO: checking for an editor" >&5
9065 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
9066   echo "$as_me:$LINENO: result: $EDITOR" >&5
9067 echo "${ECHO_T}$EDITOR" >&6
9068   if ! test -f $with_editor \
9069       || ! test -x $with_editor; then
9070     # warn the user that they may encounter problems
9071     { echo "$as_me:$LINENO: WARNING: $with_editor is not a path to an executable file" >&5
9072 echo "$as_me: WARNING: $with_editor is not a path to an executable file" >&2;}
9073   fi
9074 elif test no != "${with_editor}"; then
9075   # Search for an editor
9076   for ac_prog in $with_editor
9077 do
9078   # Extract the first word of "$ac_prog", so it can be a program name with args.
9079 set dummy $ac_prog; ac_word=$2
9080 echo "$as_me:$LINENO: checking for $ac_word" >&5
9081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9082 if test "${ac_cv_prog_EDITOR+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   if test -n "$EDITOR"; then
9086   ac_cv_prog_EDITOR="$EDITOR" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9090 do
9091   IFS=$as_save_IFS
9092   test -z "$as_dir" && as_dir=.
9093   for ac_exec_ext in '' $ac_executable_extensions; do
9094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9095     ac_cv_prog_EDITOR="$ac_prog"
9096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9097     break 2
9098   fi
9099 done
9100 done
9101
9102 fi
9103 fi
9104 EDITOR=$ac_cv_prog_EDITOR
9105 if test -n "$EDITOR"; then
9106   echo "$as_me:$LINENO: result: $EDITOR" >&5
9107 echo "${ECHO_T}$EDITOR" >&6
9108 else
9109   echo "$as_me:$LINENO: result: no" >&5
9110 echo "${ECHO_T}no" >&6
9111 fi
9112
9113   test -n "$EDITOR" && break
9114 done
9115
9116 else
9117   echo "$as_me:$LINENO: checking for an editor" >&5
9118 echo $ECHO_N "checking for an editor... $ECHO_C" >&6
9119   echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9121 fi
9122
9123 if test -n "${EDITOR}"; then
9124
9125 cat >>confdefs.h <<_ACEOF
9126 #define EDITOR_DFLT "$EDITOR"
9127 _ACEOF
9128
9129 fi
9130
9131
9132
9133
9134 # Check whether --with-tmpdir or --without-tmpdir was given.
9135 if test "${with_tmpdir+set}" = set; then
9136   withval="$with_tmpdir"
9137
9138 fi;
9139
9140 echo "$as_me:$LINENO: checking for temporary directory" >&5
9141 echo $ECHO_N "checking for temporary directory... $ECHO_C" >&6
9142 if test -z "$with_tmpdir" || test yes = "$with_tmpdir"; then
9143   for with_tmpdir in "$TMPDIR" "$TMP" "$TEMP" /tmp /var/tmp no; do
9144     if test -d "$with_tmpdir" && test -x "$with_tmpdir" \
9145         && test -w "$with_tmpdir" && test -r "$with_tmpdir"; then
9146       break
9147     fi
9148   done
9149   if test no = "$with_tmpdir"; then
9150     { echo "$as_me:$LINENO: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&5
9151 echo "$as_me: WARNING: Failed to find usable temporary directory.  Using '/tmp'." >&2;}
9152     with_tmpdir=/tmp
9153   fi
9154   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9155 echo "${ECHO_T}$with_tmpdir" >&6
9156 elif ! echo "$with_tmpdir" |grep '^[\\/]'; then
9157   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9158 echo "${ECHO_T}$with_tmpdir" >&6
9159   { { echo "$as_me:$LINENO: error: --with-tmpdir requires an absolute path." >&5
9160 echo "$as_me: error: --with-tmpdir requires an absolute path." >&2;}
9161    { (exit 1); exit 1; }; }
9162 elif ! test -d "$with_tmpdir" || ! test -x "$with_tmpdir" \
9163         || ! test -w "$with_tmpdir" || ! test -r "$with_tmpdir"; then
9164   echo "$as_me:$LINENO: result: $with_tmpdir" >&5
9165 echo "${ECHO_T}$with_tmpdir" >&6
9166   { echo "$as_me:$LINENO: WARNING: User supplied temporary directory ('$with_tmpdir') does not
9167      exist or lacks sufficient permissions for read/write." >&5
9168 echo "$as_me: WARNING: User supplied temporary directory ('$with_tmpdir') does not
9169      exist or lacks sufficient permissions for read/write." >&2;}
9170 fi
9171
9172
9173 cat >>confdefs.h <<_ACEOF
9174 #define TMPDIR_DFLT "$with_tmpdir"
9175 _ACEOF
9176
9177
9178
9179
9180
9181
9182 # Check whether --with-umask or --without-umask was given.
9183 if test "${with_umask+set}" = set; then
9184   withval="$with_umask"
9185
9186 fi;
9187
9188 if test -z "$with_umask" || test yes = "$with_umask"; then
9189   with_umask=002
9190 elif test no = "$with_umask"; then
9191   with_umask=000
9192 fi
9193
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define UMASK_DFLT $with_umask
9197 _ACEOF
9198
9199
9200
9201
9202 # Check whether --with-cvs-admin-group or --without-cvs-admin-group was given.
9203 if test "${with_cvs_admin_group+set}" = set; then
9204   withval="$with_cvs_admin_group"
9205
9206 else
9207   with_cvs_admin_group=cvsadmin
9208 fi;
9209
9210 if test yes = "$with_cvs_admin_group"; then
9211   with_cvs_admin_group=cvsadmin
9212 fi
9213 if test no != "$with_cvs_admin_group"; then
9214
9215 cat >>confdefs.h <<_ACEOF
9216 #define CVS_ADMIN_GROUP "$with_cvs_admin_group"
9217 _ACEOF
9218
9219 fi
9220
9221
9222 # Check whether --enable-cvs-ndbm or --disable-cvs-ndbm was given.
9223 if test "${enable_cvs_ndbm+set}" = set; then
9224   enableval="$enable_cvs_ndbm"
9225
9226 else
9227   enable_cvs_ndbm=yes
9228 fi;
9229 if test no != "$enable_cvs_ndbm"; then
9230
9231 cat >>confdefs.h <<\_ACEOF
9232 #define MY_NDBM 1
9233 _ACEOF
9234
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244 # Check for options requesting client and server feature. If none are
9245 # given and we have connect(), we want the full client & server arrangement.
9246 # Check whether --enable-client or --disable-client was given.
9247 if test "${enable_client+set}" = set; then
9248   enableval="$enable_client"
9249
9250 else
9251   if test "$ac_cv_search_connect" != no; then
9252     enable_client=yes
9253   fi
9254 fi;
9255 if test no != "$enable_client"; then
9256
9257 cat >>confdefs.h <<\_ACEOF
9258 #define CLIENT_SUPPORT 1
9259 _ACEOF
9260
9261 fi
9262
9263 # Check whether --enable-password-authenticated-client or --disable-password-authenticated-client was given.
9264 if test "${enable_password_authenticated_client+set}" = set; then
9265   enableval="$enable_password_authenticated_client"
9266
9267 fi;
9268
9269 if test no != "$enable_password_authenticated_client"; then
9270   if test no != "$enable_client"; then
9271
9272 cat >>confdefs.h <<\_ACEOF
9273 #define AUTH_CLIENT_SUPPORT 1
9274 _ACEOF
9275
9276   else
9277     { echo "$as_me:$LINENO: WARNING: --enable-password-authenticated-server is meaningless with
9278        the CVS client disabled (--disable-client)" >&5
9279 echo "$as_me: WARNING: --enable-password-authenticated-server is meaningless with
9280        the CVS client disabled (--disable-client)" >&2;}
9281   fi
9282 fi
9283
9284
9285 # Check whether --enable-server or --disable-server was given.
9286 if test "${enable_server+set}" = set; then
9287   enableval="$enable_server"
9288
9289 else
9290   if test "$ac_cv_search_connect" != no; then
9291      enable_server=yes
9292    fi
9293 fi;
9294
9295 if test no != "$enable_server"; then
9296
9297 cat >>confdefs.h <<\_ACEOF
9298 #define SERVER_SUPPORT 1
9299 _ACEOF
9300
9301
9302             echo "$as_me:$LINENO: checking for library containing crypt" >&5
9303 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
9304 if test "${ac_cv_search_crypt+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   ac_func_search_save_LIBS=$LIBS
9308 ac_cv_search_crypt=no
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 #include "confdefs.h"
9312
9313 /* Override any gcc2 internal prototype to avoid an error.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 /* We use char because int might match the return type of a gcc2
9318    builtin and then its argument prototype would still apply.  */
9319 char crypt ();
9320 #ifdef F77_DUMMY_MAIN
9321 #  ifdef __cplusplus
9322      extern "C"
9323 #  endif
9324    int F77_DUMMY_MAIN() { return 1; }
9325 #endif
9326 int
9327 main ()
9328 {
9329 crypt ();
9330   ;
9331   return 0;
9332 }
9333 _ACEOF
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336   (eval $ac_link) 2>&5
9337   ac_status=$?
9338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } &&
9340          { ac_try='test -s conftest$ac_exeext'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; }; then
9346   ac_cv_search_crypt="none required"
9347 else
9348   echo "$as_me: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9350 fi
9351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9352 if test "$ac_cv_search_crypt" = no; then
9353   for ac_lib in crypt; do
9354     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9355     cat >conftest.$ac_ext <<_ACEOF
9356 #line $LINENO "configure"
9357 #include "confdefs.h"
9358
9359 /* Override any gcc2 internal prototype to avoid an error.  */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 /* We use char because int might match the return type of a gcc2
9364    builtin and then its argument prototype would still apply.  */
9365 char crypt ();
9366 #ifdef F77_DUMMY_MAIN
9367 #  ifdef __cplusplus
9368      extern "C"
9369 #  endif
9370    int F77_DUMMY_MAIN() { return 1; }
9371 #endif
9372 int
9373 main ()
9374 {
9375 crypt ();
9376   ;
9377   return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9382   (eval $ac_link) 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); } &&
9386          { ac_try='test -s conftest$ac_exeext'
9387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388   (eval $ac_try) 2>&5
9389   ac_status=$?
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   (exit $ac_status); }; }; then
9392   ac_cv_search_crypt="-l$ac_lib"
9393 break
9394 else
9395   echo "$as_me: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9397 fi
9398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9399   done
9400 fi
9401 LIBS=$ac_func_search_save_LIBS
9402 fi
9403 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
9404 echo "${ECHO_T}$ac_cv_search_crypt" >&6
9405 if test "$ac_cv_search_crypt" != no; then
9406   test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
9407
9408 cat >>confdefs.h <<\_ACEOF
9409 #define HAVE_CRYPT 1
9410 _ACEOF
9411
9412
9413 cat >>confdefs.h <<\_ACEOF
9414 #define AUTH_SERVER_SUPPORT 1
9415 _ACEOF
9416
9417 fi
9418
9419           # Check whether --enable-server-flow-control or --disable-server-flow-control was given.
9420 if test "${enable_server_flow_control+set}" = set; then
9421   enableval="$enable_server_flow_control"
9422   if test yes = $enable_server_flow_control; then
9423        enable_server_flow_control=1M,2M
9424      fi
9425 else
9426   enable_server_flow_control=1M,2M
9427 fi;
9428   if test no != $enable_server_flow_control; then
9429     ccvs_lwm=`expr "$enable_server_flow_control" : '\(.*\),'`
9430     ccvs_hwm=`expr "$enable_server_flow_control" : '.*,\(.*\)'`
9431     ccvs_lwm_E=`expr "$ccvs_lwm" : '[0-9][0-9]*\(.*\)'`
9432     ccvs_lwm=`expr "$ccvs_lwm" : '\([0-9][0-9]*\)'`
9433     test "" != "$ccvs_lwm" || ccvs_lwm_E="?"
9434     case $ccvs_lwm_E in
9435         G) ccvs_lwm="$ccvs_lwm * 1024 * 1024 * 1024";;
9436         M) ccvs_lwm="$ccvs_lwm * 1024 * 1024";;
9437         k) ccvs_lwm="$ccvs_lwm * 1024";;
9438         b | '') ;;
9439         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
9440                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
9441 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
9442                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
9443    { (exit 1); exit 1; }; }
9444       esac
9445     ccvs_hwm_E=`expr "$ccvs_hwm" : '[0-9][0-9]*\(.*\)'`
9446     ccvs_hwm=`expr "$ccvs_hwm" : '\([0-9][0-9]*\).*'`
9447     test "" != "$ccvs_hwm" || ccvs_hwm_E="?"
9448     case $ccvs_hwm_E in
9449         G) ccvs_hwm="$ccvs_hwm * 1024 * 1024 * 1024";;
9450         M) ccvs_hwm="$ccvs_hwm * 1024 * 1024";;
9451         k) ccvs_hwm="$ccvs_hwm * 1024";;
9452         b | '') ccvs_hwm="$ccvs_hwm";;
9453         *) { { echo "$as_me:$LINENO: error: Can't parse argument to --enable-server-flow-control
9454                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&5
9455 echo "$as_me: error: Can't parse argument to --enable-server-flow-control
9456                         ('$enable_server_flow_control') as <lwm>,<hwm>" >&2;}
9457    { (exit 1); exit 1; }; }
9458       esac
9459
9460
9461 cat >>confdefs.h <<\_ACEOF
9462 #define SERVER_FLOWCONTROL 1
9463 _ACEOF
9464
9465
9466 cat >>confdefs.h <<_ACEOF
9467 #define SERVER_LO_WATER ($ccvs_lwm)
9468 _ACEOF
9469
9470
9471 cat >>confdefs.h <<_ACEOF
9472 #define SERVER_HI_WATER ($ccvs_hwm)
9473 _ACEOF
9474
9475   fi # enable_server_flow_control
9476 fi # enable_server
9477
9478
9479 # Check whether --enable-encryption or --disable-encryption was given.
9480 if test "${enable_encryption+set}" = set; then
9481   enableval="$enable_encryption"
9482
9483 else
9484   enable_encryption=no
9485 fi;
9486 if test "$enable_encryption" = yes; then
9487   if test no != "$with_client" || test no != "$with_server"; then
9488
9489 cat >>confdefs.h <<\_ACEOF
9490 #define ENCRYPTION 1
9491 _ACEOF
9492
9493   else
9494     { echo "$as_me:$LINENO: WARNING: --enable-encryption is meaningless with neither the CVS client
9495        nor the CVS server is enabled (--disable-client and --disable-server)." >&5
9496 echo "$as_me: WARNING: --enable-encryption is meaningless with neither the CVS client
9497        nor the CVS server is enabled (--disable-client and --disable-server)." >&2;}
9498   fi
9499 fi
9500
9501
9502
9503
9504 # Check whether --enable-force-editor or --disable-force-editor was given.
9505 if test "${enable_force_editor+set}" = set; then
9506   enableval="$enable_force_editor"
9507
9508 else
9509   enable_force_editor=no
9510 fi;
9511
9512 if test yes = "$enable_force_editor"; then
9513
9514 cat >>confdefs.h <<\_ACEOF
9515 #define FORCE_USE_EDITOR 1
9516 _ACEOF
9517
9518 fi
9519
9520
9521
9522
9523 # Check whether --enable-rootcommit or --disable-rootcommit was given.
9524 if test "${enable_rootcommit+set}" = set; then
9525   enableval="$enable_rootcommit"
9526
9527 else
9528   enable_rootcommit=no
9529 fi;
9530 if test "$enable_rootcommit" = no; then
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define CVS_BADROOT 1
9534 _ACEOF
9535
9536 fi
9537
9538
9539
9540
9541
9542
9543
9544 echo "$as_me:$LINENO: checking for cygwin32" >&5
9545 echo $ECHO_N "checking for cygwin32... $ECHO_C" >&6
9546 if test "${ccvs_cv_sys_cygwin32+set}" = set; then
9547   echo $ECHO_N "(cached) $ECHO_C" >&6
9548 else
9549   cat >conftest.$ac_ext <<_ACEOF
9550 #line $LINENO "configure"
9551 #include "confdefs.h"
9552
9553 #ifdef F77_DUMMY_MAIN
9554 #  ifdef __cplusplus
9555      extern "C"
9556 #  endif
9557    int F77_DUMMY_MAIN() { return 1; }
9558 #endif
9559 int
9560 main ()
9561 {
9562 return __CYGWIN32__;
9563   ;
9564   return 0;
9565 }
9566 _ACEOF
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569   (eval $ac_compile) 2>&5
9570   ac_status=$?
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   (exit $ac_status); } &&
9573          { ac_try='test -s conftest.$ac_objext'
9574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575   (eval $ac_try) 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; }; then
9579   ccvs_cv_sys_cygwin32=yes
9580 else
9581   echo "$as_me: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9583 ccvs_cv_sys_cygwin32=no
9584 fi
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586 fi
9587 echo "$as_me:$LINENO: result: $ccvs_cv_sys_cygwin32" >&5
9588 echo "${ECHO_T}$ccvs_cv_sys_cygwin32" >&6
9589 if test $ccvs_cv_sys_cygwin32 = yes; then
9590   LIBOBJS="$LIBOBJS fncase.$ac_objext"
9591   LIBS="$LIBS -ladvapi32"
9592
9593
9594 cat >>confdefs.h <<\_ACEOF
9595 #define UTIME_EXPECTS_WRITABLE 1
9596 _ACEOF
9597
9598
9599
9600 cat >>confdefs.h <<\_ACEOF
9601 #define USE_SETMODE_STDOUT 1
9602 _ACEOF
9603
9604
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_SETMODE 1
9607 _ACEOF
9608
9609 fi
9610
9611 ac_config_files="$ac_config_files contrib/check_cvs"
9612
9613 ac_config_files="$ac_config_files contrib/clmerge"
9614
9615 ac_config_files="$ac_config_files contrib/cln_hist"
9616
9617 ac_config_files="$ac_config_files contrib/commit_prep"
9618
9619 ac_config_files="$ac_config_files contrib/cvs_acls"
9620
9621 ac_config_files="$ac_config_files contrib/log"
9622
9623 ac_config_files="$ac_config_files contrib/log_accum"
9624
9625 ac_config_files="$ac_config_files contrib/mfpipe"
9626
9627 ac_config_files="$ac_config_files contrib/pvcs2rcs"
9628
9629 ac_config_files="$ac_config_files contrib/rcslock"
9630
9631 ac_config_files="$ac_config_files contrib/sccs2rcs"
9632
9633 ac_config_files="$ac_config_files src/cvsbug"
9634
9635
9636 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"
9637
9638
9639 cat >confcache <<\_ACEOF
9640 # This file is a shell script that caches the results of configure
9641 # tests run on this system so they can be shared between configure
9642 # scripts and configure runs, see configure's option --config-cache.
9643 # It is not useful on other systems.  If it contains results you don't
9644 # want to keep, you may remove or edit it.
9645 #
9646 # config.status only pays attention to the cache file if you give it
9647 # the --recheck option to rerun configure.
9648 #
9649 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9651 # following values.
9652
9653 _ACEOF
9654
9655 # The following way of writing the cache mishandles newlines in values,
9656 # but we know of no workaround that is simple, portable, and efficient.
9657 # So, don't put newlines in cache variables' values.
9658 # Ultrix sh set writes to stderr and can't be redirected directly,
9659 # and sets the high bit in the cache file unless we assign to the vars.
9660 {
9661   (set) 2>&1 |
9662     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9663     *ac_space=\ *)
9664       # `set' does not quote correctly, so add quotes (double-quote
9665       # substitution turns \\\\ into \\, and sed turns \\ into \).
9666       sed -n \
9667         "s/'/'\\\\''/g;
9668           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9669       ;;
9670     *)
9671       # `set' quotes correctly as required by POSIX, so do not add quotes.
9672       sed -n \
9673         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9674       ;;
9675     esac;
9676 } |
9677   sed '
9678      t clear
9679      : clear
9680      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9681      t end
9682      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9683      : end' >>confcache
9684 if cmp -s $cache_file confcache; then :; else
9685   if test -w $cache_file; then
9686     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9687     cat confcache >$cache_file
9688   else
9689     echo "not updating unwritable cache $cache_file"
9690   fi
9691 fi
9692 rm -f confcache
9693
9694 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9695 # Let make expand exec_prefix.
9696 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9697
9698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9700 # trailing colons and then remove the whole line if VPATH becomes empty
9701 # (actually we leave an empty line to preserve line numbers).
9702 if test "x$srcdir" = x.; then
9703   ac_vpsub='/^[         ]*VPATH[        ]*=/{
9704 s/:*\$(srcdir):*/:/;
9705 s/:*\${srcdir}:*/:/;
9706 s/:*@srcdir@:*/:/;
9707 s/^\([^=]*=[    ]*\):*/\1/;
9708 s/:*$//;
9709 s/^[^=]*=[      ]*$//;
9710 }'
9711 fi
9712
9713 DEFS=-DHAVE_CONFIG_H
9714
9715 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9716   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9717 Usually this means the macro was only invoked conditionally." >&5
9718 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9719 Usually this means the macro was only invoked conditionally." >&2;}
9720    { (exit 1); exit 1; }; }
9721 fi
9722 if test -z "${MAKE_TARGETS_IN_VPATH_TRUE}" && test -z "${MAKE_TARGETS_IN_VPATH_FALSE}"; then
9723   { { echo "$as_me:$LINENO: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
9724 Usually this means the macro was only invoked conditionally." >&5
9725 echo "$as_me: error: conditional \"MAKE_TARGETS_IN_VPATH\" was never defined.
9726 Usually this means the macro was only invoked conditionally." >&2;}
9727    { (exit 1); exit 1; }; }
9728 fi
9729
9730 : ${CONFIG_STATUS=./config.status}
9731 ac_clean_files_save=$ac_clean_files
9732 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9733 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9734 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9735 cat >$CONFIG_STATUS <<_ACEOF
9736 #! $SHELL
9737 # Generated by $as_me.
9738 # Run this file to recreate the current configuration.
9739 # Compiler output produced by configure, useful for debugging
9740 # configure, is in config.log if it exists.
9741
9742 debug=false
9743 SHELL=\${CONFIG_SHELL-$SHELL}
9744 _ACEOF
9745
9746 cat >>$CONFIG_STATUS <<\_ACEOF
9747
9748 ## --------------------- ##
9749 ## M4sh Initialization.  ##
9750 ## --------------------- ##
9751
9752 # Be Bourne compatible
9753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9754   emulate sh
9755   NULLCMD=:
9756 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9757   set -o posix
9758 fi
9759
9760 # NLS nuisances.
9761 # Support unset when possible.
9762 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9763   as_unset=unset
9764 else
9765   as_unset=false
9766 fi
9767
9768 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
9769     { $as_unset LANG || test "${LANG+set}" != set; } ||
9770       { LANG=C; export LANG; }
9771 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
9772     { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
9773       { LC_ALL=C; export LC_ALL; }
9774 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
9775     { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
9776       { LC_TIME=C; export LC_TIME; }
9777 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
9778     { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
9779       { LC_CTYPE=C; export LC_CTYPE; }
9780 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
9781     { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
9782       { LANGUAGE=C; export LANGUAGE; }
9783 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
9784     { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
9785       { LC_COLLATE=C; export LC_COLLATE; }
9786 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
9787     { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
9788       { LC_NUMERIC=C; export LC_NUMERIC; }
9789 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
9790     { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
9791       { LC_MESSAGES=C; export LC_MESSAGES; }
9792
9793
9794 # Name of the executable.
9795 as_me=`(basename "$0") 2>/dev/null ||
9796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9797          X"$0" : 'X\(//\)$' \| \
9798          X"$0" : 'X\(/\)$' \| \
9799          .     : '\(.\)' 2>/dev/null ||
9800 echo X/"$0" |
9801     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9802           /^X\/\(\/\/\)$/{ s//\1/; q; }
9803           /^X\/\(\/\).*/{ s//\1/; q; }
9804           s/.*/./; q'`
9805
9806 # PATH needs CR, and LINENO needs CR and PATH.
9807 # Avoid depending upon Character Ranges.
9808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9811 as_cr_digits='0123456789'
9812 as_cr_alnum=$as_cr_Letters$as_cr_digits
9813
9814 # The user is always right.
9815 if test "${PATH_SEPARATOR+set}" != set; then
9816   echo "#! /bin/sh" >conftest.sh
9817   echo  "exit 0"   >>conftest.sh
9818   chmod +x conftest.sh
9819   if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
9820     PATH_SEPARATOR=';'
9821   else
9822     PATH_SEPARATOR=:
9823   fi
9824   rm -f conftest.sh
9825 fi
9826
9827
9828   as_lineno_1=$LINENO
9829   as_lineno_2=$LINENO
9830   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9831   test "x$as_lineno_1" != "x$as_lineno_2" &&
9832   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9833   # Find who we are.  Look in the path if we contain no path at all
9834   # relative or not.
9835   case $0 in
9836     *[\\/]* ) as_myself=$0 ;;
9837     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 for as_dir in $PATH
9839 do
9840   IFS=$as_save_IFS
9841   test -z "$as_dir" && as_dir=.
9842   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9843 done
9844
9845        ;;
9846   esac
9847   # We did not find ourselves, most probably we were run as `sh COMMAND'
9848   # in which case we are not to be found in the path.
9849   if test "x$as_myself" = x; then
9850     as_myself=$0
9851   fi
9852   if test ! -f "$as_myself"; then
9853     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9855    { (exit 1); exit 1; }; }
9856   fi
9857   case $CONFIG_SHELL in
9858   '')
9859     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9861 do
9862   IFS=$as_save_IFS
9863   test -z "$as_dir" && as_dir=.
9864   for as_base in sh bash ksh sh5; do
9865          case $as_dir in
9866          /*)
9867            if ("$as_dir/$as_base" -c '
9868   as_lineno_1=$LINENO
9869   as_lineno_2=$LINENO
9870   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9871   test "x$as_lineno_1" != "x$as_lineno_2" &&
9872   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9873              CONFIG_SHELL=$as_dir/$as_base
9874              export CONFIG_SHELL
9875              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9876            fi;;
9877          esac
9878        done
9879 done
9880 ;;
9881   esac
9882
9883   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9884   # uniformly replaced by the line number.  The first 'sed' inserts a
9885   # line-number line before each line; the second 'sed' does the real
9886   # work.  The second script uses 'N' to pair each line-number line
9887   # with the numbered line, and appends trailing '-' during
9888   # substitution so that $LINENO is not a special case at line end.
9889   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9890   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9891   sed '=' <$as_myself |
9892     sed '
9893       N
9894       s,$,-,
9895       : loop
9896       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9897       t loop
9898       s,-$,,
9899       s,^['$as_cr_digits']*\n,,
9900     ' >$as_me.lineno &&
9901   chmod +x $as_me.lineno ||
9902     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9904    { (exit 1); exit 1; }; }
9905
9906   # Don't try to exec as it changes $[0], causing all sort of problems
9907   # (the dirname of $[0] is not the place where we might find the
9908   # original and so on.  Autoconf is especially sensible to this).
9909   . ./$as_me.lineno
9910   # Exit status is that of the last command.
9911   exit
9912 }
9913
9914
9915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9916   *c*,-n*) ECHO_N= ECHO_C='
9917 ' ECHO_T='      ' ;;
9918   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9919   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9920 esac
9921
9922 if expr a : '\(a\)' >/dev/null 2>&1; then
9923   as_expr=expr
9924 else
9925   as_expr=false
9926 fi
9927
9928 rm -f conf$$ conf$$.exe conf$$.file
9929 echo >conf$$.file
9930 if ln -s conf$$.file conf$$ 2>/dev/null; then
9931   # We could just check for DJGPP; but this test a) works b) is more generic
9932   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9933   if test -f conf$$.exe; then
9934     # Don't use ln at all; we don't have any links
9935     as_ln_s='cp -p'
9936   else
9937     as_ln_s='ln -s'
9938   fi
9939 elif ln conf$$.file conf$$ 2>/dev/null; then
9940   as_ln_s=ln
9941 else
9942   as_ln_s='cp -p'
9943 fi
9944 rm -f conf$$ conf$$.exe conf$$.file
9945
9946 as_executable_p="test -f"
9947
9948 # Sed expression to map a string onto a valid CPP name.
9949 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9950
9951 # Sed expression to map a string onto a valid variable name.
9952 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9953
9954
9955 # IFS
9956 # We need space, tab and new line, in precisely that order.
9957 as_nl='
9958 '
9959 IFS="   $as_nl"
9960
9961 # CDPATH.
9962 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
9963
9964 exec 6>&1
9965
9966 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9967 # report actual input values of CONFIG_FILES etc. instead of their
9968 # values after options handling.  Logging --version etc. is OK.
9969 exec 5>>config.log
9970 {
9971   echo
9972   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9973 ## Running $as_me. ##
9974 _ASBOX
9975 } >&5
9976 cat >&5 <<_CSEOF
9977
9978 This file was extended by Concurrent Versions System (CVS) $as_me 1.11.5, which was
9979 generated by GNU Autoconf 2.53.  Invocation command line was
9980
9981   CONFIG_FILES    = $CONFIG_FILES
9982   CONFIG_HEADERS  = $CONFIG_HEADERS
9983   CONFIG_LINKS    = $CONFIG_LINKS
9984   CONFIG_COMMANDS = $CONFIG_COMMANDS
9985   $ $0 $@
9986
9987 _CSEOF
9988 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9989 echo >&5
9990 _ACEOF
9991
9992 # Files that config.status was made for.
9993 if test -n "$ac_config_files"; then
9994   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9995 fi
9996
9997 if test -n "$ac_config_headers"; then
9998   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9999 fi
10000
10001 if test -n "$ac_config_links"; then
10002   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10003 fi
10004
10005 if test -n "$ac_config_commands"; then
10006   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10007 fi
10008
10009 cat >>$CONFIG_STATUS <<\_ACEOF
10010
10011 ac_cs_usage="\
10012 \`$as_me' instantiates files from templates according to the
10013 current configuration.
10014
10015 Usage: $0 [OPTIONS] [FILE]...
10016
10017   -h, --help       print this help, then exit
10018   -V, --version    print version number, then exit
10019   -d, --debug      don't remove temporary files
10020       --recheck    update $as_me by reconfiguring in the same conditions
10021   --file=FILE[:TEMPLATE]
10022                    instantiate the configuration file FILE
10023   --header=FILE[:TEMPLATE]
10024                    instantiate the configuration header FILE
10025
10026 Configuration files:
10027 $config_files
10028
10029 Configuration headers:
10030 $config_headers
10031
10032 Configuration links:
10033 $config_links
10034
10035 Configuration commands:
10036 $config_commands
10037
10038 Report bugs to <bug-autoconf@gnu.org>."
10039 _ACEOF
10040
10041 cat >>$CONFIG_STATUS <<_ACEOF
10042 ac_cs_version="\\
10043 Concurrent Versions System (CVS) config.status 1.11.5
10044 configured by $0, generated by GNU Autoconf 2.53,
10045   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10046
10047 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10048 Free Software Foundation, Inc.
10049 This config.status script is free software; the Free Software Foundation
10050 gives unlimited permission to copy, distribute and modify it."
10051 srcdir=$srcdir
10052 INSTALL="$INSTALL"
10053 _ACEOF
10054
10055 cat >>$CONFIG_STATUS <<\_ACEOF
10056 # If no file are specified by the user, then we need to provide default
10057 # value.  By we need to know if files were specified by the user.
10058 ac_need_defaults=:
10059 while test $# != 0
10060 do
10061   case $1 in
10062   --*=*)
10063     ac_option=`expr "x$1" : 'x\([^=]*\)='`
10064     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10065     shift
10066     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10067     shift
10068     ;;
10069   -*);;
10070   *) # This is not an option, so the user has probably given explicit
10071      # arguments.
10072      ac_need_defaults=false;;
10073   esac
10074
10075   case $1 in
10076   # Handling of the options.
10077 _ACEOF
10078 cat >>$CONFIG_STATUS <<_ACEOF
10079   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10080     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10081     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10082 _ACEOF
10083 cat >>$CONFIG_STATUS <<\_ACEOF
10084   --version | --vers* | -V )
10085     echo "$ac_cs_version"; exit 0 ;;
10086   --he | --h)
10087     # Conflict between --help and --header
10088     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10089 Try \`$0 --help' for more information." >&5
10090 echo "$as_me: error: ambiguous option: $1
10091 Try \`$0 --help' for more information." >&2;}
10092    { (exit 1); exit 1; }; };;
10093   --help | --hel | -h )
10094     echo "$ac_cs_usage"; exit 0 ;;
10095   --debug | --d* | -d )
10096     debug=: ;;
10097   --file | --fil | --fi | --f )
10098     shift
10099     CONFIG_FILES="$CONFIG_FILES $1"
10100     ac_need_defaults=false;;
10101   --header | --heade | --head | --hea )
10102     shift
10103     CONFIG_HEADERS="$CONFIG_HEADERS $1"
10104     ac_need_defaults=false;;
10105
10106   # This is an error.
10107   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10108 Try \`$0 --help' for more information." >&5
10109 echo "$as_me: error: unrecognized option: $1
10110 Try \`$0 --help' for more information." >&2;}
10111    { (exit 1); exit 1; }; } ;;
10112
10113   *) ac_config_targets="$ac_config_targets $1" ;;
10114
10115   esac
10116   shift
10117 done
10118
10119 _ACEOF
10120
10121 cat >>$CONFIG_STATUS <<_ACEOF
10122 #
10123 # INIT-COMMANDS section.
10124 #
10125
10126 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10127
10128 _ACEOF
10129
10130
10131
10132 cat >>$CONFIG_STATUS <<\_ACEOF
10133 for ac_config_target in $ac_config_targets
10134 do
10135   case "$ac_config_target" in
10136   # Handling of arguments.
10137   "contrib/check_cvs" ) CONFIG_FILES="$CONFIG_FILES contrib/check_cvs" ;;
10138   "contrib/clmerge" ) CONFIG_FILES="$CONFIG_FILES contrib/clmerge" ;;
10139   "contrib/cln_hist" ) CONFIG_FILES="$CONFIG_FILES contrib/cln_hist" ;;
10140   "contrib/commit_prep" ) CONFIG_FILES="$CONFIG_FILES contrib/commit_prep" ;;
10141   "contrib/cvs_acls" ) CONFIG_FILES="$CONFIG_FILES contrib/cvs_acls" ;;
10142   "contrib/log" ) CONFIG_FILES="$CONFIG_FILES contrib/log" ;;
10143   "contrib/log_accum" ) CONFIG_FILES="$CONFIG_FILES contrib/log_accum" ;;
10144   "contrib/mfpipe" ) CONFIG_FILES="$CONFIG_FILES contrib/mfpipe" ;;
10145   "contrib/pvcs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/pvcs2rcs" ;;
10146   "contrib/rcslock" ) CONFIG_FILES="$CONFIG_FILES contrib/rcslock" ;;
10147   "contrib/sccs2rcs" ) CONFIG_FILES="$CONFIG_FILES contrib/sccs2rcs" ;;
10148   "src/cvsbug" ) CONFIG_FILES="$CONFIG_FILES src/cvsbug" ;;
10149   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10150   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
10151   "cvs.spec" ) CONFIG_FILES="$CONFIG_FILES cvs.spec" ;;
10152   "diff/Makefile" ) CONFIG_FILES="$CONFIG_FILES diff/Makefile" ;;
10153   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10154   "emx/Makefile" ) CONFIG_FILES="$CONFIG_FILES emx/Makefile" ;;
10155   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10156   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10157   "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
10158   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10159   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10160   "vms/Makefile" ) CONFIG_FILES="$CONFIG_FILES vms/Makefile" ;;
10161   "windows-NT/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/Makefile" ;;
10162   "windows-NT/SCC/Makefile" ) CONFIG_FILES="$CONFIG_FILES windows-NT/SCC/Makefile" ;;
10163   "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
10164   "lib/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/fnmatch.h:lib/fnmatch.h.in" ;;
10165   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10166   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10167   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10168 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10169    { (exit 1); exit 1; }; };;
10170   esac
10171 done
10172
10173 # If the user did not use the arguments to specify the items to instantiate,
10174 # then the envvar interface is used.  Set only those that are not.
10175 # We use the long form for the default assignment because of an extremely
10176 # bizarre bug on SunOS 4.1.3.
10177 if $ac_need_defaults; then
10178   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10179   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10180   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
10181   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10182 fi
10183
10184 # Create a temporary directory, and hook for its removal unless debugging.
10185 $debug ||
10186 {
10187   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10188   trap '{ (exit 1); exit 1; }' 1 2 13 15
10189 }
10190
10191 # Create a (secure) tmp directory for tmp files.
10192 : ${TMPDIR=/tmp}
10193 {
10194   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10195   test -n "$tmp" && test -d "$tmp"
10196 }  ||
10197 {
10198   tmp=$TMPDIR/cs$$-$RANDOM
10199   (umask 077 && mkdir $tmp)
10200 } ||
10201 {
10202    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10203    { (exit 1); exit 1; }
10204 }
10205
10206 _ACEOF
10207
10208 cat >>$CONFIG_STATUS <<_ACEOF
10209
10210 #
10211 # CONFIG_FILES section.
10212 #
10213
10214 # No need to generate the scripts if there are no CONFIG_FILES.
10215 # This happens for instance when ./config.status config.h
10216 if test -n "\$CONFIG_FILES"; then
10217   # Protect against being on the right side of a sed subst in config.status.
10218   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10219    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10220 s,@SHELL@,$SHELL,;t t
10221 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10222 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10223 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10224 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10225 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10226 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10227 s,@exec_prefix@,$exec_prefix,;t t
10228 s,@prefix@,$prefix,;t t
10229 s,@program_transform_name@,$program_transform_name,;t t
10230 s,@bindir@,$bindir,;t t
10231 s,@sbindir@,$sbindir,;t t
10232 s,@libexecdir@,$libexecdir,;t t
10233 s,@datadir@,$datadir,;t t
10234 s,@sysconfdir@,$sysconfdir,;t t
10235 s,@sharedstatedir@,$sharedstatedir,;t t
10236 s,@localstatedir@,$localstatedir,;t t
10237 s,@libdir@,$libdir,;t t
10238 s,@includedir@,$includedir,;t t
10239 s,@oldincludedir@,$oldincludedir,;t t
10240 s,@infodir@,$infodir,;t t
10241 s,@mandir@,$mandir,;t t
10242 s,@build_alias@,$build_alias,;t t
10243 s,@host_alias@,$host_alias,;t t
10244 s,@target_alias@,$target_alias,;t t
10245 s,@DEFS@,$DEFS,;t t
10246 s,@ECHO_C@,$ECHO_C,;t t
10247 s,@ECHO_N@,$ECHO_N,;t t
10248 s,@ECHO_T@,$ECHO_T,;t t
10249 s,@LIBS@,$LIBS,;t t
10250 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10251 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10252 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10253 s,@PACKAGE@,$PACKAGE,;t t
10254 s,@VERSION@,$VERSION,;t t
10255 s,@ACLOCAL@,$ACLOCAL,;t t
10256 s,@AUTOCONF@,$AUTOCONF,;t t
10257 s,@AUTOMAKE@,$AUTOMAKE,;t t
10258 s,@AUTOHEADER@,$AUTOHEADER,;t t
10259 s,@MAKEINFO@,$MAKEINFO,;t t
10260 s,@AMTAR@,$AMTAR,;t t
10261 s,@install_sh@,$install_sh,;t t
10262 s,@STRIP@,$STRIP,;t t
10263 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10264 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10265 s,@AWK@,$AWK,;t t
10266 s,@SET_MAKE@,$SET_MAKE,;t t
10267 s,@ac_prefix_program@,$ac_prefix_program,;t t
10268 s,@CC@,$CC,;t t
10269 s,@CFLAGS@,$CFLAGS,;t t
10270 s,@LDFLAGS@,$LDFLAGS,;t t
10271 s,@CPPFLAGS@,$CPPFLAGS,;t t
10272 s,@ac_ct_CC@,$ac_ct_CC,;t t
10273 s,@EXEEXT@,$EXEEXT,;t t
10274 s,@OBJEXT@,$OBJEXT,;t t
10275 s,@DEPDIR@,$DEPDIR,;t t
10276 s,@am__include@,$am__include,;t t
10277 s,@am__quote@,$am__quote,;t t
10278 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10279 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10280 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10281 s,@CCDEPMODE@,$CCDEPMODE,;t t
10282 s,@CPP@,$CPP,;t t
10283 s,@RANLIB@,$RANLIB,;t t
10284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10285 s,@YACC@,$YACC,;t t
10286 s,@LN_S@,$LN_S,;t t
10287 s,@PERL@,$PERL,;t t
10288 s,@CSH@,$CSH,;t t
10289 s,@PR@,$PR,;t t
10290 s,@ROFF@,$ROFF,;t t
10291 s,@PS2PDF@,$PS2PDF,;t t
10292 s,@TEXI2DVI@,$TEXI2DVI,;t t
10293 s,@MAKE_TARGETS_IN_VPATH_TRUE@,$MAKE_TARGETS_IN_VPATH_TRUE,;t t
10294 s,@MAKE_TARGETS_IN_VPATH_FALSE@,$MAKE_TARGETS_IN_VPATH_FALSE,;t t
10295 s,@LIBOBJS@,$LIBOBJS,;t t
10296 s,@KRB4@,$KRB4,;t t
10297 s,@includeopt@,$includeopt,;t t
10298 s,@EDITOR@,$EDITOR,;t t
10299 CEOF
10300
10301 _ACEOF
10302
10303   cat >>$CONFIG_STATUS <<\_ACEOF
10304   # Split the substitutions into bite-sized pieces for seds with
10305   # small command number limits, like on Digital OSF/1 and HP-UX.
10306   ac_max_sed_lines=48
10307   ac_sed_frag=1 # Number of current file.
10308   ac_beg=1 # First line for current file.
10309   ac_end=$ac_max_sed_lines # Line after last line for current file.
10310   ac_more_lines=:
10311   ac_sed_cmds=
10312   while $ac_more_lines; do
10313     if test $ac_beg -gt 1; then
10314       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10315     else
10316       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10317     fi
10318     if test ! -s $tmp/subs.frag; then
10319       ac_more_lines=false
10320     else
10321       # The purpose of the label and of the branching condition is to
10322       # speed up the sed processing (if there are no `@' at all, there
10323       # is no need to browse any of the substitutions).
10324       # These are the two extra sed commands mentioned above.
10325       (echo ':t
10326   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10327       if test -z "$ac_sed_cmds"; then
10328         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10329       else
10330         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10331       fi
10332       ac_sed_frag=`expr $ac_sed_frag + 1`
10333       ac_beg=$ac_end
10334       ac_end=`expr $ac_end + $ac_max_sed_lines`
10335     fi
10336   done
10337   if test -z "$ac_sed_cmds"; then
10338     ac_sed_cmds=cat
10339   fi
10340 fi # test -n "$CONFIG_FILES"
10341
10342 _ACEOF
10343 cat >>$CONFIG_STATUS <<\_ACEOF
10344 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10345   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10346   case $ac_file in
10347   - | *:- | *:-:* ) # input from stdin
10348         cat >$tmp/stdin
10349         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10350         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10351   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10352         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10353   * )   ac_file_in=$ac_file.in ;;
10354   esac
10355
10356   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10357   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10358 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10359          X"$ac_file" : 'X\(//\)[^/]' \| \
10360          X"$ac_file" : 'X\(//\)$' \| \
10361          X"$ac_file" : 'X\(/\)' \| \
10362          .     : '\(.\)' 2>/dev/null ||
10363 echo X"$ac_file" |
10364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10365           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10366           /^X\(\/\/\)$/{ s//\1/; q; }
10367           /^X\(\/\).*/{ s//\1/; q; }
10368           s/.*/./; q'`
10369   { case "$ac_dir" in
10370   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10371   *)                      as_incr_dir=.;;
10372 esac
10373 as_dummy="$ac_dir"
10374 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10375   case $as_mkdir_dir in
10376     # Skip DOS drivespec
10377     ?:) as_incr_dir=$as_mkdir_dir ;;
10378     *)
10379       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10380       test -d "$as_incr_dir" ||
10381         mkdir "$as_incr_dir" ||
10382         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10383 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10384    { (exit 1); exit 1; }; }
10385     ;;
10386   esac
10387 done; }
10388
10389   ac_builddir=.
10390
10391 if test "$ac_dir" != .; then
10392   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10393   # A "../" for each directory in $ac_dir_suffix.
10394   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10395 else
10396   ac_dir_suffix= ac_top_builddir=
10397 fi
10398
10399 case $srcdir in
10400   .)  # No --srcdir option.  We are building in place.
10401     ac_srcdir=.
10402     if test -z "$ac_top_builddir"; then
10403        ac_top_srcdir=.
10404     else
10405        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10406     fi ;;
10407   [\\/]* | ?:[\\/]* )  # Absolute path.
10408     ac_srcdir=$srcdir$ac_dir_suffix;
10409     ac_top_srcdir=$srcdir ;;
10410   *) # Relative path.
10411     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10412     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10413 esac
10414 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10415 # absolute.
10416 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10417 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10418 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10419 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10420
10421
10422   case $INSTALL in
10423   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10424   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10425   esac
10426
10427   if test x"$ac_file" != x-; then
10428     { echo "$as_me:$LINENO: creating $ac_file" >&5
10429 echo "$as_me: creating $ac_file" >&6;}
10430     rm -f "$ac_file"
10431   fi
10432   # Let's still pretend it is `configure' which instantiates (i.e., don't
10433   # use $as_me), people would be surprised to read:
10434   #    /* config.h.  Generated by config.status.  */
10435   if test x"$ac_file" = x-; then
10436     configure_input=
10437   else
10438     configure_input="$ac_file.  "
10439   fi
10440   configure_input=$configure_input"Generated from `echo $ac_file_in |
10441                                      sed 's,.*/,,'` by configure."
10442
10443   # First look for the input files in the build tree, otherwise in the
10444   # src tree.
10445   ac_file_inputs=`IFS=:
10446     for f in $ac_file_in; do
10447       case $f in
10448       -) echo $tmp/stdin ;;
10449       [\\/$]*)
10450          # Absolute (can't be DOS-style, as IFS=:)
10451          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10452 echo "$as_me: error: cannot find input file: $f" >&2;}
10453    { (exit 1); exit 1; }; }
10454          echo $f;;
10455       *) # Relative
10456          if test -f "$f"; then
10457            # Build tree
10458            echo $f
10459          elif test -f "$srcdir/$f"; then
10460            # Source tree
10461            echo $srcdir/$f
10462          else
10463            # /dev/null tree
10464            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10465 echo "$as_me: error: cannot find input file: $f" >&2;}
10466    { (exit 1); exit 1; }; }
10467          fi;;
10468       esac
10469     done` || { (exit 1); exit 1; }
10470 _ACEOF
10471 cat >>$CONFIG_STATUS <<_ACEOF
10472   sed "$ac_vpsub
10473 $extrasub
10474 _ACEOF
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10476 :t
10477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10478 s,@configure_input@,$configure_input,;t t
10479 s,@srcdir@,$ac_srcdir,;t t
10480 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10481 s,@top_srcdir@,$ac_top_srcdir,;t t
10482 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10483 s,@builddir@,$ac_builddir,;t t
10484 s,@abs_builddir@,$ac_abs_builddir,;t t
10485 s,@top_builddir@,$ac_top_builddir,;t t
10486 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10487 s,@INSTALL@,$ac_INSTALL,;t t
10488 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10489   rm -f $tmp/stdin
10490   if test x"$ac_file" != x-; then
10491     mv $tmp/out $ac_file
10492   else
10493     cat $tmp/out
10494     rm -f $tmp/out
10495   fi
10496
10497   # Run the commands associated with the file.
10498   case $ac_file in
10499     contrib/check_cvs ) chmod +x contrib/check_cvs ;;
10500     contrib/clmerge ) chmod +x contrib/clmerge ;;
10501     contrib/cln_hist ) chmod +x contrib/cln_hist ;;
10502     contrib/commit_prep ) chmod +x contrib/commit_prep ;;
10503     contrib/cvs_acls ) chmod +x contrib/cvs_acls ;;
10504     contrib/log ) chmod +x contrib/log ;;
10505     contrib/log_accum ) chmod +x contrib/log_accum ;;
10506     contrib/mfpipe ) chmod +x contrib/mfpipe ;;
10507     contrib/pvcs2rcs ) chmod +x contrib/pvcs2rcs ;;
10508     contrib/rcslock ) chmod +x contrib/rcslock ;;
10509     contrib/sccs2rcs ) chmod +x contrib/sccs2rcs ;;
10510     src/cvsbug ) chmod +x src/cvsbug ;;
10511   esac
10512 done
10513 _ACEOF
10514 cat >>$CONFIG_STATUS <<\_ACEOF
10515
10516 #
10517 # CONFIG_HEADER section.
10518 #
10519
10520 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10521 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10522 #
10523 # ac_d sets the value in "#define NAME VALUE" lines.
10524 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10525 ac_dB='[        ].*$,\1#\2'
10526 ac_dC=' '
10527 ac_dD=',;t'
10528 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10529 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10530 ac_uB='$,\1#\2define\3'
10531 ac_uC=' '
10532 ac_uD=',;t'
10533
10534 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10535   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10536   case $ac_file in
10537   - | *:- | *:-:* ) # input from stdin
10538         cat >$tmp/stdin
10539         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10540         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10541   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10542         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10543   * )   ac_file_in=$ac_file.in ;;
10544   esac
10545
10546   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10547 echo "$as_me: creating $ac_file" >&6;}
10548
10549   # First look for the input files in the build tree, otherwise in the
10550   # src tree.
10551   ac_file_inputs=`IFS=:
10552     for f in $ac_file_in; do
10553       case $f in
10554       -) echo $tmp/stdin ;;
10555       [\\/$]*)
10556          # Absolute (can't be DOS-style, as IFS=:)
10557          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10558 echo "$as_me: error: cannot find input file: $f" >&2;}
10559    { (exit 1); exit 1; }; }
10560          echo $f;;
10561       *) # Relative
10562          if test -f "$f"; then
10563            # Build tree
10564            echo $f
10565          elif test -f "$srcdir/$f"; then
10566            # Source tree
10567            echo $srcdir/$f
10568          else
10569            # /dev/null tree
10570            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10571 echo "$as_me: error: cannot find input file: $f" >&2;}
10572    { (exit 1); exit 1; }; }
10573          fi;;
10574       esac
10575     done` || { (exit 1); exit 1; }
10576   # Remove the trailing spaces.
10577   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
10578
10579 _ACEOF
10580
10581 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10582 # `conftest.undefs', that substitutes the proper values into
10583 # config.h.in to produce config.h.  The first handles `#define'
10584 # templates, and the second `#undef' templates.
10585 # And first: Protect against being on the right side of a sed subst in
10586 # config.status.  Protect against being in an unquoted here document
10587 # in config.status.
10588 rm -f conftest.defines conftest.undefs
10589 # Using a here document instead of a string reduces the quoting nightmare.
10590 # Putting comments in sed scripts is not portable.
10591 #
10592 # `end' is used to avoid that the second main sed command (meant for
10593 # 0-ary CPP macros) applies to n-ary macro definitions.
10594 # See the Autoconf documentation for `clear'.
10595 cat >confdef2sed.sed <<\_ACEOF
10596 s/[\\&,]/\\&/g
10597 s,[\\$`],\\&,g
10598 t clear
10599 : clear
10600 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10601 t end
10602 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10603 : end
10604 _ACEOF
10605 # If some macros were called several times there might be several times
10606 # the same #defines, which is useless.  Nevertheless, we may not want to
10607 # sort them, since we want the *last* AC-DEFINE to be honored.
10608 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10609 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10610 rm -f confdef2sed.sed
10611
10612 # This sed command replaces #undef with comments.  This is necessary, for
10613 # example, in the case of _POSIX_SOURCE, which is predefined and required
10614 # on some systems where configure will not decide to define it.
10615 cat >>conftest.undefs <<\_ACEOF
10616 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10617 _ACEOF
10618
10619 # Break up conftest.defines because some shells have a limit on the size
10620 # of here documents, and old seds have small limits too (100 cmds).
10621 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10622 echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10623 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10624 echo '  :' >>$CONFIG_STATUS
10625 rm -f conftest.tail
10626 while grep . conftest.defines >/dev/null
10627 do
10628   # Write a limited-size here document to $tmp/defines.sed.
10629   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10630   # Speed up: don't consider the non `#define' lines.
10631   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
10632   # Work around the forget-to-reset-the-flag bug.
10633   echo 't clr' >>$CONFIG_STATUS
10634   echo ': clr' >>$CONFIG_STATUS
10635   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10636   echo 'CEOF
10637   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10638   rm -f $tmp/in
10639   mv $tmp/out $tmp/in
10640 ' >>$CONFIG_STATUS
10641   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10642   rm -f conftest.defines
10643   mv conftest.tail conftest.defines
10644 done
10645 rm -f conftest.defines
10646 echo '  fi # egrep' >>$CONFIG_STATUS
10647 echo >>$CONFIG_STATUS
10648
10649 # Break up conftest.undefs because some shells have a limit on the size
10650 # of here documents, and old seds have small limits too (100 cmds).
10651 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10652 rm -f conftest.tail
10653 while grep . conftest.undefs >/dev/null
10654 do
10655   # Write a limited-size here document to $tmp/undefs.sed.
10656   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10657   # Speed up: don't consider the non `#undef'
10658   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10659   # Work around the forget-to-reset-the-flag bug.
10660   echo 't clr' >>$CONFIG_STATUS
10661   echo ': clr' >>$CONFIG_STATUS
10662   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10663   echo 'CEOF
10664   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10665   rm -f $tmp/in
10666   mv $tmp/out $tmp/in
10667 ' >>$CONFIG_STATUS
10668   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10669   rm -f conftest.undefs
10670   mv conftest.tail conftest.undefs
10671 done
10672 rm -f conftest.undefs
10673
10674 cat >>$CONFIG_STATUS <<\_ACEOF
10675   # Let's still pretend it is `configure' which instantiates (i.e., don't
10676   # use $as_me), people would be surprised to read:
10677   #    /* config.h.  Generated by config.status.  */
10678   if test x"$ac_file" = x-; then
10679     echo "/* Generated by configure.  */" >$tmp/config.h
10680   else
10681     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10682   fi
10683   cat $tmp/in >>$tmp/config.h
10684   rm -f $tmp/in
10685   if test x"$ac_file" != x-; then
10686     if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10687       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10688 echo "$as_me: $ac_file is unchanged" >&6;}
10689     else
10690       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10691 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10692          X"$ac_file" : 'X\(//\)[^/]' \| \
10693          X"$ac_file" : 'X\(//\)$' \| \
10694          X"$ac_file" : 'X\(/\)' \| \
10695          .     : '\(.\)' 2>/dev/null ||
10696 echo X"$ac_file" |
10697     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10698           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10699           /^X\(\/\/\)$/{ s//\1/; q; }
10700           /^X\(\/\).*/{ s//\1/; q; }
10701           s/.*/./; q'`
10702       { case "$ac_dir" in
10703   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10704   *)                      as_incr_dir=.;;
10705 esac
10706 as_dummy="$ac_dir"
10707 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10708   case $as_mkdir_dir in
10709     # Skip DOS drivespec
10710     ?:) as_incr_dir=$as_mkdir_dir ;;
10711     *)
10712       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10713       test -d "$as_incr_dir" ||
10714         mkdir "$as_incr_dir" ||
10715         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10716 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10717    { (exit 1); exit 1; }; }
10718     ;;
10719   esac
10720 done; }
10721
10722       rm -f $ac_file
10723       mv $tmp/config.h $ac_file
10724     fi
10725   else
10726     cat $tmp/config.h
10727     rm -f $tmp/config.h
10728   fi
10729   # Run the commands associated with the file.
10730   case $ac_file in
10731     config.h ) # update the timestamp
10732 echo 'timestamp for config.h' >"./stamp-h1"
10733  ;;
10734   esac
10735 done
10736 _ACEOF
10737 cat >>$CONFIG_STATUS <<\_ACEOF
10738
10739 #
10740 # CONFIG_LINKS section.
10741 #
10742
10743 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
10744   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10745   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10746
10747   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
10748 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
10749
10750   if test ! -r $srcdir/$ac_source; then
10751     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
10752 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
10753    { (exit 1); exit 1; }; }
10754   fi
10755   rm -f $ac_dest
10756
10757   # Make relative symlinks.
10758   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
10759 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10760          X"$ac_dest" : 'X\(//\)[^/]' \| \
10761          X"$ac_dest" : 'X\(//\)$' \| \
10762          X"$ac_dest" : 'X\(/\)' \| \
10763          .     : '\(.\)' 2>/dev/null ||
10764 echo X"$ac_dest" |
10765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10767           /^X\(\/\/\)$/{ s//\1/; q; }
10768           /^X\(\/\).*/{ s//\1/; q; }
10769           s/.*/./; q'`
10770   { case "$ac_dest_dir" in
10771   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10772   *)                      as_incr_dir=.;;
10773 esac
10774 as_dummy="$ac_dest_dir"
10775 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10776   case $as_mkdir_dir in
10777     # Skip DOS drivespec
10778     ?:) as_incr_dir=$as_mkdir_dir ;;
10779     *)
10780       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10781       test -d "$as_incr_dir" ||
10782         mkdir "$as_incr_dir" ||
10783         { { echo "$as_me:$LINENO: error: cannot create \"$ac_dest_dir\"" >&5
10784 echo "$as_me: error: cannot create \"$ac_dest_dir\"" >&2;}
10785    { (exit 1); exit 1; }; }
10786     ;;
10787   esac
10788 done; }
10789
10790   ac_builddir=.
10791
10792 if test "$ac_dest_dir" != .; then
10793   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
10794   # A "../" for each directory in $ac_dir_suffix.
10795   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10796 else
10797   ac_dir_suffix= ac_top_builddir=
10798 fi
10799
10800 case $srcdir in
10801   .)  # No --srcdir option.  We are building in place.
10802     ac_srcdir=.
10803     if test -z "$ac_top_builddir"; then
10804        ac_top_srcdir=.
10805     else
10806        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10807     fi ;;
10808   [\\/]* | ?:[\\/]* )  # Absolute path.
10809     ac_srcdir=$srcdir$ac_dir_suffix;
10810     ac_top_srcdir=$srcdir ;;
10811   *) # Relative path.
10812     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10813     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10814 esac
10815 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
10816 # absolute.
10817 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
10818 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd $ac_top_builddir && pwd`
10819 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
10820 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
10821
10822
10823   case $srcdir in
10824   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
10825       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
10826   esac
10827
10828   # Make a symlink if possible; otherwise try a hard link.
10829   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
10830     ln $srcdir/$ac_source $ac_dest ||
10831     { { echo "$as_me:$LINENO: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
10832 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
10833    { (exit 1); exit 1; }; }
10834 done
10835 _ACEOF
10836 cat >>$CONFIG_STATUS <<\_ACEOF
10837
10838 #
10839 # CONFIG_COMMANDS section.
10840 #
10841 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10842   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10843   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10844   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10845 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10846          X"$ac_dest" : 'X\(//\)[^/]' \| \
10847          X"$ac_dest" : 'X\(//\)$' \| \
10848          X"$ac_dest" : 'X\(/\)' \| \
10849          .     : '\(.\)' 2>/dev/null ||
10850 echo X"$ac_dest" |
10851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10852           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10853           /^X\(\/\/\)$/{ s//\1/; q; }
10854           /^X\(\/\).*/{ s//\1/; q; }
10855           s/.*/./; q'`
10856   ac_builddir=.
10857
10858 if test "$ac_dir" != .; then
10859   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10860   # A "../" for each directory in $ac_dir_suffix.
10861   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10862 else
10863   ac_dir_suffix= ac_top_builddir=
10864 fi
10865
10866 case $srcdir in
10867   .)  # No --srcdir option.  We are building in place.
10868     ac_srcdir=.
10869     if test -z "$ac_top_builddir"; then
10870        ac_top_srcdir=.
10871     else
10872        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10873     fi ;;
10874   [\\/]* | ?:[\\/]* )  # Absolute path.
10875     ac_srcdir=$srcdir$ac_dir_suffix;
10876     ac_top_srcdir=$srcdir ;;
10877   *) # Relative path.
10878     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10879     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10880 esac
10881 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10882 # absolute.
10883 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10884 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10885 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10886 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10887
10888
10889   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10890 echo "$as_me: executing $ac_dest commands" >&6;}
10891   case $ac_dest in
10892     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10893   # Strip MF so we end up with the name of the file.
10894   mf=`echo "$mf" | sed -e 's/:.*$//'`
10895   # Check whether this is an Automake generated Makefile or not.
10896   # We used to match only the files named `Makefile.in', but
10897   # some people rename them; so instead we look at the file content.
10898   # Grep'ing the first line is not enough: some people post-process
10899   # each Makefile.in and add a new line on top of each file to say so.
10900   # So let's grep whole file.
10901   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10902     dirpart=`(dirname "$mf") 2>/dev/null ||
10903 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10904          X"$mf" : 'X\(//\)[^/]' \| \
10905          X"$mf" : 'X\(//\)$' \| \
10906          X"$mf" : 'X\(/\)' \| \
10907          .     : '\(.\)' 2>/dev/null ||
10908 echo X"$mf" |
10909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10910           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10911           /^X\(\/\/\)$/{ s//\1/; q; }
10912           /^X\(\/\).*/{ s//\1/; q; }
10913           s/.*/./; q'`
10914   else
10915     continue
10916   fi
10917   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10918   # Extract the definition of DEP_FILES from the Makefile without
10919   # running `make'.
10920   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10921   test -z "$DEPDIR" && continue
10922   # When using ansi2knr, U may be empty or an underscore; expand it
10923   U=`sed -n -e '/^U = / s///p' < "$mf"`
10924   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10925   # We invoke sed twice because it is the simplest approach to
10926   # changing $(DEPDIR) to its actual value in the expansion.
10927   for file in `sed -n -e '
10928     /^DEP_FILES = .*\\\\$/ {
10929       s/^DEP_FILES = //
10930       :loop
10931         s/\\\\$//
10932         p
10933         n
10934         /\\\\$/ b loop
10935       p
10936     }
10937     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10938        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10939     # Make sure the directory exists.
10940     test -f "$dirpart/$file" && continue
10941     fdir=`(dirname "$file") 2>/dev/null ||
10942 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10943          X"$file" : 'X\(//\)[^/]' \| \
10944          X"$file" : 'X\(//\)$' \| \
10945          X"$file" : 'X\(/\)' \| \
10946          .     : '\(.\)' 2>/dev/null ||
10947 echo X"$file" |
10948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10950           /^X\(\/\/\)$/{ s//\1/; q; }
10951           /^X\(\/\).*/{ s//\1/; q; }
10952           s/.*/./; q'`
10953     { case $dirpart/$fdir in
10954   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10955   *)                      as_incr_dir=.;;
10956 esac
10957 as_dummy=$dirpart/$fdir
10958 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10959   case $as_mkdir_dir in
10960     # Skip DOS drivespec
10961     ?:) as_incr_dir=$as_mkdir_dir ;;
10962     *)
10963       as_incr_dir=$as_incr_dir/$as_mkdir_dir
10964       test -d "$as_incr_dir" ||
10965         mkdir "$as_incr_dir" ||
10966         { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
10967 echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
10968    { (exit 1); exit 1; }; }
10969     ;;
10970   esac
10971 done; }
10972
10973     # echo "creating $dirpart/$file"
10974     echo '# dummy' > "$dirpart/$file"
10975   done
10976 done
10977  ;;
10978   esac
10979 done
10980 _ACEOF
10981
10982 cat >>$CONFIG_STATUS <<\_ACEOF
10983
10984 { (exit 0); exit 0; }
10985 _ACEOF
10986 chmod +x $CONFIG_STATUS
10987 ac_clean_files=$ac_clean_files_save
10988
10989
10990 # configure is writing to config.log, and then calls config.status.
10991 # config.status does its own redirection, appending to config.log.
10992 # Unfortunately, on DOS this fails, as config.log is still kept open
10993 # by configure, so config.status won't be able to write to it; its
10994 # output is simply discarded.  So we exec the FD to /dev/null,
10995 # effectively closing config.log, so it can be properly (re)opened and
10996 # appended to by config.status.  When coming back to configure, we
10997 # need to make the FD available again.
10998 if test "$no_create" != yes; then
10999   ac_cs_success=:
11000   exec 5>/dev/null
11001   $SHELL $CONFIG_STATUS || ac_cs_success=false
11002   exec 5>>config.log
11003   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11004   # would make configure fail if this is the last instruction.
11005   $ac_cs_success || { (exit 1); exit 1; }
11006 fi
11007