configure revision 102644
1#! /bin/sh
2# From configure.in Revision: 1.320 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.53 for Heimdal 0.4f.
5#
6# Report bugs to <heimdal-bugs@pdc.kth.se>.
7#
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12
13# Find the correct PATH separator.  Usually this is `:', but
14# DJGPP uses `;' like DOS.
15if test "X${PATH_SEPARATOR+set}" != Xset; then
16  UNAME=${UNAME-`uname 2>/dev/null`}
17  case X$UNAME in
18    *-DOS) lt_cv_sys_path_separator=';' ;;
19    *)     lt_cv_sys_path_separator=':' ;;
20  esac
21  PATH_SEPARATOR=$lt_cv_sys_path_separator
22fi
23
24
25# Check that we are running under the correct shell.
26SHELL=${CONFIG_SHELL-/bin/sh}
27
28case X$ECHO in
29X*--fallback-echo)
30  # Remove one level of quotation (which was required for Make).
31  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32  ;;
33esac
34
35echo=${ECHO-echo}
36if test "X$1" = X--no-reexec; then
37  # Discard the --no-reexec flag, and continue.
38  shift
39elif test "X$1" = X--fallback-echo; then
40  # Avoid inline document here, it may be left over
41  :
42elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
43  # Yippee, $echo works!
44  :
45else
46  # Restart under the correct shell.
47  exec $SHELL "$0" --no-reexec ${1+"$@"}
48fi
49
50if test "X$1" = X--fallback-echo; then
51  # used as fallback echo
52  shift
53  cat <<EOF
54
55EOF
56  exit 0
57fi
58
59# The HP-UX ksh and POSIX shell print the target directory to stdout
60# if CDPATH is set.
61if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62
63if test -z "$ECHO"; then
64if test "X${echo_test_string+set}" != Xset; then
65# find a string as large as possible, as long as the shell can cope with it
66  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
67    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
68    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
69       echo_test_string="`eval $cmd`" &&
70       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
71    then
72      break
73    fi
74  done
75fi
76
77if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
78   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
79   test "X$echo_testing_string" = "X$echo_test_string"; then
80  :
81else
82  # The Solaris, AIX, and Digital Unix default echo programs unquote
83  # backslashes.  This makes it impossible to quote backslashes using
84  #   echo "$something" | sed 's/\\/\\\\/g'
85  #
86  # So, first we look for a working echo in the user's PATH.
87
88  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
89  for dir in $PATH /usr/ucb; do
90    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
91       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
92       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
93       test "X$echo_testing_string" = "X$echo_test_string"; then
94      echo="$dir/echo"
95      break
96    fi
97  done
98  IFS="$save_ifs"
99
100  if test "X$echo" = Xecho; then
101    # We didn't find a better echo, so look for alternatives.
102    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
103       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
104       test "X$echo_testing_string" = "X$echo_test_string"; then
105      # This shell has a builtin print -r that does the trick.
106      echo='print -r'
107    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
108	 test "X$CONFIG_SHELL" != X/bin/ksh; then
109      # If we have ksh, try running configure again with it.
110      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
111      export ORIGINAL_CONFIG_SHELL
112      CONFIG_SHELL=/bin/ksh
113      export CONFIG_SHELL
114      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
115    else
116      # Try using printf.
117      echo='printf %s\n'
118      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
119	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
120	 test "X$echo_testing_string" = "X$echo_test_string"; then
121	# Cool, printf works
122	:
123      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
124	   test "X$echo_testing_string" = 'X\t' &&
125	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
126	   test "X$echo_testing_string" = "X$echo_test_string"; then
127	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128	export CONFIG_SHELL
129	SHELL="$CONFIG_SHELL"
130	export SHELL
131	echo="$CONFIG_SHELL $0 --fallback-echo"
132      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133	   test "X$echo_testing_string" = 'X\t' &&
134	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135	   test "X$echo_testing_string" = "X$echo_test_string"; then
136	echo="$CONFIG_SHELL $0 --fallback-echo"
137      else
138	# maybe with a smaller string...
139	prev=:
140
141	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
142	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
143	  then
144	    break
145	  fi
146	  prev="$cmd"
147	done
148
149	if test "$prev" != 'sed 50q "$0"'; then
150	  echo_test_string=`eval $prev`
151	  export echo_test_string
152	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153	else
154	  # Oops.  We lost completely, so just stick with echo.
155	  echo=echo
156	fi
157      fi
158    fi
159  fi
160fi
161fi
162
163# Copy echo and quote the copy suitably for passing to libtool from
164# the Makefile, instead of quoting the original, which is used later.
165ECHO=$echo
166if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
167   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
168fi
169
170
171
172if expr a : '\(a\)' >/dev/null 2>&1; then
173  as_expr=expr
174else
175  as_expr=false
176fi
177
178
179## --------------------- ##
180## M4sh Initialization.  ##
181## --------------------- ##
182
183# Be Bourne compatible
184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
185  emulate sh
186  NULLCMD=:
187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
188  set -o posix
189fi
190
191# NLS nuisances.
192# Support unset when possible.
193if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
194  as_unset=unset
195else
196  as_unset=false
197fi
198
199(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
200    { $as_unset LANG || test "${LANG+set}" != set; } ||
201      { LANG=C; export LANG; }
202(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
203    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
204      { LC_ALL=C; export LC_ALL; }
205(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
206    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
207      { LC_TIME=C; export LC_TIME; }
208(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
209    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
210      { LC_CTYPE=C; export LC_CTYPE; }
211(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
212    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
213      { LANGUAGE=C; export LANGUAGE; }
214(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
215    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
216      { LC_COLLATE=C; export LC_COLLATE; }
217(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
218    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
219      { LC_NUMERIC=C; export LC_NUMERIC; }
220(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
221    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
222      { LC_MESSAGES=C; export LC_MESSAGES; }
223
224
225# Name of the executable.
226as_me=`(basename "$0") 2>/dev/null ||
227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
228	 X"$0" : 'X\(//\)$' \| \
229	 X"$0" : 'X\(/\)$' \| \
230	 .     : '\(.\)' 2>/dev/null ||
231echo X/"$0" |
232    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
233  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
234  	  /^X\/\(\/\).*/{ s//\1/; q; }
235  	  s/.*/./; q'`
236
237# PATH needs CR, and LINENO needs CR and PATH.
238# Avoid depending upon Character Ranges.
239as_cr_letters='abcdefghijklmnopqrstuvwxyz'
240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
241as_cr_Letters=$as_cr_letters$as_cr_LETTERS
242as_cr_digits='0123456789'
243as_cr_alnum=$as_cr_Letters$as_cr_digits
244
245# The user is always right.
246if test "${PATH_SEPARATOR+set}" != set; then
247  echo "#! /bin/sh" >conftest.sh
248  echo  "exit 0"   >>conftest.sh
249  chmod +x conftest.sh
250  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
251    PATH_SEPARATOR=';'
252  else
253    PATH_SEPARATOR=:
254  fi
255  rm -f conftest.sh
256fi
257
258
259  as_lineno_1=$LINENO
260  as_lineno_2=$LINENO
261  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
262  test "x$as_lineno_1" != "x$as_lineno_2" &&
263  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
264  # Find who we are.  Look in the path if we contain no path at all
265  # relative or not.
266  case $0 in
267    *[\\/]* ) as_myself=$0 ;;
268    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
269for as_dir in $PATH
270do
271  IFS=$as_save_IFS
272  test -z "$as_dir" && as_dir=.
273  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
274done
275
276       ;;
277  esac
278  # We did not find ourselves, most probably we were run as `sh COMMAND'
279  # in which case we are not to be found in the path.
280  if test "x$as_myself" = x; then
281    as_myself=$0
282  fi
283  if test ! -f "$as_myself"; then
284    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
285   { (exit 1); exit 1; }; }
286  fi
287  case $CONFIG_SHELL in
288  '')
289    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
290for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
291do
292  IFS=$as_save_IFS
293  test -z "$as_dir" && as_dir=.
294  for as_base in sh bash ksh sh5; do
295	 case $as_dir in
296	 /*)
297	   if ("$as_dir/$as_base" -c '
298  as_lineno_1=$LINENO
299  as_lineno_2=$LINENO
300  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
301  test "x$as_lineno_1" != "x$as_lineno_2" &&
302  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
303	     CONFIG_SHELL=$as_dir/$as_base
304	     export CONFIG_SHELL
305	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
306	   fi;;
307	 esac
308       done
309done
310;;
311  esac
312
313  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
314  # uniformly replaced by the line number.  The first 'sed' inserts a
315  # line-number line before each line; the second 'sed' does the real
316  # work.  The second script uses 'N' to pair each line-number line
317  # with the numbered line, and appends trailing '-' during
318  # substitution so that $LINENO is not a special case at line end.
319  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
320  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
321  sed '=' <$as_myself |
322    sed '
323      N
324      s,$,-,
325      : loop
326      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
327      t loop
328      s,-$,,
329      s,^['$as_cr_digits']*\n,,
330    ' >$as_me.lineno &&
331  chmod +x $as_me.lineno ||
332    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
333   { (exit 1); exit 1; }; }
334
335  # Don't try to exec as it changes $[0], causing all sort of problems
336  # (the dirname of $[0] is not the place where we might find the
337  # original and so on.  Autoconf is especially sensible to this).
338  . ./$as_me.lineno
339  # Exit status is that of the last command.
340  exit
341}
342
343
344case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
345  *c*,-n*) ECHO_N= ECHO_C='
346' ECHO_T='	' ;;
347  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
348  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
349esac
350
351if expr a : '\(a\)' >/dev/null 2>&1; then
352  as_expr=expr
353else
354  as_expr=false
355fi
356
357rm -f conf$$ conf$$.exe conf$$.file
358echo >conf$$.file
359if ln -s conf$$.file conf$$ 2>/dev/null; then
360  # We could just check for DJGPP; but this test a) works b) is more generic
361  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
362  if test -f conf$$.exe; then
363    # Don't use ln at all; we don't have any links
364    as_ln_s='cp -p'
365  else
366    as_ln_s='ln -s'
367  fi
368elif ln conf$$.file conf$$ 2>/dev/null; then
369  as_ln_s=ln
370else
371  as_ln_s='cp -p'
372fi
373rm -f conf$$ conf$$.exe conf$$.file
374
375as_executable_p="test -f"
376
377# Sed expression to map a string onto a valid CPP name.
378as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
379
380# Sed expression to map a string onto a valid variable name.
381as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
382
383
384# IFS
385# We need space, tab and new line, in precisely that order.
386as_nl='
387'
388IFS=" 	$as_nl"
389
390# CDPATH.
391$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
392
393
394# Name of the host.
395# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
396# so uname gets run too.
397ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
398
399exec 6>&1
400
401#
402# Initializations.
403#
404ac_default_prefix=/usr/local
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete.  It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
416# Identity of this package.
417PACKAGE_NAME='Heimdal'
418PACKAGE_TARNAME='heimdal'
419PACKAGE_VERSION='0.4f'
420PACKAGE_STRING='Heimdal 0.4f'
421PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
422
423ac_default_prefix=/usr/heimdal
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438#  include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443#  include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454#  include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
461
462# Initialize some variables set by options.
463ac_init_help=
464ac_init_version=false
465# The variables have the same names as the options, with
466# dashes changed to underlines.
467cache_file=/dev/null
468exec_prefix=NONE
469no_create=
470no_recursion=
471prefix=NONE
472program_prefix=NONE
473program_suffix=NONE
474program_transform_name=s,x,x,
475silent=
476site=
477srcdir=
478verbose=
479x_includes=NONE
480x_libraries=NONE
481
482# Installation directory options.
483# These are left unexpanded so users can "make install exec_prefix=/foo"
484# and all the variables that are supposed to be based on exec_prefix
485# by default will actually change.
486# Use braces instead of parens because sh, perl, etc. also accept them.
487bindir='${exec_prefix}/bin'
488sbindir='${exec_prefix}/sbin'
489libexecdir='${exec_prefix}/libexec'
490datadir='${prefix}/share'
491sysconfdir='${prefix}/etc'
492sharedstatedir='${prefix}/com'
493localstatedir='${prefix}/var'
494libdir='${exec_prefix}/lib'
495includedir='${prefix}/include'
496oldincludedir='/usr/include'
497infodir='${prefix}/info'
498mandir='${prefix}/man'
499
500ac_prev=
501for ac_option
502do
503  # If the previous option needs an argument, assign it.
504  if test -n "$ac_prev"; then
505    eval "$ac_prev=\$ac_option"
506    ac_prev=
507    continue
508  fi
509
510  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511
512  # Accept the important Cygnus configure options, so we can diagnose typos.
513
514  case $ac_option in
515
516  -bindir | --bindir | --bindi | --bind | --bin | --bi)
517    ac_prev=bindir ;;
518  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
519    bindir=$ac_optarg ;;
520
521  -build | --build | --buil | --bui | --bu)
522    ac_prev=build_alias ;;
523  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
524    build_alias=$ac_optarg ;;
525
526  -cache-file | --cache-file | --cache-fil | --cache-fi \
527  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
528    ac_prev=cache_file ;;
529  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
530  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
531    cache_file=$ac_optarg ;;
532
533  --config-cache | -C)
534    cache_file=config.cache ;;
535
536  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
537    ac_prev=datadir ;;
538  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
539  | --da=*)
540    datadir=$ac_optarg ;;
541
542  -disable-* | --disable-*)
543    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
544    # Reject names that are not valid shell variable names.
545    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
546      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
547   { (exit 1); exit 1; }; }
548    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
549    eval "enable_$ac_feature=no" ;;
550
551  -enable-* | --enable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    case $ac_option in
559      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
560      *) ac_optarg=yes ;;
561    esac
562    eval "enable_$ac_feature='$ac_optarg'" ;;
563
564  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
565  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
566  | --exec | --exe | --ex)
567    ac_prev=exec_prefix ;;
568  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
569  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
570  | --exec=* | --exe=* | --ex=*)
571    exec_prefix=$ac_optarg ;;
572
573  -gas | --gas | --ga | --g)
574    # Obsolete; use --with-gas.
575    with_gas=yes ;;
576
577  -help | --help | --hel | --he | -h)
578    ac_init_help=long ;;
579  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
580    ac_init_help=recursive ;;
581  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
582    ac_init_help=short ;;
583
584  -host | --host | --hos | --ho)
585    ac_prev=host_alias ;;
586  -host=* | --host=* | --hos=* | --ho=*)
587    host_alias=$ac_optarg ;;
588
589  -includedir | --includedir | --includedi | --included | --include \
590  | --includ | --inclu | --incl | --inc)
591    ac_prev=includedir ;;
592  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
593  | --includ=* | --inclu=* | --incl=* | --inc=*)
594    includedir=$ac_optarg ;;
595
596  -infodir | --infodir | --infodi | --infod | --info | --inf)
597    ac_prev=infodir ;;
598  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
599    infodir=$ac_optarg ;;
600
601  -libdir | --libdir | --libdi | --libd)
602    ac_prev=libdir ;;
603  -libdir=* | --libdir=* | --libdi=* | --libd=*)
604    libdir=$ac_optarg ;;
605
606  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
607  | --libexe | --libex | --libe)
608    ac_prev=libexecdir ;;
609  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
610  | --libexe=* | --libex=* | --libe=*)
611    libexecdir=$ac_optarg ;;
612
613  -localstatedir | --localstatedir | --localstatedi | --localstated \
614  | --localstate | --localstat | --localsta | --localst \
615  | --locals | --local | --loca | --loc | --lo)
616    ac_prev=localstatedir ;;
617  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
618  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
619  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
620    localstatedir=$ac_optarg ;;
621
622  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
623    ac_prev=mandir ;;
624  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
625    mandir=$ac_optarg ;;
626
627  -nfp | --nfp | --nf)
628    # Obsolete; use --without-fp.
629    with_fp=no ;;
630
631  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
632  | --no-cr | --no-c | -n)
633    no_create=yes ;;
634
635  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
636  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
637    no_recursion=yes ;;
638
639  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
640  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
641  | --oldin | --oldi | --old | --ol | --o)
642    ac_prev=oldincludedir ;;
643  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
644  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
645  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
646    oldincludedir=$ac_optarg ;;
647
648  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
649    ac_prev=prefix ;;
650  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
651    prefix=$ac_optarg ;;
652
653  -program-prefix | --program-prefix | --program-prefi | --program-pref \
654  | --program-pre | --program-pr | --program-p)
655    ac_prev=program_prefix ;;
656  -program-prefix=* | --program-prefix=* | --program-prefi=* \
657  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
658    program_prefix=$ac_optarg ;;
659
660  -program-suffix | --program-suffix | --program-suffi | --program-suff \
661  | --program-suf | --program-su | --program-s)
662    ac_prev=program_suffix ;;
663  -program-suffix=* | --program-suffix=* | --program-suffi=* \
664  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
665    program_suffix=$ac_optarg ;;
666
667  -program-transform-name | --program-transform-name \
668  | --program-transform-nam | --program-transform-na \
669  | --program-transform-n | --program-transform- \
670  | --program-transform | --program-transfor \
671  | --program-transfo | --program-transf \
672  | --program-trans | --program-tran \
673  | --progr-tra | --program-tr | --program-t)
674    ac_prev=program_transform_name ;;
675  -program-transform-name=* | --program-transform-name=* \
676  | --program-transform-nam=* | --program-transform-na=* \
677  | --program-transform-n=* | --program-transform-=* \
678  | --program-transform=* | --program-transfor=* \
679  | --program-transfo=* | --program-transf=* \
680  | --program-trans=* | --program-tran=* \
681  | --progr-tra=* | --program-tr=* | --program-t=*)
682    program_transform_name=$ac_optarg ;;
683
684  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
685  | -silent | --silent | --silen | --sile | --sil)
686    silent=yes ;;
687
688  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
689    ac_prev=sbindir ;;
690  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
691  | --sbi=* | --sb=*)
692    sbindir=$ac_optarg ;;
693
694  -sharedstatedir | --sharedstatedir | --sharedstatedi \
695  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
696  | --sharedst | --shareds | --shared | --share | --shar \
697  | --sha | --sh)
698    ac_prev=sharedstatedir ;;
699  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
700  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
701  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
702  | --sha=* | --sh=*)
703    sharedstatedir=$ac_optarg ;;
704
705  -site | --site | --sit)
706    ac_prev=site ;;
707  -site=* | --site=* | --sit=*)
708    site=$ac_optarg ;;
709
710  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
711    ac_prev=srcdir ;;
712  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
713    srcdir=$ac_optarg ;;
714
715  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
716  | --syscon | --sysco | --sysc | --sys | --sy)
717    ac_prev=sysconfdir ;;
718  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
719  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
720    sysconfdir=$ac_optarg ;;
721
722  -target | --target | --targe | --targ | --tar | --ta | --t)
723    ac_prev=target_alias ;;
724  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
725    target_alias=$ac_optarg ;;
726
727  -v | -verbose | --verbose | --verbos | --verbo | --verb)
728    verbose=yes ;;
729
730  -version | --version | --versio | --versi | --vers | -V)
731    ac_init_version=: ;;
732
733  -with-* | --with-*)
734    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
735    # Reject names that are not valid shell variable names.
736    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
737      { echo "$as_me: error: invalid package name: $ac_package" >&2
738   { (exit 1); exit 1; }; }
739    ac_package=`echo $ac_package| sed 's/-/_/g'`
740    case $ac_option in
741      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
742      *) ac_optarg=yes ;;
743    esac
744    eval "with_$ac_package='$ac_optarg'" ;;
745
746  -without-* | --without-*)
747    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
748    # Reject names that are not valid shell variable names.
749    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
750      { echo "$as_me: error: invalid package name: $ac_package" >&2
751   { (exit 1); exit 1; }; }
752    ac_package=`echo $ac_package | sed 's/-/_/g'`
753    eval "with_$ac_package=no" ;;
754
755  --x)
756    # Obsolete; use --with-x.
757    with_x=yes ;;
758
759  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
760  | --x-incl | --x-inc | --x-in | --x-i)
761    ac_prev=x_includes ;;
762  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
763  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
764    x_includes=$ac_optarg ;;
765
766  -x-libraries | --x-libraries | --x-librarie | --x-librari \
767  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
768    ac_prev=x_libraries ;;
769  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
770  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
771    x_libraries=$ac_optarg ;;
772
773  -*) { echo "$as_me: error: unrecognized option: $ac_option
774Try \`$0 --help' for more information." >&2
775   { (exit 1); exit 1; }; }
776    ;;
777
778  *=*)
779    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
780    # Reject names that are not valid shell variable names.
781    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
782      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
783   { (exit 1); exit 1; }; }
784    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
785    eval "$ac_envvar='$ac_optarg'"
786    export $ac_envvar ;;
787
788  *)
789    # FIXME: should be removed in autoconf 3.0.
790    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
791    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
792      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
793    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
794    ;;
795
796  esac
797done
798
799if test -n "$ac_prev"; then
800  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
801  { echo "$as_me: error: missing argument to $ac_option" >&2
802   { (exit 1); exit 1; }; }
803fi
804
805# Be sure to have absolute paths.
806for ac_var in exec_prefix prefix
807do
808  eval ac_val=$`echo $ac_var`
809  case $ac_val in
810    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
811    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
812   { (exit 1); exit 1; }; };;
813  esac
814done
815
816# Be sure to have absolute paths.
817for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
818              localstatedir libdir includedir oldincludedir infodir mandir
819do
820  eval ac_val=$`echo $ac_var`
821  case $ac_val in
822    [\\/$]* | ?:[\\/]* ) ;;
823    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824   { (exit 1); exit 1; }; };;
825  esac
826done
827
828# There might be people who depend on the old broken behavior: `$host'
829# used to hold the argument of --host etc.
830# FIXME: To remove some day.
831build=$build_alias
832host=$host_alias
833target=$target_alias
834
835# FIXME: To remove some day.
836if test "x$host_alias" != x; then
837  if test "x$build_alias" = x; then
838    cross_compiling=maybe
839    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
840    If a cross compiler is detected then cross compile mode will be used." >&2
841  elif test "x$build_alias" != "x$host_alias"; then
842    cross_compiling=yes
843  fi
844fi
845
846ac_tool_prefix=
847test -n "$host_alias" && ac_tool_prefix=$host_alias-
848
849test "$silent" = yes && exec 6>/dev/null
850
851
852# Find the source files, if location was not specified.
853if test -z "$srcdir"; then
854  ac_srcdir_defaulted=yes
855  # Try the directory containing this script, then its parent.
856  ac_confdir=`(dirname "$0") 2>/dev/null ||
857$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
858         X"$0" : 'X\(//\)[^/]' \| \
859         X"$0" : 'X\(//\)$' \| \
860         X"$0" : 'X\(/\)' \| \
861         .     : '\(.\)' 2>/dev/null ||
862echo X"$0" |
863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
864  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
865  	  /^X\(\/\/\)$/{ s//\1/; q; }
866  	  /^X\(\/\).*/{ s//\1/; q; }
867  	  s/.*/./; q'`
868  srcdir=$ac_confdir
869  if test ! -r $srcdir/$ac_unique_file; then
870    srcdir=..
871  fi
872else
873  ac_srcdir_defaulted=no
874fi
875if test ! -r $srcdir/$ac_unique_file; then
876  if test "$ac_srcdir_defaulted" = yes; then
877    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
878   { (exit 1); exit 1; }; }
879  else
880    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
881   { (exit 1); exit 1; }; }
882  fi
883fi
884srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
885ac_env_build_alias_set=${build_alias+set}
886ac_env_build_alias_value=$build_alias
887ac_cv_env_build_alias_set=${build_alias+set}
888ac_cv_env_build_alias_value=$build_alias
889ac_env_host_alias_set=${host_alias+set}
890ac_env_host_alias_value=$host_alias
891ac_cv_env_host_alias_set=${host_alias+set}
892ac_cv_env_host_alias_value=$host_alias
893ac_env_target_alias_set=${target_alias+set}
894ac_env_target_alias_value=$target_alias
895ac_cv_env_target_alias_set=${target_alias+set}
896ac_cv_env_target_alias_value=$target_alias
897ac_env_CC_set=${CC+set}
898ac_env_CC_value=$CC
899ac_cv_env_CC_set=${CC+set}
900ac_cv_env_CC_value=$CC
901ac_env_CFLAGS_set=${CFLAGS+set}
902ac_env_CFLAGS_value=$CFLAGS
903ac_cv_env_CFLAGS_set=${CFLAGS+set}
904ac_cv_env_CFLAGS_value=$CFLAGS
905ac_env_LDFLAGS_set=${LDFLAGS+set}
906ac_env_LDFLAGS_value=$LDFLAGS
907ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
908ac_cv_env_LDFLAGS_value=$LDFLAGS
909ac_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_env_CPPFLAGS_value=$CPPFLAGS
911ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
912ac_cv_env_CPPFLAGS_value=$CPPFLAGS
913ac_env_CPP_set=${CPP+set}
914ac_env_CPP_value=$CPP
915ac_cv_env_CPP_set=${CPP+set}
916ac_cv_env_CPP_value=$CPP
917
918#
919# Report the --help message.
920#
921if test "$ac_init_help" = "long"; then
922  # Omit some internal or obsolete options to make the list less imposing.
923  # This message is too long to be a string in the A/UX 3.1 sh.
924  cat <<_ACEOF
925\`configure' configures Heimdal 0.4f to adapt to many kinds of systems.
926
927Usage: $0 [OPTION]... [VAR=VALUE]...
928
929To assign environment variables (e.g., CC, CFLAGS...), specify them as
930VAR=VALUE.  See below for descriptions of some of the useful variables.
931
932Defaults for the options are specified in brackets.
933
934Configuration:
935  -h, --help              display this help and exit
936      --help=short        display options specific to this package
937      --help=recursive    display the short help of all the included packages
938  -V, --version           display version information and exit
939  -q, --quiet, --silent   do not print \`checking...' messages
940      --cache-file=FILE   cache test results in FILE [disabled]
941  -C, --config-cache      alias for \`--cache-file=config.cache'
942  -n, --no-create         do not create output files
943      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
944
945_ACEOF
946
947  cat <<_ACEOF
948Installation directories:
949  --prefix=PREFIX         install architecture-independent files in PREFIX
950                          [$ac_default_prefix]
951  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
952                          [PREFIX]
953
954By default, \`make install' will install all the files in
955\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
956an installation prefix other than \`$ac_default_prefix' using \`--prefix',
957for instance \`--prefix=\$HOME'.
958
959For better control, use the options below.
960
961Fine tuning of the installation directories:
962  --bindir=DIR           user executables [EPREFIX/bin]
963  --sbindir=DIR          system admin executables [EPREFIX/sbin]
964  --libexecdir=DIR       program executables [EPREFIX/libexec]
965  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
966  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
967  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
968  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
969  --libdir=DIR           object code libraries [EPREFIX/lib]
970  --includedir=DIR       C header files [PREFIX/include]
971  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
972  --infodir=DIR          info documentation [PREFIX/info]
973  --mandir=DIR           man documentation [PREFIX/man]
974_ACEOF
975
976  cat <<\_ACEOF
977
978Program names:
979  --program-prefix=PREFIX            prepend PREFIX to installed program names
980  --program-suffix=SUFFIX            append SUFFIX to installed program names
981  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
982
983X features:
984  --x-includes=DIR    X include files are in DIR
985  --x-libraries=DIR   X library files are in DIR
986
987System types:
988  --build=BUILD     configure for building on BUILD [guessed]
989  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
990_ACEOF
991fi
992
993if test -n "$ac_init_help"; then
994  case $ac_init_help in
995     short | recursive ) echo "Configuration of Heimdal 0.4f:";;
996   esac
997  cat <<\_ACEOF
998
999Optional Features:
1000  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1001  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1002  --disable-dependency-tracking Speeds up one-time builds
1003  --enable-dependency-tracking  Do not reject slow dependency extractors
1004  --enable-shared=PKGS  build shared libraries default=no
1005  --enable-static=PKGS  build static libraries default=yes
1006  --enable-fast-install=PKGS  optimize for fast installation default=yes
1007  --disable-libtool-lock  avoid locking (might break parallel builds)
1008  --disable-berkeley-db   if you don't want berkeley db
1009  --enable-dce            if you want support for DCE/DFS PAG's
1010  --disable-otp           if you don't want OTP support
1011  --enable-osfc2          enable some OSF C2 support
1012  --enable-bigendian      the target is big endian
1013  --enable-littleendian   the target is little endian
1014  --disable-dynamic-afs   do not use loaded AFS library with AIX
1015  --enable-netinfo        enable netinfo for configuration lookup
1016
1017Optional Packages:
1018  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1019  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1020  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1021  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1022  --with-pic              try to use only PIC/non-PIC objects default=use both
1023  --without-ipv6          do not enable IPv6 support
1024  --with-openldap=dir     use openldap in dir
1025  --with-openldap-lib=dir use openldap libraries in dir
1026  --with-openldap-include=dir
1027                          use openldap headers in dir
1028  --with-openldap-config=path
1029                          config program for openldap
1030  --with-krb4=dir         use krb4 in dir
1031  --with-krb4-lib=dir     use krb4 libraries in dir
1032  --with-krb4-include=dir use krb4 headers in dir
1033  --with-krb4-config=path config program for krb4
1034  --with-readline=dir     use readline in dir
1035  --with-readline-lib=dir use readline libraries in dir
1036  --with-readline-include=dir
1037                          use readline headers in dir
1038  --with-readline-config=path
1039                          config program for readline
1040  --with-hesiod=dir       use hesiod in dir
1041  --with-hesiod-lib=dir   use hesiod libraries in dir
1042  --with-hesiod-include=dir
1043                          use hesiod headers in dir
1044  --with-hesiod-config=path
1045                          config program for hesiod
1046  --with-x                use the X Window System
1047  --with-openssl=dir      use openssl in dir
1048  --with-openssl-lib=dir  use openssl libraries in dir
1049  --with-openssl-include=dir
1050                          use openssl headers in dir
1051
1052Some influential environment variables:
1053  CC          C compiler command
1054  CFLAGS      C compiler flags
1055  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1056              nonstandard directory <lib dir>
1057  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1058              headers in a nonstandard directory <include dir>
1059  CPP         C preprocessor
1060
1061Use these variables to override the choices made by `configure' or to help
1062it to find libraries and programs with nonstandard names/locations.
1063
1064Report bugs to <heimdal-bugs@pdc.kth.se>.
1065_ACEOF
1066fi
1067
1068if test "$ac_init_help" = "recursive"; then
1069  # If there are subdirs, report their specific --help.
1070  ac_popdir=`pwd`
1071  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072    test -d $ac_dir || continue
1073    ac_builddir=.
1074
1075if test "$ac_dir" != .; then
1076  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077  # A "../" for each directory in $ac_dir_suffix.
1078  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079else
1080  ac_dir_suffix= ac_top_builddir=
1081fi
1082
1083case $srcdir in
1084  .)  # No --srcdir option.  We are building in place.
1085    ac_srcdir=.
1086    if test -z "$ac_top_builddir"; then
1087       ac_top_srcdir=.
1088    else
1089       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090    fi ;;
1091  [\\/]* | ?:[\\/]* )  # Absolute path.
1092    ac_srcdir=$srcdir$ac_dir_suffix;
1093    ac_top_srcdir=$srcdir ;;
1094  *) # Relative path.
1095    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097esac
1098# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1099# absolute.
1100ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1101ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1102ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1103ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1104
1105    cd $ac_dir
1106    # Check for guested configure; otherwise get Cygnus style configure.
1107    if test -f $ac_srcdir/configure.gnu; then
1108      echo
1109      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1110    elif test -f $ac_srcdir/configure; then
1111      echo
1112      $SHELL $ac_srcdir/configure  --help=recursive
1113    elif test -f $ac_srcdir/configure.ac ||
1114           test -f $ac_srcdir/configure.in; then
1115      echo
1116      $ac_configure --help
1117    else
1118      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1119    fi
1120    cd $ac_popdir
1121  done
1122fi
1123
1124test -n "$ac_init_help" && exit 0
1125if $ac_init_version; then
1126  cat <<\_ACEOF
1127Heimdal configure 0.4f
1128generated by GNU Autoconf 2.53
1129
1130Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1131Free Software Foundation, Inc.
1132This configure script is free software; the Free Software Foundation
1133gives unlimited permission to copy, distribute and modify it.
1134_ACEOF
1135  exit 0
1136fi
1137exec 5>config.log
1138cat >&5 <<_ACEOF
1139This file contains any messages produced by compilers while
1140running configure, to aid debugging if configure makes a mistake.
1141
1142It was created by Heimdal $as_me 0.4f, which was
1143generated by GNU Autoconf 2.53.  Invocation command line was
1144
1145  $ $0 $@
1146
1147_ACEOF
1148{
1149cat <<_ASUNAME
1150## --------- ##
1151## Platform. ##
1152## --------- ##
1153
1154hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1155uname -m = `(uname -m) 2>/dev/null || echo unknown`
1156uname -r = `(uname -r) 2>/dev/null || echo unknown`
1157uname -s = `(uname -s) 2>/dev/null || echo unknown`
1158uname -v = `(uname -v) 2>/dev/null || echo unknown`
1159
1160/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1161/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1162
1163/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1164/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1165/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1166hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1167/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1168/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1169/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1170
1171_ASUNAME
1172
1173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1174for as_dir in $PATH
1175do
1176  IFS=$as_save_IFS
1177  test -z "$as_dir" && as_dir=.
1178  echo "PATH: $as_dir"
1179done
1180
1181} >&5
1182
1183cat >&5 <<_ACEOF
1184
1185
1186## ----------- ##
1187## Core tests. ##
1188## ----------- ##
1189
1190_ACEOF
1191
1192
1193# Keep a trace of the command line.
1194# Strip out --no-create and --no-recursion so they do not pile up.
1195# Also quote any args containing shell meta-characters.
1196ac_configure_args=
1197ac_sep=
1198for ac_arg
1199do
1200  case $ac_arg in
1201  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1202  | --no-cr | --no-c | -n ) continue ;;
1203  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205    continue ;;
1206  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1207    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1208  esac
1209  case " $ac_configure_args " in
1210    *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1211    *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1212       ac_sep=" " ;;
1213  esac
1214  # Get rid of the leading space.
1215done
1216
1217# When interrupted or exit'd, cleanup temporary files, and complete
1218# config.log.  We remove comments because anyway the quotes in there
1219# would cause problems or look ugly.
1220# WARNING: Be sure not to use single quotes in there, as some shells,
1221# such as our DU 5.0 friend, will then `close' the trap.
1222trap 'exit_status=$?
1223  # Save into config.log some information that might help in debugging.
1224  {
1225    echo
1226    cat <<\_ASBOX
1227## ---------------- ##
1228## Cache variables. ##
1229## ---------------- ##
1230_ASBOX
1231    echo
1232    # The following way of writing the cache mishandles newlines in values,
1233{
1234  (set) 2>&1 |
1235    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1236    *ac_space=\ *)
1237      sed -n \
1238        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1239    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1240      ;;
1241    *)
1242      sed -n \
1243        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1244      ;;
1245    esac;
1246}
1247    echo
1248    if test -s confdefs.h; then
1249      cat <<\_ASBOX
1250## ----------- ##
1251## confdefs.h. ##
1252## ----------- ##
1253_ASBOX
1254      echo
1255      sed "/^$/d" confdefs.h
1256      echo
1257    fi
1258    test "$ac_signal" != 0 &&
1259      echo "$as_me: caught signal $ac_signal"
1260    echo "$as_me: exit $exit_status"
1261  } >&5
1262  rm -f core core.* *.core &&
1263  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1264    exit $exit_status
1265     ' 0
1266for ac_signal in 1 2 13 15; do
1267  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1268done
1269ac_signal=0
1270
1271# confdefs.h avoids OS command line length limits that DEFS can exceed.
1272rm -rf conftest* confdefs.h
1273# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1274echo >confdefs.h
1275
1276# Predefined preprocessor variables.
1277
1278cat >>confdefs.h <<_ACEOF
1279#define PACKAGE_NAME "$PACKAGE_NAME"
1280_ACEOF
1281
1282
1283cat >>confdefs.h <<_ACEOF
1284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1285_ACEOF
1286
1287
1288cat >>confdefs.h <<_ACEOF
1289#define PACKAGE_VERSION "$PACKAGE_VERSION"
1290_ACEOF
1291
1292
1293cat >>confdefs.h <<_ACEOF
1294#define PACKAGE_STRING "$PACKAGE_STRING"
1295_ACEOF
1296
1297
1298cat >>confdefs.h <<_ACEOF
1299#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1300_ACEOF
1301
1302
1303# Let the site file select an alternate cache file if it wants to.
1304# Prefer explicitly selected file to automatically selected ones.
1305if test -z "$CONFIG_SITE"; then
1306  if test "x$prefix" != xNONE; then
1307    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1308  else
1309    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1310  fi
1311fi
1312for ac_site_file in $CONFIG_SITE; do
1313  if test -r "$ac_site_file"; then
1314    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1315echo "$as_me: loading site script $ac_site_file" >&6;}
1316    sed 's/^/| /' "$ac_site_file" >&5
1317    . "$ac_site_file"
1318  fi
1319done
1320
1321if test -r "$cache_file"; then
1322  # Some versions of bash will fail to source /dev/null (special
1323  # files actually), so we avoid doing that.
1324  if test -f "$cache_file"; then
1325    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1326echo "$as_me: loading cache $cache_file" >&6;}
1327    case $cache_file in
1328      [\\/]* | ?:[\\/]* ) . $cache_file;;
1329      *)                      . ./$cache_file;;
1330    esac
1331  fi
1332else
1333  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1334echo "$as_me: creating cache $cache_file" >&6;}
1335  >$cache_file
1336fi
1337
1338# Check that the precious variables saved in the cache have kept the same
1339# value.
1340ac_cache_corrupted=false
1341for ac_var in `(set) 2>&1 |
1342               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1343  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1344  eval ac_new_set=\$ac_env_${ac_var}_set
1345  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1346  eval ac_new_val="\$ac_env_${ac_var}_value"
1347  case $ac_old_set,$ac_new_set in
1348    set,)
1349      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1350echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1351      ac_cache_corrupted=: ;;
1352    ,set)
1353      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1354echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1355      ac_cache_corrupted=: ;;
1356    ,);;
1357    *)
1358      if test "x$ac_old_val" != "x$ac_new_val"; then
1359        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1360echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1361        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1362echo "$as_me:   former value:  $ac_old_val" >&2;}
1363        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1364echo "$as_me:   current value: $ac_new_val" >&2;}
1365        ac_cache_corrupted=:
1366      fi;;
1367  esac
1368  # Pass precious variables to config.status.
1369  if test "$ac_new_set" = set; then
1370    case $ac_new_val in
1371    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1372      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1373    *) ac_arg=$ac_var=$ac_new_val ;;
1374    esac
1375    case " $ac_configure_args " in
1376      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1377      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1378    esac
1379  fi
1380done
1381if $ac_cache_corrupted; then
1382  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1383echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1384  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1385echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1386   { (exit 1); exit 1; }; }
1387fi
1388
1389ac_ext=c
1390ac_cpp='$CPP $CPPFLAGS'
1391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1393ac_compiler_gnu=$ac_cv_c_compiler_gnu
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420# Add the stamp file to the list of files AC keeps track of,
1421# along with our hook.
1422ac_config_headers="$ac_config_headers include/config.h"
1423
1424
1425
1426
1427ac_ext=c
1428ac_cpp='$CPP $CPPFLAGS'
1429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1431ac_compiler_gnu=$ac_cv_c_compiler_gnu
1432if test -n "$ac_tool_prefix"; then
1433  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1434set dummy ${ac_tool_prefix}gcc; ac_word=$2
1435echo "$as_me:$LINENO: checking for $ac_word" >&5
1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437if test "${ac_cv_prog_CC+set}" = set; then
1438  echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440  if test -n "$CC"; then
1441  ac_cv_prog_CC="$CC" # Let the user override the test.
1442else
1443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444for as_dir in $PATH
1445do
1446  IFS=$as_save_IFS
1447  test -z "$as_dir" && as_dir=.
1448  for ac_exec_ext in '' $ac_executable_extensions; do
1449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452    break 2
1453  fi
1454done
1455done
1456
1457fi
1458fi
1459CC=$ac_cv_prog_CC
1460if test -n "$CC"; then
1461  echo "$as_me:$LINENO: result: $CC" >&5
1462echo "${ECHO_T}$CC" >&6
1463else
1464  echo "$as_me:$LINENO: result: no" >&5
1465echo "${ECHO_T}no" >&6
1466fi
1467
1468fi
1469if test -z "$ac_cv_prog_CC"; then
1470  ac_ct_CC=$CC
1471  # Extract the first word of "gcc", so it can be a program name with args.
1472set dummy gcc; ac_word=$2
1473echo "$as_me:$LINENO: checking for $ac_word" >&5
1474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1476  echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478  if test -n "$ac_ct_CC"; then
1479  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1480else
1481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482for as_dir in $PATH
1483do
1484  IFS=$as_save_IFS
1485  test -z "$as_dir" && as_dir=.
1486  for ac_exec_ext in '' $ac_executable_extensions; do
1487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1488    ac_cv_prog_ac_ct_CC="gcc"
1489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1490    break 2
1491  fi
1492done
1493done
1494
1495fi
1496fi
1497ac_ct_CC=$ac_cv_prog_ac_ct_CC
1498if test -n "$ac_ct_CC"; then
1499  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1500echo "${ECHO_T}$ac_ct_CC" >&6
1501else
1502  echo "$as_me:$LINENO: result: no" >&5
1503echo "${ECHO_T}no" >&6
1504fi
1505
1506  CC=$ac_ct_CC
1507else
1508  CC="$ac_cv_prog_CC"
1509fi
1510
1511if test -z "$CC"; then
1512  if test -n "$ac_tool_prefix"; then
1513  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1514set dummy ${ac_tool_prefix}cc; ac_word=$2
1515echo "$as_me:$LINENO: checking for $ac_word" >&5
1516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517if test "${ac_cv_prog_CC+set}" = set; then
1518  echo $ECHO_N "(cached) $ECHO_C" >&6
1519else
1520  if test -n "$CC"; then
1521  ac_cv_prog_CC="$CC" # Let the user override the test.
1522else
1523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524for as_dir in $PATH
1525do
1526  IFS=$as_save_IFS
1527  test -z "$as_dir" && as_dir=.
1528  for ac_exec_ext in '' $ac_executable_extensions; do
1529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530    ac_cv_prog_CC="${ac_tool_prefix}cc"
1531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532    break 2
1533  fi
1534done
1535done
1536
1537fi
1538fi
1539CC=$ac_cv_prog_CC
1540if test -n "$CC"; then
1541  echo "$as_me:$LINENO: result: $CC" >&5
1542echo "${ECHO_T}$CC" >&6
1543else
1544  echo "$as_me:$LINENO: result: no" >&5
1545echo "${ECHO_T}no" >&6
1546fi
1547
1548fi
1549if test -z "$ac_cv_prog_CC"; then
1550  ac_ct_CC=$CC
1551  # Extract the first word of "cc", so it can be a program name with args.
1552set dummy cc; ac_word=$2
1553echo "$as_me:$LINENO: checking for $ac_word" >&5
1554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1555if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1556  echo $ECHO_N "(cached) $ECHO_C" >&6
1557else
1558  if test -n "$ac_ct_CC"; then
1559  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1560else
1561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562for as_dir in $PATH
1563do
1564  IFS=$as_save_IFS
1565  test -z "$as_dir" && as_dir=.
1566  for ac_exec_ext in '' $ac_executable_extensions; do
1567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1568    ac_cv_prog_ac_ct_CC="cc"
1569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1570    break 2
1571  fi
1572done
1573done
1574
1575fi
1576fi
1577ac_ct_CC=$ac_cv_prog_ac_ct_CC
1578if test -n "$ac_ct_CC"; then
1579  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1580echo "${ECHO_T}$ac_ct_CC" >&6
1581else
1582  echo "$as_me:$LINENO: result: no" >&5
1583echo "${ECHO_T}no" >&6
1584fi
1585
1586  CC=$ac_ct_CC
1587else
1588  CC="$ac_cv_prog_CC"
1589fi
1590
1591fi
1592if test -z "$CC"; then
1593  # Extract the first word of "cc", so it can be a program name with args.
1594set dummy cc; ac_word=$2
1595echo "$as_me:$LINENO: checking for $ac_word" >&5
1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597if test "${ac_cv_prog_CC+set}" = set; then
1598  echo $ECHO_N "(cached) $ECHO_C" >&6
1599else
1600  if test -n "$CC"; then
1601  ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
1603  ac_prog_rejected=no
1604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605for as_dir in $PATH
1606do
1607  IFS=$as_save_IFS
1608  test -z "$as_dir" && as_dir=.
1609  for ac_exec_ext in '' $ac_executable_extensions; do
1610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1611    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1612       ac_prog_rejected=yes
1613       continue
1614     fi
1615    ac_cv_prog_CC="cc"
1616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1617    break 2
1618  fi
1619done
1620done
1621
1622if test $ac_prog_rejected = yes; then
1623  # We found a bogon in the path, so make sure we never use it.
1624  set dummy $ac_cv_prog_CC
1625  shift
1626  if test $# != 0; then
1627    # We chose a different compiler from the bogus one.
1628    # However, it has the same basename, so the bogon will be chosen
1629    # first if we set CC to just the basename; use the full file name.
1630    shift
1631    set dummy "$as_dir/$ac_word" ${1+"$@"}
1632    shift
1633    ac_cv_prog_CC="$@"
1634  fi
1635fi
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640  echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643  echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$CC"; then
1649  if test -n "$ac_tool_prefix"; then
1650  for ac_prog in cl
1651  do
1652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1654echo "$as_me:$LINENO: checking for $ac_word" >&5
1655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1656if test "${ac_cv_prog_CC+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  if test -n "$CC"; then
1660  ac_cv_prog_CC="$CC" # Let the user override the test.
1661else
1662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665  IFS=$as_save_IFS
1666  test -z "$as_dir" && as_dir=.
1667  for ac_exec_ext in '' $ac_executable_extensions; do
1668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671    break 2
1672  fi
1673done
1674done
1675
1676fi
1677fi
1678CC=$ac_cv_prog_CC
1679if test -n "$CC"; then
1680  echo "$as_me:$LINENO: result: $CC" >&5
1681echo "${ECHO_T}$CC" >&6
1682else
1683  echo "$as_me:$LINENO: result: no" >&5
1684echo "${ECHO_T}no" >&6
1685fi
1686
1687    test -n "$CC" && break
1688  done
1689fi
1690if test -z "$CC"; then
1691  ac_ct_CC=$CC
1692  for ac_prog in cl
1693do
1694  # Extract the first word of "$ac_prog", so it can be a program name with args.
1695set dummy $ac_prog; ac_word=$2
1696echo "$as_me:$LINENO: checking for $ac_word" >&5
1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1699  echo $ECHO_N "(cached) $ECHO_C" >&6
1700else
1701  if test -n "$ac_ct_CC"; then
1702  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1703else
1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705for as_dir in $PATH
1706do
1707  IFS=$as_save_IFS
1708  test -z "$as_dir" && as_dir=.
1709  for ac_exec_ext in '' $ac_executable_extensions; do
1710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711    ac_cv_prog_ac_ct_CC="$ac_prog"
1712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713    break 2
1714  fi
1715done
1716done
1717
1718fi
1719fi
1720ac_ct_CC=$ac_cv_prog_ac_ct_CC
1721if test -n "$ac_ct_CC"; then
1722  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1723echo "${ECHO_T}$ac_ct_CC" >&6
1724else
1725  echo "$as_me:$LINENO: result: no" >&5
1726echo "${ECHO_T}no" >&6
1727fi
1728
1729  test -n "$ac_ct_CC" && break
1730done
1731
1732  CC=$ac_ct_CC
1733fi
1734
1735fi
1736
1737
1738test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1739echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1740   { (exit 1); exit 1; }; }
1741
1742# Provide some information about the compiler.
1743echo "$as_me:$LINENO:" \
1744     "checking for C compiler version" >&5
1745ac_compiler=`set X $ac_compile; echo $2`
1746{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1747  (eval $ac_compiler --version </dev/null >&5) 2>&5
1748  ac_status=$?
1749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750  (exit $ac_status); }
1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1752  (eval $ac_compiler -v </dev/null >&5) 2>&5
1753  ac_status=$?
1754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755  (exit $ac_status); }
1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1757  (eval $ac_compiler -V </dev/null >&5) 2>&5
1758  ac_status=$?
1759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760  (exit $ac_status); }
1761
1762cat >conftest.$ac_ext <<_ACEOF
1763#line $LINENO "configure"
1764#include "confdefs.h"
1765
1766#ifdef F77_DUMMY_MAIN
1767#  ifdef __cplusplus
1768     extern "C"
1769#  endif
1770   int F77_DUMMY_MAIN() { return 1; }
1771#endif
1772int
1773main ()
1774{
1775
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780ac_clean_files_save=$ac_clean_files
1781ac_clean_files="$ac_clean_files a.out a.exe"
1782# Try to create an executable without -o first, disregard a.out.
1783# It will help us diagnose broken compilers, and finding out an intuition
1784# of exeext.
1785echo "$as_me:$LINENO: checking for C compiler default output" >&5
1786echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1787ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1788if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1789  (eval $ac_link_default) 2>&5
1790  ac_status=$?
1791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792  (exit $ac_status); }; then
1793  # Find the output, starting from the most likely.  This scheme is
1794# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1795# resort.
1796
1797# Be careful to initialize this variable, since it used to be cached.
1798# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1799ac_cv_exeext=
1800for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1801                ls a.out conftest 2>/dev/null;
1802                ls a.* conftest.* 2>/dev/null`; do
1803  case $ac_file in
1804    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1805    a.out ) # We found the default executable, but exeext='' is most
1806            # certainly right.
1807            break;;
1808    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1809          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1810          export ac_cv_exeext
1811          break;;
1812    * ) break;;
1813  esac
1814done
1815else
1816  echo "$as_me: failed program was:" >&5
1817cat conftest.$ac_ext >&5
1818{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1819echo "$as_me: error: C compiler cannot create executables" >&2;}
1820   { (exit 77); exit 77; }; }
1821fi
1822
1823ac_exeext=$ac_cv_exeext
1824echo "$as_me:$LINENO: result: $ac_file" >&5
1825echo "${ECHO_T}$ac_file" >&6
1826
1827# Check the compiler produces executables we can run.  If not, either
1828# the compiler is broken, or we cross compile.
1829echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1830echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1831# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1832# If not cross compiling, check that we can run a simple program.
1833if test "$cross_compiling" != yes; then
1834  if { ac_try='./$ac_file'
1835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836  (eval $ac_try) 2>&5
1837  ac_status=$?
1838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839  (exit $ac_status); }; }; then
1840    cross_compiling=no
1841  else
1842    if test "$cross_compiling" = maybe; then
1843	cross_compiling=yes
1844    else
1845	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1846If you meant to cross compile, use \`--host'." >&5
1847echo "$as_me: error: cannot run C compiled programs.
1848If you meant to cross compile, use \`--host'." >&2;}
1849   { (exit 1); exit 1; }; }
1850    fi
1851  fi
1852fi
1853echo "$as_me:$LINENO: result: yes" >&5
1854echo "${ECHO_T}yes" >&6
1855
1856rm -f a.out a.exe conftest$ac_cv_exeext
1857ac_clean_files=$ac_clean_files_save
1858# Check the compiler produces executables we can run.  If not, either
1859# the compiler is broken, or we cross compile.
1860echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1861echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1862echo "$as_me:$LINENO: result: $cross_compiling" >&5
1863echo "${ECHO_T}$cross_compiling" >&6
1864
1865echo "$as_me:$LINENO: checking for suffix of executables" >&5
1866echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1868  (eval $ac_link) 2>&5
1869  ac_status=$?
1870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1871  (exit $ac_status); }; then
1872  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1873# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1874# work properly (i.e., refer to `conftest.exe'), while it won't with
1875# `rm'.
1876for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1877  case $ac_file in
1878    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1879    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1880          export ac_cv_exeext
1881          break;;
1882    * ) break;;
1883  esac
1884done
1885else
1886  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1887echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1888   { (exit 1); exit 1; }; }
1889fi
1890
1891rm -f conftest$ac_cv_exeext
1892echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1893echo "${ECHO_T}$ac_cv_exeext" >&6
1894
1895rm -f conftest.$ac_ext
1896EXEEXT=$ac_cv_exeext
1897ac_exeext=$EXEEXT
1898echo "$as_me:$LINENO: checking for suffix of object files" >&5
1899echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1900if test "${ac_cv_objext+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  cat >conftest.$ac_ext <<_ACEOF
1904#line $LINENO "configure"
1905#include "confdefs.h"
1906
1907#ifdef F77_DUMMY_MAIN
1908#  ifdef __cplusplus
1909     extern "C"
1910#  endif
1911   int F77_DUMMY_MAIN() { return 1; }
1912#endif
1913int
1914main ()
1915{
1916
1917  ;
1918  return 0;
1919}
1920_ACEOF
1921rm -f conftest.o conftest.obj
1922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1923  (eval $ac_compile) 2>&5
1924  ac_status=$?
1925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926  (exit $ac_status); }; then
1927  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1928  case $ac_file in
1929    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1930    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1931       break;;
1932  esac
1933done
1934else
1935  echo "$as_me: failed program was:" >&5
1936cat conftest.$ac_ext >&5
1937{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1938echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1939   { (exit 1); exit 1; }; }
1940fi
1941
1942rm -f conftest.$ac_cv_objext conftest.$ac_ext
1943fi
1944echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1945echo "${ECHO_T}$ac_cv_objext" >&6
1946OBJEXT=$ac_cv_objext
1947ac_objext=$OBJEXT
1948echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1949echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1950if test "${ac_cv_c_compiler_gnu+set}" = set; then
1951  echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953  cat >conftest.$ac_ext <<_ACEOF
1954#line $LINENO "configure"
1955#include "confdefs.h"
1956
1957#ifdef F77_DUMMY_MAIN
1958#  ifdef __cplusplus
1959     extern "C"
1960#  endif
1961   int F77_DUMMY_MAIN() { return 1; }
1962#endif
1963int
1964main ()
1965{
1966#ifndef __GNUC__
1967       choke me
1968#endif
1969
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974rm -f conftest.$ac_objext
1975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1976  (eval $ac_compile) 2>&5
1977  ac_status=$?
1978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979  (exit $ac_status); } &&
1980         { ac_try='test -s conftest.$ac_objext'
1981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982  (eval $ac_try) 2>&5
1983  ac_status=$?
1984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985  (exit $ac_status); }; }; then
1986  ac_compiler_gnu=yes
1987else
1988  echo "$as_me: failed program was:" >&5
1989cat conftest.$ac_ext >&5
1990ac_compiler_gnu=no
1991fi
1992rm -f conftest.$ac_objext conftest.$ac_ext
1993ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995fi
1996echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998GCC=`test $ac_compiler_gnu = yes && echo yes`
1999ac_test_CFLAGS=${CFLAGS+set}
2000ac_save_CFLAGS=$CFLAGS
2001CFLAGS="-g"
2002echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004if test "${ac_cv_prog_cc_g+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  cat >conftest.$ac_ext <<_ACEOF
2008#line $LINENO "configure"
2009#include "confdefs.h"
2010
2011#ifdef F77_DUMMY_MAIN
2012#  ifdef __cplusplus
2013     extern "C"
2014#  endif
2015   int F77_DUMMY_MAIN() { return 1; }
2016#endif
2017int
2018main ()
2019{
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025rm -f conftest.$ac_objext
2026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027  (eval $ac_compile) 2>&5
2028  ac_status=$?
2029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030  (exit $ac_status); } &&
2031         { ac_try='test -s conftest.$ac_objext'
2032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2033  (eval $ac_try) 2>&5
2034  ac_status=$?
2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036  (exit $ac_status); }; }; then
2037  ac_cv_prog_cc_g=yes
2038else
2039  echo "$as_me: failed program was:" >&5
2040cat conftest.$ac_ext >&5
2041ac_cv_prog_cc_g=no
2042fi
2043rm -f conftest.$ac_objext conftest.$ac_ext
2044fi
2045echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2046echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2047if test "$ac_test_CFLAGS" = set; then
2048  CFLAGS=$ac_save_CFLAGS
2049elif test $ac_cv_prog_cc_g = yes; then
2050  if test "$GCC" = yes; then
2051    CFLAGS="-g -O2"
2052  else
2053    CFLAGS="-g"
2054  fi
2055else
2056  if test "$GCC" = yes; then
2057    CFLAGS="-O2"
2058  else
2059    CFLAGS=
2060  fi
2061fi
2062# Some people use a C++ compiler to compile C.  Since we use `exit',
2063# in C++ we need to declare it.  In case someone uses the same compiler
2064# for both compiling C and C++ we need to have the C++ compiler decide
2065# the declaration of exit, since it's the most demanding environment.
2066cat >conftest.$ac_ext <<_ACEOF
2067#ifndef __cplusplus
2068  choke me
2069#endif
2070_ACEOF
2071rm -f conftest.$ac_objext
2072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073  (eval $ac_compile) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); } &&
2077         { ac_try='test -s conftest.$ac_objext'
2078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079  (eval $ac_try) 2>&5
2080  ac_status=$?
2081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082  (exit $ac_status); }; }; then
2083  for ac_declaration in \
2084   ''\
2085   '#include <stdlib.h>' \
2086   'extern "C" void std::exit (int) throw (); using std::exit;' \
2087   'extern "C" void std::exit (int); using std::exit;' \
2088   'extern "C" void exit (int) throw ();' \
2089   'extern "C" void exit (int);' \
2090   'void exit (int);'
2091do
2092  cat >conftest.$ac_ext <<_ACEOF
2093#line $LINENO "configure"
2094#include "confdefs.h"
2095#include <stdlib.h>
2096$ac_declaration
2097#ifdef F77_DUMMY_MAIN
2098#  ifdef __cplusplus
2099     extern "C"
2100#  endif
2101   int F77_DUMMY_MAIN() { return 1; }
2102#endif
2103int
2104main ()
2105{
2106exit (42);
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111rm -f conftest.$ac_objext
2112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2113  (eval $ac_compile) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); } &&
2117         { ac_try='test -s conftest.$ac_objext'
2118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119  (eval $ac_try) 2>&5
2120  ac_status=$?
2121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122  (exit $ac_status); }; }; then
2123  :
2124else
2125  echo "$as_me: failed program was:" >&5
2126cat conftest.$ac_ext >&5
2127continue
2128fi
2129rm -f conftest.$ac_objext conftest.$ac_ext
2130  cat >conftest.$ac_ext <<_ACEOF
2131#line $LINENO "configure"
2132#include "confdefs.h"
2133$ac_declaration
2134#ifdef F77_DUMMY_MAIN
2135#  ifdef __cplusplus
2136     extern "C"
2137#  endif
2138   int F77_DUMMY_MAIN() { return 1; }
2139#endif
2140int
2141main ()
2142{
2143exit (42);
2144  ;
2145  return 0;
2146}
2147_ACEOF
2148rm -f conftest.$ac_objext
2149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150  (eval $ac_compile) 2>&5
2151  ac_status=$?
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); } &&
2154         { ac_try='test -s conftest.$ac_objext'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; }; then
2160  break
2161else
2162  echo "$as_me: failed program was:" >&5
2163cat conftest.$ac_ext >&5
2164fi
2165rm -f conftest.$ac_objext conftest.$ac_ext
2166done
2167rm -f conftest*
2168if test -n "$ac_declaration"; then
2169  echo '#ifdef __cplusplus' >>confdefs.h
2170  echo $ac_declaration      >>confdefs.h
2171  echo '#endif'             >>confdefs.h
2172fi
2173
2174else
2175  echo "$as_me: failed program was:" >&5
2176cat conftest.$ac_ext >&5
2177fi
2178rm -f conftest.$ac_objext conftest.$ac_ext
2179ac_ext=c
2180ac_cpp='$CPP $CPPFLAGS'
2181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184
2185ac_ext=c
2186ac_cpp='$CPP $CPPFLAGS'
2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2189ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2191echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2192# On Suns, sometimes $CPP names a directory.
2193if test -n "$CPP" && test -d "$CPP"; then
2194  CPP=
2195fi
2196if test -z "$CPP"; then
2197  if test "${ac_cv_prog_CPP+set}" = set; then
2198  echo $ECHO_N "(cached) $ECHO_C" >&6
2199else
2200      # Double quotes because CPP needs to be expanded
2201    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2202    do
2203      ac_preproc_ok=false
2204for ac_c_preproc_warn_flag in '' yes
2205do
2206  # Use a header file that comes with gcc, so configuring glibc
2207  # with a fresh cross-compiler works.
2208  # On the NeXT, cc -E runs the code through the compiler's parser,
2209  # not just through cpp. "Syntax error" is here to catch this case.
2210  cat >conftest.$ac_ext <<_ACEOF
2211#line $LINENO "configure"
2212#include "confdefs.h"
2213#include <assert.h>
2214                     Syntax error
2215_ACEOF
2216if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2217  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2218  ac_status=$?
2219  egrep -v '^ *\+' conftest.er1 >conftest.err
2220  rm -f conftest.er1
2221  cat conftest.err >&5
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); } >/dev/null; then
2224  if test -s conftest.err; then
2225    ac_cpp_err=$ac_c_preproc_warn_flag
2226  else
2227    ac_cpp_err=
2228  fi
2229else
2230  ac_cpp_err=yes
2231fi
2232if test -z "$ac_cpp_err"; then
2233  :
2234else
2235  echo "$as_me: failed program was:" >&5
2236  cat conftest.$ac_ext >&5
2237  # Broken: fails on valid input.
2238continue
2239fi
2240rm -f conftest.err conftest.$ac_ext
2241
2242  # OK, works on sane cases.  Now check whether non-existent headers
2243  # can be detected and how.
2244  cat >conftest.$ac_ext <<_ACEOF
2245#line $LINENO "configure"
2246#include "confdefs.h"
2247#include <ac_nonexistent.h>
2248_ACEOF
2249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2251  ac_status=$?
2252  egrep -v '^ *\+' conftest.er1 >conftest.err
2253  rm -f conftest.er1
2254  cat conftest.err >&5
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); } >/dev/null; then
2257  if test -s conftest.err; then
2258    ac_cpp_err=$ac_c_preproc_warn_flag
2259  else
2260    ac_cpp_err=
2261  fi
2262else
2263  ac_cpp_err=yes
2264fi
2265if test -z "$ac_cpp_err"; then
2266  # Broken: success on invalid input.
2267continue
2268else
2269  echo "$as_me: failed program was:" >&5
2270  cat conftest.$ac_ext >&5
2271  # Passes both tests.
2272ac_preproc_ok=:
2273break
2274fi
2275rm -f conftest.err conftest.$ac_ext
2276
2277done
2278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2279rm -f conftest.err conftest.$ac_ext
2280if $ac_preproc_ok; then
2281  break
2282fi
2283
2284    done
2285    ac_cv_prog_CPP=$CPP
2286
2287fi
2288  CPP=$ac_cv_prog_CPP
2289else
2290  ac_cv_prog_CPP=$CPP
2291fi
2292echo "$as_me:$LINENO: result: $CPP" >&5
2293echo "${ECHO_T}$CPP" >&6
2294ac_preproc_ok=false
2295for ac_c_preproc_warn_flag in '' yes
2296do
2297  # Use a header file that comes with gcc, so configuring glibc
2298  # with a fresh cross-compiler works.
2299  # On the NeXT, cc -E runs the code through the compiler's parser,
2300  # not just through cpp. "Syntax error" is here to catch this case.
2301  cat >conftest.$ac_ext <<_ACEOF
2302#line $LINENO "configure"
2303#include "confdefs.h"
2304#include <assert.h>
2305                     Syntax error
2306_ACEOF
2307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2308  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2309  ac_status=$?
2310  egrep -v '^ *\+' conftest.er1 >conftest.err
2311  rm -f conftest.er1
2312  cat conftest.err >&5
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); } >/dev/null; then
2315  if test -s conftest.err; then
2316    ac_cpp_err=$ac_c_preproc_warn_flag
2317  else
2318    ac_cpp_err=
2319  fi
2320else
2321  ac_cpp_err=yes
2322fi
2323if test -z "$ac_cpp_err"; then
2324  :
2325else
2326  echo "$as_me: failed program was:" >&5
2327  cat conftest.$ac_ext >&5
2328  # Broken: fails on valid input.
2329continue
2330fi
2331rm -f conftest.err conftest.$ac_ext
2332
2333  # OK, works on sane cases.  Now check whether non-existent headers
2334  # can be detected and how.
2335  cat >conftest.$ac_ext <<_ACEOF
2336#line $LINENO "configure"
2337#include "confdefs.h"
2338#include <ac_nonexistent.h>
2339_ACEOF
2340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342  ac_status=$?
2343  egrep -v '^ *\+' conftest.er1 >conftest.err
2344  rm -f conftest.er1
2345  cat conftest.err >&5
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); } >/dev/null; then
2348  if test -s conftest.err; then
2349    ac_cpp_err=$ac_c_preproc_warn_flag
2350  else
2351    ac_cpp_err=
2352  fi
2353else
2354  ac_cpp_err=yes
2355fi
2356if test -z "$ac_cpp_err"; then
2357  # Broken: success on invalid input.
2358continue
2359else
2360  echo "$as_me: failed program was:" >&5
2361  cat conftest.$ac_ext >&5
2362  # Passes both tests.
2363ac_preproc_ok=:
2364break
2365fi
2366rm -f conftest.err conftest.$ac_ext
2367
2368done
2369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2370rm -f conftest.err conftest.$ac_ext
2371if $ac_preproc_ok; then
2372  :
2373else
2374  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2375echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2376   { (exit 1); exit 1; }; }
2377fi
2378
2379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2387echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2388if test "${ac_cv_prog_cc_stdc+set}" = set; then
2389  echo $ECHO_N "(cached) $ECHO_C" >&6
2390else
2391  ac_cv_prog_cc_stdc=no
2392ac_save_CC=$CC
2393cat >conftest.$ac_ext <<_ACEOF
2394#line $LINENO "configure"
2395#include "confdefs.h"
2396#include <stdarg.h>
2397#include <stdio.h>
2398#include <sys/types.h>
2399#include <sys/stat.h>
2400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2401struct buf { int x; };
2402FILE * (*rcsopen) (struct buf *, struct stat *, int);
2403static char *e (p, i)
2404     char **p;
2405     int i;
2406{
2407  return p[i];
2408}
2409static char *f (char * (*g) (char **, int), char **p, ...)
2410{
2411  char *s;
2412  va_list v;
2413  va_start (v,p);
2414  s = g (p, va_arg (v,int));
2415  va_end (v);
2416  return s;
2417}
2418int test (int i, double x);
2419struct s1 {int (*f) (int a);};
2420struct s2 {int (*f) (double a);};
2421int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2422int argc;
2423char **argv;
2424#ifdef F77_DUMMY_MAIN
2425#  ifdef __cplusplus
2426     extern "C"
2427#  endif
2428   int F77_DUMMY_MAIN() { return 1; }
2429#endif
2430int
2431main ()
2432{
2433return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2434  ;
2435  return 0;
2436}
2437_ACEOF
2438# Don't try gcc -ansi; that turns off useful extensions and
2439# breaks some systems' header files.
2440# AIX			-qlanglvl=ansi
2441# Ultrix and OSF/1	-std1
2442# HP-UX 10.20 and later	-Ae
2443# HP-UX older versions	-Aa -D_HPUX_SOURCE
2444# SVR4			-Xc -D__EXTENSIONS__
2445for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2446do
2447  CC="$ac_save_CC $ac_arg"
2448  rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>&5
2451  ac_status=$?
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); } &&
2454         { ac_try='test -s conftest.$ac_objext'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; }; then
2460  ac_cv_prog_cc_stdc=$ac_arg
2461break
2462else
2463  echo "$as_me: failed program was:" >&5
2464cat conftest.$ac_ext >&5
2465fi
2466rm -f conftest.$ac_objext
2467done
2468rm -f conftest.$ac_ext conftest.$ac_objext
2469CC=$ac_save_CC
2470
2471fi
2472
2473case "x$ac_cv_prog_cc_stdc" in
2474  x|xno)
2475    echo "$as_me:$LINENO: result: none needed" >&5
2476echo "${ECHO_T}none needed" >&6 ;;
2477  *)
2478    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2479echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2480    CC="$CC $ac_cv_prog_cc_stdc" ;;
2481esac
2482
2483
2484am__api_version="1.6"
2485ac_aux_dir=
2486for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2487  if test -f $ac_dir/install-sh; then
2488    ac_aux_dir=$ac_dir
2489    ac_install_sh="$ac_aux_dir/install-sh -c"
2490    break
2491  elif test -f $ac_dir/install.sh; then
2492    ac_aux_dir=$ac_dir
2493    ac_install_sh="$ac_aux_dir/install.sh -c"
2494    break
2495  elif test -f $ac_dir/shtool; then
2496    ac_aux_dir=$ac_dir
2497    ac_install_sh="$ac_aux_dir/shtool install -c"
2498    break
2499  fi
2500done
2501if test -z "$ac_aux_dir"; then
2502  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2503echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2504   { (exit 1); exit 1; }; }
2505fi
2506ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2507ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2508ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2509
2510# Find a good install program.  We prefer a C program (faster),
2511# so one script is as good as another.  But avoid the broken or
2512# incompatible versions:
2513# SysV /etc/install, /usr/sbin/install
2514# SunOS /usr/etc/install
2515# IRIX /sbin/install
2516# AIX /bin/install
2517# AmigaOS /C/install, which installs bootblocks on floppy discs
2518# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2519# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2520# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2521# ./install, which can be erroneously created by make from ./install.sh.
2522echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2523echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2524if test -z "$INSTALL"; then
2525if test "${ac_cv_path_install+set}" = set; then
2526  echo $ECHO_N "(cached) $ECHO_C" >&6
2527else
2528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529for as_dir in $PATH
2530do
2531  IFS=$as_save_IFS
2532  test -z "$as_dir" && as_dir=.
2533  # Account for people who put trailing slashes in PATH elements.
2534case $as_dir/ in
2535  ./ | .// | /cC/* | \
2536  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2537  /usr/ucb/* ) ;;
2538  *)
2539    # OSF1 and SCO ODT 3.0 have their own names for install.
2540    # Don't use installbsd from OSF since it installs stuff as root
2541    # by default.
2542    for ac_prog in ginstall scoinst install; do
2543      for ac_exec_ext in '' $ac_executable_extensions; do
2544        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2545          if test $ac_prog = install &&
2546            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2547            # AIX install.  It has an incompatible calling convention.
2548            :
2549          elif test $ac_prog = install &&
2550            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551            # program-specific install script used by HP pwplus--don't use.
2552            :
2553          else
2554            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2555            break 3
2556          fi
2557        fi
2558      done
2559    done
2560    ;;
2561esac
2562done
2563
2564
2565fi
2566  if test "${ac_cv_path_install+set}" = set; then
2567    INSTALL=$ac_cv_path_install
2568  else
2569    # As a last resort, use the slow shell script.  We don't cache a
2570    # path for INSTALL within a source directory, because that will
2571    # break other packages using the cache if that directory is
2572    # removed, or if the path is relative.
2573    INSTALL=$ac_install_sh
2574  fi
2575fi
2576echo "$as_me:$LINENO: result: $INSTALL" >&5
2577echo "${ECHO_T}$INSTALL" >&6
2578
2579# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2580# It thinks the first close brace ends the variable substitution.
2581test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2582
2583test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2584
2585test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2586
2587echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2588echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2589# Just in case
2590sleep 1
2591echo timestamp > conftest.file
2592# Do `set' in a subshell so we don't clobber the current shell's
2593# arguments.  Must try -L first in case configure is actually a
2594# symlink; some systems play weird games with the mod time of symlinks
2595# (eg FreeBSD returns the mod time of the symlink's containing
2596# directory).
2597if (
2598   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2599   if test "$*" = "X"; then
2600      # -L didn't work.
2601      set X `ls -t $srcdir/configure conftest.file`
2602   fi
2603   rm -f conftest.file
2604   if test "$*" != "X $srcdir/configure conftest.file" \
2605      && test "$*" != "X conftest.file $srcdir/configure"; then
2606
2607      # If neither matched, then we have a broken ls.  This can happen
2608      # if, for instance, CONFIG_SHELL is bash and it inherits a
2609      # broken ls alias from the environment.  This has actually
2610      # happened.  Such a system could not be considered "sane".
2611      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2612alias in your environment" >&5
2613echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2614alias in your environment" >&2;}
2615   { (exit 1); exit 1; }; }
2616   fi
2617
2618   test "$2" = conftest.file
2619   )
2620then
2621   # Ok.
2622   :
2623else
2624   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2625Check your system clock" >&5
2626echo "$as_me: error: newly created file is older than distributed files!
2627Check your system clock" >&2;}
2628   { (exit 1); exit 1; }; }
2629fi
2630echo "$as_me:$LINENO: result: yes" >&5
2631echo "${ECHO_T}yes" >&6
2632test "$program_prefix" != NONE &&
2633  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2634# Use a double $ so make ignores it.
2635test "$program_suffix" != NONE &&
2636  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2637# Double any \ or $.  echo might interpret backslashes.
2638# By default was `s,x,x', remove it if useless.
2639cat <<\_ACEOF >conftest.sed
2640s/[\\$]/&&/g;s/;s,x,x,$//
2641_ACEOF
2642program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2643rm conftest.sed
2644
2645
2646# expand $ac_aux_dir to an absolute path
2647am_aux_dir=`cd $ac_aux_dir && pwd`
2648
2649test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2650# Use eval to expand $SHELL
2651if eval "$MISSING --run true"; then
2652  am_missing_run="$MISSING --run "
2653else
2654  am_missing_run=
2655  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2656echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2657fi
2658
2659for ac_prog in gawk mawk nawk awk
2660do
2661  # Extract the first word of "$ac_prog", so it can be a program name with args.
2662set dummy $ac_prog; ac_word=$2
2663echo "$as_me:$LINENO: checking for $ac_word" >&5
2664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2665if test "${ac_cv_prog_AWK+set}" = set; then
2666  echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668  if test -n "$AWK"; then
2669  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2670else
2671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674  IFS=$as_save_IFS
2675  test -z "$as_dir" && as_dir=.
2676  for ac_exec_ext in '' $ac_executable_extensions; do
2677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678    ac_cv_prog_AWK="$ac_prog"
2679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2680    break 2
2681  fi
2682done
2683done
2684
2685fi
2686fi
2687AWK=$ac_cv_prog_AWK
2688if test -n "$AWK"; then
2689  echo "$as_me:$LINENO: result: $AWK" >&5
2690echo "${ECHO_T}$AWK" >&6
2691else
2692  echo "$as_me:$LINENO: result: no" >&5
2693echo "${ECHO_T}no" >&6
2694fi
2695
2696  test -n "$AWK" && break
2697done
2698
2699echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2700echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2701set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2702if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2703  echo $ECHO_N "(cached) $ECHO_C" >&6
2704else
2705  cat >conftest.make <<\_ACEOF
2706all:
2707	@echo 'ac_maketemp="${MAKE}"'
2708_ACEOF
2709# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2710eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2711if test -n "$ac_maketemp"; then
2712  eval ac_cv_prog_make_${ac_make}_set=yes
2713else
2714  eval ac_cv_prog_make_${ac_make}_set=no
2715fi
2716rm -f conftest.make
2717fi
2718if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2719  echo "$as_me:$LINENO: result: yes" >&5
2720echo "${ECHO_T}yes" >&6
2721  SET_MAKE=
2722else
2723  echo "$as_me:$LINENO: result: no" >&5
2724echo "${ECHO_T}no" >&6
2725  SET_MAKE="MAKE=${MAKE-make}"
2726fi
2727
2728rm -f .deps 2>/dev/null
2729mkdir .deps 2>/dev/null
2730if test -d .deps; then
2731  DEPDIR=.deps
2732else
2733  # MS-DOS does not allow filenames that begin with a dot.
2734  DEPDIR=_deps
2735fi
2736rmdir .deps 2>/dev/null
2737
2738
2739ac_config_commands="$ac_config_commands depfiles"
2740
2741
2742am_make=${MAKE-make}
2743cat > confinc << 'END'
2744doit:
2745	@echo done
2746END
2747# If we don't find an include directive, just comment out the code.
2748echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2749echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2750am__include="#"
2751am__quote=
2752_am_result=none
2753# First try GNU make style include.
2754echo "include confinc" > confmf
2755# We grep out `Entering directory' and `Leaving directory'
2756# messages which can occur if `w' ends up in MAKEFLAGS.
2757# In particular we don't look at `^make:' because GNU make might
2758# be invoked under some other name (usually "gmake"), in which
2759# case it prints its new name instead of `make'.
2760if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2761   am__include=include
2762   am__quote=
2763   _am_result=GNU
2764fi
2765# Now try BSD make style include.
2766if test "$am__include" = "#"; then
2767   echo '.include "confinc"' > confmf
2768   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2769      am__include=.include
2770      am__quote="\""
2771      _am_result=BSD
2772   fi
2773fi
2774
2775
2776echo "$as_me:$LINENO: result: $_am_result" >&5
2777echo "${ECHO_T}$_am_result" >&6
2778rm -f confinc confmf
2779
2780# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2781if test "${enable_dependency_tracking+set}" = set; then
2782  enableval="$enable_dependency_tracking"
2783
2784fi;
2785if test "x$enable_dependency_tracking" != xno; then
2786  am_depcomp="$ac_aux_dir/depcomp"
2787  AMDEPBACKSLASH='\'
2788fi
2789
2790
2791if test "x$enable_dependency_tracking" != xno; then
2792  AMDEP_TRUE=
2793  AMDEP_FALSE='#'
2794else
2795  AMDEP_TRUE='#'
2796  AMDEP_FALSE=
2797fi
2798
2799
2800
2801 # test to see if srcdir already configured
2802if test "`cd $srcdir && pwd`" != "`pwd`" &&
2803   test -f $srcdir/config.status; then
2804  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2805echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2806   { (exit 1); exit 1; }; }
2807fi
2808
2809# Define the identity of the package.
2810 PACKAGE=heimdal
2811 VERSION=0.4f
2812
2813
2814cat >>confdefs.h <<_ACEOF
2815#define PACKAGE "$PACKAGE"
2816_ACEOF
2817
2818
2819cat >>confdefs.h <<_ACEOF
2820#define VERSION "$VERSION"
2821_ACEOF
2822
2823# Some tools Automake needs.
2824
2825ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2826
2827
2828AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2829
2830
2831AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2832
2833
2834AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2835
2836
2837MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2838
2839
2840AMTAR=${AMTAR-"${am_missing_run}tar"}
2841
2842install_sh=${install_sh-"$am_aux_dir/install-sh"}
2843
2844# Installed binaries are usually stripped using `strip' when the user
2845# run `make install-strip'.  However `strip' might not be the right
2846# tool to use in cross-compilation environments, therefore Automake
2847# will honor the `STRIP' environment variable to overrule this program.
2848if test "$cross_compiling" != no; then
2849  if test -n "$ac_tool_prefix"; then
2850  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2851set dummy ${ac_tool_prefix}strip; ac_word=$2
2852echo "$as_me:$LINENO: checking for $ac_word" >&5
2853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2854if test "${ac_cv_prog_STRIP+set}" = set; then
2855  echo $ECHO_N "(cached) $ECHO_C" >&6
2856else
2857  if test -n "$STRIP"; then
2858  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865  for ac_exec_ext in '' $ac_executable_extensions; do
2866  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2867    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2868    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872done
2873
2874fi
2875fi
2876STRIP=$ac_cv_prog_STRIP
2877if test -n "$STRIP"; then
2878  echo "$as_me:$LINENO: result: $STRIP" >&5
2879echo "${ECHO_T}$STRIP" >&6
2880else
2881  echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6
2883fi
2884
2885fi
2886if test -z "$ac_cv_prog_STRIP"; then
2887  ac_ct_STRIP=$STRIP
2888  # Extract the first word of "strip", so it can be a program name with args.
2889set dummy strip; ac_word=$2
2890echo "$as_me:$LINENO: checking for $ac_word" >&5
2891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2893  echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895  if test -n "$ac_ct_STRIP"; then
2896  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2897else
2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899for as_dir in $PATH
2900do
2901  IFS=$as_save_IFS
2902  test -z "$as_dir" && as_dir=.
2903  for ac_exec_ext in '' $ac_executable_extensions; do
2904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905    ac_cv_prog_ac_ct_STRIP="strip"
2906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907    break 2
2908  fi
2909done
2910done
2911
2912  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2913fi
2914fi
2915ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2916if test -n "$ac_ct_STRIP"; then
2917  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2918echo "${ECHO_T}$ac_ct_STRIP" >&6
2919else
2920  echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
2922fi
2923
2924  STRIP=$ac_ct_STRIP
2925else
2926  STRIP="$ac_cv_prog_STRIP"
2927fi
2928
2929fi
2930INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2931
2932# We need awk for the "check" target.  The system "awk" is bad on
2933# some platforms.
2934
2935
2936depcc="$CC"   am_compiler_list=
2937
2938echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2939echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2940if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2941  echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2944  # We make a subdir and do the tests there.  Otherwise we can end up
2945  # making bogus files that we don't know about and never remove.  For
2946  # instance it was reported that on HP-UX the gcc test will end up
2947  # making a dummy file named `D' -- because `-MD' means `put the output
2948  # in D'.
2949  mkdir conftest.dir
2950  # Copy depcomp to subdir because otherwise we won't find it if we're
2951  # using a relative directory.
2952  cp "$am_depcomp" conftest.dir
2953  cd conftest.dir
2954
2955  am_cv_CC_dependencies_compiler_type=none
2956  if test "$am_compiler_list" = ""; then
2957     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2958  fi
2959  for depmode in $am_compiler_list; do
2960    # We need to recreate these files for each test, as the compiler may
2961    # overwrite some of them when testing with obscure command lines.
2962    # This happens at least with the AIX C compiler.
2963    echo '#include "conftest.h"' > conftest.c
2964    echo 'int i;' > conftest.h
2965    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2966
2967    case $depmode in
2968    nosideeffect)
2969      # after this tag, mechanisms are not by side-effect, so they'll
2970      # only be used when explicitly requested
2971      if test "x$enable_dependency_tracking" = xyes; then
2972	continue
2973      else
2974	break
2975      fi
2976      ;;
2977    none) break ;;
2978    esac
2979    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2980    # mode.  It turns out that the SunPro C++ compiler does not properly
2981    # handle `-M -o', and we need to detect this.
2982    if depmode=$depmode \
2983       source=conftest.c object=conftest.o \
2984       depfile=conftest.Po tmpdepfile=conftest.TPo \
2985       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2986       grep conftest.h conftest.Po > /dev/null 2>&1 &&
2987       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2988      am_cv_CC_dependencies_compiler_type=$depmode
2989      break
2990    fi
2991  done
2992
2993  cd ..
2994  rm -rf conftest.dir
2995else
2996  am_cv_CC_dependencies_compiler_type=none
2997fi
2998
2999fi
3000echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3001echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3002CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3003
3004
3005
3006
3007
3008
3009test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3010test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3011
3012# Make sure we can run config.sub.
3013$ac_config_sub sun4 >/dev/null 2>&1 ||
3014  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3015echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3016   { (exit 1); exit 1; }; }
3017
3018echo "$as_me:$LINENO: checking build system type" >&5
3019echo $ECHO_N "checking build system type... $ECHO_C" >&6
3020if test "${ac_cv_build+set}" = set; then
3021  echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023  ac_cv_build_alias=$build_alias
3024test -z "$ac_cv_build_alias" &&
3025  ac_cv_build_alias=`$ac_config_guess`
3026test -z "$ac_cv_build_alias" &&
3027  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3028echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3029   { (exit 1); exit 1; }; }
3030ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3031  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3032echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3033   { (exit 1); exit 1; }; }
3034
3035fi
3036echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3037echo "${ECHO_T}$ac_cv_build" >&6
3038build=$ac_cv_build
3039build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3040build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3041build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3042
3043
3044echo "$as_me:$LINENO: checking host system type" >&5
3045echo $ECHO_N "checking host system type... $ECHO_C" >&6
3046if test "${ac_cv_host+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049  ac_cv_host_alias=$host_alias
3050test -z "$ac_cv_host_alias" &&
3051  ac_cv_host_alias=$ac_cv_build_alias
3052ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3053  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3054echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3055   { (exit 1); exit 1; }; }
3056
3057fi
3058echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3059echo "${ECHO_T}$ac_cv_host" >&6
3060host=$ac_cv_host
3061host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3062host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3063host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3064
3065
3066CANONICAL_HOST=$host
3067
3068
3069
3070cat >>confdefs.h <<\_ACEOF
3071#define _GNU_SOURCE 1
3072_ACEOF
3073
3074
3075
3076
3077
3078for ac_prog in 'bison -y' byacc
3079do
3080  # Extract the first word of "$ac_prog", so it can be a program name with args.
3081set dummy $ac_prog; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_YACC+set}" = set; then
3085  echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087  if test -n "$YACC"; then
3088  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095  for ac_exec_ext in '' $ac_executable_extensions; do
3096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097    ac_cv_prog_YACC="$ac_prog"
3098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102done
3103
3104fi
3105fi
3106YACC=$ac_cv_prog_YACC
3107if test -n "$YACC"; then
3108  echo "$as_me:$LINENO: result: $YACC" >&5
3109echo "${ECHO_T}$YACC" >&6
3110else
3111  echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115  test -n "$YACC" && break
3116done
3117test -n "$YACC" || YACC="yacc"
3118
3119for ac_prog in flex lex
3120do
3121  # Extract the first word of "$ac_prog", so it can be a program name with args.
3122set dummy $ac_prog; ac_word=$2
3123echo "$as_me:$LINENO: checking for $ac_word" >&5
3124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125if test "${ac_cv_prog_LEX+set}" = set; then
3126  echo $ECHO_N "(cached) $ECHO_C" >&6
3127else
3128  if test -n "$LEX"; then
3129  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136  for ac_exec_ext in '' $ac_executable_extensions; do
3137  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138    ac_cv_prog_LEX="$ac_prog"
3139    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143done
3144
3145fi
3146fi
3147LEX=$ac_cv_prog_LEX
3148if test -n "$LEX"; then
3149  echo "$as_me:$LINENO: result: $LEX" >&5
3150echo "${ECHO_T}$LEX" >&6
3151else
3152  echo "$as_me:$LINENO: result: no" >&5
3153echo "${ECHO_T}no" >&6
3154fi
3155
3156  test -n "$LEX" && break
3157done
3158test -n "$LEX" || LEX=":"
3159
3160if test -z "$LEXLIB"
3161then
3162  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3163echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3164if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  ac_check_lib_save_LIBS=$LIBS
3168LIBS="-lfl  $LIBS"
3169cat >conftest.$ac_ext <<_ACEOF
3170#line $LINENO "configure"
3171#include "confdefs.h"
3172
3173/* Override any gcc2 internal prototype to avoid an error.  */
3174#ifdef __cplusplus
3175extern "C"
3176#endif
3177/* We use char because int might match the return type of a gcc2
3178   builtin and then its argument prototype would still apply.  */
3179char yywrap ();
3180#ifdef F77_DUMMY_MAIN
3181#  ifdef __cplusplus
3182     extern "C"
3183#  endif
3184   int F77_DUMMY_MAIN() { return 1; }
3185#endif
3186int
3187main ()
3188{
3189yywrap ();
3190  ;
3191  return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext conftest$ac_exeext
3195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3196  (eval $ac_link) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); } &&
3200         { ac_try='test -s conftest$ac_exeext'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; }; then
3206  ac_cv_lib_fl_yywrap=yes
3207else
3208  echo "$as_me: failed program was:" >&5
3209cat conftest.$ac_ext >&5
3210ac_cv_lib_fl_yywrap=no
3211fi
3212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3213LIBS=$ac_check_lib_save_LIBS
3214fi
3215echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3216echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3217if test $ac_cv_lib_fl_yywrap = yes; then
3218  LEXLIB="-lfl"
3219else
3220  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3221echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3222if test "${ac_cv_lib_l_yywrap+set}" = set; then
3223  echo $ECHO_N "(cached) $ECHO_C" >&6
3224else
3225  ac_check_lib_save_LIBS=$LIBS
3226LIBS="-ll  $LIBS"
3227cat >conftest.$ac_ext <<_ACEOF
3228#line $LINENO "configure"
3229#include "confdefs.h"
3230
3231/* Override any gcc2 internal prototype to avoid an error.  */
3232#ifdef __cplusplus
3233extern "C"
3234#endif
3235/* We use char because int might match the return type of a gcc2
3236   builtin and then its argument prototype would still apply.  */
3237char yywrap ();
3238#ifdef F77_DUMMY_MAIN
3239#  ifdef __cplusplus
3240     extern "C"
3241#  endif
3242   int F77_DUMMY_MAIN() { return 1; }
3243#endif
3244int
3245main ()
3246{
3247yywrap ();
3248  ;
3249  return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
3253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254  (eval $ac_link) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); } &&
3258         { ac_try='test -s conftest$ac_exeext'
3259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260  (eval $ac_try) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }; }; then
3264  ac_cv_lib_l_yywrap=yes
3265else
3266  echo "$as_me: failed program was:" >&5
3267cat conftest.$ac_ext >&5
3268ac_cv_lib_l_yywrap=no
3269fi
3270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3271LIBS=$ac_check_lib_save_LIBS
3272fi
3273echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3274echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3275if test $ac_cv_lib_l_yywrap = yes; then
3276  LEXLIB="-ll"
3277fi
3278
3279fi
3280
3281fi
3282
3283if test "x$LEX" != "x:"; then
3284  echo "$as_me:$LINENO: checking lex output file root" >&5
3285echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3286if test "${ac_cv_prog_lex_root+set}" = set; then
3287  echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289  # The minimal lex program is just a single line: %%.  But some broken lexes
3290# (Solaris, I think it was) want two %% lines, so accommodate them.
3291cat >conftest.l <<_ACEOF
3292%%
3293%%
3294_ACEOF
3295{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3296  (eval $LEX conftest.l) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }
3300if test -f lex.yy.c; then
3301  ac_cv_prog_lex_root=lex.yy
3302elif test -f lexyy.c; then
3303  ac_cv_prog_lex_root=lexyy
3304else
3305  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3306echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3307   { (exit 1); exit 1; }; }
3308fi
3309fi
3310echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3311echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3312rm -f conftest.l
3313LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3314
3315echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3316echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3317if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  # POSIX says lex can declare yytext either as a pointer or an array; the
3321# default is implementation-dependent. Figure out which it is, since
3322# not all implementations provide the %pointer and %array declarations.
3323ac_cv_prog_lex_yytext_pointer=no
3324echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3325ac_save_LIBS=$LIBS
3326LIBS="$LIBS $LEXLIB"
3327cat >conftest.$ac_ext <<_ACEOF
3328`cat $LEX_OUTPUT_ROOT.c`
3329_ACEOF
3330rm -f conftest.$ac_objext conftest$ac_exeext
3331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3332  (eval $ac_link) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); } &&
3336         { ac_try='test -s conftest$ac_exeext'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; }; then
3342  ac_cv_prog_lex_yytext_pointer=yes
3343else
3344  echo "$as_me: failed program was:" >&5
3345cat conftest.$ac_ext >&5
3346fi
3347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3348LIBS=$ac_save_LIBS
3349rm -f "${LEX_OUTPUT_ROOT}.c"
3350
3351fi
3352echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3353echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3354if test $ac_cv_prog_lex_yytext_pointer = yes; then
3355
3356cat >>confdefs.h <<\_ACEOF
3357#define YYTEXT_POINTER 1
3358_ACEOF
3359
3360fi
3361
3362fi
3363if test "$LEX" = :; then
3364  LEX=${am_missing_run}flex
3365fi
3366for ac_prog in gawk mawk nawk awk
3367do
3368  # Extract the first word of "$ac_prog", so it can be a program name with args.
3369set dummy $ac_prog; ac_word=$2
3370echo "$as_me:$LINENO: checking for $ac_word" >&5
3371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372if test "${ac_cv_prog_AWK+set}" = set; then
3373  echo $ECHO_N "(cached) $ECHO_C" >&6
3374else
3375  if test -n "$AWK"; then
3376  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381  IFS=$as_save_IFS
3382  test -z "$as_dir" && as_dir=.
3383  for ac_exec_ext in '' $ac_executable_extensions; do
3384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385    ac_cv_prog_AWK="$ac_prog"
3386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387    break 2
3388  fi
3389done
3390done
3391
3392fi
3393fi
3394AWK=$ac_cv_prog_AWK
3395if test -n "$AWK"; then
3396  echo "$as_me:$LINENO: result: $AWK" >&5
3397echo "${ECHO_T}$AWK" >&6
3398else
3399  echo "$as_me:$LINENO: result: no" >&5
3400echo "${ECHO_T}no" >&6
3401fi
3402
3403  test -n "$AWK" && break
3404done
3405
3406echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3407echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3408if test "${ac_cv_prog_LN_S+set}" = set; then
3409  echo $ECHO_N "(cached) $ECHO_C" >&6
3410else
3411  rm -f conftestdata
3412if ln -s X conftestdata 2>/dev/null
3413then
3414  rm -f conftestdata
3415  ac_cv_prog_LN_S="ln -s"
3416else
3417  touch conftestdata1
3418  if ln conftestdata1 conftestdata2; then
3419    rm -f conftestdata*
3420    ac_cv_prog_LN_S=ln
3421  else
3422    ac_cv_prog_LN_S=cp
3423  fi
3424fi
3425fi
3426LN_S="$ac_cv_prog_LN_S"
3427echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3428echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3429
3430
3431
3432
3433# Check whether --with-mips_abi or --without-mips_abi was given.
3434if test "${with_mips_abi+set}" = set; then
3435  withval="$with_mips_abi"
3436
3437fi;
3438
3439case "$host_os" in
3440irix*)
3441with_mips_abi="${with_mips_abi:-yes}"
3442if test -n "$GCC"; then
3443
3444# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3445# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3446#
3447# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3448# GCC and revert back to O32. The same goes if O32 is asked for - old
3449# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3450#
3451# Don't you just love *all* the different SGI ABIs?
3452
3453case "${with_mips_abi}" in
3454        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
3455       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
3456        64) abi='-mabi=64';  abilibdirext='64'   ;;
3457	no) abi=''; abilibdirext='';;
3458         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3459echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3460   { (exit 1); exit 1; }; } ;;
3461esac
3462if test -n "$abi" ; then
3463ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
3464echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
3465echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
3466if eval "test \"\${$ac_foo+set}\" = set"; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469
3470save_CFLAGS="$CFLAGS"
3471CFLAGS="$CFLAGS $abi"
3472cat >conftest.$ac_ext <<_ACEOF
3473#line $LINENO "configure"
3474#include "confdefs.h"
3475
3476#ifdef F77_DUMMY_MAIN
3477#  ifdef __cplusplus
3478     extern "C"
3479#  endif
3480   int F77_DUMMY_MAIN() { return 1; }
3481#endif
3482int
3483main ()
3484{
3485int x;
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); } &&
3496         { ac_try='test -s conftest.$ac_objext'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; }; then
3502  eval $ac_foo=yes
3503else
3504  echo "$as_me: failed program was:" >&5
3505cat conftest.$ac_ext >&5
3506eval $ac_foo=no
3507fi
3508rm -f conftest.$ac_objext conftest.$ac_ext
3509CFLAGS="$save_CFLAGS"
3510
3511fi
3512
3513ac_res=`eval echo \\\$$ac_foo`
3514echo "$as_me:$LINENO: result: $ac_res" >&5
3515echo "${ECHO_T}$ac_res" >&6
3516if test $ac_res = no; then
3517# Try to figure out why that failed...
3518case $abi in
3519	-mabi=32)
3520	save_CFLAGS="$CFLAGS"
3521	CFLAGS="$CFLAGS -mabi=n32"
3522	cat >conftest.$ac_ext <<_ACEOF
3523#line $LINENO "configure"
3524#include "confdefs.h"
3525
3526#ifdef F77_DUMMY_MAIN
3527#  ifdef __cplusplus
3528     extern "C"
3529#  endif
3530   int F77_DUMMY_MAIN() { return 1; }
3531#endif
3532int
3533main ()
3534{
3535int x;
3536  ;
3537  return 0;
3538}
3539_ACEOF
3540rm -f conftest.$ac_objext
3541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3542  (eval $ac_compile) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); } &&
3546         { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552  ac_res=yes
3553else
3554  echo "$as_me: failed program was:" >&5
3555cat conftest.$ac_ext >&5
3556ac_res=no
3557fi
3558rm -f conftest.$ac_objext conftest.$ac_ext
3559	CLAGS="$save_CFLAGS"
3560	if test $ac_res = yes; then
3561		# New GCC
3562		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3563echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3564   { (exit 1); exit 1; }; }
3565	fi
3566	# Old GCC
3567	abi=''
3568	abilibdirext=''
3569	;;
3570	-mabi=n32|-mabi=64)
3571		if test $with_mips_abi = yes; then
3572			# Old GCC, default to O32
3573			abi=''
3574			abilibdirext=''
3575		else
3576			# Some broken GCC
3577			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
3578echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
3579   { (exit 1); exit 1; }; }
3580		fi
3581	;;
3582esac
3583fi #if test $ac_res = no; then
3584fi #if test -n "$abi" ; then
3585else
3586case "${with_mips_abi}" in
3587        32|o32) abi='-32'; abilibdirext=''     ;;
3588       n32|yes) abi='-n32'; abilibdirext='32'  ;;
3589        64) abi='-64'; abilibdirext='64'   ;;
3590	no) abi=''; abilibdirext='';;
3591         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
3592echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
3593   { (exit 1); exit 1; }; } ;;
3594esac
3595fi #if test -n "$GCC"; then
3596;;
3597esac
3598
3599CC="$CC $abi"
3600libdir="$libdir$abilibdirext"
3601
3602
3603echo "$as_me:$LINENO: checking for __attribute__" >&5
3604echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
3605if test "${ac_cv___attribute__+set}" = set; then
3606  echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608
3609cat >conftest.$ac_ext <<_ACEOF
3610#line $LINENO "configure"
3611#include "confdefs.h"
3612
3613#include <stdlib.h>
3614
3615#ifdef F77_DUMMY_MAIN
3616#  ifdef __cplusplus
3617     extern "C"
3618#  endif
3619   int F77_DUMMY_MAIN() { return 1; }
3620#endif
3621int
3622main ()
3623{
3624
3625static void foo(void) __attribute__ ((noreturn));
3626
3627static void
3628foo(void)
3629{
3630  exit(1);
3631}
3632
3633  ;
3634  return 0;
3635}
3636_ACEOF
3637rm -f conftest.$ac_objext
3638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639  (eval $ac_compile) 2>&5
3640  ac_status=$?
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -s conftest.$ac_objext'
3644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3645  (eval $ac_try) 2>&5
3646  ac_status=$?
3647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648  (exit $ac_status); }; }; then
3649  ac_cv___attribute__=yes
3650else
3651  echo "$as_me: failed program was:" >&5
3652cat conftest.$ac_ext >&5
3653ac_cv___attribute__=no
3654fi
3655rm -f conftest.$ac_objext conftest.$ac_ext
3656fi
3657
3658if test "$ac_cv___attribute__" = "yes"; then
3659
3660cat >>confdefs.h <<\_ACEOF
3661#define HAVE___ATTRIBUTE__ 1
3662_ACEOF
3663
3664fi
3665echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
3666echo "${ECHO_T}$ac_cv___attribute__" >&6
3667
3668
3669# Check whether --enable-shared or --disable-shared was given.
3670if test "${enable_shared+set}" = set; then
3671  enableval="$enable_shared"
3672  p=${PACKAGE-default}
3673case $enableval in
3674yes) enable_shared=yes ;;
3675no) enable_shared=no ;;
3676*)
3677  enable_shared=no
3678  # Look at the argument we got.  We use all the common list separators.
3679  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3680  for pkg in $enableval; do
3681    if test "X$pkg" = "X$p"; then
3682      enable_shared=yes
3683    fi
3684  done
3685  IFS="$ac_save_ifs"
3686  ;;
3687esac
3688else
3689  enable_shared=no
3690fi;
3691# Check whether --enable-static or --disable-static was given.
3692if test "${enable_static+set}" = set; then
3693  enableval="$enable_static"
3694  p=${PACKAGE-default}
3695case $enableval in
3696yes) enable_static=yes ;;
3697no) enable_static=no ;;
3698*)
3699  enable_static=no
3700  # Look at the argument we got.  We use all the common list separators.
3701  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3702  for pkg in $enableval; do
3703    if test "X$pkg" = "X$p"; then
3704      enable_static=yes
3705    fi
3706  done
3707  IFS="$ac_save_ifs"
3708  ;;
3709esac
3710else
3711  enable_static=yes
3712fi;
3713# Check whether --enable-fast-install or --disable-fast-install was given.
3714if test "${enable_fast_install+set}" = set; then
3715  enableval="$enable_fast_install"
3716  p=${PACKAGE-default}
3717case $enableval in
3718yes) enable_fast_install=yes ;;
3719no) enable_fast_install=no ;;
3720*)
3721  enable_fast_install=no
3722  # Look at the argument we got.  We use all the common list separators.
3723  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3724  for pkg in $enableval; do
3725    if test "X$pkg" = "X$p"; then
3726      enable_fast_install=yes
3727    fi
3728  done
3729  IFS="$ac_save_ifs"
3730  ;;
3731esac
3732else
3733  enable_fast_install=yes
3734fi;
3735# Find the correct PATH separator.  Usually this is `:', but
3736# DJGPP uses `;' like DOS.
3737if test "X${PATH_SEPARATOR+set}" != Xset; then
3738  UNAME=${UNAME-`uname 2>/dev/null`}
3739  case X$UNAME in
3740    *-DOS) lt_cv_sys_path_separator=';' ;;
3741    *)     lt_cv_sys_path_separator=':' ;;
3742  esac
3743  PATH_SEPARATOR=$lt_cv_sys_path_separator
3744fi
3745
3746
3747# Check whether --with-gnu-ld or --without-gnu-ld was given.
3748if test "${with_gnu_ld+set}" = set; then
3749  withval="$with_gnu_ld"
3750  test "$withval" = no || with_gnu_ld=yes
3751else
3752  with_gnu_ld=no
3753fi;
3754ac_prog=ld
3755if test "$GCC" = yes; then
3756  # Check if gcc -print-prog-name=ld gives a path.
3757  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3758echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3759  case $host in
3760  *-*-mingw*)
3761    # gcc leaves a trailing carriage return which upsets mingw
3762    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3763  *)
3764    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3765  esac
3766  case $ac_prog in
3767    # Accept absolute paths.
3768    [\\/]* | [A-Za-z]:[\\/]*)
3769      re_direlt='/[^/][^/]*/\.\./'
3770      # Canonicalize the path of ld
3771      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3772      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3773	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3774      done
3775      test -z "$LD" && LD="$ac_prog"
3776      ;;
3777  "")
3778    # If it fails, then pretend we aren't using GCC.
3779    ac_prog=ld
3780    ;;
3781  *)
3782    # If it is relative, then search for the first ld in PATH.
3783    with_gnu_ld=unknown
3784    ;;
3785  esac
3786elif test "$with_gnu_ld" = yes; then
3787  echo "$as_me:$LINENO: checking for GNU ld" >&5
3788echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3789else
3790  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3791echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3792fi
3793if test "${lt_cv_path_LD+set}" = set; then
3794  echo $ECHO_N "(cached) $ECHO_C" >&6
3795else
3796  if test -z "$LD"; then
3797  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3798  for ac_dir in $PATH; do
3799    test -z "$ac_dir" && ac_dir=.
3800    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3801      lt_cv_path_LD="$ac_dir/$ac_prog"
3802      # Check to see if the program is GNU ld.  I'd rather use --version,
3803      # but apparently some GNU ld's only accept -v.
3804      # Break only if it was the GNU/non-GNU ld that we prefer.
3805      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3806	test "$with_gnu_ld" != no && break
3807      else
3808	test "$with_gnu_ld" != yes && break
3809      fi
3810    fi
3811  done
3812  IFS="$ac_save_ifs"
3813else
3814  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3815fi
3816fi
3817
3818LD="$lt_cv_path_LD"
3819if test -n "$LD"; then
3820  echo "$as_me:$LINENO: result: $LD" >&5
3821echo "${ECHO_T}$LD" >&6
3822else
3823  echo "$as_me:$LINENO: result: no" >&5
3824echo "${ECHO_T}no" >&6
3825fi
3826test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3827echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3828   { (exit 1); exit 1; }; }
3829echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3830echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3831if test "${lt_cv_prog_gnu_ld+set}" = set; then
3832  echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3835if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3836  lt_cv_prog_gnu_ld=yes
3837else
3838  lt_cv_prog_gnu_ld=no
3839fi
3840fi
3841echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843with_gnu_ld=$lt_cv_prog_gnu_ld
3844
3845
3846echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848if test "${lt_cv_ld_reload_flag+set}" = set; then
3849  echo $ECHO_N "(cached) $ECHO_C" >&6
3850else
3851  lt_cv_ld_reload_flag='-r'
3852fi
3853echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855reload_flag=$lt_cv_ld_reload_flag
3856test -n "$reload_flag" && reload_flag=" $reload_flag"
3857
3858echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3859echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3860if test "${lt_cv_path_NM+set}" = set; then
3861  echo $ECHO_N "(cached) $ECHO_C" >&6
3862else
3863  if test -n "$NM"; then
3864  # Let the user override the test.
3865  lt_cv_path_NM="$NM"
3866else
3867  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3868  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3869    test -z "$ac_dir" && ac_dir=.
3870    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3871    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3872      # Check to see if the nm accepts a BSD-compat flag.
3873      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3874      #   nm: unknown option "B" ignored
3875      # Tru64's nm complains that /dev/null is an invalid object file
3876      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3877	lt_cv_path_NM="$tmp_nm -B"
3878	break
3879      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3880	lt_cv_path_NM="$tmp_nm -p"
3881	break
3882      else
3883	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3884	continue # so that we can try to find one that supports BSD flags
3885      fi
3886    fi
3887  done
3888  IFS="$ac_save_ifs"
3889  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3890fi
3891fi
3892
3893NM="$lt_cv_path_NM"
3894echo "$as_me:$LINENO: result: $NM" >&5
3895echo "${ECHO_T}$NM" >&6
3896
3897echo "$as_me:$LINENO: checking whether ln -s works" >&5
3898echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3899LN_S=$as_ln_s
3900if test "$LN_S" = "ln -s"; then
3901  echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903else
3904  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3905echo "${ECHO_T}no, using $LN_S" >&6
3906fi
3907
3908echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3909echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3910if test "${lt_cv_deplibs_check_method+set}" = set; then
3911  echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913  lt_cv_file_magic_cmd='$MAGIC_CMD'
3914lt_cv_file_magic_test_file=
3915lt_cv_deplibs_check_method='unknown'
3916# Need to set the preceding variable on all platforms that support
3917# interlibrary dependencies.
3918# 'none' -- dependencies not supported.
3919# `unknown' -- same as none, but documents that we really don't know.
3920# 'pass_all' -- all dependencies passed with no checks.
3921# 'test_compile' -- check by making test program.
3922# 'file_magic [[regex]]' -- check by looking for files in library path
3923# which responds to the $file_magic_cmd with a given egrep regex.
3924# If you have `file' or equivalent on your system and you're not sure
3925# whether `pass_all' will *always* work, you probably want this one.
3926
3927case $host_os in
3928aix4* | aix5*)
3929  lt_cv_deplibs_check_method=pass_all
3930  ;;
3931
3932beos*)
3933  lt_cv_deplibs_check_method=pass_all
3934  ;;
3935
3936bsdi4*)
3937  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3938  lt_cv_file_magic_cmd='/usr/bin/file -L'
3939  lt_cv_file_magic_test_file=/shlib/libc.so
3940  ;;
3941
3942cygwin* | mingw* | pw32*)
3943  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3944  lt_cv_file_magic_cmd='$OBJDUMP -f'
3945  ;;
3946
3947darwin* | rhapsody*)
3948  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3949  lt_cv_file_magic_cmd='/usr/bin/file -L'
3950  case "$host_os" in
3951  rhapsody* | darwin1.[012])
3952    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3953    ;;
3954  *) # Darwin 1.3 on
3955    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3956    ;;
3957  esac
3958  ;;
3959
3960freebsd*)
3961  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3962    case $host_cpu in
3963    i*86 )
3964      # Not sure whether the presence of OpenBSD here was a mistake.
3965      # Let's accept both of them until this is cleared up.
3966      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3967      lt_cv_file_magic_cmd=/usr/bin/file
3968      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3969      ;;
3970    esac
3971  else
3972    lt_cv_deplibs_check_method=pass_all
3973  fi
3974  ;;
3975
3976gnu*)
3977  lt_cv_deplibs_check_method=pass_all
3978  ;;
3979
3980hpux10.20*|hpux11*)
3981  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3982  lt_cv_file_magic_cmd=/usr/bin/file
3983  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3984  ;;
3985
3986irix5* | irix6*)
3987  case $host_os in
3988  irix5*)
3989    # this will be overridden with pass_all, but let us keep it just in case
3990    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3991    ;;
3992  *)
3993    case $LD in
3994    *-32|*"-32 ") libmagic=32-bit;;
3995    *-n32|*"-n32 ") libmagic=N32;;
3996    *-64|*"-64 ") libmagic=64-bit;;
3997    *) libmagic=never-match;;
3998    esac
3999    # this will be overridden with pass_all, but let us keep it just in case
4000    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4001    ;;
4002  esac
4003  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4004  lt_cv_deplibs_check_method=pass_all
4005  ;;
4006
4007# This must be Linux ELF.
4008linux-gnu*)
4009  case $host_cpu in
4010  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4011    lt_cv_deplibs_check_method=pass_all ;;
4012  *)
4013    # glibc up to 2.1.1 does not perform some relocations on ARM
4014    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4015  esac
4016  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4017  ;;
4018
4019netbsd*)
4020  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4022  else
4023    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4024  fi
4025  ;;
4026
4027newos6*)
4028  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4029  lt_cv_file_magic_cmd=/usr/bin/file
4030  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4031  ;;
4032
4033openbsd*)
4034  lt_cv_file_magic_cmd=/usr/bin/file
4035  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4036  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4037    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4038  else
4039    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4040  fi
4041  ;;
4042
4043osf3* | osf4* | osf5*)
4044  # this will be overridden with pass_all, but let us keep it just in case
4045  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4046  lt_cv_file_magic_test_file=/shlib/libc.so
4047  lt_cv_deplibs_check_method=pass_all
4048  ;;
4049
4050sco3.2v5*)
4051  lt_cv_deplibs_check_method=pass_all
4052  ;;
4053
4054solaris*)
4055  lt_cv_deplibs_check_method=pass_all
4056  lt_cv_file_magic_test_file=/lib/libc.so
4057  ;;
4058
4059sysv5uw[78]* | sysv4*uw2*)
4060  lt_cv_deplibs_check_method=pass_all
4061  ;;
4062
4063sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4064  case $host_vendor in
4065  motorola)
4066    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4067    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4068    ;;
4069  ncr)
4070    lt_cv_deplibs_check_method=pass_all
4071    ;;
4072  sequent)
4073    lt_cv_file_magic_cmd='/bin/file'
4074    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4075    ;;
4076  sni)
4077    lt_cv_file_magic_cmd='/bin/file'
4078    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4079    lt_cv_file_magic_test_file=/lib/libc.so
4080    ;;
4081  esac
4082  ;;
4083esac
4084
4085fi
4086echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4087echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4088file_magic_cmd=$lt_cv_file_magic_cmd
4089deplibs_check_method=$lt_cv_deplibs_check_method
4090
4091
4092
4093
4094
4095# Check for command to grab the raw symbol name followed by C symbol from nm.
4096echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4097echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4098if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101
4102# These are sane defaults that work on at least a few old systems.
4103# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
4104
4105# Character class describing NM global symbol codes.
4106symcode='[BCDEGRST]'
4107
4108# Regexp to match symbols that can be accessed directly from C.
4109sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4110
4111# Transform the above into a raw symbol and a C symbol.
4112symxfrm='\1 \2\3 \3'
4113
4114# Transform an extracted symbol line into a proper C declaration
4115lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4116
4117# Transform an extracted symbol line into symbol name and symbol address
4118lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4119
4120# Define system-specific variables.
4121case $host_os in
4122aix*)
4123  symcode='[BCDT]'
4124  ;;
4125cygwin* | mingw* | pw32*)
4126  symcode='[ABCDGISTW]'
4127  ;;
4128hpux*) # Its linker distinguishes data from code symbols
4129  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4130  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4131  ;;
4132irix*)
4133  symcode='[BCDEGRST]'
4134  ;;
4135solaris* | sysv5*)
4136  symcode='[BDT]'
4137  ;;
4138sysv4)
4139  symcode='[DFNSTU]'
4140  ;;
4141esac
4142
4143# Handle CRLF in mingw tool chain
4144opt_cr=
4145case $host_os in
4146mingw*)
4147  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4148  ;;
4149esac
4150
4151# If we're using GNU nm, then use its standard symbol codes.
4152if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4153  symcode='[ABCDGISTW]'
4154fi
4155
4156# Try without a prefix undercore, then with it.
4157for ac_symprfx in "" "_"; do
4158
4159  # Write the raw and C identifiers.
4160lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4161
4162  # Check to see that the pipe works correctly.
4163  pipe_works=no
4164  rm -f conftest*
4165  cat > conftest.$ac_ext <<EOF
4166#ifdef __cplusplus
4167extern "C" {
4168#endif
4169char nm_test_var;
4170void nm_test_func(){}
4171#ifdef __cplusplus
4172}
4173#endif
4174int main(){nm_test_var='a';nm_test_func();return(0);}
4175EOF
4176
4177  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178  (eval $ac_compile) 2>&5
4179  ac_status=$?
4180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181  (exit $ac_status); }; then
4182    # Now try to grab the symbols.
4183    nlist=conftest.nm
4184    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4185  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); } && test -s "$nlist"; then
4189      # Try sorting and uniquifying the output.
4190      if sort "$nlist" | uniq > "$nlist"T; then
4191	mv -f "$nlist"T "$nlist"
4192      else
4193	rm -f "$nlist"T
4194      fi
4195
4196      # Make sure that we snagged all the symbols we need.
4197      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4198	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4199	  cat <<EOF > conftest.$ac_ext
4200#ifdef __cplusplus
4201extern "C" {
4202#endif
4203
4204EOF
4205	  # Now generate the symbol file.
4206	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4207
4208	  cat <<EOF >> conftest.$ac_ext
4209#if defined (__STDC__) && __STDC__
4210# define lt_ptr void *
4211#else
4212# define lt_ptr char *
4213# define const
4214#endif
4215
4216/* The mapping between symbol names and symbols. */
4217const struct {
4218  const char *name;
4219  lt_ptr address;
4220}
4221lt_preloaded_symbols[] =
4222{
4223EOF
4224	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4225	  cat <<\EOF >> conftest.$ac_ext
4226  {0, (lt_ptr) 0}
4227};
4228
4229#ifdef __cplusplus
4230}
4231#endif
4232EOF
4233	  # Now try linking the two files.
4234	  mv conftest.$ac_objext conftstm.$ac_objext
4235	  save_LIBS="$LIBS"
4236	  save_CFLAGS="$CFLAGS"
4237	  LIBS="conftstm.$ac_objext"
4238	  CFLAGS="$CFLAGS$no_builtin_flag"
4239	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240  (eval $ac_link) 2>&5
4241  ac_status=$?
4242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243  (exit $ac_status); } && test -s conftest; then
4244	    pipe_works=yes
4245	  fi
4246	  LIBS="$save_LIBS"
4247	  CFLAGS="$save_CFLAGS"
4248	else
4249	  echo "cannot find nm_test_func in $nlist" >&5
4250	fi
4251      else
4252	echo "cannot find nm_test_var in $nlist" >&5
4253      fi
4254    else
4255      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4256    fi
4257  else
4258    echo "$progname: failed program was:" >&5
4259    cat conftest.$ac_ext >&5
4260  fi
4261  rm -f conftest* conftst*
4262
4263  # Do not use the global_symbol_pipe unless it works.
4264  if test "$pipe_works" = yes; then
4265    break
4266  else
4267    lt_cv_sys_global_symbol_pipe=
4268  fi
4269done
4270
4271fi
4272
4273global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4274if test -z "$lt_cv_sys_global_symbol_pipe"; then
4275  global_symbol_to_cdecl=
4276  global_symbol_to_c_name_address=
4277else
4278  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4279  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4280fi
4281if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4282then
4283  echo "$as_me:$LINENO: result: failed" >&5
4284echo "${ECHO_T}failed" >&6
4285else
4286  echo "$as_me:$LINENO: result: ok" >&5
4287echo "${ECHO_T}ok" >&6
4288fi
4289
4290
4291echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4292echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4293if test "${ac_cv_header_stdc+set}" = set; then
4294  echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296  cat >conftest.$ac_ext <<_ACEOF
4297#line $LINENO "configure"
4298#include "confdefs.h"
4299#include <stdlib.h>
4300#include <stdarg.h>
4301#include <string.h>
4302#include <float.h>
4303
4304_ACEOF
4305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4306  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4307  ac_status=$?
4308  egrep -v '^ *\+' conftest.er1 >conftest.err
4309  rm -f conftest.er1
4310  cat conftest.err >&5
4311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312  (exit $ac_status); } >/dev/null; then
4313  if test -s conftest.err; then
4314    ac_cpp_err=$ac_c_preproc_warn_flag
4315  else
4316    ac_cpp_err=
4317  fi
4318else
4319  ac_cpp_err=yes
4320fi
4321if test -z "$ac_cpp_err"; then
4322  ac_cv_header_stdc=yes
4323else
4324  echo "$as_me: failed program was:" >&5
4325  cat conftest.$ac_ext >&5
4326  ac_cv_header_stdc=no
4327fi
4328rm -f conftest.err conftest.$ac_ext
4329
4330if test $ac_cv_header_stdc = yes; then
4331  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4332  cat >conftest.$ac_ext <<_ACEOF
4333#line $LINENO "configure"
4334#include "confdefs.h"
4335#include <string.h>
4336
4337_ACEOF
4338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339  egrep "memchr" >/dev/null 2>&1; then
4340  :
4341else
4342  ac_cv_header_stdc=no
4343fi
4344rm -f conftest*
4345
4346fi
4347
4348if test $ac_cv_header_stdc = yes; then
4349  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4350  cat >conftest.$ac_ext <<_ACEOF
4351#line $LINENO "configure"
4352#include "confdefs.h"
4353#include <stdlib.h>
4354
4355_ACEOF
4356if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4357  egrep "free" >/dev/null 2>&1; then
4358  :
4359else
4360  ac_cv_header_stdc=no
4361fi
4362rm -f conftest*
4363
4364fi
4365
4366if test $ac_cv_header_stdc = yes; then
4367  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4368  if test "$cross_compiling" = yes; then
4369  :
4370else
4371  cat >conftest.$ac_ext <<_ACEOF
4372#line $LINENO "configure"
4373#include "confdefs.h"
4374#include <ctype.h>
4375#if ((' ' & 0x0FF) == 0x020)
4376# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4378#else
4379# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4380                     || ('j' <= (c) && (c) <= 'r') \
4381                     || ('s' <= (c) && (c) <= 'z'))
4382# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4383#endif
4384
4385#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4386int
4387main ()
4388{
4389  int i;
4390  for (i = 0; i < 256; i++)
4391    if (XOR (islower (i), ISLOWER (i))
4392        || toupper (i) != TOUPPER (i))
4393      exit(2);
4394  exit (0);
4395}
4396_ACEOF
4397rm -f conftest$ac_exeext
4398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399  (eval $ac_link) 2>&5
4400  ac_status=$?
4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404  (eval $ac_try) 2>&5
4405  ac_status=$?
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); }; }; then
4408  :
4409else
4410  echo "$as_me: program exited with status $ac_status" >&5
4411echo "$as_me: failed program was:" >&5
4412cat conftest.$ac_ext >&5
4413( exit $ac_status )
4414ac_cv_header_stdc=no
4415fi
4416rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4417fi
4418fi
4419fi
4420echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4421echo "${ECHO_T}$ac_cv_header_stdc" >&6
4422if test $ac_cv_header_stdc = yes; then
4423
4424cat >>confdefs.h <<\_ACEOF
4425#define STDC_HEADERS 1
4426_ACEOF
4427
4428fi
4429
4430# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441                  inttypes.h stdint.h unistd.h
4442do
4443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444echo "$as_me:$LINENO: checking for $ac_header" >&5
4445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4446if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  cat >conftest.$ac_ext <<_ACEOF
4450#line $LINENO "configure"
4451#include "confdefs.h"
4452$ac_includes_default
4453
4454#include <$ac_header>
4455_ACEOF
4456rm -f conftest.$ac_objext
4457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4458  (eval $ac_compile) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); } &&
4462         { ac_try='test -s conftest.$ac_objext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  eval "$as_ac_Header=yes"
4469else
4470  echo "$as_me: failed program was:" >&5
4471cat conftest.$ac_ext >&5
4472eval "$as_ac_Header=no"
4473fi
4474rm -f conftest.$ac_objext conftest.$ac_ext
4475fi
4476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4478if test `eval echo '${'$as_ac_Header'}'` = yes; then
4479  cat >>confdefs.h <<_ACEOF
4480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481_ACEOF
4482
4483fi
4484
4485done
4486
4487
4488
4489for ac_header in dlfcn.h
4490do
4491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4492if eval "test \"\${$as_ac_Header+set}\" = set"; then
4493  echo "$as_me:$LINENO: checking for $ac_header" >&5
4494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4495if eval "test \"\${$as_ac_Header+set}\" = set"; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497fi
4498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4500else
4501  # Is the header compilable?
4502echo "$as_me:$LINENO: checking $ac_header usability" >&5
4503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4504cat >conftest.$ac_ext <<_ACEOF
4505#line $LINENO "configure"
4506#include "confdefs.h"
4507$ac_includes_default
4508#include <$ac_header>
4509_ACEOF
4510rm -f conftest.$ac_objext
4511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4512  (eval $ac_compile) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); } &&
4516         { ac_try='test -s conftest.$ac_objext'
4517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518  (eval $ac_try) 2>&5
4519  ac_status=$?
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; }; then
4522  ac_header_compiler=yes
4523else
4524  echo "$as_me: failed program was:" >&5
4525cat conftest.$ac_ext >&5
4526ac_header_compiler=no
4527fi
4528rm -f conftest.$ac_objext conftest.$ac_ext
4529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4530echo "${ECHO_T}$ac_header_compiler" >&6
4531
4532# Is the header present?
4533echo "$as_me:$LINENO: checking $ac_header presence" >&5
4534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4535cat >conftest.$ac_ext <<_ACEOF
4536#line $LINENO "configure"
4537#include "confdefs.h"
4538#include <$ac_header>
4539_ACEOF
4540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4541  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4542  ac_status=$?
4543  egrep -v '^ *\+' conftest.er1 >conftest.err
4544  rm -f conftest.er1
4545  cat conftest.err >&5
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); } >/dev/null; then
4548  if test -s conftest.err; then
4549    ac_cpp_err=$ac_c_preproc_warn_flag
4550  else
4551    ac_cpp_err=
4552  fi
4553else
4554  ac_cpp_err=yes
4555fi
4556if test -z "$ac_cpp_err"; then
4557  ac_header_preproc=yes
4558else
4559  echo "$as_me: failed program was:" >&5
4560  cat conftest.$ac_ext >&5
4561  ac_header_preproc=no
4562fi
4563rm -f conftest.err conftest.$ac_ext
4564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4565echo "${ECHO_T}$ac_header_preproc" >&6
4566
4567# So?  What about this header?
4568case $ac_header_compiler:$ac_header_preproc in
4569  yes:no )
4570    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4574  no:yes )
4575    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4577    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4579    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4581esac
4582echo "$as_me:$LINENO: checking for $ac_header" >&5
4583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4584if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587  eval "$as_ac_Header=$ac_header_preproc"
4588fi
4589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4591
4592fi
4593if test `eval echo '${'$as_ac_Header'}'` = yes; then
4594  cat >>confdefs.h <<_ACEOF
4595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4596_ACEOF
4597
4598fi
4599
4600done
4601
4602
4603
4604
4605
4606# Only perform the check for file, if the check method requires it
4607case $deplibs_check_method in
4608file_magic*)
4609  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4610    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4611echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4612if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  case $MAGIC_CMD in
4616  /*)
4617  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4618  ;;
4619  ?:/*)
4620  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4621  ;;
4622  *)
4623  ac_save_MAGIC_CMD="$MAGIC_CMD"
4624  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4625  ac_dummy="/usr/bin:$PATH"
4626  for ac_dir in $ac_dummy; do
4627    test -z "$ac_dir" && ac_dir=.
4628    if test -f $ac_dir/${ac_tool_prefix}file; then
4629      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4630      if test -n "$file_magic_test_file"; then
4631	case $deplibs_check_method in
4632	"file_magic "*)
4633	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4634	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4635	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4636	    egrep "$file_magic_regex" > /dev/null; then
4637	    :
4638	  else
4639	    cat <<EOF 1>&2
4640
4641*** Warning: the command libtool uses to detect shared libraries,
4642*** $file_magic_cmd, produces output that libtool cannot recognize.
4643*** The result is that libtool may fail to recognize shared libraries
4644*** as such.  This will affect the creation of libtool libraries that
4645*** depend on shared libraries, but programs linked with such libtool
4646*** libraries will work regardless of this problem.  Nevertheless, you
4647*** may want to report the problem to your system manager and/or to
4648*** bug-libtool@gnu.org
4649
4650EOF
4651	  fi ;;
4652	esac
4653      fi
4654      break
4655    fi
4656  done
4657  IFS="$ac_save_ifs"
4658  MAGIC_CMD="$ac_save_MAGIC_CMD"
4659  ;;
4660esac
4661fi
4662
4663MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4664if test -n "$MAGIC_CMD"; then
4665  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4666echo "${ECHO_T}$MAGIC_CMD" >&6
4667else
4668  echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
4671
4672if test -z "$lt_cv_path_MAGIC_CMD"; then
4673  if test -n "$ac_tool_prefix"; then
4674    echo "$as_me:$LINENO: checking for file" >&5
4675echo $ECHO_N "checking for file... $ECHO_C" >&6
4676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4677  echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679  case $MAGIC_CMD in
4680  /*)
4681  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4682  ;;
4683  ?:/*)
4684  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4685  ;;
4686  *)
4687  ac_save_MAGIC_CMD="$MAGIC_CMD"
4688  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4689  ac_dummy="/usr/bin:$PATH"
4690  for ac_dir in $ac_dummy; do
4691    test -z "$ac_dir" && ac_dir=.
4692    if test -f $ac_dir/file; then
4693      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4694      if test -n "$file_magic_test_file"; then
4695	case $deplibs_check_method in
4696	"file_magic "*)
4697	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4698	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4699	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4700	    egrep "$file_magic_regex" > /dev/null; then
4701	    :
4702	  else
4703	    cat <<EOF 1>&2
4704
4705*** Warning: the command libtool uses to detect shared libraries,
4706*** $file_magic_cmd, produces output that libtool cannot recognize.
4707*** The result is that libtool may fail to recognize shared libraries
4708*** as such.  This will affect the creation of libtool libraries that
4709*** depend on shared libraries, but programs linked with such libtool
4710*** libraries will work regardless of this problem.  Nevertheless, you
4711*** may want to report the problem to your system manager and/or to
4712*** bug-libtool@gnu.org
4713
4714EOF
4715	  fi ;;
4716	esac
4717      fi
4718      break
4719    fi
4720  done
4721  IFS="$ac_save_ifs"
4722  MAGIC_CMD="$ac_save_MAGIC_CMD"
4723  ;;
4724esac
4725fi
4726
4727MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4728if test -n "$MAGIC_CMD"; then
4729  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4730echo "${ECHO_T}$MAGIC_CMD" >&6
4731else
4732  echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734fi
4735
4736  else
4737    MAGIC_CMD=:
4738  fi
4739fi
4740
4741  fi
4742  ;;
4743esac
4744
4745if test -n "$ac_tool_prefix"; then
4746  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4747set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4748echo "$as_me:$LINENO: checking for $ac_word" >&5
4749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4750if test "${ac_cv_prog_RANLIB+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if test -n "$RANLIB"; then
4754  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4755else
4756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757for as_dir in $PATH
4758do
4759  IFS=$as_save_IFS
4760  test -z "$as_dir" && as_dir=.
4761  for ac_exec_ext in '' $ac_executable_extensions; do
4762  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765    break 2
4766  fi
4767done
4768done
4769
4770fi
4771fi
4772RANLIB=$ac_cv_prog_RANLIB
4773if test -n "$RANLIB"; then
4774  echo "$as_me:$LINENO: result: $RANLIB" >&5
4775echo "${ECHO_T}$RANLIB" >&6
4776else
4777  echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779fi
4780
4781fi
4782if test -z "$ac_cv_prog_RANLIB"; then
4783  ac_ct_RANLIB=$RANLIB
4784  # Extract the first word of "ranlib", so it can be a program name with args.
4785set dummy ranlib; ac_word=$2
4786echo "$as_me:$LINENO: checking for $ac_word" >&5
4787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  if test -n "$ac_ct_RANLIB"; then
4792  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799  for ac_exec_ext in '' $ac_executable_extensions; do
4800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801    ac_cv_prog_ac_ct_RANLIB="ranlib"
4802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803    break 2
4804  fi
4805done
4806done
4807
4808  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4809fi
4810fi
4811ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4812if test -n "$ac_ct_RANLIB"; then
4813  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4814echo "${ECHO_T}$ac_ct_RANLIB" >&6
4815else
4816  echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820  RANLIB=$ac_ct_RANLIB
4821else
4822  RANLIB="$ac_cv_prog_RANLIB"
4823fi
4824
4825if test -n "$ac_tool_prefix"; then
4826  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4827set dummy ${ac_tool_prefix}strip; ac_word=$2
4828echo "$as_me:$LINENO: checking for $ac_word" >&5
4829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4830if test "${ac_cv_prog_STRIP+set}" = set; then
4831  echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833  if test -n "$STRIP"; then
4834  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4835else
4836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837for as_dir in $PATH
4838do
4839  IFS=$as_save_IFS
4840  test -z "$as_dir" && as_dir=.
4841  for ac_exec_ext in '' $ac_executable_extensions; do
4842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4845    break 2
4846  fi
4847done
4848done
4849
4850fi
4851fi
4852STRIP=$ac_cv_prog_STRIP
4853if test -n "$STRIP"; then
4854  echo "$as_me:$LINENO: result: $STRIP" >&5
4855echo "${ECHO_T}$STRIP" >&6
4856else
4857  echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861fi
4862if test -z "$ac_cv_prog_STRIP"; then
4863  ac_ct_STRIP=$STRIP
4864  # Extract the first word of "strip", so it can be a program name with args.
4865set dummy strip; ac_word=$2
4866echo "$as_me:$LINENO: checking for $ac_word" >&5
4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4869  echo $ECHO_N "(cached) $ECHO_C" >&6
4870else
4871  if test -n "$ac_ct_STRIP"; then
4872  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4873else
4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875for as_dir in $PATH
4876do
4877  IFS=$as_save_IFS
4878  test -z "$as_dir" && as_dir=.
4879  for ac_exec_ext in '' $ac_executable_extensions; do
4880  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881    ac_cv_prog_ac_ct_STRIP="strip"
4882    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4883    break 2
4884  fi
4885done
4886done
4887
4888  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4889fi
4890fi
4891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4892if test -n "$ac_ct_STRIP"; then
4893  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4894echo "${ECHO_T}$ac_ct_STRIP" >&6
4895else
4896  echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
4900  STRIP=$ac_ct_STRIP
4901else
4902  STRIP="$ac_cv_prog_STRIP"
4903fi
4904
4905
4906enable_dlopen=no
4907enable_win32_dll=no
4908
4909# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4910if test "${enable_libtool_lock+set}" = set; then
4911  enableval="$enable_libtool_lock"
4912
4913fi;
4914test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4915
4916# Some flags need to be propagated to the compiler or linker for good
4917# libtool support.
4918case $host in
4919*-*-irix6*)
4920  # Find out which ABI we are using.
4921  echo '#line 4921 "configure"' > conftest.$ac_ext
4922  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4923  (eval $ac_compile) 2>&5
4924  ac_status=$?
4925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926  (exit $ac_status); }; then
4927    case `/usr/bin/file conftest.$ac_objext` in
4928    *32-bit*)
4929      LD="${LD-ld} -32"
4930      ;;
4931    *N32*)
4932      LD="${LD-ld} -n32"
4933      ;;
4934    *64-bit*)
4935      LD="${LD-ld} -64"
4936      ;;
4937    esac
4938  fi
4939  rm -rf conftest*
4940  ;;
4941
4942*-*-sco3.2v5*)
4943  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4944  SAVE_CFLAGS="$CFLAGS"
4945  CFLAGS="$CFLAGS -belf"
4946  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4947echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4948if test "${lt_cv_cc_needs_belf+set}" = set; then
4949  echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951
4952
4953     ac_ext=c
4954ac_cpp='$CPP $CPPFLAGS'
4955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957ac_compiler_gnu=$ac_cv_c_compiler_gnu
4958
4959     cat >conftest.$ac_ext <<_ACEOF
4960#line $LINENO "configure"
4961#include "confdefs.h"
4962
4963#ifdef F77_DUMMY_MAIN
4964#  ifdef __cplusplus
4965     extern "C"
4966#  endif
4967   int F77_DUMMY_MAIN() { return 1; }
4968#endif
4969int
4970main ()
4971{
4972
4973  ;
4974  return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext conftest$ac_exeext
4978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979  (eval $ac_link) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); } &&
4983         { ac_try='test -s conftest$ac_exeext'
4984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985  (eval $ac_try) 2>&5
4986  ac_status=$?
4987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988  (exit $ac_status); }; }; then
4989  lt_cv_cc_needs_belf=yes
4990else
4991  echo "$as_me: failed program was:" >&5
4992cat conftest.$ac_ext >&5
4993lt_cv_cc_needs_belf=no
4994fi
4995rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4996     ac_ext=c
4997ac_cpp='$CPP $CPPFLAGS'
4998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000ac_compiler_gnu=$ac_cv_c_compiler_gnu
5001
5002fi
5003echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5004echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5005  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5006    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5007    CFLAGS="$SAVE_CFLAGS"
5008  fi
5009  ;;
5010
5011
5012esac
5013
5014# Sed substitution that helps us do robust quoting.  It backslashifies
5015# metacharacters that are still active within double-quoted strings.
5016Xsed='sed -e s/^X//'
5017sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5018
5019# Same as above, but do not quote variable references.
5020double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5021
5022# Sed substitution to delay expansion of an escaped shell variable in a
5023# double_quote_subst'ed string.
5024delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5025
5026# Constants:
5027rm="rm -f"
5028
5029# Global variables:
5030default_ofile=libtool
5031can_build_shared=yes
5032
5033# All known linkers require a `.a' archive for static linking (except M$VC,
5034# which needs '.lib').
5035libext=a
5036ltmain="$ac_aux_dir/ltmain.sh"
5037ofile="$default_ofile"
5038with_gnu_ld="$lt_cv_prog_gnu_ld"
5039need_locks="$enable_libtool_lock"
5040
5041old_CC="$CC"
5042old_CFLAGS="$CFLAGS"
5043
5044# Set sane defaults for various variables
5045test -z "$AR" && AR=ar
5046test -z "$AR_FLAGS" && AR_FLAGS=cru
5047test -z "$AS" && AS=as
5048test -z "$CC" && CC=cc
5049test -z "$DLLTOOL" && DLLTOOL=dlltool
5050test -z "$LD" && LD=ld
5051test -z "$LN_S" && LN_S="ln -s"
5052test -z "$MAGIC_CMD" && MAGIC_CMD=file
5053test -z "$NM" && NM=nm
5054test -z "$OBJDUMP" && OBJDUMP=objdump
5055test -z "$RANLIB" && RANLIB=:
5056test -z "$STRIP" && STRIP=:
5057test -z "$ac_objext" && ac_objext=o
5058
5059if test x"$host" != x"$build"; then
5060  ac_tool_prefix=${host_alias}-
5061else
5062  ac_tool_prefix=
5063fi
5064
5065# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5066case $host_os in
5067linux-gnu*) ;;
5068linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5069esac
5070
5071case $host_os in
5072aix3*)
5073  # AIX sometimes has problems with the GCC collect2 program.  For some
5074  # reason, if we set the COLLECT_NAMES environment variable, the problems
5075  # vanish in a puff of smoke.
5076  if test "X${COLLECT_NAMES+set}" != Xset; then
5077    COLLECT_NAMES=
5078    export COLLECT_NAMES
5079  fi
5080  ;;
5081esac
5082
5083# Determine commands to create old-style static archives.
5084old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5085old_postinstall_cmds='chmod 644 $oldlib'
5086old_postuninstall_cmds=
5087
5088if test -n "$RANLIB"; then
5089  case $host_os in
5090  openbsd*)
5091    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5092    ;;
5093  *)
5094    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5095    ;;
5096  esac
5097  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5098fi
5099
5100# Allow CC to be a program name with arguments.
5101set dummy $CC
5102compiler="$2"
5103
5104echo "$as_me:$LINENO: checking for objdir" >&5
5105echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5106rm -f .libs 2>/dev/null
5107mkdir .libs 2>/dev/null
5108if test -d .libs; then
5109  objdir=.libs
5110else
5111  # MS-DOS does not allow filenames that begin with a dot.
5112  objdir=_libs
5113fi
5114rmdir .libs 2>/dev/null
5115echo "$as_me:$LINENO: result: $objdir" >&5
5116echo "${ECHO_T}$objdir" >&6
5117
5118
5119
5120# Check whether --with-pic or --without-pic was given.
5121if test "${with_pic+set}" = set; then
5122  withval="$with_pic"
5123  pic_mode="$withval"
5124else
5125  pic_mode=default
5126fi;
5127test -z "$pic_mode" && pic_mode=default
5128
5129# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5130# in isolation, and that seeing it set (from the cache) indicates that
5131# the associated values are set (in the cache) correctly too.
5132echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5133echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5134if test "${lt_cv_prog_cc_pic+set}" = set; then
5135  echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137   lt_cv_prog_cc_pic=
5138  lt_cv_prog_cc_shlib=
5139  lt_cv_prog_cc_wl=
5140  lt_cv_prog_cc_static=
5141  lt_cv_prog_cc_no_builtin=
5142  lt_cv_prog_cc_can_build_shared=$can_build_shared
5143
5144  if test "$GCC" = yes; then
5145    lt_cv_prog_cc_wl='-Wl,'
5146    lt_cv_prog_cc_static='-static'
5147
5148    case $host_os in
5149    aix*)
5150      # Below there is a dirty hack to force normal static linking with -ldl
5151      # The problem is because libdl dynamically linked with both libc and
5152      # libC (AIX C++ library), which obviously doesn't included in libraries
5153      # list by gcc. This cause undefined symbols with -static flags.
5154      # This hack allows C programs to be linked with "-static -ldl", but
5155      # not sure about C++ programs.
5156      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5157      ;;
5158    amigaos*)
5159      # FIXME: we need at least 68020 code to build shared libraries, but
5160      # adding the `-m68020' flag to GCC prevents building anything better,
5161      # like `-m68040'.
5162      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5163      ;;
5164    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5165      # PIC is the default for these OSes.
5166      ;;
5167    darwin* | rhapsody*)
5168      # PIC is the default on this platform
5169      # Common symbols not allowed in MH_DYLIB files
5170      lt_cv_prog_cc_pic='-fno-common'
5171      ;;
5172    cygwin* | mingw* | pw32* | os2*)
5173      # This hack is so that the source file can tell whether it is being
5174      # built for inclusion in a dll (and should export symbols for example).
5175      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5176      ;;
5177    sysv4*MP*)
5178      if test -d /usr/nec; then
5179	 lt_cv_prog_cc_pic=-Kconform_pic
5180      fi
5181      ;;
5182    *)
5183      lt_cv_prog_cc_pic='-fPIC'
5184      ;;
5185    esac
5186  else
5187    # PORTME Check for PIC flags for the system compiler.
5188    case $host_os in
5189    aix3* | aix4* | aix5*)
5190      lt_cv_prog_cc_wl='-Wl,'
5191      # All AIX code is PIC.
5192      if test "$host_cpu" = ia64; then
5193	# AIX 5 now supports IA64 processor
5194	lt_cv_prog_cc_static='-Bstatic'
5195      else
5196	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5197      fi
5198      ;;
5199
5200    hpux9* | hpux10* | hpux11*)
5201      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5202      lt_cv_prog_cc_wl='-Wl,'
5203      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5204      lt_cv_prog_cc_pic='+Z'
5205      ;;
5206
5207    irix5* | irix6*)
5208      lt_cv_prog_cc_wl='-Wl,'
5209      lt_cv_prog_cc_static='-non_shared'
5210      # PIC (with -KPIC) is the default.
5211      ;;
5212
5213    cygwin* | mingw* | pw32* | os2*)
5214      # This hack is so that the source file can tell whether it is being
5215      # built for inclusion in a dll (and should export symbols for example).
5216      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5217      ;;
5218
5219    newsos6)
5220      lt_cv_prog_cc_pic='-KPIC'
5221      lt_cv_prog_cc_static='-Bstatic'
5222      ;;
5223
5224    osf3* | osf4* | osf5*)
5225      # All OSF/1 code is PIC.
5226      lt_cv_prog_cc_wl='-Wl,'
5227      lt_cv_prog_cc_static='-non_shared'
5228      ;;
5229
5230    sco3.2v5*)
5231      lt_cv_prog_cc_pic='-Kpic'
5232      lt_cv_prog_cc_static='-dn'
5233      lt_cv_prog_cc_shlib='-belf'
5234      ;;
5235
5236    solaris*)
5237      lt_cv_prog_cc_pic='-KPIC'
5238      lt_cv_prog_cc_static='-Bstatic'
5239      lt_cv_prog_cc_wl='-Wl,'
5240      ;;
5241
5242    sunos4*)
5243      lt_cv_prog_cc_pic='-PIC'
5244      lt_cv_prog_cc_static='-Bstatic'
5245      lt_cv_prog_cc_wl='-Qoption ld '
5246      ;;
5247
5248    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5249      lt_cv_prog_cc_pic='-KPIC'
5250      lt_cv_prog_cc_static='-Bstatic'
5251      if test "x$host_vendor" = xsni; then
5252	lt_cv_prog_cc_wl='-LD'
5253      else
5254	lt_cv_prog_cc_wl='-Wl,'
5255      fi
5256      ;;
5257
5258    uts4*)
5259      lt_cv_prog_cc_pic='-pic'
5260      lt_cv_prog_cc_static='-Bstatic'
5261      ;;
5262
5263    sysv4*MP*)
5264      if test -d /usr/nec ;then
5265	lt_cv_prog_cc_pic='-Kconform_pic'
5266	lt_cv_prog_cc_static='-Bstatic'
5267      fi
5268      ;;
5269
5270    *)
5271      lt_cv_prog_cc_can_build_shared=no
5272      ;;
5273    esac
5274  fi
5275
5276fi
5277
5278if test -z "$lt_cv_prog_cc_pic"; then
5279  echo "$as_me:$LINENO: result: none" >&5
5280echo "${ECHO_T}none" >&6
5281else
5282  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5283echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5284
5285  # Check to make sure the pic_flag actually works.
5286  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5287echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5288  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5289  echo $ECHO_N "(cached) $ECHO_C" >&6
5290else
5291      save_CFLAGS="$CFLAGS"
5292    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5293    cat >conftest.$ac_ext <<_ACEOF
5294#line $LINENO "configure"
5295#include "confdefs.h"
5296
5297#ifdef F77_DUMMY_MAIN
5298#  ifdef __cplusplus
5299     extern "C"
5300#  endif
5301   int F77_DUMMY_MAIN() { return 1; }
5302#endif
5303int
5304main ()
5305{
5306
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311rm -f conftest.$ac_objext
5312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313  (eval $ac_compile) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); } &&
5317         { ac_try='test -s conftest.$ac_objext'
5318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319  (eval $ac_try) 2>&5
5320  ac_status=$?
5321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322  (exit $ac_status); }; }; then
5323        case $host_os in
5324      hpux9* | hpux10* | hpux11*)
5325	# On HP-UX, both CC and GCC only warn that PIC is supported... then
5326	# they create non-PIC objects.  So, if there were any warnings, we
5327	# assume that PIC is not supported.
5328	if test -s conftest.err; then
5329	  lt_cv_prog_cc_pic_works=no
5330	else
5331	  lt_cv_prog_cc_pic_works=yes
5332	fi
5333	;;
5334      *)
5335	lt_cv_prog_cc_pic_works=yes
5336	;;
5337      esac
5338
5339else
5340  echo "$as_me: failed program was:" >&5
5341cat conftest.$ac_ext >&5
5342      lt_cv_prog_cc_pic_works=no
5343
5344fi
5345rm -f conftest.$ac_objext conftest.$ac_ext
5346    CFLAGS="$save_CFLAGS"
5347
5348fi
5349
5350
5351  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5352    lt_cv_prog_cc_pic=
5353    lt_cv_prog_cc_can_build_shared=no
5354  else
5355    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5356  fi
5357
5358  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5359echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5360fi
5361
5362# Check for any special shared library compilation flags.
5363if test -n "$lt_cv_prog_cc_shlib"; then
5364  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5365echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5366  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
5367  else
5368   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5369echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5370    lt_cv_prog_cc_can_build_shared=no
5371  fi
5372fi
5373
5374echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5375echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5376if test "${lt_cv_prog_cc_static_works+set}" = set; then
5377  echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379    lt_cv_prog_cc_static_works=no
5380  save_LDFLAGS="$LDFLAGS"
5381  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5382  cat >conftest.$ac_ext <<_ACEOF
5383#line $LINENO "configure"
5384#include "confdefs.h"
5385
5386#ifdef F77_DUMMY_MAIN
5387#  ifdef __cplusplus
5388     extern "C"
5389#  endif
5390   int F77_DUMMY_MAIN() { return 1; }
5391#endif
5392int
5393main ()
5394{
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>&5
5403  ac_status=$?
5404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405  (exit $ac_status); } &&
5406         { ac_try='test -s conftest$ac_exeext'
5407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408  (eval $ac_try) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); }; }; then
5412  lt_cv_prog_cc_static_works=yes
5413else
5414  echo "$as_me: failed program was:" >&5
5415cat conftest.$ac_ext >&5
5416fi
5417rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418  LDFLAGS="$save_LDFLAGS"
5419
5420fi
5421
5422
5423# Belt *and* braces to stop my trousers falling down:
5424test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5425echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5426echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5427
5428pic_flag="$lt_cv_prog_cc_pic"
5429special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5430wl="$lt_cv_prog_cc_wl"
5431link_static_flag="$lt_cv_prog_cc_static"
5432no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5433can_build_shared="$lt_cv_prog_cc_can_build_shared"
5434
5435
5436# Check to see if options -o and -c are simultaneously supported by compiler
5437echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5438echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5439if test "${lt_cv_compiler_c_o+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442
5443$rm -r conftest 2>/dev/null
5444mkdir conftest
5445cd conftest
5446echo "int some_variable = 0;" > conftest.$ac_ext
5447mkdir out
5448# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5449# that will create temporary files in the current directory regardless of
5450# the output directory.  Thus, making CWD read-only will cause this test
5451# to fail, enabling locking or at least warning the user not to do parallel
5452# builds.
5453chmod -w .
5454save_CFLAGS="$CFLAGS"
5455CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5456compiler_c_o=no
5457if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5458  # The compiler can only warn and ignore the option if not recognized
5459  # So say no if there are warnings
5460  if test -s out/conftest.err; then
5461    lt_cv_compiler_c_o=no
5462  else
5463    lt_cv_compiler_c_o=yes
5464  fi
5465else
5466  # Append any errors to the config.log.
5467  cat out/conftest.err 1>&5
5468  lt_cv_compiler_c_o=no
5469fi
5470CFLAGS="$save_CFLAGS"
5471chmod u+w .
5472$rm conftest* out/*
5473rmdir out
5474cd ..
5475rmdir conftest
5476$rm -r conftest 2>/dev/null
5477
5478fi
5479
5480compiler_c_o=$lt_cv_compiler_c_o
5481echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5482echo "${ECHO_T}$compiler_c_o" >&6
5483
5484if test x"$compiler_c_o" = x"yes"; then
5485  # Check to see if we can write to a .lo
5486  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5487echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5488  if test "${lt_cv_compiler_o_lo+set}" = set; then
5489  echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491
5492  lt_cv_compiler_o_lo=no
5493  save_CFLAGS="$CFLAGS"
5494  CFLAGS="$CFLAGS -c -o conftest.lo"
5495  save_objext="$ac_objext"
5496  ac_objext=lo
5497  cat >conftest.$ac_ext <<_ACEOF
5498#line $LINENO "configure"
5499#include "confdefs.h"
5500
5501#ifdef F77_DUMMY_MAIN
5502#  ifdef __cplusplus
5503     extern "C"
5504#  endif
5505   int F77_DUMMY_MAIN() { return 1; }
5506#endif
5507int
5508main ()
5509{
5510int some_variable = 0;
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517  (eval $ac_compile) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); } &&
5521         { ac_try='test -s conftest.$ac_objext'
5522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523  (eval $ac_try) 2>&5
5524  ac_status=$?
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); }; }; then
5527      # The compiler can only warn and ignore the option if not recognized
5528    # So say no if there are warnings
5529    if test -s conftest.err; then
5530      lt_cv_compiler_o_lo=no
5531    else
5532      lt_cv_compiler_o_lo=yes
5533    fi
5534
5535else
5536  echo "$as_me: failed program was:" >&5
5537cat conftest.$ac_ext >&5
5538fi
5539rm -f conftest.$ac_objext conftest.$ac_ext
5540  ac_objext="$save_objext"
5541  CFLAGS="$save_CFLAGS"
5542
5543fi
5544
5545  compiler_o_lo=$lt_cv_compiler_o_lo
5546  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5547echo "${ECHO_T}$compiler_o_lo" >&6
5548else
5549  compiler_o_lo=no
5550fi
5551
5552# Check to see if we can do hard links to lock some files if needed
5553hard_links="nottested"
5554if test "$compiler_c_o" = no && test "$need_locks" != no; then
5555  # do not overwrite the value of need_locks provided by the user
5556  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5557echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5558  hard_links=yes
5559  $rm conftest*
5560  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5561  touch conftest.a
5562  ln conftest.a conftest.b 2>&5 || hard_links=no
5563  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5564  echo "$as_me:$LINENO: result: $hard_links" >&5
5565echo "${ECHO_T}$hard_links" >&6
5566  if test "$hard_links" = no; then
5567    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5568echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5569    need_locks=warn
5570  fi
5571else
5572  need_locks=no
5573fi
5574
5575if test "$GCC" = yes; then
5576  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5577  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5578echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5579  echo "int some_variable = 0;" > conftest.$ac_ext
5580  save_CFLAGS="$CFLAGS"
5581  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5582  compiler_rtti_exceptions=no
5583  cat >conftest.$ac_ext <<_ACEOF
5584#line $LINENO "configure"
5585#include "confdefs.h"
5586
5587#ifdef F77_DUMMY_MAIN
5588#  ifdef __cplusplus
5589     extern "C"
5590#  endif
5591   int F77_DUMMY_MAIN() { return 1; }
5592#endif
5593int
5594main ()
5595{
5596int some_variable = 0;
5597  ;
5598  return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603  (eval $ac_compile) 2>&5
5604  ac_status=$?
5605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606  (exit $ac_status); } &&
5607         { ac_try='test -s conftest.$ac_objext'
5608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609  (eval $ac_try) 2>&5
5610  ac_status=$?
5611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612  (exit $ac_status); }; }; then
5613      # The compiler can only warn and ignore the option if not recognized
5614    # So say no if there are warnings
5615    if test -s conftest.err; then
5616      compiler_rtti_exceptions=no
5617    else
5618      compiler_rtti_exceptions=yes
5619    fi
5620
5621else
5622  echo "$as_me: failed program was:" >&5
5623cat conftest.$ac_ext >&5
5624fi
5625rm -f conftest.$ac_objext conftest.$ac_ext
5626  CFLAGS="$save_CFLAGS"
5627  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5628echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5629
5630  if test "$compiler_rtti_exceptions" = "yes"; then
5631    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5632  else
5633    no_builtin_flag=' -fno-builtin'
5634  fi
5635fi
5636
5637# See if the linker supports building shared libraries.
5638echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5639echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5640
5641allow_undefined_flag=
5642no_undefined_flag=
5643need_lib_prefix=unknown
5644need_version=unknown
5645# when you set need_version to no, make sure it does not cause -set_version
5646# flags to be left without arguments
5647archive_cmds=
5648archive_expsym_cmds=
5649old_archive_from_new_cmds=
5650old_archive_from_expsyms_cmds=
5651export_dynamic_flag_spec=
5652whole_archive_flag_spec=
5653thread_safe_flag_spec=
5654hardcode_into_libs=no
5655hardcode_libdir_flag_spec=
5656hardcode_libdir_separator=
5657hardcode_direct=no
5658hardcode_minus_L=no
5659hardcode_shlibpath_var=unsupported
5660runpath_var=
5661link_all_deplibs=unknown
5662always_export_symbols=no
5663export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5664# include_expsyms should be a list of space-separated symbols to be *always*
5665# included in the symbol list
5666include_expsyms=
5667# exclude_expsyms can be an egrep regular expression of symbols to exclude
5668# it will be wrapped by ` (' and `)$', so one must not match beginning or
5669# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5670# as well as any symbol that contains `d'.
5671exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5672# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5673# platforms (ab)use it in PIC code, but their linkers get confused if
5674# the symbol is explicitly referenced.  Since portable code cannot
5675# rely on this symbol name, it's probably fine to never include it in
5676# preloaded symbol tables.
5677extract_expsyms_cmds=
5678
5679case $host_os in
5680cygwin* | mingw* | pw32*)
5681  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5682  # When not using gcc, we currently assume that we are using
5683  # Microsoft Visual C++.
5684  if test "$GCC" != yes; then
5685    with_gnu_ld=no
5686  fi
5687  ;;
5688openbsd*)
5689  with_gnu_ld=no
5690  ;;
5691esac
5692
5693ld_shlibs=yes
5694if test "$with_gnu_ld" = yes; then
5695  # If archive_cmds runs LD, not CC, wlarc should be empty
5696  wlarc='${wl}'
5697
5698  # See if GNU ld supports shared libraries.
5699  case $host_os in
5700  aix3* | aix4* | aix5*)
5701    # On AIX, the GNU linker is very broken
5702    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5703    ld_shlibs=no
5704    cat <<EOF 1>&2
5705
5706*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5707*** to be unable to reliably create shared libraries on AIX.
5708*** Therefore, libtool is disabling shared libraries support.  If you
5709*** really care for shared libraries, you may want to modify your PATH
5710*** so that a non-GNU linker is found, and then restart.
5711
5712EOF
5713    ;;
5714
5715  amigaos*)
5716    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5717    hardcode_libdir_flag_spec='-L$libdir'
5718    hardcode_minus_L=yes
5719
5720    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5721    # that the semantics of dynamic libraries on AmigaOS, at least up
5722    # to version 4, is to share data among multiple programs linked
5723    # with the same dynamic library.  Since this doesn't match the
5724    # behavior of shared libraries on other platforms, we can use
5725    # them.
5726    ld_shlibs=no
5727    ;;
5728
5729  beos*)
5730    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5731      allow_undefined_flag=unsupported
5732      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5733      # support --undefined.  This deserves some investigation.  FIXME
5734      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5735    else
5736      ld_shlibs=no
5737    fi
5738    ;;
5739
5740  cygwin* | mingw* | pw32*)
5741    # hardcode_libdir_flag_spec is actually meaningless, as there is
5742    # no search path for DLLs.
5743    hardcode_libdir_flag_spec='-L$libdir'
5744    allow_undefined_flag=unsupported
5745    always_export_symbols=yes
5746
5747    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5748      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5749      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5750      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5751      else $CC -o impgen impgen.c ; fi)~
5752      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5753
5754    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5755
5756    # cygwin and mingw dlls have different entry points and sets of symbols
5757    # to exclude.
5758    # FIXME: what about values for MSVC?
5759    dll_entry=__cygwin_dll_entry@12
5760    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5761    case $host_os in
5762    mingw*)
5763      # mingw values
5764      dll_entry=_DllMainCRTStartup@12
5765      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5766      ;;
5767    esac
5768
5769    # mingw and cygwin differ, and it's simplest to just exclude the union
5770    # of the two symbol sets.
5771    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5772
5773    # recent cygwin and mingw systems supply a stub DllMain which the user
5774    # can override, but on older systems we have to supply one (in ltdll.c)
5775    if test "x$lt_cv_need_dllmain" = "xyes"; then
5776      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5777      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5778	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5779    else
5780      ltdll_obj=
5781      ltdll_cmds=
5782    fi
5783
5784    # Extract the symbol export list from an `--export-all' def file,
5785    # then regenerate the def file from the symbol export list, so that
5786    # the compiled dll only exports the symbol export list.
5787    # Be careful not to strip the DATA tag left be newer dlltools.
5788    export_symbols_cmds="$ltdll_cmds"'
5789      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5790      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5791
5792    # If the export-symbols file already is a .def file (1st line
5793    # is EXPORTS), use it as is.
5794    # If DATA tags from a recent dlltool are present, honour them!
5795    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5796	cp $export_symbols $output_objdir/$soname-def;
5797      else
5798	echo EXPORTS > $output_objdir/$soname-def;
5799	_lt_hint=1;
5800	cat $export_symbols | while read symbol; do
5801	 set dummy \$symbol;
5802	 case \$# in
5803	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5804	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5805	 esac;
5806	 _lt_hint=`expr 1 + \$_lt_hint`;
5807	done;
5808      fi~
5809      '"$ltdll_cmds"'
5810      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5811      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5812      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5813      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5814      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5815    ;;
5816
5817  netbsd*)
5818    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5819      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5820      wlarc=
5821    else
5822      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5823      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5824    fi
5825    ;;
5826
5827  solaris* | sysv5*)
5828    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5829      ld_shlibs=no
5830      cat <<EOF 1>&2
5831
5832*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5833*** create shared libraries on Solaris systems.  Therefore, libtool
5834*** is disabling shared libraries support.  We urge you to upgrade GNU
5835*** binutils to release 2.9.1 or newer.  Another option is to modify
5836*** your PATH or compiler configuration so that the native linker is
5837*** used, and then restart.
5838
5839EOF
5840    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5841      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5842      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5843    else
5844      ld_shlibs=no
5845    fi
5846    ;;
5847
5848  sunos4*)
5849    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5850    wlarc=
5851    hardcode_direct=yes
5852    hardcode_shlibpath_var=no
5853    ;;
5854
5855  *)
5856    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5857      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5858      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5859    else
5860      ld_shlibs=no
5861    fi
5862    ;;
5863  esac
5864
5865  if test "$ld_shlibs" = yes; then
5866    runpath_var=LD_RUN_PATH
5867    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5868    export_dynamic_flag_spec='${wl}--export-dynamic'
5869    case $host_os in
5870    cygwin* | mingw* | pw32*)
5871      # dlltool doesn't understand --whole-archive et. al.
5872      whole_archive_flag_spec=
5873      ;;
5874    *)
5875      # ancient GNU ld didn't support --whole-archive et. al.
5876      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5877	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5878      else
5879	whole_archive_flag_spec=
5880      fi
5881      ;;
5882    esac
5883  fi
5884else
5885  # PORTME fill in a description of your system's linker (not GNU ld)
5886  case $host_os in
5887  aix3*)
5888    allow_undefined_flag=unsupported
5889    always_export_symbols=yes
5890    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5891    # Note: this linker hardcodes the directories in LIBPATH if there
5892    # are no directories specified by -L.
5893    hardcode_minus_L=yes
5894    if test "$GCC" = yes && test -z "$link_static_flag"; then
5895      # Neither direct hardcoding nor static linking is supported with a
5896      # broken collect2.
5897      hardcode_direct=unsupported
5898    fi
5899    ;;
5900
5901  aix4* | aix5*)
5902    if test "$host_cpu" = ia64; then
5903      # On IA64, the linker does run time linking by default, so we don't
5904      # have to do anything special.
5905      aix_use_runtimelinking=no
5906      exp_sym_flag='-Bexport'
5907      no_entry_flag=""
5908    else
5909      aix_use_runtimelinking=no
5910
5911      # Test if we are trying to use run time linking or normal
5912      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5913      # need to do runtime linking.
5914      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5915	for ld_flag in $LDFLAGS; do
5916	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5917	    aix_use_runtimelinking=yes
5918	    break
5919	  fi
5920	done
5921      esac
5922
5923      exp_sym_flag='-bexport'
5924      no_entry_flag='-bnoentry'
5925    fi
5926
5927    # When large executables or shared objects are built, AIX ld can
5928    # have problems creating the table of contents.  If linking a library
5929    # or program results in "error TOC overflow" add -mminimal-toc to
5930    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5931    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5932
5933    hardcode_direct=yes
5934    archive_cmds=''
5935    hardcode_libdir_separator=':'
5936    if test "$GCC" = yes; then
5937      case $host_os in aix4.[012]|aix4.[012].*)
5938	collect2name=`${CC} -print-prog-name=collect2`
5939	if test -f "$collect2name" && \
5940	  strings "$collect2name" | grep resolve_lib_name >/dev/null
5941	then
5942	  # We have reworked collect2
5943	  hardcode_direct=yes
5944	else
5945	  # We have old collect2
5946	  hardcode_direct=unsupported
5947	  # It fails to find uninstalled libraries when the uninstalled
5948	  # path is not listed in the libpath.  Setting hardcode_minus_L
5949	  # to unsupported forces relinking
5950	  hardcode_minus_L=yes
5951	  hardcode_libdir_flag_spec='-L$libdir'
5952	  hardcode_libdir_separator=
5953	fi
5954      esac
5955
5956      shared_flag='-shared'
5957    else
5958      # not using gcc
5959      if test "$host_cpu" = ia64; then
5960	shared_flag='${wl}-G'
5961      else
5962	if test "$aix_use_runtimelinking" = yes; then
5963	  shared_flag='${wl}-G'
5964	else
5965	  shared_flag='${wl}-bM:SRE'
5966	fi
5967      fi
5968    fi
5969
5970    # It seems that -bexpall can do strange things, so it is better to
5971    # generate a list of symbols to export.
5972    always_export_symbols=yes
5973    if test "$aix_use_runtimelinking" = yes; then
5974      # Warning - without using the other runtime loading flags (-brtl),
5975      # -berok will link without error, but may produce a broken library.
5976      allow_undefined_flag='-berok'
5977      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5978      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5979    else
5980      if test "$host_cpu" = ia64; then
5981	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5982	allow_undefined_flag="-z nodefs"
5983	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5984      else
5985	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5986	# Warning - without using the other run time loading flags,
5987	# -berok will link without error, but may produce a broken library.
5988	allow_undefined_flag='${wl}-berok'
5989	# This is a bit strange, but is similar to how AIX traditionally builds
5990	# it's shared libraries.
5991	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5992      fi
5993    fi
5994    ;;
5995
5996  amigaos*)
5997    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5998    hardcode_libdir_flag_spec='-L$libdir'
5999    hardcode_minus_L=yes
6000    # see comment about different semantics on the GNU ld section
6001    ld_shlibs=no
6002    ;;
6003
6004  cygwin* | mingw* | pw32*)
6005    # When not using gcc, we currently assume that we are using
6006    # Microsoft Visual C++.
6007    # hardcode_libdir_flag_spec is actually meaningless, as there is
6008    # no search path for DLLs.
6009    hardcode_libdir_flag_spec=' '
6010    allow_undefined_flag=unsupported
6011    # Tell ltmain to make .lib files, not .a files.
6012    libext=lib
6013    # FIXME: Setting linknames here is a bad hack.
6014    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6015    # The linker will automatically build a .lib file if we build a DLL.
6016    old_archive_from_new_cmds='true'
6017    # FIXME: Should let the user specify the lib program.
6018    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6019    fix_srcfile_path='`cygpath -w "$srcfile"`'
6020    ;;
6021
6022  darwin* | rhapsody*)
6023    case "$host_os" in
6024    rhapsody* | darwin1.[012])
6025      allow_undefined_flag='-undefined suppress'
6026      ;;
6027    *) # Darwin 1.3 on
6028      allow_undefined_flag='-flat_namespace -undefined suppress'
6029      ;;
6030    esac
6031    # FIXME: Relying on posixy $() will cause problems for
6032    #        cross-compilation, but unfortunately the echo tests do not
6033    #        yet detect zsh echo's removal of \ escapes.
6034    archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6035    # We need to add '_' to the symbols in $export_symbols first
6036    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6037    hardcode_direct=yes
6038    hardcode_shlibpath_var=no
6039    whole_archive_flag_spec='-all_load $convenience'
6040    ;;
6041
6042  freebsd1*)
6043    ld_shlibs=no
6044    ;;
6045
6046  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6047  # support.  Future versions do this automatically, but an explicit c++rt0.o
6048  # does not break anything, and helps significantly (at the cost of a little
6049  # extra space).
6050  freebsd2.2*)
6051    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6052    hardcode_libdir_flag_spec='-R$libdir'
6053    hardcode_direct=yes
6054    hardcode_shlibpath_var=no
6055    ;;
6056
6057  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6058  freebsd2*)
6059    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6060    hardcode_direct=yes
6061    hardcode_minus_L=yes
6062    hardcode_shlibpath_var=no
6063    ;;
6064
6065  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6066  freebsd*)
6067    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6068    hardcode_libdir_flag_spec='-R$libdir'
6069    hardcode_direct=yes
6070    hardcode_shlibpath_var=no
6071    ;;
6072
6073  hpux9* | hpux10* | hpux11*)
6074    case $host_os in
6075    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6076    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6077    esac
6078    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6079    hardcode_libdir_separator=:
6080    hardcode_direct=yes
6081    hardcode_minus_L=yes # Not in the search PATH, but as the default
6082			 # location of the library.
6083    export_dynamic_flag_spec='${wl}-E'
6084    ;;
6085
6086  irix5* | irix6*)
6087    if test "$GCC" = yes; then
6088      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6089    else
6090      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6091    fi
6092    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6093    hardcode_libdir_separator=:
6094    link_all_deplibs=yes
6095    ;;
6096
6097  netbsd*)
6098    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6099      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6100    else
6101      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6102    fi
6103    hardcode_libdir_flag_spec='-R$libdir'
6104    hardcode_direct=yes
6105    hardcode_shlibpath_var=no
6106    ;;
6107
6108  newsos6)
6109    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110    hardcode_direct=yes
6111    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6112    hardcode_libdir_separator=:
6113    hardcode_shlibpath_var=no
6114    ;;
6115
6116  openbsd*)
6117    hardcode_direct=yes
6118    hardcode_shlibpath_var=no
6119    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6120      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6121      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6122      export_dynamic_flag_spec='${wl}-E'
6123    else
6124      case "$host_os" in
6125      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6126	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6127	hardcode_libdir_flag_spec='-R$libdir'
6128        ;;
6129      *)
6130        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6131        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6132        ;;
6133      esac
6134    fi
6135    ;;
6136
6137  os2*)
6138    hardcode_libdir_flag_spec='-L$libdir'
6139    hardcode_minus_L=yes
6140    allow_undefined_flag=unsupported
6141    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6142    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6143    ;;
6144
6145  osf3*)
6146    if test "$GCC" = yes; then
6147      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6148      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6149    else
6150      allow_undefined_flag=' -expect_unresolved \*'
6151      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6152    fi
6153    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6154    hardcode_libdir_separator=:
6155    ;;
6156
6157  osf4* | osf5*)	# as osf3* with the addition of -msym flag
6158    if test "$GCC" = yes; then
6159      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6160      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6161      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6162    else
6163      allow_undefined_flag=' -expect_unresolved \*'
6164      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6165      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6166      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6167
6168      #Both c and cxx compiler support -rpath directly
6169      hardcode_libdir_flag_spec='-rpath $libdir'
6170    fi
6171    hardcode_libdir_separator=:
6172    ;;
6173
6174  sco3.2v5*)
6175    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6176    hardcode_shlibpath_var=no
6177    runpath_var=LD_RUN_PATH
6178    hardcode_runpath_var=yes
6179    export_dynamic_flag_spec='${wl}-Bexport'
6180    ;;
6181
6182  solaris*)
6183    # gcc --version < 3.0 without binutils cannot create self contained
6184    # shared libraries reliably, requiring libgcc.a to resolve some of
6185    # the object symbols generated in some cases.  Libraries that use
6186    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6187    # a copy of libgcc.a into every shared library to guarantee resolving
6188    # such symbols causes other problems:  According to Tim Van Holder
6189    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6190    # (to the application) exception stack for one thing.
6191    no_undefined_flag=' -z defs'
6192    if test "$GCC" = yes; then
6193      case `$CC --version 2>/dev/null` in
6194      [12].*)
6195	cat <<EOF 1>&2
6196
6197*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6198*** create self contained shared libraries on Solaris systems, without
6199*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6200*** -no-undefined support, which will at least allow you to build shared
6201*** libraries.  However, you may find that when you link such libraries
6202*** into an application without using GCC, you have to manually add
6203*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6204*** upgrade to a newer version of GCC.  Another option is to rebuild your
6205*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6206
6207EOF
6208        no_undefined_flag=
6209	;;
6210      esac
6211    fi
6212    # $CC -shared without GNU ld will not create a library from C++
6213    # object files and a static libstdc++, better avoid it by now
6214    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6215    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6216		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6217    hardcode_libdir_flag_spec='-R$libdir'
6218    hardcode_shlibpath_var=no
6219    case $host_os in
6220    solaris2.[0-5] | solaris2.[0-5].*) ;;
6221    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6222      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6223    esac
6224    link_all_deplibs=yes
6225    ;;
6226
6227  sunos4*)
6228    if test "x$host_vendor" = xsequent; then
6229      # Use $CC to link under sequent, because it throws in some extra .o
6230      # files that make .init and .fini sections work.
6231      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6232    else
6233      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6234    fi
6235    hardcode_libdir_flag_spec='-L$libdir'
6236    hardcode_direct=yes
6237    hardcode_minus_L=yes
6238    hardcode_shlibpath_var=no
6239    ;;
6240
6241  sysv4)
6242    if test "x$host_vendor" = xsno; then
6243      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6244      hardcode_direct=yes # is this really true???
6245    else
6246      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6248    fi
6249    runpath_var='LD_RUN_PATH'
6250    hardcode_shlibpath_var=no
6251    ;;
6252
6253  sysv4.3*)
6254    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6255    hardcode_shlibpath_var=no
6256    export_dynamic_flag_spec='-Bexport'
6257    ;;
6258
6259  sysv5*)
6260    no_undefined_flag=' -z text'
6261    # $CC -shared without GNU ld will not create a library from C++
6262    # object files and a static libstdc++, better avoid it by now
6263    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6264    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6265		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6266    hardcode_libdir_flag_spec=
6267    hardcode_shlibpath_var=no
6268    runpath_var='LD_RUN_PATH'
6269    ;;
6270
6271  uts4*)
6272    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6273    hardcode_libdir_flag_spec='-L$libdir'
6274    hardcode_shlibpath_var=no
6275    ;;
6276
6277  dgux*)
6278    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279    hardcode_libdir_flag_spec='-L$libdir'
6280    hardcode_shlibpath_var=no
6281    ;;
6282
6283  sysv4*MP*)
6284    if test -d /usr/nec; then
6285      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6286      hardcode_shlibpath_var=no
6287      runpath_var=LD_RUN_PATH
6288      hardcode_runpath_var=yes
6289      ld_shlibs=yes
6290    fi
6291    ;;
6292
6293  sysv4.2uw2*)
6294    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6295    hardcode_direct=yes
6296    hardcode_minus_L=no
6297    hardcode_shlibpath_var=no
6298    hardcode_runpath_var=yes
6299    runpath_var=LD_RUN_PATH
6300    ;;
6301
6302  sysv5uw7* | unixware7*)
6303    no_undefined_flag='${wl}-z ${wl}text'
6304    if test "$GCC" = yes; then
6305      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6306    else
6307      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6308    fi
6309    runpath_var='LD_RUN_PATH'
6310    hardcode_shlibpath_var=no
6311    ;;
6312
6313  *)
6314    ld_shlibs=no
6315    ;;
6316  esac
6317fi
6318echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6319echo "${ECHO_T}$ld_shlibs" >&6
6320test "$ld_shlibs" = no && can_build_shared=no
6321
6322# Check hardcoding attributes.
6323echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6324echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6325hardcode_action=
6326if test -n "$hardcode_libdir_flag_spec" || \
6327   test -n "$runpath_var"; then
6328
6329  # We can hardcode non-existant directories.
6330  if test "$hardcode_direct" != no &&
6331     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6332     # have to relink, otherwise we might link with an installed library
6333     # when we should be linking with a yet-to-be-installed one
6334     ## test "$hardcode_shlibpath_var" != no &&
6335     test "$hardcode_minus_L" != no; then
6336    # Linking always hardcodes the temporary library directory.
6337    hardcode_action=relink
6338  else
6339    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6340    hardcode_action=immediate
6341  fi
6342else
6343  # We cannot hardcode anything, or else we can only hardcode existing
6344  # directories.
6345  hardcode_action=unsupported
6346fi
6347echo "$as_me:$LINENO: result: $hardcode_action" >&5
6348echo "${ECHO_T}$hardcode_action" >&6
6349
6350striplib=
6351old_striplib=
6352echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6353echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6354if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6355  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6356  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6357  echo "$as_me:$LINENO: result: yes" >&5
6358echo "${ECHO_T}yes" >&6
6359else
6360  echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
6362fi
6363
6364reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365test -z "$deplibs_check_method" && deplibs_check_method=unknown
6366
6367# PORTME Fill in your ld.so characteristics
6368echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6369echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6370library_names_spec=
6371libname_spec='lib$name'
6372soname_spec=
6373postinstall_cmds=
6374postuninstall_cmds=
6375finish_cmds=
6376finish_eval=
6377shlibpath_var=
6378shlibpath_overrides_runpath=unknown
6379version_type=none
6380dynamic_linker="$host_os ld.so"
6381sys_lib_dlsearch_path_spec="/lib /usr/lib"
6382sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6383
6384case $host_os in
6385aix3*)
6386  version_type=linux
6387  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6388  shlibpath_var=LIBPATH
6389
6390  # AIX has no versioning support, so we append a major version to the name.
6391  soname_spec='${libname}${release}.so$major'
6392  ;;
6393
6394aix4* | aix5*)
6395  version_type=linux
6396  if test "$host_cpu" = ia64; then
6397    # AIX 5 supports IA64
6398    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6399    shlibpath_var=LD_LIBRARY_PATH
6400  else
6401    # With GCC up to 2.95.x, collect2 would create an import file
6402    # for dependence libraries.  The import file would start with
6403    # the line `#! .'.  This would cause the generated library to
6404    # depend on `.', always an invalid library.  This was fixed in
6405    # development snapshots of GCC prior to 3.0.
6406    case $host_os in
6407      aix4 | aix4.[01] | aix4.[01].*)
6408	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6409	     echo ' yes '
6410	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6411	  :
6412	else
6413	  can_build_shared=no
6414	fi
6415	;;
6416    esac
6417    # AIX (on Power*) has no versioning support, so currently we can
6418    # not hardcode correct soname into executable. Probably we can
6419    # add versioning support to collect2, so additional links can
6420    # be useful in future.
6421    if test "$aix_use_runtimelinking" = yes; then
6422      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6423      # instead of lib<name>.a to let people know that these are not
6424      # typical AIX shared libraries.
6425      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6426    else
6427      # We preserve .a as extension for shared libraries through AIX4.2
6428      # and later when we are not doing run time linking.
6429      library_names_spec='${libname}${release}.a $libname.a'
6430      soname_spec='${libname}${release}.so$major'
6431    fi
6432    shlibpath_var=LIBPATH
6433  fi
6434  ;;
6435
6436amigaos*)
6437  library_names_spec='$libname.ixlibrary $libname.a'
6438  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6440  ;;
6441
6442beos*)
6443  library_names_spec='${libname}.so'
6444  dynamic_linker="$host_os ld.so"
6445  shlibpath_var=LIBRARY_PATH
6446  ;;
6447
6448bsdi4*)
6449  version_type=linux
6450  need_version=no
6451  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452  soname_spec='${libname}${release}.so$major'
6453  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454  shlibpath_var=LD_LIBRARY_PATH
6455  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457  export_dynamic_flag_spec=-rdynamic
6458  # the default ld.so.conf also contains /usr/contrib/lib and
6459  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6460  # libtool to hard-code these into programs
6461  ;;
6462
6463cygwin* | mingw* | pw32*)
6464  version_type=windows
6465  need_version=no
6466  need_lib_prefix=no
6467  case $GCC,$host_os in
6468  yes,cygwin*)
6469    library_names_spec='$libname.dll.a'
6470    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6471    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6472      dldir=$destdir/`dirname \$dlpath`~
6473      test -d \$dldir || mkdir -p \$dldir~
6474      $install_prog .libs/$dlname \$dldir/$dlname'
6475    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6476      dlpath=$dir/\$dldll~
6477       $rm \$dlpath'
6478    ;;
6479  yes,mingw*)
6480    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6481    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6482    ;;
6483  yes,pw32*)
6484    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6485    ;;
6486  *)
6487    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6488    ;;
6489  esac
6490  dynamic_linker='Win32 ld.exe'
6491  # FIXME: first we should search . and the directory the executable is in
6492  shlibpath_var=PATH
6493  ;;
6494
6495darwin* | rhapsody*)
6496  dynamic_linker="$host_os dyld"
6497  version_type=darwin
6498  need_lib_prefix=no
6499  need_version=no
6500  # FIXME: Relying on posixy $() will cause problems for
6501  #        cross-compilation, but unfortunately the echo tests do not
6502  #        yet detect zsh echo's removal of \ escapes.
6503  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6504  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6505  shlibpath_overrides_runpath=yes
6506  shlibpath_var=DYLD_LIBRARY_PATH
6507  ;;
6508
6509freebsd1*)
6510  dynamic_linker=no
6511  ;;
6512
6513freebsd*)
6514  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6515  version_type=freebsd-$objformat
6516  case $version_type in
6517    freebsd-elf*)
6518      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6519      need_version=no
6520      need_lib_prefix=no
6521      ;;
6522    freebsd-*)
6523      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6524      need_version=yes
6525      ;;
6526  esac
6527  shlibpath_var=LD_LIBRARY_PATH
6528  case $host_os in
6529  freebsd2*)
6530    shlibpath_overrides_runpath=yes
6531    ;;
6532  *)
6533    shlibpath_overrides_runpath=no
6534    hardcode_into_libs=yes
6535    ;;
6536  esac
6537  ;;
6538
6539gnu*)
6540  version_type=linux
6541  need_lib_prefix=no
6542  need_version=no
6543  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6544  soname_spec='${libname}${release}.so$major'
6545  shlibpath_var=LD_LIBRARY_PATH
6546  hardcode_into_libs=yes
6547  ;;
6548
6549hpux9* | hpux10* | hpux11*)
6550  # Give a soname corresponding to the major version so that dld.sl refuses to
6551  # link against other versions.
6552  dynamic_linker="$host_os dld.sl"
6553  version_type=sunos
6554  need_lib_prefix=no
6555  need_version=no
6556  shlibpath_var=SHLIB_PATH
6557  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6558  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6559  soname_spec='${libname}${release}.sl$major'
6560  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6561  postinstall_cmds='chmod 555 $lib'
6562  ;;
6563
6564irix5* | irix6*)
6565  version_type=irix
6566  need_lib_prefix=no
6567  need_version=no
6568  soname_spec='${libname}${release}.so$major'
6569  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6570  case $host_os in
6571  irix5*)
6572    libsuff= shlibsuff=
6573    ;;
6574  *)
6575    case $LD in # libtool.m4 will add one of these switches to LD
6576    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6577    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6578    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6579    *) libsuff= shlibsuff= libmagic=never-match;;
6580    esac
6581    ;;
6582  esac
6583  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6584  shlibpath_overrides_runpath=no
6585  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6586  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6587  ;;
6588
6589# No shared lib support for Linux oldld, aout, or coff.
6590linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6591  dynamic_linker=no
6592  ;;
6593
6594# This must be Linux ELF.
6595linux-gnu*)
6596  version_type=linux
6597  need_lib_prefix=no
6598  need_version=no
6599  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6600  soname_spec='${libname}${release}.so$major'
6601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6602  shlibpath_var=LD_LIBRARY_PATH
6603  shlibpath_overrides_runpath=no
6604  # This implies no fast_install, which is unacceptable.
6605  # Some rework will be needed to allow for fast_install
6606  # before this can be enabled.
6607  hardcode_into_libs=yes
6608
6609  # We used to test for /lib/ld.so.1 and disable shared libraries on
6610  # powerpc, because MkLinux only supported shared libraries with the
6611  # GNU dynamic linker.  Since this was broken with cross compilers,
6612  # most powerpc-linux boxes support dynamic linking these days and
6613  # people can always --disable-shared, the test was removed, and we
6614  # assume the GNU/Linux dynamic linker is in use.
6615  dynamic_linker='GNU/Linux ld.so'
6616  ;;
6617
6618netbsd*)
6619  version_type=sunos
6620  need_lib_prefix=no
6621  need_version=no
6622  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6623    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625    dynamic_linker='NetBSD (a.out) ld.so'
6626  else
6627    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6628    soname_spec='${libname}${release}.so$major'
6629    dynamic_linker='NetBSD ld.elf_so'
6630  fi
6631  shlibpath_var=LD_LIBRARY_PATH
6632  shlibpath_overrides_runpath=yes
6633  hardcode_into_libs=yes
6634  ;;
6635
6636newsos6)
6637  version_type=linux
6638  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6639  shlibpath_var=LD_LIBRARY_PATH
6640  shlibpath_overrides_runpath=yes
6641  ;;
6642
6643openbsd*)
6644  version_type=sunos
6645  need_lib_prefix=no
6646  need_version=no
6647  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6648    case "$host_os" in
6649    openbsd2.[89] | openbsd2.[89].*)
6650      shlibpath_overrides_runpath=no
6651      ;;
6652    *)
6653      shlibpath_overrides_runpath=yes
6654      ;;
6655    esac
6656  else
6657    shlibpath_overrides_runpath=yes
6658  fi
6659  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6660  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6661  shlibpath_var=LD_LIBRARY_PATH
6662  ;;
6663
6664os2*)
6665  libname_spec='$name'
6666  need_lib_prefix=no
6667  library_names_spec='$libname.dll $libname.a'
6668  dynamic_linker='OS/2 ld.exe'
6669  shlibpath_var=LIBPATH
6670  ;;
6671
6672osf3* | osf4* | osf5*)
6673  version_type=osf
6674  need_version=no
6675  soname_spec='${libname}${release}.so'
6676  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6677  shlibpath_var=LD_LIBRARY_PATH
6678  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6679  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6680  ;;
6681
6682sco3.2v5*)
6683  version_type=osf
6684  soname_spec='${libname}${release}.so$major'
6685  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6686  shlibpath_var=LD_LIBRARY_PATH
6687  ;;
6688
6689solaris*)
6690  version_type=linux
6691  need_lib_prefix=no
6692  need_version=no
6693  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694  soname_spec='${libname}${release}.so$major'
6695  shlibpath_var=LD_LIBRARY_PATH
6696  shlibpath_overrides_runpath=yes
6697  hardcode_into_libs=yes
6698  # ldd complains unless libraries are executable
6699  postinstall_cmds='chmod +x $lib'
6700  ;;
6701
6702sunos4*)
6703  version_type=sunos
6704  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6705  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6706  shlibpath_var=LD_LIBRARY_PATH
6707  shlibpath_overrides_runpath=yes
6708  if test "$with_gnu_ld" = yes; then
6709    need_lib_prefix=no
6710  fi
6711  need_version=yes
6712  ;;
6713
6714sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6715  version_type=linux
6716  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6717  soname_spec='${libname}${release}.so$major'
6718  shlibpath_var=LD_LIBRARY_PATH
6719  case $host_vendor in
6720    sni)
6721      shlibpath_overrides_runpath=no
6722      ;;
6723    motorola)
6724      need_lib_prefix=no
6725      need_version=no
6726      shlibpath_overrides_runpath=no
6727      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6728      ;;
6729  esac
6730  ;;
6731
6732uts4*)
6733  version_type=linux
6734  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6735  soname_spec='${libname}${release}.so$major'
6736  shlibpath_var=LD_LIBRARY_PATH
6737  ;;
6738
6739dgux*)
6740  version_type=linux
6741  need_lib_prefix=no
6742  need_version=no
6743  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6744  soname_spec='${libname}${release}.so$major'
6745  shlibpath_var=LD_LIBRARY_PATH
6746  ;;
6747
6748sysv4*MP*)
6749  if test -d /usr/nec ;then
6750    version_type=linux
6751    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6752    soname_spec='$libname.so.$major'
6753    shlibpath_var=LD_LIBRARY_PATH
6754  fi
6755  ;;
6756
6757*)
6758  dynamic_linker=no
6759  ;;
6760esac
6761echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6762echo "${ECHO_T}$dynamic_linker" >&6
6763test "$dynamic_linker" = no && can_build_shared=no
6764
6765# Report the final consequences.
6766echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6767echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6768echo "$as_me:$LINENO: result: $can_build_shared" >&5
6769echo "${ECHO_T}$can_build_shared" >&6
6770
6771echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6772echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6773test "$can_build_shared" = "no" && enable_shared=no
6774
6775# On AIX, shared libraries and static libraries use the same namespace, and
6776# are all built from PIC.
6777case "$host_os" in
6778aix3*)
6779  test "$enable_shared" = yes && enable_static=no
6780  if test -n "$RANLIB"; then
6781    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6782    postinstall_cmds='$RANLIB $lib'
6783  fi
6784  ;;
6785
6786aix4*)
6787  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6788    test "$enable_shared" = yes && enable_static=no
6789  fi
6790  ;;
6791esac
6792echo "$as_me:$LINENO: result: $enable_shared" >&5
6793echo "${ECHO_T}$enable_shared" >&6
6794
6795echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6796echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6797# Make sure either enable_shared or enable_static is yes.
6798test "$enable_shared" = yes || enable_static=yes
6799echo "$as_me:$LINENO: result: $enable_static" >&5
6800echo "${ECHO_T}$enable_static" >&6
6801
6802if test "$hardcode_action" = relink; then
6803  # Fast installation is not supported
6804  enable_fast_install=no
6805elif test "$shlibpath_overrides_runpath" = yes ||
6806     test "$enable_shared" = no; then
6807  # Fast installation is not necessary
6808  enable_fast_install=needless
6809fi
6810
6811variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6812if test "$GCC" = yes; then
6813  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6814fi
6815
6816if test "x$enable_dlopen" != xyes; then
6817  enable_dlopen=unknown
6818  enable_dlopen_self=unknown
6819  enable_dlopen_self_static=unknown
6820else
6821  lt_cv_dlopen=no
6822  lt_cv_dlopen_libs=
6823
6824  case $host_os in
6825  beos*)
6826    lt_cv_dlopen="load_add_on"
6827    lt_cv_dlopen_libs=
6828    lt_cv_dlopen_self=yes
6829    ;;
6830
6831  cygwin* | mingw* | pw32*)
6832    lt_cv_dlopen="LoadLibrary"
6833    lt_cv_dlopen_libs=
6834   ;;
6835
6836  *)
6837    echo "$as_me:$LINENO: checking for shl_load" >&5
6838echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6839if test "${ac_cv_func_shl_load+set}" = set; then
6840  echo $ECHO_N "(cached) $ECHO_C" >&6
6841else
6842  cat >conftest.$ac_ext <<_ACEOF
6843#line $LINENO "configure"
6844#include "confdefs.h"
6845/* System header to define __stub macros and hopefully few prototypes,
6846    which can conflict with char shl_load (); below.  */
6847#include <assert.h>
6848/* Override any gcc2 internal prototype to avoid an error.  */
6849#ifdef __cplusplus
6850extern "C"
6851#endif
6852/* We use char because int might match the return type of a gcc2
6853   builtin and then its argument prototype would still apply.  */
6854char shl_load ();
6855char (*f) ();
6856
6857#ifdef F77_DUMMY_MAIN
6858#  ifdef __cplusplus
6859     extern "C"
6860#  endif
6861   int F77_DUMMY_MAIN() { return 1; }
6862#endif
6863int
6864main ()
6865{
6866/* The GNU C library defines this for functions which it implements
6867    to always fail with ENOSYS.  Some functions are actually named
6868    something starting with __ and the normal name is an alias.  */
6869#if defined (__stub_shl_load) || defined (__stub___shl_load)
6870choke me
6871#else
6872f = shl_load;
6873#endif
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879rm -f conftest.$ac_objext conftest$ac_exeext
6880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881  (eval $ac_link) 2>&5
6882  ac_status=$?
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); } &&
6885         { ac_try='test -s conftest$ac_exeext'
6886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887  (eval $ac_try) 2>&5
6888  ac_status=$?
6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890  (exit $ac_status); }; }; then
6891  ac_cv_func_shl_load=yes
6892else
6893  echo "$as_me: failed program was:" >&5
6894cat conftest.$ac_ext >&5
6895ac_cv_func_shl_load=no
6896fi
6897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6898fi
6899echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6900echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6901if test $ac_cv_func_shl_load = yes; then
6902  lt_cv_dlopen="shl_load"
6903else
6904  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6905echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6906if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6907  echo $ECHO_N "(cached) $ECHO_C" >&6
6908else
6909  ac_check_lib_save_LIBS=$LIBS
6910LIBS="-ldld  $LIBS"
6911cat >conftest.$ac_ext <<_ACEOF
6912#line $LINENO "configure"
6913#include "confdefs.h"
6914
6915/* Override any gcc2 internal prototype to avoid an error.  */
6916#ifdef __cplusplus
6917extern "C"
6918#endif
6919/* We use char because int might match the return type of a gcc2
6920   builtin and then its argument prototype would still apply.  */
6921char shl_load ();
6922#ifdef F77_DUMMY_MAIN
6923#  ifdef __cplusplus
6924     extern "C"
6925#  endif
6926   int F77_DUMMY_MAIN() { return 1; }
6927#endif
6928int
6929main ()
6930{
6931shl_load ();
6932  ;
6933  return 0;
6934}
6935_ACEOF
6936rm -f conftest.$ac_objext conftest$ac_exeext
6937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938  (eval $ac_link) 2>&5
6939  ac_status=$?
6940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941  (exit $ac_status); } &&
6942         { ac_try='test -s conftest$ac_exeext'
6943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944  (eval $ac_try) 2>&5
6945  ac_status=$?
6946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947  (exit $ac_status); }; }; then
6948  ac_cv_lib_dld_shl_load=yes
6949else
6950  echo "$as_me: failed program was:" >&5
6951cat conftest.$ac_ext >&5
6952ac_cv_lib_dld_shl_load=no
6953fi
6954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6955LIBS=$ac_check_lib_save_LIBS
6956fi
6957echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6958echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6959if test $ac_cv_lib_dld_shl_load = yes; then
6960  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6961else
6962  echo "$as_me:$LINENO: checking for dlopen" >&5
6963echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6964if test "${ac_cv_func_dlopen+set}" = set; then
6965  echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967  cat >conftest.$ac_ext <<_ACEOF
6968#line $LINENO "configure"
6969#include "confdefs.h"
6970/* System header to define __stub macros and hopefully few prototypes,
6971    which can conflict with char dlopen (); below.  */
6972#include <assert.h>
6973/* Override any gcc2 internal prototype to avoid an error.  */
6974#ifdef __cplusplus
6975extern "C"
6976#endif
6977/* We use char because int might match the return type of a gcc2
6978   builtin and then its argument prototype would still apply.  */
6979char dlopen ();
6980char (*f) ();
6981
6982#ifdef F77_DUMMY_MAIN
6983#  ifdef __cplusplus
6984     extern "C"
6985#  endif
6986   int F77_DUMMY_MAIN() { return 1; }
6987#endif
6988int
6989main ()
6990{
6991/* The GNU C library defines this for functions which it implements
6992    to always fail with ENOSYS.  Some functions are actually named
6993    something starting with __ and the normal name is an alias.  */
6994#if defined (__stub_dlopen) || defined (__stub___dlopen)
6995choke me
6996#else
6997f = dlopen;
6998#endif
6999
7000  ;
7001  return 0;
7002}
7003_ACEOF
7004rm -f conftest.$ac_objext conftest$ac_exeext
7005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7006  (eval $ac_link) 2>&5
7007  ac_status=$?
7008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); } &&
7010         { ac_try='test -s conftest$ac_exeext'
7011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012  (eval $ac_try) 2>&5
7013  ac_status=$?
7014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015  (exit $ac_status); }; }; then
7016  ac_cv_func_dlopen=yes
7017else
7018  echo "$as_me: failed program was:" >&5
7019cat conftest.$ac_ext >&5
7020ac_cv_func_dlopen=no
7021fi
7022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7023fi
7024echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7025echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7026if test $ac_cv_func_dlopen = yes; then
7027  lt_cv_dlopen="dlopen"
7028else
7029  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7030echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7031if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  ac_check_lib_save_LIBS=$LIBS
7035LIBS="-ldl  $LIBS"
7036cat >conftest.$ac_ext <<_ACEOF
7037#line $LINENO "configure"
7038#include "confdefs.h"
7039
7040/* Override any gcc2 internal prototype to avoid an error.  */
7041#ifdef __cplusplus
7042extern "C"
7043#endif
7044/* We use char because int might match the return type of a gcc2
7045   builtin and then its argument prototype would still apply.  */
7046char dlopen ();
7047#ifdef F77_DUMMY_MAIN
7048#  ifdef __cplusplus
7049     extern "C"
7050#  endif
7051   int F77_DUMMY_MAIN() { return 1; }
7052#endif
7053int
7054main ()
7055{
7056dlopen ();
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061rm -f conftest.$ac_objext conftest$ac_exeext
7062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7063  (eval $ac_link) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); } &&
7067         { ac_try='test -s conftest$ac_exeext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  ac_cv_lib_dl_dlopen=yes
7074else
7075  echo "$as_me: failed program was:" >&5
7076cat conftest.$ac_ext >&5
7077ac_cv_lib_dl_dlopen=no
7078fi
7079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7080LIBS=$ac_check_lib_save_LIBS
7081fi
7082echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7083echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7084if test $ac_cv_lib_dl_dlopen = yes; then
7085  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7086else
7087  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7088echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7089if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7090  echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092  ac_check_lib_save_LIBS=$LIBS
7093LIBS="-lsvld  $LIBS"
7094cat >conftest.$ac_ext <<_ACEOF
7095#line $LINENO "configure"
7096#include "confdefs.h"
7097
7098/* Override any gcc2 internal prototype to avoid an error.  */
7099#ifdef __cplusplus
7100extern "C"
7101#endif
7102/* We use char because int might match the return type of a gcc2
7103   builtin and then its argument prototype would still apply.  */
7104char dlopen ();
7105#ifdef F77_DUMMY_MAIN
7106#  ifdef __cplusplus
7107     extern "C"
7108#  endif
7109   int F77_DUMMY_MAIN() { return 1; }
7110#endif
7111int
7112main ()
7113{
7114dlopen ();
7115  ;
7116  return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
7120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121  (eval $ac_link) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } &&
7125         { ac_try='test -s conftest$ac_exeext'
7126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127  (eval $ac_try) 2>&5
7128  ac_status=$?
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); }; }; then
7131  ac_cv_lib_svld_dlopen=yes
7132else
7133  echo "$as_me: failed program was:" >&5
7134cat conftest.$ac_ext >&5
7135ac_cv_lib_svld_dlopen=no
7136fi
7137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7138LIBS=$ac_check_lib_save_LIBS
7139fi
7140echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7141echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7142if test $ac_cv_lib_svld_dlopen = yes; then
7143  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7144else
7145  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7146echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7147if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7148  echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150  ac_check_lib_save_LIBS=$LIBS
7151LIBS="-ldld  $LIBS"
7152cat >conftest.$ac_ext <<_ACEOF
7153#line $LINENO "configure"
7154#include "confdefs.h"
7155
7156/* Override any gcc2 internal prototype to avoid an error.  */
7157#ifdef __cplusplus
7158extern "C"
7159#endif
7160/* We use char because int might match the return type of a gcc2
7161   builtin and then its argument prototype would still apply.  */
7162char dld_link ();
7163#ifdef F77_DUMMY_MAIN
7164#  ifdef __cplusplus
7165     extern "C"
7166#  endif
7167   int F77_DUMMY_MAIN() { return 1; }
7168#endif
7169int
7170main ()
7171{
7172dld_link ();
7173  ;
7174  return 0;
7175}
7176_ACEOF
7177rm -f conftest.$ac_objext conftest$ac_exeext
7178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179  (eval $ac_link) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); } &&
7183         { ac_try='test -s conftest$ac_exeext'
7184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7185  (eval $ac_try) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }; }; then
7189  ac_cv_lib_dld_dld_link=yes
7190else
7191  echo "$as_me: failed program was:" >&5
7192cat conftest.$ac_ext >&5
7193ac_cv_lib_dld_dld_link=no
7194fi
7195rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7196LIBS=$ac_check_lib_save_LIBS
7197fi
7198echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7199echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7200if test $ac_cv_lib_dld_dld_link = yes; then
7201  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7202fi
7203
7204
7205fi
7206
7207
7208fi
7209
7210
7211fi
7212
7213
7214fi
7215
7216
7217fi
7218
7219    ;;
7220  esac
7221
7222  if test "x$lt_cv_dlopen" != xno; then
7223    enable_dlopen=yes
7224  else
7225    enable_dlopen=no
7226  fi
7227
7228  case $lt_cv_dlopen in
7229  dlopen)
7230    save_CPPFLAGS="$CPPFLAGS"
7231        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7232
7233    save_LDFLAGS="$LDFLAGS"
7234    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7235
7236    save_LIBS="$LIBS"
7237    LIBS="$lt_cv_dlopen_libs $LIBS"
7238
7239    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7240echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7241if test "${lt_cv_dlopen_self+set}" = set; then
7242  echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244  	  if test "$cross_compiling" = yes; then :
7245  lt_cv_dlopen_self=cross
7246else
7247    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7248  lt_status=$lt_dlunknown
7249  cat > conftest.$ac_ext <<EOF
7250#line 7250 "configure"
7251#include "confdefs.h"
7252
7253#if HAVE_DLFCN_H
7254#include <dlfcn.h>
7255#endif
7256
7257#include <stdio.h>
7258
7259#ifdef RTLD_GLOBAL
7260#  define LT_DLGLOBAL		RTLD_GLOBAL
7261#else
7262#  ifdef DL_GLOBAL
7263#    define LT_DLGLOBAL		DL_GLOBAL
7264#  else
7265#    define LT_DLGLOBAL		0
7266#  endif
7267#endif
7268
7269/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7270   find out it does not work in some platform. */
7271#ifndef LT_DLLAZY_OR_NOW
7272#  ifdef RTLD_LAZY
7273#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7274#  else
7275#    ifdef DL_LAZY
7276#      define LT_DLLAZY_OR_NOW		DL_LAZY
7277#    else
7278#      ifdef RTLD_NOW
7279#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7280#      else
7281#        ifdef DL_NOW
7282#          define LT_DLLAZY_OR_NOW	DL_NOW
7283#        else
7284#          define LT_DLLAZY_OR_NOW	0
7285#        endif
7286#      endif
7287#    endif
7288#  endif
7289#endif
7290
7291#ifdef __cplusplus
7292extern "C" void exit (int);
7293#endif
7294
7295void fnord() { int i=42;}
7296int main ()
7297{
7298  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7299  int status = $lt_dlunknown;
7300
7301  if (self)
7302    {
7303      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7304      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7305      /* dlclose (self); */
7306    }
7307
7308    exit (status);
7309}
7310EOF
7311  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7312  (eval $ac_link) 2>&5
7313  ac_status=$?
7314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7316    (./conftest; exit; ) 2>/dev/null
7317    lt_status=$?
7318    case x$lt_status in
7319      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7320      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7321      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7322    esac
7323  else :
7324    # compilation failed
7325    lt_cv_dlopen_self=no
7326  fi
7327fi
7328rm -fr conftest*
7329
7330
7331fi
7332echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7333echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7334
7335    if test "x$lt_cv_dlopen_self" = xyes; then
7336      LDFLAGS="$LDFLAGS $link_static_flag"
7337      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7338echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7339if test "${lt_cv_dlopen_self_static+set}" = set; then
7340  echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342  	  if test "$cross_compiling" = yes; then :
7343  lt_cv_dlopen_self_static=cross
7344else
7345    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7346  lt_status=$lt_dlunknown
7347  cat > conftest.$ac_ext <<EOF
7348#line 7348 "configure"
7349#include "confdefs.h"
7350
7351#if HAVE_DLFCN_H
7352#include <dlfcn.h>
7353#endif
7354
7355#include <stdio.h>
7356
7357#ifdef RTLD_GLOBAL
7358#  define LT_DLGLOBAL		RTLD_GLOBAL
7359#else
7360#  ifdef DL_GLOBAL
7361#    define LT_DLGLOBAL		DL_GLOBAL
7362#  else
7363#    define LT_DLGLOBAL		0
7364#  endif
7365#endif
7366
7367/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7368   find out it does not work in some platform. */
7369#ifndef LT_DLLAZY_OR_NOW
7370#  ifdef RTLD_LAZY
7371#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7372#  else
7373#    ifdef DL_LAZY
7374#      define LT_DLLAZY_OR_NOW		DL_LAZY
7375#    else
7376#      ifdef RTLD_NOW
7377#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7378#      else
7379#        ifdef DL_NOW
7380#          define LT_DLLAZY_OR_NOW	DL_NOW
7381#        else
7382#          define LT_DLLAZY_OR_NOW	0
7383#        endif
7384#      endif
7385#    endif
7386#  endif
7387#endif
7388
7389#ifdef __cplusplus
7390extern "C" void exit (int);
7391#endif
7392
7393void fnord() { int i=42;}
7394int main ()
7395{
7396  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7397  int status = $lt_dlunknown;
7398
7399  if (self)
7400    {
7401      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7402      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7403      /* dlclose (self); */
7404    }
7405
7406    exit (status);
7407}
7408EOF
7409  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7410  (eval $ac_link) 2>&5
7411  ac_status=$?
7412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7414    (./conftest; exit; ) 2>/dev/null
7415    lt_status=$?
7416    case x$lt_status in
7417      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7418      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7419      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7420    esac
7421  else :
7422    # compilation failed
7423    lt_cv_dlopen_self_static=no
7424  fi
7425fi
7426rm -fr conftest*
7427
7428
7429fi
7430echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7431echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7432    fi
7433
7434    CPPFLAGS="$save_CPPFLAGS"
7435    LDFLAGS="$save_LDFLAGS"
7436    LIBS="$save_LIBS"
7437    ;;
7438  esac
7439
7440  case $lt_cv_dlopen_self in
7441  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7442  *) enable_dlopen_self=unknown ;;
7443  esac
7444
7445  case $lt_cv_dlopen_self_static in
7446  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7447  *) enable_dlopen_self_static=unknown ;;
7448  esac
7449fi
7450
7451
7452if test "$enable_shared" = yes && test "$GCC" = yes; then
7453  case $archive_cmds in
7454  *'~'*)
7455    # FIXME: we may have to deal with multi-command sequences.
7456    ;;
7457  '$CC '*)
7458    # Test whether the compiler implicitly links with -lc since on some
7459    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7460    # to ld, don't add -lc before -lgcc.
7461    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7462echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7463    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7464  echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466  $rm conftest*
7467    echo 'static int dummy;' > conftest.$ac_ext
7468
7469    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7470  (eval $ac_compile) 2>&5
7471  ac_status=$?
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); }; then
7474      soname=conftest
7475      lib=conftest
7476      libobjs=conftest.$ac_objext
7477      deplibs=
7478      wl=$lt_cv_prog_cc_wl
7479      compiler_flags=-v
7480      linker_flags=-v
7481      verstring=
7482      output_objdir=.
7483      libname=conftest
7484      save_allow_undefined_flag=$allow_undefined_flag
7485      allow_undefined_flag=
7486      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7487  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7488  ac_status=$?
7489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490  (exit $ac_status); }
7491      then
7492	lt_cv_archive_cmds_need_lc=no
7493      else
7494	lt_cv_archive_cmds_need_lc=yes
7495      fi
7496      allow_undefined_flag=$save_allow_undefined_flag
7497    else
7498      cat conftest.err 1>&5
7499    fi
7500fi
7501
7502    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7503echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7504    ;;
7505  esac
7506fi
7507need_lc=${lt_cv_archive_cmds_need_lc-yes}
7508
7509# The second clause should only fire when bootstrapping the
7510# libtool distribution, otherwise you forgot to ship ltmain.sh
7511# with your package, and you will get complaints that there are
7512# no rules to generate ltmain.sh.
7513if test -f "$ltmain"; then
7514  :
7515else
7516  # If there is no Makefile yet, we rely on a make rule to execute
7517  # `config.status --recheck' to rerun these tests and create the
7518  # libtool script then.
7519  test -f Makefile && make "$ltmain"
7520fi
7521
7522if test -f "$ltmain"; then
7523  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7524  $rm -f "${ofile}T"
7525
7526  echo creating $ofile
7527
7528  # Now quote all the things that may contain metacharacters while being
7529  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7530  # variables and quote the copies for generation of the libtool script.
7531  for var in echo old_CC old_CFLAGS \
7532    AR AR_FLAGS CC LD LN_S NM SHELL \
7533    reload_flag reload_cmds wl \
7534    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7535    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7536    library_names_spec soname_spec \
7537    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7538    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7539    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7540    old_striplib striplib file_magic_cmd export_symbols_cmds \
7541    deplibs_check_method allow_undefined_flag no_undefined_flag \
7542    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7543    global_symbol_to_c_name_address \
7544    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7545    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7546    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7547
7548    case $var in
7549    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7550    old_postinstall_cmds | old_postuninstall_cmds | \
7551    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7552    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7553    postinstall_cmds | postuninstall_cmds | \
7554    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7555      # Double-quote double-evaled strings.
7556      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7557      ;;
7558    *)
7559      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7560      ;;
7561    esac
7562  done
7563
7564  cat <<__EOF__ > "${ofile}T"
7565#! $SHELL
7566
7567# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7568# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7569# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7570#
7571# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7572# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7573#
7574# This program is free software; you can redistribute it and/or modify
7575# it under the terms of the GNU General Public License as published by
7576# the Free Software Foundation; either version 2 of the License, or
7577# (at your option) any later version.
7578#
7579# This program is distributed in the hope that it will be useful, but
7580# WITHOUT ANY WARRANTY; without even the implied warranty of
7581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7582# General Public License for more details.
7583#
7584# You should have received a copy of the GNU General Public License
7585# along with this program; if not, write to the Free Software
7586# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7587#
7588# As a special exception to the GNU General Public License, if you
7589# distribute this file as part of a program that contains a
7590# configuration script generated by Autoconf, you may include it under
7591# the same distribution terms that you use for the rest of that program.
7592
7593# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7594Xsed="sed -e s/^X//"
7595
7596# The HP-UX ksh and POSIX shell print the target directory to stdout
7597# if CDPATH is set.
7598if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7599
7600# ### BEGIN LIBTOOL CONFIG
7601
7602# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7603
7604# Shell to use when invoking shell scripts.
7605SHELL=$lt_SHELL
7606
7607# Whether or not to build shared libraries.
7608build_libtool_libs=$enable_shared
7609
7610# Whether or not to build static libraries.
7611build_old_libs=$enable_static
7612
7613# Whether or not to add -lc for building shared libraries.
7614build_libtool_need_lc=$need_lc
7615
7616# Whether or not to optimize for fast installation.
7617fast_install=$enable_fast_install
7618
7619# The host system.
7620host_alias=$host_alias
7621host=$host
7622
7623# An echo program that does not interpret backslashes.
7624echo=$lt_echo
7625
7626# The archiver.
7627AR=$lt_AR
7628AR_FLAGS=$lt_AR_FLAGS
7629
7630# The default C compiler.
7631CC=$lt_CC
7632
7633# Is the compiler the GNU C compiler?
7634with_gcc=$GCC
7635
7636# The linker used to build libraries.
7637LD=$lt_LD
7638
7639# Whether we need hard or soft links.
7640LN_S=$lt_LN_S
7641
7642# A BSD-compatible nm program.
7643NM=$lt_NM
7644
7645# A symbol stripping program
7646STRIP=$STRIP
7647
7648# Used to examine libraries when file_magic_cmd begins "file"
7649MAGIC_CMD=$MAGIC_CMD
7650
7651# Used on cygwin: DLL creation program.
7652DLLTOOL="$DLLTOOL"
7653
7654# Used on cygwin: object dumper.
7655OBJDUMP="$OBJDUMP"
7656
7657# Used on cygwin: assembler.
7658AS="$AS"
7659
7660# The name of the directory that contains temporary libtool files.
7661objdir=$objdir
7662
7663# How to create reloadable object files.
7664reload_flag=$lt_reload_flag
7665reload_cmds=$lt_reload_cmds
7666
7667# How to pass a linker flag through the compiler.
7668wl=$lt_wl
7669
7670# Object file suffix (normally "o").
7671objext="$ac_objext"
7672
7673# Old archive suffix (normally "a").
7674libext="$libext"
7675
7676# Executable file suffix (normally "").
7677exeext="$exeext"
7678
7679# Additional compiler flags for building library objects.
7680pic_flag=$lt_pic_flag
7681pic_mode=$pic_mode
7682
7683# Does compiler simultaneously support -c and -o options?
7684compiler_c_o=$lt_compiler_c_o
7685
7686# Can we write directly to a .lo ?
7687compiler_o_lo=$lt_compiler_o_lo
7688
7689# Must we lock files when doing compilation ?
7690need_locks=$lt_need_locks
7691
7692# Do we need the lib prefix for modules?
7693need_lib_prefix=$need_lib_prefix
7694
7695# Do we need a version for libraries?
7696need_version=$need_version
7697
7698# Whether dlopen is supported.
7699dlopen_support=$enable_dlopen
7700
7701# Whether dlopen of programs is supported.
7702dlopen_self=$enable_dlopen_self
7703
7704# Whether dlopen of statically linked programs is supported.
7705dlopen_self_static=$enable_dlopen_self_static
7706
7707# Compiler flag to prevent dynamic linking.
7708link_static_flag=$lt_link_static_flag
7709
7710# Compiler flag to turn off builtin functions.
7711no_builtin_flag=$lt_no_builtin_flag
7712
7713# Compiler flag to allow reflexive dlopens.
7714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7715
7716# Compiler flag to generate shared objects directly from archives.
7717whole_archive_flag_spec=$lt_whole_archive_flag_spec
7718
7719# Compiler flag to generate thread-safe objects.
7720thread_safe_flag_spec=$lt_thread_safe_flag_spec
7721
7722# Library versioning type.
7723version_type=$version_type
7724
7725# Format of library name prefix.
7726libname_spec=$lt_libname_spec
7727
7728# List of archive names.  First name is the real one, the rest are links.
7729# The last name is the one that the linker finds with -lNAME.
7730library_names_spec=$lt_library_names_spec
7731
7732# The coded name of the library, if different from the real name.
7733soname_spec=$lt_soname_spec
7734
7735# Commands used to build and install an old-style archive.
7736RANLIB=$lt_RANLIB
7737old_archive_cmds=$lt_old_archive_cmds
7738old_postinstall_cmds=$lt_old_postinstall_cmds
7739old_postuninstall_cmds=$lt_old_postuninstall_cmds
7740
7741# Create an old-style archive from a shared archive.
7742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7743
7744# Create a temporary old-style archive to link instead of a shared archive.
7745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7746
7747# Commands used to build and install a shared archive.
7748archive_cmds=$lt_archive_cmds
7749archive_expsym_cmds=$lt_archive_expsym_cmds
7750postinstall_cmds=$lt_postinstall_cmds
7751postuninstall_cmds=$lt_postuninstall_cmds
7752
7753# Commands to strip libraries.
7754old_striplib=$lt_old_striplib
7755striplib=$lt_striplib
7756
7757# Method to check whether dependent libraries are shared objects.
7758deplibs_check_method=$lt_deplibs_check_method
7759
7760# Command to use when deplibs_check_method == file_magic.
7761file_magic_cmd=$lt_file_magic_cmd
7762
7763# Flag that allows shared libraries with undefined symbols to be built.
7764allow_undefined_flag=$lt_allow_undefined_flag
7765
7766# Flag that forces no undefined symbols.
7767no_undefined_flag=$lt_no_undefined_flag
7768
7769# Commands used to finish a libtool library installation in a directory.
7770finish_cmds=$lt_finish_cmds
7771
7772# Same as above, but a single script fragment to be evaled but not shown.
7773finish_eval=$lt_finish_eval
7774
7775# Take the output of nm and produce a listing of raw symbols and C names.
7776global_symbol_pipe=$lt_global_symbol_pipe
7777
7778# Transform the output of nm in a proper C declaration
7779global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7780
7781# Transform the output of nm in a C name address pair
7782global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7783
7784# This is the shared library runtime path variable.
7785runpath_var=$runpath_var
7786
7787# This is the shared library path variable.
7788shlibpath_var=$shlibpath_var
7789
7790# Is shlibpath searched before the hard-coded library search path?
7791shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7792
7793# How to hardcode a shared library path into an executable.
7794hardcode_action=$hardcode_action
7795
7796# Whether we should hardcode library paths into libraries.
7797hardcode_into_libs=$hardcode_into_libs
7798
7799# Flag to hardcode \$libdir into a binary during linking.
7800# This must work even if \$libdir does not exist.
7801hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7802
7803# Whether we need a single -rpath flag with a separated argument.
7804hardcode_libdir_separator=$lt_hardcode_libdir_separator
7805
7806# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7807# resulting binary.
7808hardcode_direct=$hardcode_direct
7809
7810# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7811# resulting binary.
7812hardcode_minus_L=$hardcode_minus_L
7813
7814# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7815# the resulting binary.
7816hardcode_shlibpath_var=$hardcode_shlibpath_var
7817
7818# Variables whose values should be saved in libtool wrapper scripts and
7819# restored at relink time.
7820variables_saved_for_relink="$variables_saved_for_relink"
7821
7822# Whether libtool must link a program against all its dependency libraries.
7823link_all_deplibs=$link_all_deplibs
7824
7825# Compile-time system search path for libraries
7826sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7827
7828# Run-time system search path for libraries
7829sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7830
7831# Fix the shell variable \$srcfile for the compiler.
7832fix_srcfile_path="$fix_srcfile_path"
7833
7834# Set to yes if exported symbols are required.
7835always_export_symbols=$always_export_symbols
7836
7837# The commands to list exported symbols.
7838export_symbols_cmds=$lt_export_symbols_cmds
7839
7840# The commands to extract the exported symbol list from a shared archive.
7841extract_expsyms_cmds=$lt_extract_expsyms_cmds
7842
7843# Symbols that should not be listed in the preloaded symbols.
7844exclude_expsyms=$lt_exclude_expsyms
7845
7846# Symbols that must always be exported.
7847include_expsyms=$lt_include_expsyms
7848
7849# ### END LIBTOOL CONFIG
7850
7851__EOF__
7852
7853  case $host_os in
7854  aix3*)
7855    cat <<\EOF >> "${ofile}T"
7856
7857# AIX sometimes has problems with the GCC collect2 program.  For some
7858# reason, if we set the COLLECT_NAMES environment variable, the problems
7859# vanish in a puff of smoke.
7860if test "X${COLLECT_NAMES+set}" != Xset; then
7861  COLLECT_NAMES=
7862  export COLLECT_NAMES
7863fi
7864EOF
7865    ;;
7866  esac
7867
7868  case $host_os in
7869  cygwin* | mingw* | pw32* | os2*)
7870    cat <<'EOF' >> "${ofile}T"
7871      # This is a source program that is used to create dlls on Windows
7872      # Don't remove nor modify the starting and closing comments
7873# /* ltdll.c starts here */
7874# #define WIN32_LEAN_AND_MEAN
7875# #include <windows.h>
7876# #undef WIN32_LEAN_AND_MEAN
7877# #include <stdio.h>
7878#
7879# #ifndef __CYGWIN__
7880# #  ifdef __CYGWIN32__
7881# #    define __CYGWIN__ __CYGWIN32__
7882# #  endif
7883# #endif
7884#
7885# #ifdef __cplusplus
7886# extern "C" {
7887# #endif
7888# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7889# #ifdef __cplusplus
7890# }
7891# #endif
7892#
7893# #ifdef __CYGWIN__
7894# #include <cygwin/cygwin_dll.h>
7895# DECLARE_CYGWIN_DLL( DllMain );
7896# #endif
7897# HINSTANCE __hDllInstance_base;
7898#
7899# BOOL APIENTRY
7900# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7901# {
7902#   __hDllInstance_base = hInst;
7903#   return TRUE;
7904# }
7905# /* ltdll.c ends here */
7906	# This is a source program that is used to create import libraries
7907	# on Windows for dlls which lack them. Don't remove nor modify the
7908	# starting and closing comments
7909# /* impgen.c starts here */
7910# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
7911#
7912#  This file is part of GNU libtool.
7913#
7914#  This program is free software; you can redistribute it and/or modify
7915#  it under the terms of the GNU General Public License as published by
7916#  the Free Software Foundation; either version 2 of the License, or
7917#  (at your option) any later version.
7918#
7919#  This program is distributed in the hope that it will be useful,
7920#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7921#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7922#  GNU General Public License for more details.
7923#
7924#  You should have received a copy of the GNU General Public License
7925#  along with this program; if not, write to the Free Software
7926#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7927#  */
7928#
7929# #include <stdio.h>		/* for printf() */
7930# #include <unistd.h>		/* for open(), lseek(), read() */
7931# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7932# #include <string.h>		/* for strdup() */
7933#
7934# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7935# #ifndef O_BINARY
7936# #define O_BINARY 0
7937# #endif
7938#
7939# static unsigned int
7940# pe_get16 (fd, offset)
7941#      int fd;
7942#      int offset;
7943# {
7944#   unsigned char b[2];
7945#   lseek (fd, offset, SEEK_SET);
7946#   read (fd, b, 2);
7947#   return b[0] + (b[1]<<8);
7948# }
7949#
7950# static unsigned int
7951# pe_get32 (fd, offset)
7952#     int fd;
7953#     int offset;
7954# {
7955#   unsigned char b[4];
7956#   lseek (fd, offset, SEEK_SET);
7957#   read (fd, b, 4);
7958#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7959# }
7960#
7961# static unsigned int
7962# pe_as32 (ptr)
7963#      void *ptr;
7964# {
7965#   unsigned char *b = ptr;
7966#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7967# }
7968#
7969# int
7970# main (argc, argv)
7971#     int argc;
7972#     char *argv[];
7973# {
7974#     int dll;
7975#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7976#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7977#     unsigned long name_rvas, nexp;
7978#     unsigned char *expdata, *erva;
7979#     char *filename, *dll_name;
7980#
7981#     filename = argv[1];
7982#
7983#     dll = open(filename, O_RDONLY|O_BINARY);
7984#     if (dll < 1)
7985# 	return 1;
7986#
7987#     dll_name = filename;
7988#
7989#     for (i=0; filename[i]; i++)
7990# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7991# 	    dll_name = filename + i +1;
7992#
7993#     pe_header_offset = pe_get32 (dll, 0x3c);
7994#     opthdr_ofs = pe_header_offset + 4 + 20;
7995#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7996#
7997#     if (num_entries < 1) /* no exports */
7998# 	return 1;
7999#
8000#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8001#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8002#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8003#     secptr = (pe_header_offset + 4 + 20 +
8004# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8005#
8006#     expptr = 0;
8007#     for (i = 0; i < nsections; i++)
8008#     {
8009# 	char sname[8];
8010# 	unsigned long secptr1 = secptr + 40 * i;
8011# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8012# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8013# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8014# 	lseek(dll, secptr1, SEEK_SET);
8015# 	read(dll, sname, 8);
8016# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8017# 	{
8018# 	    expptr = fptr + (export_rva - vaddr);
8019# 	    if (export_rva + export_size > vaddr + vsize)
8020# 		export_size = vsize - (export_rva - vaddr);
8021# 	    break;
8022# 	}
8023#     }
8024#
8025#     expdata = (unsigned char*)malloc(export_size);
8026#     lseek (dll, expptr, SEEK_SET);
8027#     read (dll, expdata, export_size);
8028#     erva = expdata - export_rva;
8029#
8030#     nexp = pe_as32 (expdata+24);
8031#     name_rvas = pe_as32 (expdata+32);
8032#
8033#     printf ("EXPORTS\n");
8034#     for (i = 0; i<nexp; i++)
8035#     {
8036# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8037# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8038#     }
8039#
8040#     return 0;
8041# }
8042# /* impgen.c ends here */
8043
8044EOF
8045    ;;
8046  esac
8047
8048  # We use sed instead of cat because bash on DJGPP gets confused if
8049  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8050  # text mode, it properly converts lines to CR/LF.  This bash problem
8051  # is reportedly fixed, but why not run on old versions too?
8052  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8053
8054  mv -f "${ofile}T" "$ofile" || \
8055    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8056  chmod +x "$ofile"
8057fi
8058
8059
8060
8061
8062
8063# This can be used to rebuild libtool when needed
8064LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8065
8066# Always use our own libtool.
8067LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8068
8069# Prevent multiple expansion
8070
8071
8072
8073
8074WFLAGS_NOUNUSED=""
8075WFLAGS_NOIMPLICITINT=""
8076if test -z "$WFLAGS" -a "$GCC" = "yes"; then
8077  # -Wno-implicit-int for broken X11 headers
8078  # leave these out for now:
8079  #   -Wcast-align doesn't work well on alpha osf/1
8080  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
8081  #   -Wmissing-declarations -Wnested-externs
8082  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
8083  WFLAGS_NOUNUSED="-Wno-unused"
8084  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
8085fi
8086
8087
8088
8089# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
8090if test "${enable_berkeley_db+set}" = set; then
8091  enableval="$enable_berkeley_db"
8092
8093
8094fi;
8095
8096have_ndbm=no
8097db_type=unknown
8098
8099if test "$enable_berkeley_db" != no; then
8100
8101
8102
8103
8104
8105for ac_header in 				\
8106	db4/db.h				\
8107	db3/db.h				\
8108	db.h					\
8109	db_185.h				\
8110
8111do
8112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114  echo "$as_me:$LINENO: checking for $ac_header" >&5
8115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118fi
8119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121else
8122  # Is the header compilable?
8123echo "$as_me:$LINENO: checking $ac_header usability" >&5
8124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8125cat >conftest.$ac_ext <<_ACEOF
8126#line $LINENO "configure"
8127#include "confdefs.h"
8128$ac_includes_default
8129#include <$ac_header>
8130_ACEOF
8131rm -f conftest.$ac_objext
8132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8133  (eval $ac_compile) 2>&5
8134  ac_status=$?
8135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136  (exit $ac_status); } &&
8137         { ac_try='test -s conftest.$ac_objext'
8138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139  (eval $ac_try) 2>&5
8140  ac_status=$?
8141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142  (exit $ac_status); }; }; then
8143  ac_header_compiler=yes
8144else
8145  echo "$as_me: failed program was:" >&5
8146cat conftest.$ac_ext >&5
8147ac_header_compiler=no
8148fi
8149rm -f conftest.$ac_objext conftest.$ac_ext
8150echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8151echo "${ECHO_T}$ac_header_compiler" >&6
8152
8153# Is the header present?
8154echo "$as_me:$LINENO: checking $ac_header presence" >&5
8155echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8156cat >conftest.$ac_ext <<_ACEOF
8157#line $LINENO "configure"
8158#include "confdefs.h"
8159#include <$ac_header>
8160_ACEOF
8161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8162  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8163  ac_status=$?
8164  egrep -v '^ *\+' conftest.er1 >conftest.err
8165  rm -f conftest.er1
8166  cat conftest.err >&5
8167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168  (exit $ac_status); } >/dev/null; then
8169  if test -s conftest.err; then
8170    ac_cpp_err=$ac_c_preproc_warn_flag
8171  else
8172    ac_cpp_err=
8173  fi
8174else
8175  ac_cpp_err=yes
8176fi
8177if test -z "$ac_cpp_err"; then
8178  ac_header_preproc=yes
8179else
8180  echo "$as_me: failed program was:" >&5
8181  cat conftest.$ac_ext >&5
8182  ac_header_preproc=no
8183fi
8184rm -f conftest.err conftest.$ac_ext
8185echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8186echo "${ECHO_T}$ac_header_preproc" >&6
8187
8188# So?  What about this header?
8189case $ac_header_compiler:$ac_header_preproc in
8190  yes:no )
8191    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8192echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8193    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8195  no:yes )
8196    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8198    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8200    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8202esac
8203echo "$as_me:$LINENO: checking for $ac_header" >&5
8204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8205if eval "test \"\${$as_ac_Header+set}\" = set"; then
8206  echo $ECHO_N "(cached) $ECHO_C" >&6
8207else
8208  eval "$as_ac_Header=$ac_header_preproc"
8209fi
8210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8212
8213fi
8214if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215  cat >>confdefs.h <<_ACEOF
8216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217_ACEOF
8218
8219fi
8220
8221done
8222
8223
8224
8225
8226
8227
8228echo "$as_me:$LINENO: checking for db_create" >&5
8229echo $ECHO_N "checking for db_create... $ECHO_C" >&6
8230if test "${ac_cv_funclib_db_create+set}" = set; then
8231  echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233
8234if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
8235	ac_save_LIBS="$LIBS"
8236	for ac_lib in "" db4 db3 db; do
8237		case "$ac_lib" in
8238		"") ;;
8239		yes) ac_lib="" ;;
8240		no) continue ;;
8241		-l*) ;;
8242		*) ac_lib="-l$ac_lib" ;;
8243		esac
8244		LIBS=" $ac_lib  $ac_save_LIBS"
8245		cat >conftest.$ac_ext <<_ACEOF
8246#line $LINENO "configure"
8247#include "confdefs.h"
8248
8249  #include <stdio.h>
8250  #ifdef HAVE_DB4_DB_H
8251  #include <db4/db.h>
8252  #elif defined(HAVE_DB3_DB_H)
8253  #include <db3/db.h>
8254  #else
8255  #include <db.h>
8256  #endif
8257
8258#ifdef F77_DUMMY_MAIN
8259#  ifdef __cplusplus
8260     extern "C"
8261#  endif
8262   int F77_DUMMY_MAIN() { return 1; }
8263#endif
8264int
8265main ()
8266{
8267db_create(NULL, NULL, 0)
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272rm -f conftest.$ac_objext conftest$ac_exeext
8273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274  (eval $ac_link) 2>&5
8275  ac_status=$?
8276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277  (exit $ac_status); } &&
8278         { ac_try='test -s conftest$ac_exeext'
8279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280  (eval $ac_try) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); }; }; then
8284  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
8285else
8286  echo "$as_me: failed program was:" >&5
8287cat conftest.$ac_ext >&5
8288fi
8289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8290	done
8291	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
8292	LIBS="$ac_save_LIBS"
8293fi
8294
8295fi
8296
8297
8298eval "ac_res=\$ac_cv_funclib_db_create"
8299
8300if false; then
8301
8302for ac_func in db_create
8303do
8304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8305echo "$as_me:$LINENO: checking for $ac_func" >&5
8306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8307if eval "test \"\${$as_ac_var+set}\" = set"; then
8308  echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310  cat >conftest.$ac_ext <<_ACEOF
8311#line $LINENO "configure"
8312#include "confdefs.h"
8313/* System header to define __stub macros and hopefully few prototypes,
8314    which can conflict with char $ac_func (); below.  */
8315#include <assert.h>
8316/* Override any gcc2 internal prototype to avoid an error.  */
8317#ifdef __cplusplus
8318extern "C"
8319#endif
8320/* We use char because int might match the return type of a gcc2
8321   builtin and then its argument prototype would still apply.  */
8322char $ac_func ();
8323char (*f) ();
8324
8325#ifdef F77_DUMMY_MAIN
8326#  ifdef __cplusplus
8327     extern "C"
8328#  endif
8329   int F77_DUMMY_MAIN() { return 1; }
8330#endif
8331int
8332main ()
8333{
8334/* The GNU C library defines this for functions which it implements
8335    to always fail with ENOSYS.  Some functions are actually named
8336    something starting with __ and the normal name is an alias.  */
8337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8338choke me
8339#else
8340f = $ac_func;
8341#endif
8342
8343  ;
8344  return 0;
8345}
8346_ACEOF
8347rm -f conftest.$ac_objext conftest$ac_exeext
8348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8349  (eval $ac_link) 2>&5
8350  ac_status=$?
8351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352  (exit $ac_status); } &&
8353         { ac_try='test -s conftest$ac_exeext'
8354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355  (eval $ac_try) 2>&5
8356  ac_status=$?
8357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358  (exit $ac_status); }; }; then
8359  eval "$as_ac_var=yes"
8360else
8361  echo "$as_me: failed program was:" >&5
8362cat conftest.$ac_ext >&5
8363eval "$as_ac_var=no"
8364fi
8365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366fi
8367echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8368echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8369if test `eval echo '${'$as_ac_var'}'` = yes; then
8370  cat >>confdefs.h <<_ACEOF
8371#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8372_ACEOF
8373
8374fi
8375done
8376
8377fi
8378# db_create
8379eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8380eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8381eval "LIB_db_create=$ac_res"
8382
8383case "$ac_res" in
8384	yes)
8385	eval "ac_cv_func_db_create=yes"
8386	eval "LIB_db_create="
8387	cat >>confdefs.h <<_ACEOF
8388#define $ac_tr_func 1
8389_ACEOF
8390
8391	echo "$as_me:$LINENO: result: yes" >&5
8392echo "${ECHO_T}yes" >&6
8393	;;
8394	no)
8395	eval "ac_cv_func_db_create=no"
8396	eval "LIB_db_create="
8397	echo "$as_me:$LINENO: result: no" >&5
8398echo "${ECHO_T}no" >&6
8399	;;
8400	*)
8401	eval "ac_cv_func_db_create=yes"
8402	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8403	cat >>confdefs.h <<_ACEOF
8404#define $ac_tr_func 1
8405_ACEOF
8406
8407	cat >>confdefs.h <<_ACEOF
8408#define $ac_tr_lib 1
8409_ACEOF
8410
8411	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
8412echo "${ECHO_T}yes, in $ac_res" >&6
8413	;;
8414esac
8415
8416
8417
8418  if test "$ac_cv_func_db_create" = "yes"; then
8419    db_type=db3
8420    if test "$ac_cv_funclib_db_create" != "yes"; then
8421      DBLIB="$ac_cv_funclib_db_create"
8422    else
8423      DBLIB=""
8424    fi
8425
8426cat >>confdefs.h <<\_ACEOF
8427#define HAVE_DB3 1
8428_ACEOF
8429
8430  else
8431
8432
8433
8434
8435
8436echo "$as_me:$LINENO: checking for dbopen" >&5
8437echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
8438if test "${ac_cv_funclib_dbopen+set}" = set; then
8439  echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441
8442if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
8443	ac_save_LIBS="$LIBS"
8444	for ac_lib in "" db2 db; do
8445		case "$ac_lib" in
8446		"") ;;
8447		yes) ac_lib="" ;;
8448		no) continue ;;
8449		-l*) ;;
8450		*) ac_lib="-l$ac_lib" ;;
8451		esac
8452		LIBS=" $ac_lib  $ac_save_LIBS"
8453		cat >conftest.$ac_ext <<_ACEOF
8454#line $LINENO "configure"
8455#include "confdefs.h"
8456
8457    #include <stdio.h>
8458    #if defined(HAVE_DB2_DB_H)
8459    #include <db2/db.h>
8460    #elif defined(HAVE_DB_185_H)
8461    #include <db_185.h>
8462    #elif defined(HAVE_DB_H)
8463    #include <db.h>
8464    #else
8465    #error no db.h
8466    #endif
8467
8468#ifdef F77_DUMMY_MAIN
8469#  ifdef __cplusplus
8470     extern "C"
8471#  endif
8472   int F77_DUMMY_MAIN() { return 1; }
8473#endif
8474int
8475main ()
8476{
8477dbopen(NULL, 0, 0, 0, NULL)
8478  ;
8479  return 0;
8480}
8481_ACEOF
8482rm -f conftest.$ac_objext conftest$ac_exeext
8483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484  (eval $ac_link) 2>&5
8485  ac_status=$?
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); } &&
8488         { ac_try='test -s conftest$ac_exeext'
8489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490  (eval $ac_try) 2>&5
8491  ac_status=$?
8492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493  (exit $ac_status); }; }; then
8494  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
8495else
8496  echo "$as_me: failed program was:" >&5
8497cat conftest.$ac_ext >&5
8498fi
8499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8500	done
8501	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
8502	LIBS="$ac_save_LIBS"
8503fi
8504
8505fi
8506
8507
8508eval "ac_res=\$ac_cv_funclib_dbopen"
8509
8510if false; then
8511
8512for ac_func in dbopen
8513do
8514as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8515echo "$as_me:$LINENO: checking for $ac_func" >&5
8516echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_var+set}\" = set"; then
8518  echo $ECHO_N "(cached) $ECHO_C" >&6
8519else
8520  cat >conftest.$ac_ext <<_ACEOF
8521#line $LINENO "configure"
8522#include "confdefs.h"
8523/* System header to define __stub macros and hopefully few prototypes,
8524    which can conflict with char $ac_func (); below.  */
8525#include <assert.h>
8526/* Override any gcc2 internal prototype to avoid an error.  */
8527#ifdef __cplusplus
8528extern "C"
8529#endif
8530/* We use char because int might match the return type of a gcc2
8531   builtin and then its argument prototype would still apply.  */
8532char $ac_func ();
8533char (*f) ();
8534
8535#ifdef F77_DUMMY_MAIN
8536#  ifdef __cplusplus
8537     extern "C"
8538#  endif
8539   int F77_DUMMY_MAIN() { return 1; }
8540#endif
8541int
8542main ()
8543{
8544/* The GNU C library defines this for functions which it implements
8545    to always fail with ENOSYS.  Some functions are actually named
8546    something starting with __ and the normal name is an alias.  */
8547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8548choke me
8549#else
8550f = $ac_func;
8551#endif
8552
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557rm -f conftest.$ac_objext conftest$ac_exeext
8558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8559  (eval $ac_link) 2>&5
8560  ac_status=$?
8561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562  (exit $ac_status); } &&
8563         { ac_try='test -s conftest$ac_exeext'
8564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565  (eval $ac_try) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); }; }; then
8569  eval "$as_ac_var=yes"
8570else
8571  echo "$as_me: failed program was:" >&5
8572cat conftest.$ac_ext >&5
8573eval "$as_ac_var=no"
8574fi
8575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8576fi
8577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8579if test `eval echo '${'$as_ac_var'}'` = yes; then
8580  cat >>confdefs.h <<_ACEOF
8581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8582_ACEOF
8583
8584fi
8585done
8586
8587fi
8588# dbopen
8589eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8590eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8591eval "LIB_dbopen=$ac_res"
8592
8593case "$ac_res" in
8594	yes)
8595	eval "ac_cv_func_dbopen=yes"
8596	eval "LIB_dbopen="
8597	cat >>confdefs.h <<_ACEOF
8598#define $ac_tr_func 1
8599_ACEOF
8600
8601	echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603	;;
8604	no)
8605	eval "ac_cv_func_dbopen=no"
8606	eval "LIB_dbopen="
8607	echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8609	;;
8610	*)
8611	eval "ac_cv_func_dbopen=yes"
8612	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8613	cat >>confdefs.h <<_ACEOF
8614#define $ac_tr_func 1
8615_ACEOF
8616
8617	cat >>confdefs.h <<_ACEOF
8618#define $ac_tr_lib 1
8619_ACEOF
8620
8621	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
8622echo "${ECHO_T}yes, in $ac_res" >&6
8623	;;
8624esac
8625
8626
8627
8628    if test "$ac_cv_func_dbopen" = "yes"; then
8629      db_type=db1
8630      if test "$ac_cv_funclib_dbopen" != "yes"; then
8631        DBLIB="$ac_cv_funclib_dbopen"
8632      else
8633        DBLIB=""
8634      fi
8635
8636cat >>confdefs.h <<\_ACEOF
8637#define HAVE_DB1 1
8638_ACEOF
8639
8640    fi
8641  fi
8642
8643
8644  if test "$ac_cv_func_dbm_firstkey" != yes; then
8645
8646
8647echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
8648echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
8649if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
8650  echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652
8653if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
8654	ac_save_LIBS="$LIBS"
8655	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
8656		case "$ac_lib" in
8657		"") ;;
8658		yes) ac_lib="" ;;
8659		no) continue ;;
8660		-l*) ;;
8661		*) ac_lib="-l$ac_lib" ;;
8662		esac
8663		LIBS=" $ac_lib  $ac_save_LIBS"
8664		cat >conftest.$ac_ext <<_ACEOF
8665#line $LINENO "configure"
8666#include "confdefs.h"
8667
8668    #include <stdio.h>
8669    #define DB_DBM_HSEARCH 1
8670    #include <db.h>
8671    DBM *dbm;
8672
8673#ifdef F77_DUMMY_MAIN
8674#  ifdef __cplusplus
8675     extern "C"
8676#  endif
8677   int F77_DUMMY_MAIN() { return 1; }
8678#endif
8679int
8680main ()
8681{
8682dbm_firstkey(NULL)
8683  ;
8684  return 0;
8685}
8686_ACEOF
8687rm -f conftest.$ac_objext conftest$ac_exeext
8688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8689  (eval $ac_link) 2>&5
8690  ac_status=$?
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } &&
8693         { ac_try='test -s conftest$ac_exeext'
8694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695  (eval $ac_try) 2>&5
8696  ac_status=$?
8697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698  (exit $ac_status); }; }; then
8699  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
8700else
8701  echo "$as_me: failed program was:" >&5
8702cat conftest.$ac_ext >&5
8703fi
8704rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8705	done
8706	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
8707	LIBS="$ac_save_LIBS"
8708fi
8709
8710fi
8711
8712
8713eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
8714
8715if false; then
8716
8717for ac_func in dbm_firstkey
8718do
8719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8720echo "$as_me:$LINENO: checking for $ac_func" >&5
8721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8722if eval "test \"\${$as_ac_var+set}\" = set"; then
8723  echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725  cat >conftest.$ac_ext <<_ACEOF
8726#line $LINENO "configure"
8727#include "confdefs.h"
8728/* System header to define __stub macros and hopefully few prototypes,
8729    which can conflict with char $ac_func (); below.  */
8730#include <assert.h>
8731/* Override any gcc2 internal prototype to avoid an error.  */
8732#ifdef __cplusplus
8733extern "C"
8734#endif
8735/* We use char because int might match the return type of a gcc2
8736   builtin and then its argument prototype would still apply.  */
8737char $ac_func ();
8738char (*f) ();
8739
8740#ifdef F77_DUMMY_MAIN
8741#  ifdef __cplusplus
8742     extern "C"
8743#  endif
8744   int F77_DUMMY_MAIN() { return 1; }
8745#endif
8746int
8747main ()
8748{
8749/* The GNU C library defines this for functions which it implements
8750    to always fail with ENOSYS.  Some functions are actually named
8751    something starting with __ and the normal name is an alias.  */
8752#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8753choke me
8754#else
8755f = $ac_func;
8756#endif
8757
8758  ;
8759  return 0;
8760}
8761_ACEOF
8762rm -f conftest.$ac_objext conftest$ac_exeext
8763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764  (eval $ac_link) 2>&5
8765  ac_status=$?
8766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767  (exit $ac_status); } &&
8768         { ac_try='test -s conftest$ac_exeext'
8769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8770  (eval $ac_try) 2>&5
8771  ac_status=$?
8772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773  (exit $ac_status); }; }; then
8774  eval "$as_ac_var=yes"
8775else
8776  echo "$as_me: failed program was:" >&5
8777cat conftest.$ac_ext >&5
8778eval "$as_ac_var=no"
8779fi
8780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8781fi
8782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8783echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8784if test `eval echo '${'$as_ac_var'}'` = yes; then
8785  cat >>confdefs.h <<_ACEOF
8786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8787_ACEOF
8788
8789fi
8790done
8791
8792fi
8793# dbm_firstkey
8794eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8795eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
8796eval "LIB_dbm_firstkey=$ac_res"
8797
8798case "$ac_res" in
8799	yes)
8800	eval "ac_cv_func_dbm_firstkey=yes"
8801	eval "LIB_dbm_firstkey="
8802	cat >>confdefs.h <<_ACEOF
8803#define $ac_tr_func 1
8804_ACEOF
8805
8806	echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808	;;
8809	no)
8810	eval "ac_cv_func_dbm_firstkey=no"
8811	eval "LIB_dbm_firstkey="
8812	echo "$as_me:$LINENO: result: no" >&5
8813echo "${ECHO_T}no" >&6
8814	;;
8815	*)
8816	eval "ac_cv_func_dbm_firstkey=yes"
8817	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
8818	cat >>confdefs.h <<_ACEOF
8819#define $ac_tr_func 1
8820_ACEOF
8821
8822	cat >>confdefs.h <<_ACEOF
8823#define $ac_tr_lib 1
8824_ACEOF
8825
8826	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
8827echo "${ECHO_T}yes, in $ac_res" >&6
8828	;;
8829esac
8830
8831
8832
8833    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
8834      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
8835        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
8836      else
8837        LIB_NDBM=""
8838      fi
8839
8840cat >>confdefs.h <<\_ACEOF
8841#define HAVE_DB_NDBM 1
8842_ACEOF
8843
8844
8845cat >>confdefs.h <<\_ACEOF
8846#define HAVE_NEW_DB 1
8847_ACEOF
8848
8849    else
8850      $as_unset ac_cv_func_dbm_firstkey
8851      $as_unset ac_cv_funclib_dbm_firstkey
8852    fi
8853  fi
8854
8855fi # berkeley db
8856
8857if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
8858
8859
8860
8861for ac_header in 				\
8862	dbm.h					\
8863	ndbm.h					\
8864
8865do
8866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8867if eval "test \"\${$as_ac_Header+set}\" = set"; then
8868  echo "$as_me:$LINENO: checking for $ac_header" >&5
8869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8870if eval "test \"\${$as_ac_Header+set}\" = set"; then
8871  echo $ECHO_N "(cached) $ECHO_C" >&6
8872fi
8873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8875else
8876  # Is the header compilable?
8877echo "$as_me:$LINENO: checking $ac_header usability" >&5
8878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8879cat >conftest.$ac_ext <<_ACEOF
8880#line $LINENO "configure"
8881#include "confdefs.h"
8882$ac_includes_default
8883#include <$ac_header>
8884_ACEOF
8885rm -f conftest.$ac_objext
8886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8887  (eval $ac_compile) 2>&5
8888  ac_status=$?
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); } &&
8891         { ac_try='test -s conftest.$ac_objext'
8892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893  (eval $ac_try) 2>&5
8894  ac_status=$?
8895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896  (exit $ac_status); }; }; then
8897  ac_header_compiler=yes
8898else
8899  echo "$as_me: failed program was:" >&5
8900cat conftest.$ac_ext >&5
8901ac_header_compiler=no
8902fi
8903rm -f conftest.$ac_objext conftest.$ac_ext
8904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8905echo "${ECHO_T}$ac_header_compiler" >&6
8906
8907# Is the header present?
8908echo "$as_me:$LINENO: checking $ac_header presence" >&5
8909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8910cat >conftest.$ac_ext <<_ACEOF
8911#line $LINENO "configure"
8912#include "confdefs.h"
8913#include <$ac_header>
8914_ACEOF
8915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8916  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8917  ac_status=$?
8918  egrep -v '^ *\+' conftest.er1 >conftest.err
8919  rm -f conftest.er1
8920  cat conftest.err >&5
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); } >/dev/null; then
8923  if test -s conftest.err; then
8924    ac_cpp_err=$ac_c_preproc_warn_flag
8925  else
8926    ac_cpp_err=
8927  fi
8928else
8929  ac_cpp_err=yes
8930fi
8931if test -z "$ac_cpp_err"; then
8932  ac_header_preproc=yes
8933else
8934  echo "$as_me: failed program was:" >&5
8935  cat conftest.$ac_ext >&5
8936  ac_header_preproc=no
8937fi
8938rm -f conftest.err conftest.$ac_ext
8939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8940echo "${ECHO_T}$ac_header_preproc" >&6
8941
8942# So?  What about this header?
8943case $ac_header_compiler:$ac_header_preproc in
8944  yes:no )
8945    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8947    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8949  no:yes )
8950    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8951echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8952    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8953echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8956esac
8957echo "$as_me:$LINENO: checking for $ac_header" >&5
8958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8959if eval "test \"\${$as_ac_Header+set}\" = set"; then
8960  echo $ECHO_N "(cached) $ECHO_C" >&6
8961else
8962  eval "$as_ac_Header=$ac_header_preproc"
8963fi
8964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8966
8967fi
8968if test `eval echo '${'$as_ac_Header'}'` = yes; then
8969  cat >>confdefs.h <<_ACEOF
8970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971_ACEOF
8972
8973fi
8974
8975done
8976
8977
8978
8979
8980
8981echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
8982echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
8983if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
8984  echo $ECHO_N "(cached) $ECHO_C" >&6
8985else
8986
8987if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
8988	ac_save_LIBS="$LIBS"
8989	for ac_lib in "" ndbm; do
8990		case "$ac_lib" in
8991		"") ;;
8992		yes) ac_lib="" ;;
8993		no) continue ;;
8994		-l*) ;;
8995		*) ac_lib="-l$ac_lib" ;;
8996		esac
8997		LIBS=" $ac_lib  $ac_save_LIBS"
8998		cat >conftest.$ac_ext <<_ACEOF
8999#line $LINENO "configure"
9000#include "confdefs.h"
9001
9002  #include <stdio.h>
9003  #if defined(HAVE_NDBM_H)
9004  #include <ndbm.h>
9005  #elif defined(HAVE_DBM_H)
9006  #include <dbm.h>
9007  #endif
9008  DBM *dbm;
9009
9010#ifdef F77_DUMMY_MAIN
9011#  ifdef __cplusplus
9012     extern "C"
9013#  endif
9014   int F77_DUMMY_MAIN() { return 1; }
9015#endif
9016int
9017main ()
9018{
9019dbm_firstkey(NULL)
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026  (eval $ac_link) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); } &&
9030         { ac_try='test -s conftest$ac_exeext'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; }; then
9036  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
9037else
9038  echo "$as_me: failed program was:" >&5
9039cat conftest.$ac_ext >&5
9040fi
9041rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9042	done
9043	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
9044	LIBS="$ac_save_LIBS"
9045fi
9046
9047fi
9048
9049
9050eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
9051
9052if false; then
9053
9054for ac_func in dbm_firstkey
9055do
9056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9057echo "$as_me:$LINENO: checking for $ac_func" >&5
9058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9059if eval "test \"\${$as_ac_var+set}\" = set"; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062  cat >conftest.$ac_ext <<_ACEOF
9063#line $LINENO "configure"
9064#include "confdefs.h"
9065/* System header to define __stub macros and hopefully few prototypes,
9066    which can conflict with char $ac_func (); below.  */
9067#include <assert.h>
9068/* Override any gcc2 internal prototype to avoid an error.  */
9069#ifdef __cplusplus
9070extern "C"
9071#endif
9072/* We use char because int might match the return type of a gcc2
9073   builtin and then its argument prototype would still apply.  */
9074char $ac_func ();
9075char (*f) ();
9076
9077#ifdef F77_DUMMY_MAIN
9078#  ifdef __cplusplus
9079     extern "C"
9080#  endif
9081   int F77_DUMMY_MAIN() { return 1; }
9082#endif
9083int
9084main ()
9085{
9086/* The GNU C library defines this for functions which it implements
9087    to always fail with ENOSYS.  Some functions are actually named
9088    something starting with __ and the normal name is an alias.  */
9089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9090choke me
9091#else
9092f = $ac_func;
9093#endif
9094
9095  ;
9096  return 0;
9097}
9098_ACEOF
9099rm -f conftest.$ac_objext conftest$ac_exeext
9100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101  (eval $ac_link) 2>&5
9102  ac_status=$?
9103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104  (exit $ac_status); } &&
9105         { ac_try='test -s conftest$ac_exeext'
9106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107  (eval $ac_try) 2>&5
9108  ac_status=$?
9109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110  (exit $ac_status); }; }; then
9111  eval "$as_ac_var=yes"
9112else
9113  echo "$as_me: failed program was:" >&5
9114cat conftest.$ac_ext >&5
9115eval "$as_ac_var=no"
9116fi
9117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9118fi
9119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9120echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9121if test `eval echo '${'$as_ac_var'}'` = yes; then
9122  cat >>confdefs.h <<_ACEOF
9123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9124_ACEOF
9125
9126fi
9127done
9128
9129fi
9130# dbm_firstkey
9131eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9132eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9133eval "LIB_dbm_firstkey=$ac_res"
9134
9135case "$ac_res" in
9136	yes)
9137	eval "ac_cv_func_dbm_firstkey=yes"
9138	eval "LIB_dbm_firstkey="
9139	cat >>confdefs.h <<_ACEOF
9140#define $ac_tr_func 1
9141_ACEOF
9142
9143	echo "$as_me:$LINENO: result: yes" >&5
9144echo "${ECHO_T}yes" >&6
9145	;;
9146	no)
9147	eval "ac_cv_func_dbm_firstkey=no"
9148	eval "LIB_dbm_firstkey="
9149	echo "$as_me:$LINENO: result: no" >&5
9150echo "${ECHO_T}no" >&6
9151	;;
9152	*)
9153	eval "ac_cv_func_dbm_firstkey=yes"
9154	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9155	cat >>confdefs.h <<_ACEOF
9156#define $ac_tr_func 1
9157_ACEOF
9158
9159	cat >>confdefs.h <<_ACEOF
9160#define $ac_tr_lib 1
9161_ACEOF
9162
9163	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9164echo "${ECHO_T}yes, in $ac_res" >&6
9165	;;
9166esac
9167
9168
9169
9170  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
9171    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
9172      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
9173    else
9174      LIB_NDBM=""
9175    fi
9176
9177cat >>confdefs.h <<\_ACEOF
9178#define HAVE_NDBM 1
9179_ACEOF
9180    have_ndbm=yes
9181    if test "$db_type" = "unknown"; then
9182      db_type=ndbm
9183      DBLIB="$LIB_NDBM"
9184    fi
9185  else
9186
9187    $as_unset ac_cv_func_dbm_firstkey
9188    $as_unset ac_cv_funclib_dbm_firstkey
9189
9190
9191for ac_header in 				\
9192	  gdbm/ndbm.h				\
9193
9194do
9195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196if eval "test \"\${$as_ac_Header+set}\" = set"; then
9197  echo "$as_me:$LINENO: checking for $ac_header" >&5
9198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9199if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200  echo $ECHO_N "(cached) $ECHO_C" >&6
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204else
9205  # Is the header compilable?
9206echo "$as_me:$LINENO: checking $ac_header usability" >&5
9207echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9208cat >conftest.$ac_ext <<_ACEOF
9209#line $LINENO "configure"
9210#include "confdefs.h"
9211$ac_includes_default
9212#include <$ac_header>
9213_ACEOF
9214rm -f conftest.$ac_objext
9215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216  (eval $ac_compile) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); } &&
9220         { ac_try='test -s conftest.$ac_objext'
9221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222  (eval $ac_try) 2>&5
9223  ac_status=$?
9224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225  (exit $ac_status); }; }; then
9226  ac_header_compiler=yes
9227else
9228  echo "$as_me: failed program was:" >&5
9229cat conftest.$ac_ext >&5
9230ac_header_compiler=no
9231fi
9232rm -f conftest.$ac_objext conftest.$ac_ext
9233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236# Is the header present?
9237echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239cat >conftest.$ac_ext <<_ACEOF
9240#line $LINENO "configure"
9241#include "confdefs.h"
9242#include <$ac_header>
9243_ACEOF
9244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9245  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9246  ac_status=$?
9247  egrep -v '^ *\+' conftest.er1 >conftest.err
9248  rm -f conftest.er1
9249  cat conftest.err >&5
9250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251  (exit $ac_status); } >/dev/null; then
9252  if test -s conftest.err; then
9253    ac_cpp_err=$ac_c_preproc_warn_flag
9254  else
9255    ac_cpp_err=
9256  fi
9257else
9258  ac_cpp_err=yes
9259fi
9260if test -z "$ac_cpp_err"; then
9261  ac_header_preproc=yes
9262else
9263  echo "$as_me: failed program was:" >&5
9264  cat conftest.$ac_ext >&5
9265  ac_header_preproc=no
9266fi
9267rm -f conftest.err conftest.$ac_ext
9268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269echo "${ECHO_T}$ac_header_preproc" >&6
9270
9271# So?  What about this header?
9272case $ac_header_compiler:$ac_header_preproc in
9273  yes:no )
9274    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9278  no:yes )
9279    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9280echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9281    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9282echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9283    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9284echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
9285esac
9286echo "$as_me:$LINENO: checking for $ac_header" >&5
9287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289  echo $ECHO_N "(cached) $ECHO_C" >&6
9290else
9291  eval "$as_ac_Header=$ac_header_preproc"
9292fi
9293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295
9296fi
9297if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298  cat >>confdefs.h <<_ACEOF
9299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300_ACEOF
9301
9302fi
9303
9304done
9305
9306
9307
9308
9309
9310echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
9311echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
9312if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
9313  echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315
9316if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
9317	ac_save_LIBS="$LIBS"
9318	for ac_lib in "" gdbm; do
9319		case "$ac_lib" in
9320		"") ;;
9321		yes) ac_lib="" ;;
9322		no) continue ;;
9323		-l*) ;;
9324		*) ac_lib="-l$ac_lib" ;;
9325		esac
9326		LIBS=" $ac_lib  $ac_save_LIBS"
9327		cat >conftest.$ac_ext <<_ACEOF
9328#line $LINENO "configure"
9329#include "confdefs.h"
9330
9331    #include <stdio.h>
9332    #include <gdbm/ndbm.h>
9333    DBM *dbm;
9334
9335#ifdef F77_DUMMY_MAIN
9336#  ifdef __cplusplus
9337     extern "C"
9338#  endif
9339   int F77_DUMMY_MAIN() { return 1; }
9340#endif
9341int
9342main ()
9343{
9344dbm_firstkey(NULL)
9345  ;
9346  return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
9350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351  (eval $ac_link) 2>&5
9352  ac_status=$?
9353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354  (exit $ac_status); } &&
9355         { ac_try='test -s conftest$ac_exeext'
9356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357  (eval $ac_try) 2>&5
9358  ac_status=$?
9359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360  (exit $ac_status); }; }; then
9361  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
9362else
9363  echo "$as_me: failed program was:" >&5
9364cat conftest.$ac_ext >&5
9365fi
9366rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367	done
9368	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
9369	LIBS="$ac_save_LIBS"
9370fi
9371
9372fi
9373
9374
9375eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
9376
9377if false; then
9378
9379for ac_func in dbm_firstkey
9380do
9381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9382echo "$as_me:$LINENO: checking for $ac_func" >&5
9383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9384if eval "test \"\${$as_ac_var+set}\" = set"; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  cat >conftest.$ac_ext <<_ACEOF
9388#line $LINENO "configure"
9389#include "confdefs.h"
9390/* System header to define __stub macros and hopefully few prototypes,
9391    which can conflict with char $ac_func (); below.  */
9392#include <assert.h>
9393/* Override any gcc2 internal prototype to avoid an error.  */
9394#ifdef __cplusplus
9395extern "C"
9396#endif
9397/* We use char because int might match the return type of a gcc2
9398   builtin and then its argument prototype would still apply.  */
9399char $ac_func ();
9400char (*f) ();
9401
9402#ifdef F77_DUMMY_MAIN
9403#  ifdef __cplusplus
9404     extern "C"
9405#  endif
9406   int F77_DUMMY_MAIN() { return 1; }
9407#endif
9408int
9409main ()
9410{
9411/* The GNU C library defines this for functions which it implements
9412    to always fail with ENOSYS.  Some functions are actually named
9413    something starting with __ and the normal name is an alias.  */
9414#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9415choke me
9416#else
9417f = $ac_func;
9418#endif
9419
9420  ;
9421  return 0;
9422}
9423_ACEOF
9424rm -f conftest.$ac_objext conftest$ac_exeext
9425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426  (eval $ac_link) 2>&5
9427  ac_status=$?
9428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429  (exit $ac_status); } &&
9430         { ac_try='test -s conftest$ac_exeext'
9431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432  (eval $ac_try) 2>&5
9433  ac_status=$?
9434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435  (exit $ac_status); }; }; then
9436  eval "$as_ac_var=yes"
9437else
9438  echo "$as_me: failed program was:" >&5
9439cat conftest.$ac_ext >&5
9440eval "$as_ac_var=no"
9441fi
9442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9443fi
9444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9446if test `eval echo '${'$as_ac_var'}'` = yes; then
9447  cat >>confdefs.h <<_ACEOF
9448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9449_ACEOF
9450
9451fi
9452done
9453
9454fi
9455# dbm_firstkey
9456eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9457eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
9458eval "LIB_dbm_firstkey=$ac_res"
9459
9460case "$ac_res" in
9461	yes)
9462	eval "ac_cv_func_dbm_firstkey=yes"
9463	eval "LIB_dbm_firstkey="
9464	cat >>confdefs.h <<_ACEOF
9465#define $ac_tr_func 1
9466_ACEOF
9467
9468	echo "$as_me:$LINENO: result: yes" >&5
9469echo "${ECHO_T}yes" >&6
9470	;;
9471	no)
9472	eval "ac_cv_func_dbm_firstkey=no"
9473	eval "LIB_dbm_firstkey="
9474	echo "$as_me:$LINENO: result: no" >&5
9475echo "${ECHO_T}no" >&6
9476	;;
9477	*)
9478	eval "ac_cv_func_dbm_firstkey=yes"
9479	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
9480	cat >>confdefs.h <<_ACEOF
9481#define $ac_tr_func 1
9482_ACEOF
9483
9484	cat >>confdefs.h <<_ACEOF
9485#define $ac_tr_lib 1
9486_ACEOF
9487
9488	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
9489echo "${ECHO_T}yes, in $ac_res" >&6
9490	;;
9491esac
9492
9493
9494
9495    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
9496      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
9497	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
9498      else
9499	LIB_NDBM=""
9500      fi
9501
9502cat >>confdefs.h <<\_ACEOF
9503#define HAVE_NDBM 1
9504_ACEOF
9505      have_ndbm=yes
9506      if test "$db_type" = "unknown"; then
9507	db_type=ndbm
9508	DBLIB="$LIB_NDBM"
9509      fi
9510    fi
9511  fi
9512
9513fi # unknown
9514
9515if test "$have_ndbm" = "yes"; then
9516  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
9517echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
9518  if test "$cross_compiling" = yes; then
9519  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
9520echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9521   { (exit 1); exit 1; }; }
9522else
9523  cat >conftest.$ac_ext <<_ACEOF
9524#line $LINENO "configure"
9525#include "confdefs.h"
9526
9527#include <unistd.h>
9528#include <fcntl.h>
9529#if defined(HAVE_GDBM_NDBM_H)
9530#include <gdbm/ndbm.h>
9531#elif defined(HAVE_NDBM_H)
9532#include <ndbm.h>
9533#elif defined(HAVE_DBM_H)
9534#include <dbm.h>
9535#endif
9536int main()
9537{
9538  DBM *d;
9539
9540  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
9541  if (d == NULL)
9542    return 1;
9543  dbm_close(d);
9544  return 0;
9545}
9546_ACEOF
9547rm -f conftest$ac_exeext
9548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549  (eval $ac_link) 2>&5
9550  ac_status=$?
9551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554  (eval $ac_try) 2>&5
9555  ac_status=$?
9556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557  (exit $ac_status); }; }; then
9558
9559    if test -f conftest.db; then
9560      echo "$as_me:$LINENO: result: yes" >&5
9561echo "${ECHO_T}yes" >&6
9562
9563cat >>confdefs.h <<\_ACEOF
9564#define HAVE_NEW_DB 1
9565_ACEOF
9566
9567    else
9568      echo "$as_me:$LINENO: result: no" >&5
9569echo "${ECHO_T}no" >&6
9570    fi
9571else
9572  echo "$as_me: program exited with status $ac_status" >&5
9573echo "$as_me: failed program was:" >&5
9574cat conftest.$ac_ext >&5
9575( exit $ac_status )
9576echo "$as_me:$LINENO: result: no" >&5
9577echo "${ECHO_T}no" >&6
9578fi
9579rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9580fi
9581fi
9582
9583
9584
9585if test "$db_type" = db1; then
9586  HAVE_DB1_TRUE=
9587  HAVE_DB1_FALSE='#'
9588else
9589  HAVE_DB1_TRUE='#'
9590  HAVE_DB1_FALSE=
9591fi
9592
9593
9594if test "$db_type" = db3; then
9595  HAVE_DB3_TRUE=
9596  HAVE_DB3_FALSE='#'
9597else
9598  HAVE_DB3_TRUE='#'
9599  HAVE_DB3_FALSE=
9600fi
9601
9602
9603if test "$db_type" = ndbm; then
9604  HAVE_NDBM_TRUE=
9605  HAVE_NDBM_FALSE='#'
9606else
9607  HAVE_NDBM_TRUE='#'
9608  HAVE_NDBM_FALSE=
9609fi
9610
9611DBLIB="$LDFLAGS $DBLIB"
9612
9613
9614
9615
9616
9617echo "$as_me:$LINENO: checking for inline" >&5
9618echo $ECHO_N "checking for inline... $ECHO_C" >&6
9619if test "${ac_cv_c_inline+set}" = set; then
9620  echo $ECHO_N "(cached) $ECHO_C" >&6
9621else
9622  ac_cv_c_inline=no
9623for ac_kw in inline __inline__ __inline; do
9624  cat >conftest.$ac_ext <<_ACEOF
9625#line $LINENO "configure"
9626#include "confdefs.h"
9627#ifndef __cplusplus
9628static $ac_kw int static_foo () {return 0; }
9629$ac_kw int foo () {return 0; }
9630#endif
9631
9632_ACEOF
9633rm -f conftest.$ac_objext
9634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9635  (eval $ac_compile) 2>&5
9636  ac_status=$?
9637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638  (exit $ac_status); } &&
9639         { ac_try='test -s conftest.$ac_objext'
9640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641  (eval $ac_try) 2>&5
9642  ac_status=$?
9643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644  (exit $ac_status); }; }; then
9645  ac_cv_c_inline=$ac_kw; break
9646else
9647  echo "$as_me: failed program was:" >&5
9648cat conftest.$ac_ext >&5
9649fi
9650rm -f conftest.$ac_objext conftest.$ac_ext
9651done
9652
9653fi
9654echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9655echo "${ECHO_T}$ac_cv_c_inline" >&6
9656case $ac_cv_c_inline in
9657  inline | yes) ;;
9658  no)
9659cat >>confdefs.h <<\_ACEOF
9660#define inline
9661_ACEOF
9662 ;;
9663  *)  cat >>confdefs.h <<_ACEOF
9664#define inline $ac_cv_c_inline
9665_ACEOF
9666 ;;
9667esac
9668
9669echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9670echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9671if test "${ac_cv_c_const+set}" = set; then
9672  echo $ECHO_N "(cached) $ECHO_C" >&6
9673else
9674  cat >conftest.$ac_ext <<_ACEOF
9675#line $LINENO "configure"
9676#include "confdefs.h"
9677
9678#ifdef F77_DUMMY_MAIN
9679#  ifdef __cplusplus
9680     extern "C"
9681#  endif
9682   int F77_DUMMY_MAIN() { return 1; }
9683#endif
9684int
9685main ()
9686{
9687/* FIXME: Include the comments suggested by Paul. */
9688#ifndef __cplusplus
9689  /* Ultrix mips cc rejects this.  */
9690  typedef int charset[2];
9691  const charset x;
9692  /* SunOS 4.1.1 cc rejects this.  */
9693  char const *const *ccp;
9694  char **p;
9695  /* NEC SVR4.0.2 mips cc rejects this.  */
9696  struct point {int x, y;};
9697  static struct point const zero = {0,0};
9698  /* AIX XL C 1.02.0.0 rejects this.
9699     It does not let you subtract one const X* pointer from another in
9700     an arm of an if-expression whose if-part is not a constant
9701     expression */
9702  const char *g = "string";
9703  ccp = &g + (g ? g-g : 0);
9704  /* HPUX 7.0 cc rejects these. */
9705  ++ccp;
9706  p = (char**) ccp;
9707  ccp = (char const *const *) p;
9708  { /* SCO 3.2v4 cc rejects this.  */
9709    char *t;
9710    char const *s = 0 ? (char *) 0 : (char const *) 0;
9711
9712    *t++ = 0;
9713  }
9714  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9715    int x[] = {25, 17};
9716    const int *foo = &x[0];
9717    ++foo;
9718  }
9719  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9720    typedef const int *iptr;
9721    iptr p = 0;
9722    ++p;
9723  }
9724  { /* AIX XL C 1.02.0.0 rejects this saying
9725       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9726    struct s { int j; const int *ap[3]; };
9727    struct s *b; b->j = 5;
9728  }
9729  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9730    const int foo = 10;
9731  }
9732#endif
9733
9734  ;
9735  return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext
9739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740  (eval $ac_compile) 2>&5
9741  ac_status=$?
9742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743  (exit $ac_status); } &&
9744         { ac_try='test -s conftest.$ac_objext'
9745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746  (eval $ac_try) 2>&5
9747  ac_status=$?
9748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749  (exit $ac_status); }; }; then
9750  ac_cv_c_const=yes
9751else
9752  echo "$as_me: failed program was:" >&5
9753cat conftest.$ac_ext >&5
9754ac_cv_c_const=no
9755fi
9756rm -f conftest.$ac_objext conftest.$ac_ext
9757fi
9758echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9759echo "${ECHO_T}$ac_cv_c_const" >&6
9760if test $ac_cv_c_const = no; then
9761
9762cat >>confdefs.h <<\_ACEOF
9763#define const
9764_ACEOF
9765
9766fi
9767
9768echo "$as_me:$LINENO: checking for size_t" >&5
9769echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9770if test "${ac_cv_type_size_t+set}" = set; then
9771  echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773  cat >conftest.$ac_ext <<_ACEOF
9774#line $LINENO "configure"
9775#include "confdefs.h"
9776$ac_includes_default
9777#ifdef F77_DUMMY_MAIN
9778#  ifdef __cplusplus
9779     extern "C"
9780#  endif
9781   int F77_DUMMY_MAIN() { return 1; }
9782#endif
9783int
9784main ()
9785{
9786if ((size_t *) 0)
9787  return 0;
9788if (sizeof (size_t))
9789  return 0;
9790  ;
9791  return 0;
9792}
9793_ACEOF
9794rm -f conftest.$ac_objext
9795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9796  (eval $ac_compile) 2>&5
9797  ac_status=$?
9798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799  (exit $ac_status); } &&
9800         { ac_try='test -s conftest.$ac_objext'
9801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802  (eval $ac_try) 2>&5
9803  ac_status=$?
9804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805  (exit $ac_status); }; }; then
9806  ac_cv_type_size_t=yes
9807else
9808  echo "$as_me: failed program was:" >&5
9809cat conftest.$ac_ext >&5
9810ac_cv_type_size_t=no
9811fi
9812rm -f conftest.$ac_objext conftest.$ac_ext
9813fi
9814echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9815echo "${ECHO_T}$ac_cv_type_size_t" >&6
9816if test $ac_cv_type_size_t = yes; then
9817  :
9818else
9819
9820cat >>confdefs.h <<_ACEOF
9821#define size_t unsigned
9822_ACEOF
9823
9824fi
9825
9826echo "$as_me:$LINENO: checking for pid_t" >&5
9827echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9828if test "${ac_cv_type_pid_t+set}" = set; then
9829  echo $ECHO_N "(cached) $ECHO_C" >&6
9830else
9831  cat >conftest.$ac_ext <<_ACEOF
9832#line $LINENO "configure"
9833#include "confdefs.h"
9834$ac_includes_default
9835#ifdef F77_DUMMY_MAIN
9836#  ifdef __cplusplus
9837     extern "C"
9838#  endif
9839   int F77_DUMMY_MAIN() { return 1; }
9840#endif
9841int
9842main ()
9843{
9844if ((pid_t *) 0)
9845  return 0;
9846if (sizeof (pid_t))
9847  return 0;
9848  ;
9849  return 0;
9850}
9851_ACEOF
9852rm -f conftest.$ac_objext
9853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9854  (eval $ac_compile) 2>&5
9855  ac_status=$?
9856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857  (exit $ac_status); } &&
9858         { ac_try='test -s conftest.$ac_objext'
9859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860  (eval $ac_try) 2>&5
9861  ac_status=$?
9862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863  (exit $ac_status); }; }; then
9864  ac_cv_type_pid_t=yes
9865else
9866  echo "$as_me: failed program was:" >&5
9867cat conftest.$ac_ext >&5
9868ac_cv_type_pid_t=no
9869fi
9870rm -f conftest.$ac_objext conftest.$ac_ext
9871fi
9872echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9873echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9874if test $ac_cv_type_pid_t = yes; then
9875  :
9876else
9877
9878cat >>confdefs.h <<_ACEOF
9879#define pid_t int
9880_ACEOF
9881
9882fi
9883
9884echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9885echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9886if test "${ac_cv_type_uid_t+set}" = set; then
9887  echo $ECHO_N "(cached) $ECHO_C" >&6
9888else
9889  cat >conftest.$ac_ext <<_ACEOF
9890#line $LINENO "configure"
9891#include "confdefs.h"
9892#include <sys/types.h>
9893
9894_ACEOF
9895if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9896  egrep "uid_t" >/dev/null 2>&1; then
9897  ac_cv_type_uid_t=yes
9898else
9899  ac_cv_type_uid_t=no
9900fi
9901rm -f conftest*
9902
9903fi
9904echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9905echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9906if test $ac_cv_type_uid_t = no; then
9907
9908cat >>confdefs.h <<\_ACEOF
9909#define uid_t int
9910_ACEOF
9911
9912
9913cat >>confdefs.h <<\_ACEOF
9914#define gid_t int
9915_ACEOF
9916
9917fi
9918
9919
9920echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9921echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9922if test "${ac_cv_type_signal+set}" = set; then
9923  echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925  cat >conftest.$ac_ext <<_ACEOF
9926#line $LINENO "configure"
9927#include "confdefs.h"
9928#include <sys/types.h>
9929#include <signal.h>
9930#ifdef signal
9931# undef signal
9932#endif
9933#ifdef __cplusplus
9934extern "C" void (*signal (int, void (*)(int)))(int);
9935#else
9936void (*signal ()) ();
9937#endif
9938
9939#ifdef F77_DUMMY_MAIN
9940#  ifdef __cplusplus
9941     extern "C"
9942#  endif
9943   int F77_DUMMY_MAIN() { return 1; }
9944#endif
9945int
9946main ()
9947{
9948int i;
9949  ;
9950  return 0;
9951}
9952_ACEOF
9953rm -f conftest.$ac_objext
9954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955  (eval $ac_compile) 2>&5
9956  ac_status=$?
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); } &&
9959         { ac_try='test -s conftest.$ac_objext'
9960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961  (eval $ac_try) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; }; then
9965  ac_cv_type_signal=void
9966else
9967  echo "$as_me: failed program was:" >&5
9968cat conftest.$ac_ext >&5
9969ac_cv_type_signal=int
9970fi
9971rm -f conftest.$ac_objext conftest.$ac_ext
9972fi
9973echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9974echo "${ECHO_T}$ac_cv_type_signal" >&6
9975
9976cat >>confdefs.h <<_ACEOF
9977#define RETSIGTYPE $ac_cv_type_signal
9978_ACEOF
9979
9980
9981if test "$ac_cv_type_signal" = "void" ; then
9982
9983cat >>confdefs.h <<\_ACEOF
9984#define VOID_RETSIGTYPE 1
9985_ACEOF
9986
9987fi
9988
9989
9990
9991
9992echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9993echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9994if test "${ac_cv_header_time+set}" = set; then
9995  echo $ECHO_N "(cached) $ECHO_C" >&6
9996else
9997  cat >conftest.$ac_ext <<_ACEOF
9998#line $LINENO "configure"
9999#include "confdefs.h"
10000#include <sys/types.h>
10001#include <sys/time.h>
10002#include <time.h>
10003
10004#ifdef F77_DUMMY_MAIN
10005#  ifdef __cplusplus
10006     extern "C"
10007#  endif
10008   int F77_DUMMY_MAIN() { return 1; }
10009#endif
10010int
10011main ()
10012{
10013if ((struct tm *) 0)
10014return 0;
10015  ;
10016  return 0;
10017}
10018_ACEOF
10019rm -f conftest.$ac_objext
10020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10021  (eval $ac_compile) 2>&5
10022  ac_status=$?
10023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024  (exit $ac_status); } &&
10025         { ac_try='test -s conftest.$ac_objext'
10026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027  (eval $ac_try) 2>&5
10028  ac_status=$?
10029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030  (exit $ac_status); }; }; then
10031  ac_cv_header_time=yes
10032else
10033  echo "$as_me: failed program was:" >&5
10034cat conftest.$ac_ext >&5
10035ac_cv_header_time=no
10036fi
10037rm -f conftest.$ac_objext conftest.$ac_ext
10038fi
10039echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10040echo "${ECHO_T}$ac_cv_header_time" >&6
10041if test $ac_cv_header_time = yes; then
10042
10043cat >>confdefs.h <<\_ACEOF
10044#define TIME_WITH_SYS_TIME 1
10045_ACEOF
10046
10047fi
10048
10049
10050
10051for ac_header in standards.h
10052do
10053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10054if eval "test \"\${$as_ac_Header+set}\" = set"; then
10055  echo "$as_me:$LINENO: checking for $ac_header" >&5
10056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10057if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058  echo $ECHO_N "(cached) $ECHO_C" >&6
10059fi
10060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10062else
10063  # Is the header compilable?
10064echo "$as_me:$LINENO: checking $ac_header usability" >&5
10065echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10066cat >conftest.$ac_ext <<_ACEOF
10067#line $LINENO "configure"
10068#include "confdefs.h"
10069$ac_includes_default
10070#include <$ac_header>
10071_ACEOF
10072rm -f conftest.$ac_objext
10073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10074  (eval $ac_compile) 2>&5
10075  ac_status=$?
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); } &&
10078         { ac_try='test -s conftest.$ac_objext'
10079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10080  (eval $ac_try) 2>&5
10081  ac_status=$?
10082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083  (exit $ac_status); }; }; then
10084  ac_header_compiler=yes
10085else
10086  echo "$as_me: failed program was:" >&5
10087cat conftest.$ac_ext >&5
10088ac_header_compiler=no
10089fi
10090rm -f conftest.$ac_objext conftest.$ac_ext
10091echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10092echo "${ECHO_T}$ac_header_compiler" >&6
10093
10094# Is the header present?
10095echo "$as_me:$LINENO: checking $ac_header presence" >&5
10096echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10097cat >conftest.$ac_ext <<_ACEOF
10098#line $LINENO "configure"
10099#include "confdefs.h"
10100#include <$ac_header>
10101_ACEOF
10102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10103  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10104  ac_status=$?
10105  egrep -v '^ *\+' conftest.er1 >conftest.err
10106  rm -f conftest.er1
10107  cat conftest.err >&5
10108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109  (exit $ac_status); } >/dev/null; then
10110  if test -s conftest.err; then
10111    ac_cpp_err=$ac_c_preproc_warn_flag
10112  else
10113    ac_cpp_err=
10114  fi
10115else
10116  ac_cpp_err=yes
10117fi
10118if test -z "$ac_cpp_err"; then
10119  ac_header_preproc=yes
10120else
10121  echo "$as_me: failed program was:" >&5
10122  cat conftest.$ac_ext >&5
10123  ac_header_preproc=no
10124fi
10125rm -f conftest.err conftest.$ac_ext
10126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10127echo "${ECHO_T}$ac_header_preproc" >&6
10128
10129# So?  What about this header?
10130case $ac_header_compiler:$ac_header_preproc in
10131  yes:no )
10132    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10134    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10136  no:yes )
10137    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10138echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10143esac
10144echo "$as_me:$LINENO: checking for $ac_header" >&5
10145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147  echo $ECHO_N "(cached) $ECHO_C" >&6
10148else
10149  eval "$as_ac_Header=$ac_header_preproc"
10150fi
10151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10153
10154fi
10155if test `eval echo '${'$as_ac_Header'}'` = yes; then
10156  cat >>confdefs.h <<_ACEOF
10157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10158_ACEOF
10159
10160fi
10161
10162done
10163
10164for i in netinet/ip.h netinet/tcp.h; do
10165
10166cv=`echo "$i" | sed 'y%./+-%__p_%'`
10167
10168echo "$as_me:$LINENO: checking for $i" >&5
10169echo $ECHO_N "checking for $i... $ECHO_C" >&6
10170if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
10171  echo $ECHO_N "(cached) $ECHO_C" >&6
10172else
10173  cat >conftest.$ac_ext <<_ACEOF
10174#line $LINENO "configure"
10175#include "confdefs.h"
10176\
10177#ifdef HAVE_STANDARDS_H
10178#include <standards.h>
10179#endif
10180#include <$i>
10181
10182_ACEOF
10183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10185  ac_status=$?
10186  egrep -v '^ *\+' conftest.er1 >conftest.err
10187  rm -f conftest.er1
10188  cat conftest.err >&5
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); } >/dev/null; then
10191  if test -s conftest.err; then
10192    ac_cpp_err=$ac_c_preproc_warn_flag
10193  else
10194    ac_cpp_err=
10195  fi
10196else
10197  ac_cpp_err=yes
10198fi
10199if test -z "$ac_cpp_err"; then
10200  eval "ac_cv_header_$cv=yes"
10201else
10202  echo "$as_me: failed program was:" >&5
10203  cat conftest.$ac_ext >&5
10204  eval "ac_cv_header_$cv=no"
10205fi
10206rm -f conftest.err conftest.$ac_ext
10207fi
10208echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
10209echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
10210ac_res=`eval echo \\$ac_cv_header_$cv`
10211if test "$ac_res" = yes; then
10212	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10213	cat >>confdefs.h <<_ACEOF
10214#define $ac_tr_hdr 1
10215_ACEOF
10216
10217fi
10218done
10219if false;then
10220
10221
10222for ac_header in netinet/ip.h netinet/tcp.h
10223do
10224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10225if eval "test \"\${$as_ac_Header+set}\" = set"; then
10226  echo "$as_me:$LINENO: checking for $ac_header" >&5
10227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229  echo $ECHO_N "(cached) $ECHO_C" >&6
10230fi
10231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10232echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10233else
10234  # Is the header compilable?
10235echo "$as_me:$LINENO: checking $ac_header usability" >&5
10236echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10237cat >conftest.$ac_ext <<_ACEOF
10238#line $LINENO "configure"
10239#include "confdefs.h"
10240$ac_includes_default
10241#include <$ac_header>
10242_ACEOF
10243rm -f conftest.$ac_objext
10244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10245  (eval $ac_compile) 2>&5
10246  ac_status=$?
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); } &&
10249         { ac_try='test -s conftest.$ac_objext'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; }; then
10255  ac_header_compiler=yes
10256else
10257  echo "$as_me: failed program was:" >&5
10258cat conftest.$ac_ext >&5
10259ac_header_compiler=no
10260fi
10261rm -f conftest.$ac_objext conftest.$ac_ext
10262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263echo "${ECHO_T}$ac_header_compiler" >&6
10264
10265# Is the header present?
10266echo "$as_me:$LINENO: checking $ac_header presence" >&5
10267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10268cat >conftest.$ac_ext <<_ACEOF
10269#line $LINENO "configure"
10270#include "confdefs.h"
10271#include <$ac_header>
10272_ACEOF
10273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10275  ac_status=$?
10276  egrep -v '^ *\+' conftest.er1 >conftest.err
10277  rm -f conftest.er1
10278  cat conftest.err >&5
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); } >/dev/null; then
10281  if test -s conftest.err; then
10282    ac_cpp_err=$ac_c_preproc_warn_flag
10283  else
10284    ac_cpp_err=
10285  fi
10286else
10287  ac_cpp_err=yes
10288fi
10289if test -z "$ac_cpp_err"; then
10290  ac_header_preproc=yes
10291else
10292  echo "$as_me: failed program was:" >&5
10293  cat conftest.$ac_ext >&5
10294  ac_header_preproc=no
10295fi
10296rm -f conftest.err conftest.$ac_ext
10297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10298echo "${ECHO_T}$ac_header_preproc" >&6
10299
10300# So?  What about this header?
10301case $ac_header_compiler:$ac_header_preproc in
10302  yes:no )
10303    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10304echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10305    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10307  no:yes )
10308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10310    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10311echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10312    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10314esac
10315echo "$as_me:$LINENO: checking for $ac_header" >&5
10316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10317if eval "test \"\${$as_ac_Header+set}\" = set"; then
10318  echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320  eval "$as_ac_Header=$ac_header_preproc"
10321fi
10322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10324
10325fi
10326if test `eval echo '${'$as_ac_Header'}'` = yes; then
10327  cat >>confdefs.h <<_ACEOF
10328#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10329_ACEOF
10330
10331fi
10332
10333done
10334
10335fi
10336
10337
10338
10339
10340for ac_func in getlogin setlogin
10341do
10342as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10343echo "$as_me:$LINENO: checking for $ac_func" >&5
10344echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10345if eval "test \"\${$as_ac_var+set}\" = set"; then
10346  echo $ECHO_N "(cached) $ECHO_C" >&6
10347else
10348  cat >conftest.$ac_ext <<_ACEOF
10349#line $LINENO "configure"
10350#include "confdefs.h"
10351/* System header to define __stub macros and hopefully few prototypes,
10352    which can conflict with char $ac_func (); below.  */
10353#include <assert.h>
10354/* Override any gcc2 internal prototype to avoid an error.  */
10355#ifdef __cplusplus
10356extern "C"
10357#endif
10358/* We use char because int might match the return type of a gcc2
10359   builtin and then its argument prototype would still apply.  */
10360char $ac_func ();
10361char (*f) ();
10362
10363#ifdef F77_DUMMY_MAIN
10364#  ifdef __cplusplus
10365     extern "C"
10366#  endif
10367   int F77_DUMMY_MAIN() { return 1; }
10368#endif
10369int
10370main ()
10371{
10372/* The GNU C library defines this for functions which it implements
10373    to always fail with ENOSYS.  Some functions are actually named
10374    something starting with __ and the normal name is an alias.  */
10375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10376choke me
10377#else
10378f = $ac_func;
10379#endif
10380
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385rm -f conftest.$ac_objext conftest$ac_exeext
10386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387  (eval $ac_link) 2>&5
10388  ac_status=$?
10389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390  (exit $ac_status); } &&
10391         { ac_try='test -s conftest$ac_exeext'
10392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10393  (eval $ac_try) 2>&5
10394  ac_status=$?
10395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396  (exit $ac_status); }; }; then
10397  eval "$as_ac_var=yes"
10398else
10399  echo "$as_me: failed program was:" >&5
10400cat conftest.$ac_ext >&5
10401eval "$as_ac_var=no"
10402fi
10403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10404fi
10405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10407if test `eval echo '${'$as_ac_var'}'` = yes; then
10408  cat >>confdefs.h <<_ACEOF
10409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10410_ACEOF
10411
10412fi
10413done
10414
10415if test "$ac_cv_func_getlogin" = yes; then
10416echo "$as_me:$LINENO: checking if getlogin is posix" >&5
10417echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
10418if test "${ac_cv_func_getlogin_posix+set}" = set; then
10419  echo $ECHO_N "(cached) $ECHO_C" >&6
10420else
10421
10422if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
10423	ac_cv_func_getlogin_posix=no
10424else
10425	ac_cv_func_getlogin_posix=yes
10426fi
10427
10428fi
10429echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
10430echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
10431if test "$ac_cv_func_getlogin_posix" = yes; then
10432
10433cat >>confdefs.h <<\_ACEOF
10434#define POSIX_GETLOGIN 1
10435_ACEOF
10436
10437fi
10438fi
10439
10440
10441echo "$as_me:$LINENO: checking if realloc if broken" >&5
10442echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
10443if test "${ac_cv_func_realloc_broken+set}" = set; then
10444  echo $ECHO_N "(cached) $ECHO_C" >&6
10445else
10446
10447ac_cv_func_realloc_broken=no
10448if test "$cross_compiling" = yes; then
10449  :
10450else
10451  cat >conftest.$ac_ext <<_ACEOF
10452#line $LINENO "configure"
10453#include "confdefs.h"
10454
10455#include <stddef.h>
10456#include <stdlib.h>
10457
10458int main()
10459{
10460	return realloc(NULL, 17) == NULL;
10461}
10462
10463_ACEOF
10464rm -f conftest$ac_exeext
10465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466  (eval $ac_link) 2>&5
10467  ac_status=$?
10468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471  (eval $ac_try) 2>&5
10472  ac_status=$?
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); }; }; then
10475  :
10476else
10477  echo "$as_me: program exited with status $ac_status" >&5
10478echo "$as_me: failed program was:" >&5
10479cat conftest.$ac_ext >&5
10480( exit $ac_status )
10481ac_cv_func_realloc_broken=yes
10482fi
10483rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10484fi
10485
10486fi
10487echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
10488echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
10489if test "$ac_cv_func_realloc_broken" = yes ; then
10490
10491cat >>confdefs.h <<\_ACEOF
10492#define BROKEN_REALLOC 1
10493_ACEOF
10494
10495fi
10496
10497
10498
10499
10500
10501
10502
10503DIR_roken=roken
10504LIB_roken='$(top_builddir)/lib/roken/libroken.la'
10505INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520WFLAGS_NOUNUSED=""
10521WFLAGS_NOIMPLICITINT=""
10522if test -z "$WFLAGS" -a "$GCC" = "yes"; then
10523  # -Wno-implicit-int for broken X11 headers
10524  # leave these out for now:
10525  #   -Wcast-align doesn't work well on alpha osf/1
10526  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
10527  #   -Wmissing-declarations -Wnested-externs
10528  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
10529  WFLAGS_NOUNUSED="-Wno-unused"
10530  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
10531fi
10532
10533
10534
10535
10536
10537
10538
10539
10540cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
10541echo "$as_me:$LINENO: checking for ssize_t" >&5
10542echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10543if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10544  echo $ECHO_N "(cached) $ECHO_C" >&6
10545else
10546  cat >conftest.$ac_ext <<_ACEOF
10547#line $LINENO "configure"
10548#include "confdefs.h"
10549#include <sys/types.h>
10550#if STDC_HEADERS
10551#include <stdlib.h>
10552#include <stddef.h>
10553#endif
10554#include <unistd.h>
10555#ifdef F77_DUMMY_MAIN
10556#  ifdef __cplusplus
10557     extern "C"
10558#  endif
10559   int F77_DUMMY_MAIN() { return 1; }
10560#endif
10561int
10562main ()
10563{
10564ssize_t foo;
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext
10570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571  (eval $ac_compile) 2>&5
10572  ac_status=$?
10573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574  (exit $ac_status); } &&
10575         { ac_try='test -s conftest.$ac_objext'
10576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577  (eval $ac_try) 2>&5
10578  ac_status=$?
10579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580  (exit $ac_status); }; }; then
10581  eval "ac_cv_type_$cv=yes"
10582else
10583  echo "$as_me: failed program was:" >&5
10584cat conftest.$ac_ext >&5
10585eval "ac_cv_type_$cv=no"
10586fi
10587rm -f conftest.$ac_objext conftest.$ac_ext
10588fi
10589ac_foo=`eval echo \\$ac_cv_type_$cv`
10590echo "$as_me:$LINENO: result: $ac_foo" >&5
10591echo "${ECHO_T}$ac_foo" >&6
10592if test "$ac_foo" = yes; then
10593  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10594if false; then
10595	echo "$as_me:$LINENO: checking for ssize_t" >&5
10596echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
10597if test "${ac_cv_type_ssize_t+set}" = set; then
10598  echo $ECHO_N "(cached) $ECHO_C" >&6
10599else
10600  cat >conftest.$ac_ext <<_ACEOF
10601#line $LINENO "configure"
10602#include "confdefs.h"
10603$ac_includes_default
10604#ifdef F77_DUMMY_MAIN
10605#  ifdef __cplusplus
10606     extern "C"
10607#  endif
10608   int F77_DUMMY_MAIN() { return 1; }
10609#endif
10610int
10611main ()
10612{
10613if ((ssize_t *) 0)
10614  return 0;
10615if (sizeof (ssize_t))
10616  return 0;
10617  ;
10618  return 0;
10619}
10620_ACEOF
10621rm -f conftest.$ac_objext
10622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10623  (eval $ac_compile) 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } &&
10627         { ac_try='test -s conftest.$ac_objext'
10628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629  (eval $ac_try) 2>&5
10630  ac_status=$?
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); }; }; then
10633  ac_cv_type_ssize_t=yes
10634else
10635  echo "$as_me: failed program was:" >&5
10636cat conftest.$ac_ext >&5
10637ac_cv_type_ssize_t=no
10638fi
10639rm -f conftest.$ac_objext conftest.$ac_ext
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
10642echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
10643if test $ac_cv_type_ssize_t = yes; then
10644
10645cat >>confdefs.h <<_ACEOF
10646#define HAVE_SSIZE_T 1
10647_ACEOF
10648
10649
10650fi
10651
10652fi
10653
10654cat >>confdefs.h <<_ACEOF
10655#define $ac_tr_hdr 1
10656_ACEOF
10657
10658fi
10659
10660
10661
10662
10663
10664cv=`echo "long long" | sed 'y%./+- %__p__%'`
10665echo "$as_me:$LINENO: checking for long long" >&5
10666echo $ECHO_N "checking for long long... $ECHO_C" >&6
10667if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
10668  echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670  cat >conftest.$ac_ext <<_ACEOF
10671#line $LINENO "configure"
10672#include "confdefs.h"
10673#include <sys/types.h>
10674#if STDC_HEADERS
10675#include <stdlib.h>
10676#include <stddef.h>
10677#endif
10678
10679#ifdef F77_DUMMY_MAIN
10680#  ifdef __cplusplus
10681     extern "C"
10682#  endif
10683   int F77_DUMMY_MAIN() { return 1; }
10684#endif
10685int
10686main ()
10687{
10688long long foo;
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693rm -f conftest.$ac_objext
10694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695  (eval $ac_compile) 2>&5
10696  ac_status=$?
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } &&
10699         { ac_try='test -s conftest.$ac_objext'
10700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701  (eval $ac_try) 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); }; }; then
10705  eval "ac_cv_type_$cv=yes"
10706else
10707  echo "$as_me: failed program was:" >&5
10708cat conftest.$ac_ext >&5
10709eval "ac_cv_type_$cv=no"
10710fi
10711rm -f conftest.$ac_objext conftest.$ac_ext
10712fi
10713ac_foo=`eval echo \\$ac_cv_type_$cv`
10714echo "$as_me:$LINENO: result: $ac_foo" >&5
10715echo "${ECHO_T}$ac_foo" >&6
10716if test "$ac_foo" = yes; then
10717  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
10718if false; then
10719	echo "$as_me:$LINENO: checking for long long" >&5
10720echo $ECHO_N "checking for long long... $ECHO_C" >&6
10721if test "${ac_cv_type_long_long+set}" = set; then
10722  echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724  cat >conftest.$ac_ext <<_ACEOF
10725#line $LINENO "configure"
10726#include "confdefs.h"
10727$ac_includes_default
10728#ifdef F77_DUMMY_MAIN
10729#  ifdef __cplusplus
10730     extern "C"
10731#  endif
10732   int F77_DUMMY_MAIN() { return 1; }
10733#endif
10734int
10735main ()
10736{
10737if ((long long *) 0)
10738  return 0;
10739if (sizeof (long long))
10740  return 0;
10741  ;
10742  return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext
10746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747  (eval $ac_compile) 2>&5
10748  ac_status=$?
10749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750  (exit $ac_status); } &&
10751         { ac_try='test -s conftest.$ac_objext'
10752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753  (eval $ac_try) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); }; }; then
10757  ac_cv_type_long_long=yes
10758else
10759  echo "$as_me: failed program was:" >&5
10760cat conftest.$ac_ext >&5
10761ac_cv_type_long_long=no
10762fi
10763rm -f conftest.$ac_objext conftest.$ac_ext
10764fi
10765echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10766echo "${ECHO_T}$ac_cv_type_long_long" >&6
10767if test $ac_cv_type_long_long = yes; then
10768
10769cat >>confdefs.h <<_ACEOF
10770#define HAVE_LONG_LONG 1
10771_ACEOF
10772
10773
10774fi
10775
10776fi
10777
10778cat >>confdefs.h <<_ACEOF
10779#define $ac_tr_hdr 1
10780_ACEOF
10781
10782fi
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834for ac_header in \
10835	arpa/inet.h				\
10836	arpa/nameser.h				\
10837	config.h				\
10838	crypt.h					\
10839	dirent.h				\
10840	errno.h					\
10841	err.h					\
10842	fcntl.h					\
10843	grp.h					\
10844	ifaddrs.h				\
10845	net/if.h				\
10846	netdb.h					\
10847	netinet/in.h				\
10848	netinet/in6.h				\
10849	netinet/in_systm.h			\
10850	netinet6/in6.h				\
10851	netinet6/in6_var.h			\
10852	paths.h					\
10853	pwd.h					\
10854	resolv.h				\
10855	rpcsvc/ypclnt.h				\
10856	shadow.h				\
10857	sys/bswap.h				\
10858	sys/ioctl.h				\
10859	sys/param.h				\
10860	sys/proc.h				\
10861	sys/resource.h				\
10862	sys/socket.h				\
10863	sys/sockio.h				\
10864	sys/stat.h				\
10865	sys/sysctl.h				\
10866	sys/time.h				\
10867	sys/tty.h				\
10868	sys/types.h				\
10869	sys/uio.h				\
10870	sys/utsname.h				\
10871	sys/wait.h				\
10872	syslog.h				\
10873	termios.h				\
10874	unistd.h				\
10875	userconf.h				\
10876	usersec.h				\
10877	util.h					\
10878	vis.h					\
10879
10880do
10881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10882if eval "test \"\${$as_ac_Header+set}\" = set"; then
10883  echo "$as_me:$LINENO: checking for $ac_header" >&5
10884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10885if eval "test \"\${$as_ac_Header+set}\" = set"; then
10886  echo $ECHO_N "(cached) $ECHO_C" >&6
10887fi
10888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10890else
10891  # Is the header compilable?
10892echo "$as_me:$LINENO: checking $ac_header usability" >&5
10893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10894cat >conftest.$ac_ext <<_ACEOF
10895#line $LINENO "configure"
10896#include "confdefs.h"
10897$ac_includes_default
10898#include <$ac_header>
10899_ACEOF
10900rm -f conftest.$ac_objext
10901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10902  (eval $ac_compile) 2>&5
10903  ac_status=$?
10904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905  (exit $ac_status); } &&
10906         { ac_try='test -s conftest.$ac_objext'
10907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908  (eval $ac_try) 2>&5
10909  ac_status=$?
10910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911  (exit $ac_status); }; }; then
10912  ac_header_compiler=yes
10913else
10914  echo "$as_me: failed program was:" >&5
10915cat conftest.$ac_ext >&5
10916ac_header_compiler=no
10917fi
10918rm -f conftest.$ac_objext conftest.$ac_ext
10919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10920echo "${ECHO_T}$ac_header_compiler" >&6
10921
10922# Is the header present?
10923echo "$as_me:$LINENO: checking $ac_header presence" >&5
10924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10925cat >conftest.$ac_ext <<_ACEOF
10926#line $LINENO "configure"
10927#include "confdefs.h"
10928#include <$ac_header>
10929_ACEOF
10930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10931  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10932  ac_status=$?
10933  egrep -v '^ *\+' conftest.er1 >conftest.err
10934  rm -f conftest.er1
10935  cat conftest.err >&5
10936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937  (exit $ac_status); } >/dev/null; then
10938  if test -s conftest.err; then
10939    ac_cpp_err=$ac_c_preproc_warn_flag
10940  else
10941    ac_cpp_err=
10942  fi
10943else
10944  ac_cpp_err=yes
10945fi
10946if test -z "$ac_cpp_err"; then
10947  ac_header_preproc=yes
10948else
10949  echo "$as_me: failed program was:" >&5
10950  cat conftest.$ac_ext >&5
10951  ac_header_preproc=no
10952fi
10953rm -f conftest.err conftest.$ac_ext
10954echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10955echo "${ECHO_T}$ac_header_preproc" >&6
10956
10957# So?  What about this header?
10958case $ac_header_compiler:$ac_header_preproc in
10959  yes:no )
10960    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10961echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10962    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10964  no:yes )
10965    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10966echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10967    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10968echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10970echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10971esac
10972echo "$as_me:$LINENO: checking for $ac_header" >&5
10973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10974if eval "test \"\${$as_ac_Header+set}\" = set"; then
10975  echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977  eval "$as_ac_Header=$ac_header_preproc"
10978fi
10979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10981
10982fi
10983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984  cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
10987
10988fi
10989
10990done
10991
10992
10993
10994
10995
10996
10997if test "$ac_cv_header_err_h" = yes; then
10998  have_err_h_TRUE=
10999  have_err_h_FALSE='#'
11000else
11001  have_err_h_TRUE='#'
11002  have_err_h_FALSE=
11003fi
11004
11005
11006
11007if test "$ac_cv_header_fnmatch_h" = yes; then
11008  have_fnmatch_h_TRUE=
11009  have_fnmatch_h_FALSE='#'
11010else
11011  have_fnmatch_h_TRUE='#'
11012  have_fnmatch_h_FALSE=
11013fi
11014
11015
11016
11017if test "$ac_cv_header_ifaddrs_h" = yes; then
11018  have_ifaddrs_h_TRUE=
11019  have_ifaddrs_h_FALSE='#'
11020else
11021  have_ifaddrs_h_TRUE='#'
11022  have_ifaddrs_h_FALSE=
11023fi
11024
11025
11026
11027if test "$ac_cv_header_vis_h" = yes; then
11028  have_vis_h_TRUE=
11029  have_vis_h_FALSE='#'
11030else
11031  have_vis_h_TRUE='#'
11032  have_vis_h_FALSE=
11033fi
11034
11035
11036
11037
11038
11039
11040
11041echo "$as_me:$LINENO: checking for socket" >&5
11042echo $ECHO_N "checking for socket... $ECHO_C" >&6
11043if test "${ac_cv_funclib_socket+set}" = set; then
11044  echo $ECHO_N "(cached) $ECHO_C" >&6
11045else
11046
11047if eval "test \"\$ac_cv_func_socket\" != yes" ; then
11048	ac_save_LIBS="$LIBS"
11049	for ac_lib in "" socket; do
11050		case "$ac_lib" in
11051		"") ;;
11052		yes) ac_lib="" ;;
11053		no) continue ;;
11054		-l*) ;;
11055		*) ac_lib="-l$ac_lib" ;;
11056		esac
11057		LIBS=" $ac_lib  $ac_save_LIBS"
11058		cat >conftest.$ac_ext <<_ACEOF
11059#line $LINENO "configure"
11060#include "confdefs.h"
11061
11062#ifdef F77_DUMMY_MAIN
11063#  ifdef __cplusplus
11064     extern "C"
11065#  endif
11066   int F77_DUMMY_MAIN() { return 1; }
11067#endif
11068int
11069main ()
11070{
11071socket()
11072  ;
11073  return 0;
11074}
11075_ACEOF
11076rm -f conftest.$ac_objext conftest$ac_exeext
11077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11078  (eval $ac_link) 2>&5
11079  ac_status=$?
11080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081  (exit $ac_status); } &&
11082         { ac_try='test -s conftest$ac_exeext'
11083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11084  (eval $ac_try) 2>&5
11085  ac_status=$?
11086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087  (exit $ac_status); }; }; then
11088  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
11089else
11090  echo "$as_me: failed program was:" >&5
11091cat conftest.$ac_ext >&5
11092fi
11093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11094	done
11095	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
11096	LIBS="$ac_save_LIBS"
11097fi
11098
11099fi
11100
11101
11102eval "ac_res=\$ac_cv_funclib_socket"
11103
11104if false; then
11105
11106for ac_func in socket
11107do
11108as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11109echo "$as_me:$LINENO: checking for $ac_func" >&5
11110echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11111if eval "test \"\${$as_ac_var+set}\" = set"; then
11112  echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114  cat >conftest.$ac_ext <<_ACEOF
11115#line $LINENO "configure"
11116#include "confdefs.h"
11117/* System header to define __stub macros and hopefully few prototypes,
11118    which can conflict with char $ac_func (); below.  */
11119#include <assert.h>
11120/* Override any gcc2 internal prototype to avoid an error.  */
11121#ifdef __cplusplus
11122extern "C"
11123#endif
11124/* We use char because int might match the return type of a gcc2
11125   builtin and then its argument prototype would still apply.  */
11126char $ac_func ();
11127char (*f) ();
11128
11129#ifdef F77_DUMMY_MAIN
11130#  ifdef __cplusplus
11131     extern "C"
11132#  endif
11133   int F77_DUMMY_MAIN() { return 1; }
11134#endif
11135int
11136main ()
11137{
11138/* The GNU C library defines this for functions which it implements
11139    to always fail with ENOSYS.  Some functions are actually named
11140    something starting with __ and the normal name is an alias.  */
11141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11142choke me
11143#else
11144f = $ac_func;
11145#endif
11146
11147  ;
11148  return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153  (eval $ac_link) 2>&5
11154  ac_status=$?
11155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156  (exit $ac_status); } &&
11157         { ac_try='test -s conftest$ac_exeext'
11158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159  (eval $ac_try) 2>&5
11160  ac_status=$?
11161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162  (exit $ac_status); }; }; then
11163  eval "$as_ac_var=yes"
11164else
11165  echo "$as_me: failed program was:" >&5
11166cat conftest.$ac_ext >&5
11167eval "$as_ac_var=no"
11168fi
11169rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11170fi
11171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11172echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11173if test `eval echo '${'$as_ac_var'}'` = yes; then
11174  cat >>confdefs.h <<_ACEOF
11175#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11176_ACEOF
11177
11178fi
11179done
11180
11181fi
11182# socket
11183eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11184eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11185eval "LIB_socket=$ac_res"
11186
11187case "$ac_res" in
11188	yes)
11189	eval "ac_cv_func_socket=yes"
11190	eval "LIB_socket="
11191	cat >>confdefs.h <<_ACEOF
11192#define $ac_tr_func 1
11193_ACEOF
11194
11195	echo "$as_me:$LINENO: result: yes" >&5
11196echo "${ECHO_T}yes" >&6
11197	;;
11198	no)
11199	eval "ac_cv_func_socket=no"
11200	eval "LIB_socket="
11201	echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203	;;
11204	*)
11205	eval "ac_cv_func_socket=yes"
11206	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11207	cat >>confdefs.h <<_ACEOF
11208#define $ac_tr_func 1
11209_ACEOF
11210
11211	cat >>confdefs.h <<_ACEOF
11212#define $ac_tr_lib 1
11213_ACEOF
11214
11215	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11216echo "${ECHO_T}yes, in $ac_res" >&6
11217	;;
11218esac
11219
11220
11221if test -n "$LIB_socket"; then
11222	LIBS="$LIB_socket $LIBS"
11223fi
11224
11225
11226
11227
11228
11229echo "$as_me:$LINENO: checking for gethostbyname" >&5
11230echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11231if test "${ac_cv_funclib_gethostbyname+set}" = set; then
11232  echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234
11235if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
11236	ac_save_LIBS="$LIBS"
11237	for ac_lib in "" nsl; do
11238		case "$ac_lib" in
11239		"") ;;
11240		yes) ac_lib="" ;;
11241		no) continue ;;
11242		-l*) ;;
11243		*) ac_lib="-l$ac_lib" ;;
11244		esac
11245		LIBS=" $ac_lib  $ac_save_LIBS"
11246		cat >conftest.$ac_ext <<_ACEOF
11247#line $LINENO "configure"
11248#include "confdefs.h"
11249
11250#ifdef F77_DUMMY_MAIN
11251#  ifdef __cplusplus
11252     extern "C"
11253#  endif
11254   int F77_DUMMY_MAIN() { return 1; }
11255#endif
11256int
11257main ()
11258{
11259gethostbyname()
11260  ;
11261  return 0;
11262}
11263_ACEOF
11264rm -f conftest.$ac_objext conftest$ac_exeext
11265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11266  (eval $ac_link) 2>&5
11267  ac_status=$?
11268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269  (exit $ac_status); } &&
11270         { ac_try='test -s conftest$ac_exeext'
11271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272  (eval $ac_try) 2>&5
11273  ac_status=$?
11274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275  (exit $ac_status); }; }; then
11276  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
11277else
11278  echo "$as_me: failed program was:" >&5
11279cat conftest.$ac_ext >&5
11280fi
11281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11282	done
11283	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
11284	LIBS="$ac_save_LIBS"
11285fi
11286
11287fi
11288
11289
11290eval "ac_res=\$ac_cv_funclib_gethostbyname"
11291
11292if false; then
11293
11294for ac_func in gethostbyname
11295do
11296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11297echo "$as_me:$LINENO: checking for $ac_func" >&5
11298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11299if eval "test \"\${$as_ac_var+set}\" = set"; then
11300  echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302  cat >conftest.$ac_ext <<_ACEOF
11303#line $LINENO "configure"
11304#include "confdefs.h"
11305/* System header to define __stub macros and hopefully few prototypes,
11306    which can conflict with char $ac_func (); below.  */
11307#include <assert.h>
11308/* Override any gcc2 internal prototype to avoid an error.  */
11309#ifdef __cplusplus
11310extern "C"
11311#endif
11312/* We use char because int might match the return type of a gcc2
11313   builtin and then its argument prototype would still apply.  */
11314char $ac_func ();
11315char (*f) ();
11316
11317#ifdef F77_DUMMY_MAIN
11318#  ifdef __cplusplus
11319     extern "C"
11320#  endif
11321   int F77_DUMMY_MAIN() { return 1; }
11322#endif
11323int
11324main ()
11325{
11326/* The GNU C library defines this for functions which it implements
11327    to always fail with ENOSYS.  Some functions are actually named
11328    something starting with __ and the normal name is an alias.  */
11329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330choke me
11331#else
11332f = $ac_func;
11333#endif
11334
11335  ;
11336  return 0;
11337}
11338_ACEOF
11339rm -f conftest.$ac_objext conftest$ac_exeext
11340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11341  (eval $ac_link) 2>&5
11342  ac_status=$?
11343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344  (exit $ac_status); } &&
11345         { ac_try='test -s conftest$ac_exeext'
11346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11347  (eval $ac_try) 2>&5
11348  ac_status=$?
11349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350  (exit $ac_status); }; }; then
11351  eval "$as_ac_var=yes"
11352else
11353  echo "$as_me: failed program was:" >&5
11354cat conftest.$ac_ext >&5
11355eval "$as_ac_var=no"
11356fi
11357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358fi
11359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11361if test `eval echo '${'$as_ac_var'}'` = yes; then
11362  cat >>confdefs.h <<_ACEOF
11363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364_ACEOF
11365
11366fi
11367done
11368
11369fi
11370# gethostbyname
11371eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11372eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11373eval "LIB_gethostbyname=$ac_res"
11374
11375case "$ac_res" in
11376	yes)
11377	eval "ac_cv_func_gethostbyname=yes"
11378	eval "LIB_gethostbyname="
11379	cat >>confdefs.h <<_ACEOF
11380#define $ac_tr_func 1
11381_ACEOF
11382
11383	echo "$as_me:$LINENO: result: yes" >&5
11384echo "${ECHO_T}yes" >&6
11385	;;
11386	no)
11387	eval "ac_cv_func_gethostbyname=no"
11388	eval "LIB_gethostbyname="
11389	echo "$as_me:$LINENO: result: no" >&5
11390echo "${ECHO_T}no" >&6
11391	;;
11392	*)
11393	eval "ac_cv_func_gethostbyname=yes"
11394	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11395	cat >>confdefs.h <<_ACEOF
11396#define $ac_tr_func 1
11397_ACEOF
11398
11399	cat >>confdefs.h <<_ACEOF
11400#define $ac_tr_lib 1
11401_ACEOF
11402
11403	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11404echo "${ECHO_T}yes, in $ac_res" >&6
11405	;;
11406esac
11407
11408
11409if test -n "$LIB_gethostbyname"; then
11410	LIBS="$LIB_gethostbyname $LIBS"
11411fi
11412
11413
11414
11415
11416
11417echo "$as_me:$LINENO: checking for syslog" >&5
11418echo $ECHO_N "checking for syslog... $ECHO_C" >&6
11419if test "${ac_cv_funclib_syslog+set}" = set; then
11420  echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422
11423if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
11424	ac_save_LIBS="$LIBS"
11425	for ac_lib in "" syslog; do
11426		case "$ac_lib" in
11427		"") ;;
11428		yes) ac_lib="" ;;
11429		no) continue ;;
11430		-l*) ;;
11431		*) ac_lib="-l$ac_lib" ;;
11432		esac
11433		LIBS=" $ac_lib  $ac_save_LIBS"
11434		cat >conftest.$ac_ext <<_ACEOF
11435#line $LINENO "configure"
11436#include "confdefs.h"
11437
11438#ifdef F77_DUMMY_MAIN
11439#  ifdef __cplusplus
11440     extern "C"
11441#  endif
11442   int F77_DUMMY_MAIN() { return 1; }
11443#endif
11444int
11445main ()
11446{
11447syslog()
11448  ;
11449  return 0;
11450}
11451_ACEOF
11452rm -f conftest.$ac_objext conftest$ac_exeext
11453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11454  (eval $ac_link) 2>&5
11455  ac_status=$?
11456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457  (exit $ac_status); } &&
11458         { ac_try='test -s conftest$ac_exeext'
11459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460  (eval $ac_try) 2>&5
11461  ac_status=$?
11462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463  (exit $ac_status); }; }; then
11464  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
11465else
11466  echo "$as_me: failed program was:" >&5
11467cat conftest.$ac_ext >&5
11468fi
11469rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11470	done
11471	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
11472	LIBS="$ac_save_LIBS"
11473fi
11474
11475fi
11476
11477
11478eval "ac_res=\$ac_cv_funclib_syslog"
11479
11480if false; then
11481
11482for ac_func in syslog
11483do
11484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11485echo "$as_me:$LINENO: checking for $ac_func" >&5
11486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11487if eval "test \"\${$as_ac_var+set}\" = set"; then
11488  echo $ECHO_N "(cached) $ECHO_C" >&6
11489else
11490  cat >conftest.$ac_ext <<_ACEOF
11491#line $LINENO "configure"
11492#include "confdefs.h"
11493/* System header to define __stub macros and hopefully few prototypes,
11494    which can conflict with char $ac_func (); below.  */
11495#include <assert.h>
11496/* Override any gcc2 internal prototype to avoid an error.  */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500/* We use char because int might match the return type of a gcc2
11501   builtin and then its argument prototype would still apply.  */
11502char $ac_func ();
11503char (*f) ();
11504
11505#ifdef F77_DUMMY_MAIN
11506#  ifdef __cplusplus
11507     extern "C"
11508#  endif
11509   int F77_DUMMY_MAIN() { return 1; }
11510#endif
11511int
11512main ()
11513{
11514/* The GNU C library defines this for functions which it implements
11515    to always fail with ENOSYS.  Some functions are actually named
11516    something starting with __ and the normal name is an alias.  */
11517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11518choke me
11519#else
11520f = $ac_func;
11521#endif
11522
11523  ;
11524  return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext conftest$ac_exeext
11528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11529  (eval $ac_link) 2>&5
11530  ac_status=$?
11531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532  (exit $ac_status); } &&
11533         { ac_try='test -s conftest$ac_exeext'
11534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535  (eval $ac_try) 2>&5
11536  ac_status=$?
11537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538  (exit $ac_status); }; }; then
11539  eval "$as_ac_var=yes"
11540else
11541  echo "$as_me: failed program was:" >&5
11542cat conftest.$ac_ext >&5
11543eval "$as_ac_var=no"
11544fi
11545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11546fi
11547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11549if test `eval echo '${'$as_ac_var'}'` = yes; then
11550  cat >>confdefs.h <<_ACEOF
11551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11552_ACEOF
11553
11554fi
11555done
11556
11557fi
11558# syslog
11559eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11560eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
11561eval "LIB_syslog=$ac_res"
11562
11563case "$ac_res" in
11564	yes)
11565	eval "ac_cv_func_syslog=yes"
11566	eval "LIB_syslog="
11567	cat >>confdefs.h <<_ACEOF
11568#define $ac_tr_func 1
11569_ACEOF
11570
11571	echo "$as_me:$LINENO: result: yes" >&5
11572echo "${ECHO_T}yes" >&6
11573	;;
11574	no)
11575	eval "ac_cv_func_syslog=no"
11576	eval "LIB_syslog="
11577	echo "$as_me:$LINENO: result: no" >&5
11578echo "${ECHO_T}no" >&6
11579	;;
11580	*)
11581	eval "ac_cv_func_syslog=yes"
11582	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
11583	cat >>confdefs.h <<_ACEOF
11584#define $ac_tr_func 1
11585_ACEOF
11586
11587	cat >>confdefs.h <<_ACEOF
11588#define $ac_tr_lib 1
11589_ACEOF
11590
11591	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
11592echo "${ECHO_T}yes, in $ac_res" >&6
11593	;;
11594esac
11595
11596
11597if test -n "$LIB_syslog"; then
11598	LIBS="$LIB_syslog $LIBS"
11599fi
11600
11601
11602
11603
11604# Check whether --with-ipv6 or --without-ipv6 was given.
11605if test "${with_ipv6+set}" = set; then
11606  withval="$with_ipv6"
11607
11608if test "$withval" = "no"; then
11609	ac_cv_lib_ipv6=no
11610fi
11611fi;
11612save_CFLAGS="${CFLAGS}"
11613echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
11614echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
11615if test "${v6type+set}" = set; then
11616  echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618  v6type=unknown
11619v6lib=none
11620
11621for i in v6d toshiba kame inria zeta linux; do
11622	case $i in
11623	v6d)
11624		cat >conftest.$ac_ext <<_ACEOF
11625#line $LINENO "configure"
11626#include "confdefs.h"
11627
11628#include </usr/local/v6/include/sys/types.h>
11629#ifdef __V6D__
11630yes
11631#endif
11632_ACEOF
11633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11634  egrep "yes" >/dev/null 2>&1; then
11635  v6type=$i; v6lib=v6;
11636			v6libdir=/usr/local/v6/lib;
11637			CFLAGS="-I/usr/local/v6/include $CFLAGS"
11638fi
11639rm -f conftest*
11640
11641		;;
11642	toshiba)
11643		cat >conftest.$ac_ext <<_ACEOF
11644#line $LINENO "configure"
11645#include "confdefs.h"
11646
11647#include <sys/param.h>
11648#ifdef _TOSHIBA_INET6
11649yes
11650#endif
11651_ACEOF
11652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11653  egrep "yes" >/dev/null 2>&1; then
11654  v6type=$i; v6lib=inet6;
11655			v6libdir=/usr/local/v6/lib;
11656			CFLAGS="-DINET6 $CFLAGS"
11657fi
11658rm -f conftest*
11659
11660		;;
11661	kame)
11662		cat >conftest.$ac_ext <<_ACEOF
11663#line $LINENO "configure"
11664#include "confdefs.h"
11665
11666#include <netinet/in.h>
11667#ifdef __KAME__
11668yes
11669#endif
11670_ACEOF
11671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11672  egrep "yes" >/dev/null 2>&1; then
11673  v6type=$i; v6lib=inet6;
11674			v6libdir=/usr/local/v6/lib;
11675			CFLAGS="-DINET6 $CFLAGS"
11676fi
11677rm -f conftest*
11678
11679		;;
11680	inria)
11681		cat >conftest.$ac_ext <<_ACEOF
11682#line $LINENO "configure"
11683#include "confdefs.h"
11684
11685#include <netinet/in.h>
11686#ifdef IPV6_INRIA_VERSION
11687yes
11688#endif
11689_ACEOF
11690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11691  egrep "yes" >/dev/null 2>&1; then
11692  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
11693fi
11694rm -f conftest*
11695
11696		;;
11697	zeta)
11698		cat >conftest.$ac_ext <<_ACEOF
11699#line $LINENO "configure"
11700#include "confdefs.h"
11701
11702#include <sys/param.h>
11703#ifdef _ZETA_MINAMI_INET6
11704yes
11705#endif
11706_ACEOF
11707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11708  egrep "yes" >/dev/null 2>&1; then
11709  v6type=$i; v6lib=inet6;
11710			v6libdir=/usr/local/v6/lib;
11711			CFLAGS="-DINET6 $CFLAGS"
11712fi
11713rm -f conftest*
11714
11715		;;
11716	linux)
11717		if test -d /usr/inet6; then
11718			v6type=$i
11719			v6lib=inet6
11720			v6libdir=/usr/inet6
11721			CFLAGS="-DINET6 $CFLAGS"
11722		fi
11723		;;
11724	esac
11725	if test "$v6type" != "unknown"; then
11726		break
11727	fi
11728done
11729
11730if test "$v6lib" != "none"; then
11731	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
11732		if test -d $dir -a -f $dir/lib$v6lib.a; then
11733			LIBS="-L$dir -l$v6lib $LIBS"
11734			break
11735		fi
11736	done
11737fi
11738
11739fi
11740echo "$as_me:$LINENO: result: $v6type" >&5
11741echo "${ECHO_T}$v6type" >&6
11742
11743echo "$as_me:$LINENO: checking for IPv6" >&5
11744echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
11745if test "${ac_cv_lib_ipv6+set}" = set; then
11746  echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748
11749cat >conftest.$ac_ext <<_ACEOF
11750#line $LINENO "configure"
11751#include "confdefs.h"
11752
11753#ifdef HAVE_SYS_TYPES_H
11754#include <sys/types.h>
11755#endif
11756#ifdef HAVE_SYS_SOCKET_H
11757#include <sys/socket.h>
11758#endif
11759#ifdef HAVE_NETINET_IN_H
11760#include <netinet/in.h>
11761#endif
11762#ifdef HAVE_NETINET_IN6_H
11763#include <netinet/in6.h>
11764#endif
11765
11766#ifdef F77_DUMMY_MAIN
11767#  ifdef __cplusplus
11768     extern "C"
11769#  endif
11770   int F77_DUMMY_MAIN() { return 1; }
11771#endif
11772int
11773main ()
11774{
11775
11776 struct sockaddr_in6 sin6;
11777 int s;
11778
11779 s = socket(AF_INET6, SOCK_DGRAM, 0);
11780
11781 sin6.sin6_family = AF_INET6;
11782 sin6.sin6_port = htons(17);
11783 sin6.sin6_addr = in6addr_any;
11784 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
11785
11786  ;
11787  return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
11791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792  (eval $ac_link) 2>&5
11793  ac_status=$?
11794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795  (exit $ac_status); } &&
11796         { ac_try='test -s conftest$ac_exeext'
11797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798  (eval $ac_try) 2>&5
11799  ac_status=$?
11800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801  (exit $ac_status); }; }; then
11802  ac_cv_lib_ipv6=yes
11803else
11804  echo "$as_me: failed program was:" >&5
11805cat conftest.$ac_ext >&5
11806ac_cv_lib_ipv6=no
11807fi
11808rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11809fi
11810echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
11811echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
11812if test "$ac_cv_lib_ipv6" = yes; then
11813
11814cat >>confdefs.h <<\_ACEOF
11815#define HAVE_IPV6 1
11816_ACEOF
11817
11818else
11819  CFLAGS="${save_CFLAGS}"
11820fi
11821
11822if test "$ac_cv_lib_ipv6" = yes; then
11823	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
11824echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
11825if test "${ac_cv_var_in6addr_loopback+set}" = set; then
11826  echo $ECHO_N "(cached) $ECHO_C" >&6
11827else
11828
11829	cat >conftest.$ac_ext <<_ACEOF
11830#line $LINENO "configure"
11831#include "confdefs.h"
11832
11833#ifdef HAVE_SYS_TYPES_H
11834#include <sys/types.h>
11835#endif
11836#ifdef HAVE_SYS_SOCKET_H
11837#include <sys/socket.h>
11838#endif
11839#ifdef HAVE_NETINET_IN_H
11840#include <netinet/in.h>
11841#endif
11842#ifdef HAVE_NETINET_IN6_H
11843#include <netinet/in6.h>
11844#endif
11845#ifdef F77_DUMMY_MAIN
11846#  ifdef __cplusplus
11847     extern "C"
11848#  endif
11849   int F77_DUMMY_MAIN() { return 1; }
11850#endif
11851int
11852main ()
11853{
11854
11855struct sockaddr_in6 sin6;
11856sin6.sin6_addr = in6addr_loopback;
11857
11858  ;
11859  return 0;
11860}
11861_ACEOF
11862rm -f conftest.$ac_objext conftest$ac_exeext
11863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11864  (eval $ac_link) 2>&5
11865  ac_status=$?
11866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867  (exit $ac_status); } &&
11868         { ac_try='test -s conftest$ac_exeext'
11869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11870  (eval $ac_try) 2>&5
11871  ac_status=$?
11872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873  (exit $ac_status); }; }; then
11874  ac_cv_var_in6addr_loopback=yes
11875else
11876  echo "$as_me: failed program was:" >&5
11877cat conftest.$ac_ext >&5
11878ac_cv_var_in6addr_loopback=no
11879fi
11880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11881fi
11882echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
11883echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
11884	if test "$ac_cv_var_in6addr_loopback" = yes; then
11885
11886cat >>confdefs.h <<\_ACEOF
11887#define HAVE_IN6ADDR_LOOPBACK 1
11888_ACEOF
11889
11890	fi
11891fi
11892
11893
11894
11895
11896
11897
11898echo "$as_me:$LINENO: checking for gethostbyname2" >&5
11899echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
11900if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
11901  echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903
11904if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
11905	ac_save_LIBS="$LIBS"
11906	for ac_lib in "" inet6 ip6; do
11907		case "$ac_lib" in
11908		"") ;;
11909		yes) ac_lib="" ;;
11910		no) continue ;;
11911		-l*) ;;
11912		*) ac_lib="-l$ac_lib" ;;
11913		esac
11914		LIBS=" $ac_lib  $ac_save_LIBS"
11915		cat >conftest.$ac_ext <<_ACEOF
11916#line $LINENO "configure"
11917#include "confdefs.h"
11918
11919#ifdef F77_DUMMY_MAIN
11920#  ifdef __cplusplus
11921     extern "C"
11922#  endif
11923   int F77_DUMMY_MAIN() { return 1; }
11924#endif
11925int
11926main ()
11927{
11928gethostbyname2()
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933rm -f conftest.$ac_objext conftest$ac_exeext
11934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11935  (eval $ac_link) 2>&5
11936  ac_status=$?
11937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938  (exit $ac_status); } &&
11939         { ac_try='test -s conftest$ac_exeext'
11940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941  (eval $ac_try) 2>&5
11942  ac_status=$?
11943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944  (exit $ac_status); }; }; then
11945  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
11946else
11947  echo "$as_me: failed program was:" >&5
11948cat conftest.$ac_ext >&5
11949fi
11950rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11951	done
11952	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
11953	LIBS="$ac_save_LIBS"
11954fi
11955
11956fi
11957
11958
11959eval "ac_res=\$ac_cv_funclib_gethostbyname2"
11960
11961if false; then
11962
11963for ac_func in gethostbyname2
11964do
11965as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966echo "$as_me:$LINENO: checking for $ac_func" >&5
11967echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11968if eval "test \"\${$as_ac_var+set}\" = set"; then
11969  echo $ECHO_N "(cached) $ECHO_C" >&6
11970else
11971  cat >conftest.$ac_ext <<_ACEOF
11972#line $LINENO "configure"
11973#include "confdefs.h"
11974/* System header to define __stub macros and hopefully few prototypes,
11975    which can conflict with char $ac_func (); below.  */
11976#include <assert.h>
11977/* Override any gcc2 internal prototype to avoid an error.  */
11978#ifdef __cplusplus
11979extern "C"
11980#endif
11981/* We use char because int might match the return type of a gcc2
11982   builtin and then its argument prototype would still apply.  */
11983char $ac_func ();
11984char (*f) ();
11985
11986#ifdef F77_DUMMY_MAIN
11987#  ifdef __cplusplus
11988     extern "C"
11989#  endif
11990   int F77_DUMMY_MAIN() { return 1; }
11991#endif
11992int
11993main ()
11994{
11995/* The GNU C library defines this for functions which it implements
11996    to always fail with ENOSYS.  Some functions are actually named
11997    something starting with __ and the normal name is an alias.  */
11998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11999choke me
12000#else
12001f = $ac_func;
12002#endif
12003
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008rm -f conftest.$ac_objext conftest$ac_exeext
12009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010  (eval $ac_link) 2>&5
12011  ac_status=$?
12012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013  (exit $ac_status); } &&
12014         { ac_try='test -s conftest$ac_exeext'
12015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12016  (eval $ac_try) 2>&5
12017  ac_status=$?
12018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019  (exit $ac_status); }; }; then
12020  eval "$as_ac_var=yes"
12021else
12022  echo "$as_me: failed program was:" >&5
12023cat conftest.$ac_ext >&5
12024eval "$as_ac_var=no"
12025fi
12026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12027fi
12028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12030if test `eval echo '${'$as_ac_var'}'` = yes; then
12031  cat >>confdefs.h <<_ACEOF
12032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12033_ACEOF
12034
12035fi
12036done
12037
12038fi
12039# gethostbyname2
12040eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12041eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12042eval "LIB_gethostbyname2=$ac_res"
12043
12044case "$ac_res" in
12045	yes)
12046	eval "ac_cv_func_gethostbyname2=yes"
12047	eval "LIB_gethostbyname2="
12048	cat >>confdefs.h <<_ACEOF
12049#define $ac_tr_func 1
12050_ACEOF
12051
12052	echo "$as_me:$LINENO: result: yes" >&5
12053echo "${ECHO_T}yes" >&6
12054	;;
12055	no)
12056	eval "ac_cv_func_gethostbyname2=no"
12057	eval "LIB_gethostbyname2="
12058	echo "$as_me:$LINENO: result: no" >&5
12059echo "${ECHO_T}no" >&6
12060	;;
12061	*)
12062	eval "ac_cv_func_gethostbyname2=yes"
12063	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12064	cat >>confdefs.h <<_ACEOF
12065#define $ac_tr_func 1
12066_ACEOF
12067
12068	cat >>confdefs.h <<_ACEOF
12069#define $ac_tr_lib 1
12070_ACEOF
12071
12072	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12073echo "${ECHO_T}yes, in $ac_res" >&6
12074	;;
12075esac
12076
12077
12078if test -n "$LIB_gethostbyname2"; then
12079	LIBS="$LIB_gethostbyname2 $LIBS"
12080fi
12081
12082
12083
12084
12085
12086
12087echo "$as_me:$LINENO: checking for res_search" >&5
12088echo $ECHO_N "checking for res_search... $ECHO_C" >&6
12089if test "${ac_cv_funclib_res_search+set}" = set; then
12090  echo $ECHO_N "(cached) $ECHO_C" >&6
12091else
12092
12093if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
12094	ac_save_LIBS="$LIBS"
12095	for ac_lib in "" resolv; do
12096		case "$ac_lib" in
12097		"") ;;
12098		yes) ac_lib="" ;;
12099		no) continue ;;
12100		-l*) ;;
12101		*) ac_lib="-l$ac_lib" ;;
12102		esac
12103		LIBS=" $ac_lib  $ac_save_LIBS"
12104		cat >conftest.$ac_ext <<_ACEOF
12105#line $LINENO "configure"
12106#include "confdefs.h"
12107
12108#include <stdio.h>
12109#ifdef HAVE_SYS_TYPES_H
12110#include <sys/types.h>
12111#endif
12112#ifdef HAVE_NETINET_IN_H
12113#include <netinet/in.h>
12114#endif
12115#ifdef HAVE_ARPA_NAMESER_H
12116#include <arpa/nameser.h>
12117#endif
12118#ifdef HAVE_RESOLV_H
12119#include <resolv.h>
12120#endif
12121
12122#ifdef F77_DUMMY_MAIN
12123#  ifdef __cplusplus
12124     extern "C"
12125#  endif
12126   int F77_DUMMY_MAIN() { return 1; }
12127#endif
12128int
12129main ()
12130{
12131res_search(0,0,0,0,0)
12132  ;
12133  return 0;
12134}
12135_ACEOF
12136rm -f conftest.$ac_objext conftest$ac_exeext
12137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138  (eval $ac_link) 2>&5
12139  ac_status=$?
12140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141  (exit $ac_status); } &&
12142         { ac_try='test -s conftest$ac_exeext'
12143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144  (eval $ac_try) 2>&5
12145  ac_status=$?
12146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147  (exit $ac_status); }; }; then
12148  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
12149else
12150  echo "$as_me: failed program was:" >&5
12151cat conftest.$ac_ext >&5
12152fi
12153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12154	done
12155	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
12156	LIBS="$ac_save_LIBS"
12157fi
12158
12159fi
12160
12161
12162eval "ac_res=\$ac_cv_funclib_res_search"
12163
12164if false; then
12165
12166for ac_func in res_search
12167do
12168as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12169echo "$as_me:$LINENO: checking for $ac_func" >&5
12170echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12171if eval "test \"\${$as_ac_var+set}\" = set"; then
12172  echo $ECHO_N "(cached) $ECHO_C" >&6
12173else
12174  cat >conftest.$ac_ext <<_ACEOF
12175#line $LINENO "configure"
12176#include "confdefs.h"
12177/* System header to define __stub macros and hopefully few prototypes,
12178    which can conflict with char $ac_func (); below.  */
12179#include <assert.h>
12180/* Override any gcc2 internal prototype to avoid an error.  */
12181#ifdef __cplusplus
12182extern "C"
12183#endif
12184/* We use char because int might match the return type of a gcc2
12185   builtin and then its argument prototype would still apply.  */
12186char $ac_func ();
12187char (*f) ();
12188
12189#ifdef F77_DUMMY_MAIN
12190#  ifdef __cplusplus
12191     extern "C"
12192#  endif
12193   int F77_DUMMY_MAIN() { return 1; }
12194#endif
12195int
12196main ()
12197{
12198/* The GNU C library defines this for functions which it implements
12199    to always fail with ENOSYS.  Some functions are actually named
12200    something starting with __ and the normal name is an alias.  */
12201#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12202choke me
12203#else
12204f = $ac_func;
12205#endif
12206
12207  ;
12208  return 0;
12209}
12210_ACEOF
12211rm -f conftest.$ac_objext conftest$ac_exeext
12212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12213  (eval $ac_link) 2>&5
12214  ac_status=$?
12215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216  (exit $ac_status); } &&
12217         { ac_try='test -s conftest$ac_exeext'
12218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219  (eval $ac_try) 2>&5
12220  ac_status=$?
12221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222  (exit $ac_status); }; }; then
12223  eval "$as_ac_var=yes"
12224else
12225  echo "$as_me: failed program was:" >&5
12226cat conftest.$ac_ext >&5
12227eval "$as_ac_var=no"
12228fi
12229rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12230fi
12231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12233if test `eval echo '${'$as_ac_var'}'` = yes; then
12234  cat >>confdefs.h <<_ACEOF
12235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12236_ACEOF
12237
12238fi
12239done
12240
12241fi
12242# res_search
12243eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12244eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12245eval "LIB_res_search=$ac_res"
12246
12247case "$ac_res" in
12248	yes)
12249	eval "ac_cv_func_res_search=yes"
12250	eval "LIB_res_search="
12251	cat >>confdefs.h <<_ACEOF
12252#define $ac_tr_func 1
12253_ACEOF
12254
12255	echo "$as_me:$LINENO: result: yes" >&5
12256echo "${ECHO_T}yes" >&6
12257	;;
12258	no)
12259	eval "ac_cv_func_res_search=no"
12260	eval "LIB_res_search="
12261	echo "$as_me:$LINENO: result: no" >&5
12262echo "${ECHO_T}no" >&6
12263	;;
12264	*)
12265	eval "ac_cv_func_res_search=yes"
12266	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12267	cat >>confdefs.h <<_ACEOF
12268#define $ac_tr_func 1
12269_ACEOF
12270
12271	cat >>confdefs.h <<_ACEOF
12272#define $ac_tr_lib 1
12273_ACEOF
12274
12275	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12276echo "${ECHO_T}yes, in $ac_res" >&6
12277	;;
12278esac
12279
12280
12281if test -n "$LIB_res_search"; then
12282	LIBS="$LIB_res_search $LIBS"
12283fi
12284
12285
12286
12287
12288
12289
12290echo "$as_me:$LINENO: checking for dn_expand" >&5
12291echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
12292if test "${ac_cv_funclib_dn_expand+set}" = set; then
12293  echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295
12296if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
12297	ac_save_LIBS="$LIBS"
12298	for ac_lib in "" resolv; do
12299		case "$ac_lib" in
12300		"") ;;
12301		yes) ac_lib="" ;;
12302		no) continue ;;
12303		-l*) ;;
12304		*) ac_lib="-l$ac_lib" ;;
12305		esac
12306		LIBS=" $ac_lib  $ac_save_LIBS"
12307		cat >conftest.$ac_ext <<_ACEOF
12308#line $LINENO "configure"
12309#include "confdefs.h"
12310
12311#include <stdio.h>
12312#ifdef HAVE_SYS_TYPES_H
12313#include <sys/types.h>
12314#endif
12315#ifdef HAVE_NETINET_IN_H
12316#include <netinet/in.h>
12317#endif
12318#ifdef HAVE_ARPA_NAMESER_H
12319#include <arpa/nameser.h>
12320#endif
12321#ifdef HAVE_RESOLV_H
12322#include <resolv.h>
12323#endif
12324
12325#ifdef F77_DUMMY_MAIN
12326#  ifdef __cplusplus
12327     extern "C"
12328#  endif
12329   int F77_DUMMY_MAIN() { return 1; }
12330#endif
12331int
12332main ()
12333{
12334dn_expand(0,0,0,0,0)
12335  ;
12336  return 0;
12337}
12338_ACEOF
12339rm -f conftest.$ac_objext conftest$ac_exeext
12340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341  (eval $ac_link) 2>&5
12342  ac_status=$?
12343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344  (exit $ac_status); } &&
12345         { ac_try='test -s conftest$ac_exeext'
12346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347  (eval $ac_try) 2>&5
12348  ac_status=$?
12349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350  (exit $ac_status); }; }; then
12351  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
12352else
12353  echo "$as_me: failed program was:" >&5
12354cat conftest.$ac_ext >&5
12355fi
12356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12357	done
12358	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
12359	LIBS="$ac_save_LIBS"
12360fi
12361
12362fi
12363
12364
12365eval "ac_res=\$ac_cv_funclib_dn_expand"
12366
12367if false; then
12368
12369for ac_func in dn_expand
12370do
12371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372echo "$as_me:$LINENO: checking for $ac_func" >&5
12373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12374if eval "test \"\${$as_ac_var+set}\" = set"; then
12375  echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377  cat >conftest.$ac_ext <<_ACEOF
12378#line $LINENO "configure"
12379#include "confdefs.h"
12380/* System header to define __stub macros and hopefully few prototypes,
12381    which can conflict with char $ac_func (); below.  */
12382#include <assert.h>
12383/* Override any gcc2 internal prototype to avoid an error.  */
12384#ifdef __cplusplus
12385extern "C"
12386#endif
12387/* We use char because int might match the return type of a gcc2
12388   builtin and then its argument prototype would still apply.  */
12389char $ac_func ();
12390char (*f) ();
12391
12392#ifdef F77_DUMMY_MAIN
12393#  ifdef __cplusplus
12394     extern "C"
12395#  endif
12396   int F77_DUMMY_MAIN() { return 1; }
12397#endif
12398int
12399main ()
12400{
12401/* The GNU C library defines this for functions which it implements
12402    to always fail with ENOSYS.  Some functions are actually named
12403    something starting with __ and the normal name is an alias.  */
12404#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12405choke me
12406#else
12407f = $ac_func;
12408#endif
12409
12410  ;
12411  return 0;
12412}
12413_ACEOF
12414rm -f conftest.$ac_objext conftest$ac_exeext
12415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416  (eval $ac_link) 2>&5
12417  ac_status=$?
12418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419  (exit $ac_status); } &&
12420         { ac_try='test -s conftest$ac_exeext'
12421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422  (eval $ac_try) 2>&5
12423  ac_status=$?
12424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425  (exit $ac_status); }; }; then
12426  eval "$as_ac_var=yes"
12427else
12428  echo "$as_me: failed program was:" >&5
12429cat conftest.$ac_ext >&5
12430eval "$as_ac_var=no"
12431fi
12432rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12433fi
12434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436if test `eval echo '${'$as_ac_var'}'` = yes; then
12437  cat >>confdefs.h <<_ACEOF
12438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439_ACEOF
12440
12441fi
12442done
12443
12444fi
12445# dn_expand
12446eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12447eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
12448eval "LIB_dn_expand=$ac_res"
12449
12450case "$ac_res" in
12451	yes)
12452	eval "ac_cv_func_dn_expand=yes"
12453	eval "LIB_dn_expand="
12454	cat >>confdefs.h <<_ACEOF
12455#define $ac_tr_func 1
12456_ACEOF
12457
12458	echo "$as_me:$LINENO: result: yes" >&5
12459echo "${ECHO_T}yes" >&6
12460	;;
12461	no)
12462	eval "ac_cv_func_dn_expand=no"
12463	eval "LIB_dn_expand="
12464	echo "$as_me:$LINENO: result: no" >&5
12465echo "${ECHO_T}no" >&6
12466	;;
12467	*)
12468	eval "ac_cv_func_dn_expand=yes"
12469	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
12470	cat >>confdefs.h <<_ACEOF
12471#define $ac_tr_func 1
12472_ACEOF
12473
12474	cat >>confdefs.h <<_ACEOF
12475#define $ac_tr_lib 1
12476_ACEOF
12477
12478	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
12479echo "${ECHO_T}yes, in $ac_res" >&6
12480	;;
12481esac
12482
12483
12484if test -n "$LIB_dn_expand"; then
12485	LIBS="$LIB_dn_expand $LIBS"
12486fi
12487
12488
12489
12490echo "$as_me:$LINENO: checking for _res" >&5
12491echo $ECHO_N "checking for _res... $ECHO_C" >&6
12492if test "${ac_cv_var__res+set}" = set; then
12493  echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495
12496cat >conftest.$ac_ext <<_ACEOF
12497#line $LINENO "configure"
12498#include "confdefs.h"
12499extern int _res;
12500int foo() { return _res; }
12501#ifdef F77_DUMMY_MAIN
12502#  ifdef __cplusplus
12503     extern "C"
12504#  endif
12505   int F77_DUMMY_MAIN() { return 1; }
12506#endif
12507int
12508main ()
12509{
12510foo()
12511  ;
12512  return 0;
12513}
12514_ACEOF
12515rm -f conftest.$ac_objext conftest$ac_exeext
12516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517  (eval $ac_link) 2>&5
12518  ac_status=$?
12519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520  (exit $ac_status); } &&
12521         { ac_try='test -s conftest$ac_exeext'
12522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523  (eval $ac_try) 2>&5
12524  ac_status=$?
12525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526  (exit $ac_status); }; }; then
12527  ac_cv_var__res=yes
12528else
12529  echo "$as_me: failed program was:" >&5
12530cat conftest.$ac_ext >&5
12531ac_cv_var__res=no
12532fi
12533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12534
12535fi
12536
12537ac_foo=`eval echo \\$ac_cv_var__res`
12538echo "$as_me:$LINENO: result: $ac_foo" >&5
12539echo "${ECHO_T}$ac_foo" >&6
12540if test "$ac_foo" = yes; then
12541
12542cat >>confdefs.h <<_ACEOF
12543#define HAVE__RES 1
12544_ACEOF
12545
12546
12547echo "$as_me:$LINENO: checking if _res is properly declared" >&5
12548echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
12549if test "${ac_cv_var__res_declaration+set}" = set; then
12550  echo $ECHO_N "(cached) $ECHO_C" >&6
12551else
12552
12553cat >conftest.$ac_ext <<_ACEOF
12554#line $LINENO "configure"
12555#include "confdefs.h"
12556#include <stdio.h>
12557#ifdef HAVE_SYS_TYPES_H
12558#include <sys/types.h>
12559#endif
12560#ifdef HAVE_NETINET_IN_H
12561#include <netinet/in.h>
12562#endif
12563#ifdef HAVE_ARPA_NAMESER_H
12564#include <arpa/nameser.h>
12565#endif
12566#ifdef HAVE_RESOLV_H
12567#include <resolv.h>
12568#endif
12569extern struct { int foo; } _res;
12570#ifdef F77_DUMMY_MAIN
12571#  ifdef __cplusplus
12572     extern "C"
12573#  endif
12574   int F77_DUMMY_MAIN() { return 1; }
12575#endif
12576int
12577main ()
12578{
12579_res.foo = 1;
12580  ;
12581  return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext
12585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586  (eval $ac_compile) 2>&5
12587  ac_status=$?
12588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589  (exit $ac_status); } &&
12590         { ac_try='test -s conftest.$ac_objext'
12591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592  (eval $ac_try) 2>&5
12593  ac_status=$?
12594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595  (exit $ac_status); }; }; then
12596  eval "ac_cv_var__res_declaration=no"
12597else
12598  echo "$as_me: failed program was:" >&5
12599cat conftest.$ac_ext >&5
12600eval "ac_cv_var__res_declaration=yes"
12601fi
12602rm -f conftest.$ac_objext conftest.$ac_ext
12603
12604fi
12605
12606
12607
12608
12609echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
12610echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
12611if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
12612
12613cat >>confdefs.h <<\_ACEOF
12614#define HAVE__RES_DECLARATION 1
12615_ACEOF
12616
12617fi
12618
12619
12620fi
12621
12622
12623
12624
12625echo "$as_me:$LINENO: checking for working snprintf" >&5
12626echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
12627if test "${ac_cv_func_snprintf_working+set}" = set; then
12628  echo $ECHO_N "(cached) $ECHO_C" >&6
12629else
12630  ac_cv_func_snprintf_working=yes
12631if test "$cross_compiling" = yes; then
12632  :
12633else
12634  cat >conftest.$ac_ext <<_ACEOF
12635#line $LINENO "configure"
12636#include "confdefs.h"
12637
12638#include <stdio.h>
12639#include <string.h>
12640int main()
12641{
12642	char foo[3];
12643	snprintf(foo, 2, "12");
12644	return strcmp(foo, "1");
12645}
12646_ACEOF
12647rm -f conftest$ac_exeext
12648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649  (eval $ac_link) 2>&5
12650  ac_status=$?
12651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654  (eval $ac_try) 2>&5
12655  ac_status=$?
12656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657  (exit $ac_status); }; }; then
12658  :
12659else
12660  echo "$as_me: program exited with status $ac_status" >&5
12661echo "$as_me: failed program was:" >&5
12662cat conftest.$ac_ext >&5
12663( exit $ac_status )
12664ac_cv_func_snprintf_working=no
12665fi
12666rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12667fi
12668fi
12669echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
12670echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
12671
12672if test "$ac_cv_func_snprintf_working" = yes; then
12673
12674cat >>confdefs.h <<_ACEOF
12675#define HAVE_SNPRINTF 1
12676_ACEOF
12677
12678fi
12679if test "$ac_cv_func_snprintf_working" = yes; then
12680
12681if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
12682echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
12683echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
12684if test "${ac_cv_func_snprintf_noproto+set}" = set; then
12685  echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687  cat >conftest.$ac_ext <<_ACEOF
12688#line $LINENO "configure"
12689#include "confdefs.h"
12690#include <stdio.h>
12691#ifdef F77_DUMMY_MAIN
12692#  ifdef __cplusplus
12693     extern "C"
12694#  endif
12695   int F77_DUMMY_MAIN() { return 1; }
12696#endif
12697int
12698main ()
12699{
12700struct foo { int foo; } xx;
12701extern int snprintf (struct foo*);
12702snprintf(&xx);
12703
12704  ;
12705  return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710  (eval $ac_compile) 2>&5
12711  ac_status=$?
12712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713  (exit $ac_status); } &&
12714         { ac_try='test -s conftest.$ac_objext'
12715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716  (eval $ac_try) 2>&5
12717  ac_status=$?
12718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719  (exit $ac_status); }; }; then
12720  eval "ac_cv_func_snprintf_noproto=yes"
12721else
12722  echo "$as_me: failed program was:" >&5
12723cat conftest.$ac_ext >&5
12724eval "ac_cv_func_snprintf_noproto=no"
12725fi
12726rm -f conftest.$ac_objext conftest.$ac_ext
12727fi
12728echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
12729echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
12730if test "$ac_cv_func_snprintf_noproto" = yes; then
12731
12732cat >>confdefs.h <<\_ACEOF
12733#define NEED_SNPRINTF_PROTO 1
12734_ACEOF
12735
12736fi
12737fi
12738
12739fi
12740
12741
12742echo "$as_me:$LINENO: checking for working vsnprintf" >&5
12743echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
12744if test "${ac_cv_func_vsnprintf_working+set}" = set; then
12745  echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747  ac_cv_func_vsnprintf_working=yes
12748if test "$cross_compiling" = yes; then
12749  :
12750else
12751  cat >conftest.$ac_ext <<_ACEOF
12752#line $LINENO "configure"
12753#include "confdefs.h"
12754
12755#include <stdio.h>
12756#include <string.h>
12757#include <stdarg.h>
12758
12759int foo(int num, ...)
12760{
12761	char bar[3];
12762	va_list arg;
12763	va_start(arg, num);
12764	vsnprintf(bar, 2, "%s", arg);
12765	va_end(arg);
12766	return strcmp(bar, "1");
12767}
12768
12769
12770int main()
12771{
12772	return foo(0, "12");
12773}
12774_ACEOF
12775rm -f conftest$ac_exeext
12776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777  (eval $ac_link) 2>&5
12778  ac_status=$?
12779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782  (eval $ac_try) 2>&5
12783  ac_status=$?
12784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785  (exit $ac_status); }; }; then
12786  :
12787else
12788  echo "$as_me: program exited with status $ac_status" >&5
12789echo "$as_me: failed program was:" >&5
12790cat conftest.$ac_ext >&5
12791( exit $ac_status )
12792ac_cv_func_vsnprintf_working=no
12793fi
12794rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12795fi
12796fi
12797echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
12798echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
12799
12800if test "$ac_cv_func_vsnprintf_working" = yes; then
12801
12802cat >>confdefs.h <<_ACEOF
12803#define HAVE_VSNPRINTF 1
12804_ACEOF
12805
12806fi
12807if test "$ac_cv_func_vsnprintf_working" = yes; then
12808
12809if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
12810echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
12811echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
12812if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
12813  echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815  cat >conftest.$ac_ext <<_ACEOF
12816#line $LINENO "configure"
12817#include "confdefs.h"
12818#include <stdio.h>
12819#ifdef F77_DUMMY_MAIN
12820#  ifdef __cplusplus
12821     extern "C"
12822#  endif
12823   int F77_DUMMY_MAIN() { return 1; }
12824#endif
12825int
12826main ()
12827{
12828struct foo { int foo; } xx;
12829extern int vsnprintf (struct foo*);
12830vsnprintf(&xx);
12831
12832  ;
12833  return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838  (eval $ac_compile) 2>&5
12839  ac_status=$?
12840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841  (exit $ac_status); } &&
12842         { ac_try='test -s conftest.$ac_objext'
12843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844  (eval $ac_try) 2>&5
12845  ac_status=$?
12846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847  (exit $ac_status); }; }; then
12848  eval "ac_cv_func_vsnprintf_noproto=yes"
12849else
12850  echo "$as_me: failed program was:" >&5
12851cat conftest.$ac_ext >&5
12852eval "ac_cv_func_vsnprintf_noproto=no"
12853fi
12854rm -f conftest.$ac_objext conftest.$ac_ext
12855fi
12856echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
12857echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
12858if test "$ac_cv_func_vsnprintf_noproto" = yes; then
12859
12860cat >>confdefs.h <<\_ACEOF
12861#define NEED_VSNPRINTF_PROTO 1
12862_ACEOF
12863
12864fi
12865fi
12866
12867fi
12868
12869
12870
12871echo "$as_me:$LINENO: checking for working glob" >&5
12872echo $ECHO_N "checking for working glob... $ECHO_C" >&6
12873if test "${ac_cv_func_glob_working+set}" = set; then
12874  echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876  ac_cv_func_glob_working=yes
12877cat >conftest.$ac_ext <<_ACEOF
12878#line $LINENO "configure"
12879#include "confdefs.h"
12880
12881#include <stdio.h>
12882#include <glob.h>
12883#ifdef F77_DUMMY_MAIN
12884#  ifdef __cplusplus
12885     extern "C"
12886#  endif
12887   int F77_DUMMY_MAIN() { return 1; }
12888#endif
12889int
12890main ()
12891{
12892
12893glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
12894#ifdef GLOB_MAXPATH
12895GLOB_MAXPATH
12896#else
12897GLOB_LIMIT
12898#endif
12899,
12900NULL, NULL);
12901
12902  ;
12903  return 0;
12904}
12905_ACEOF
12906rm -f conftest.$ac_objext conftest$ac_exeext
12907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908  (eval $ac_link) 2>&5
12909  ac_status=$?
12910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911  (exit $ac_status); } &&
12912         { ac_try='test -s conftest$ac_exeext'
12913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914  (eval $ac_try) 2>&5
12915  ac_status=$?
12916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917  (exit $ac_status); }; }; then
12918  :
12919else
12920  echo "$as_me: failed program was:" >&5
12921cat conftest.$ac_ext >&5
12922ac_cv_func_glob_working=no
12923fi
12924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12925fi
12926echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
12927echo "${ECHO_T}$ac_cv_func_glob_working" >&6
12928
12929if test "$ac_cv_func_glob_working" = yes; then
12930
12931cat >>confdefs.h <<\_ACEOF
12932#define HAVE_GLOB 1
12933_ACEOF
12934
12935fi
12936if test "$ac_cv_func_glob_working" = yes; then
12937
12938if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
12939echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
12940echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
12941if test "${ac_cv_func_glob_noproto+set}" = set; then
12942  echo $ECHO_N "(cached) $ECHO_C" >&6
12943else
12944  cat >conftest.$ac_ext <<_ACEOF
12945#line $LINENO "configure"
12946#include "confdefs.h"
12947#include <stdio.h>
12948#include <glob.h>
12949#ifdef F77_DUMMY_MAIN
12950#  ifdef __cplusplus
12951     extern "C"
12952#  endif
12953   int F77_DUMMY_MAIN() { return 1; }
12954#endif
12955int
12956main ()
12957{
12958struct foo { int foo; } xx;
12959extern int glob (struct foo*);
12960glob(&xx);
12961
12962  ;
12963  return 0;
12964}
12965_ACEOF
12966rm -f conftest.$ac_objext
12967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12968  (eval $ac_compile) 2>&5
12969  ac_status=$?
12970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971  (exit $ac_status); } &&
12972         { ac_try='test -s conftest.$ac_objext'
12973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974  (eval $ac_try) 2>&5
12975  ac_status=$?
12976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977  (exit $ac_status); }; }; then
12978  eval "ac_cv_func_glob_noproto=yes"
12979else
12980  echo "$as_me: failed program was:" >&5
12981cat conftest.$ac_ext >&5
12982eval "ac_cv_func_glob_noproto=no"
12983fi
12984rm -f conftest.$ac_objext conftest.$ac_ext
12985fi
12986echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
12987echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
12988if test "$ac_cv_func_glob_noproto" = yes; then
12989
12990cat >>confdefs.h <<\_ACEOF
12991#define NEED_GLOB_PROTO 1
12992_ACEOF
12993
12994fi
12995fi
12996
12997fi
12998
12999if test "$ac_cv_func_glob_working" != yes; then
13000	LIBOBJS="$LIBOBJS glob.$ac_objext"
13001fi
13002
13003
13004if test "$ac_cv_func_glob_working" = yes; then
13005  have_glob_h_TRUE=
13006  have_glob_h_FALSE='#'
13007else
13008  have_glob_h_TRUE='#'
13009  have_glob_h_FALSE=
13010fi
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040for ac_func in 				\
13041	asnprintf				\
13042	asprintf				\
13043	atexit					\
13044	cgetent					\
13045	getconfattr				\
13046	getprogname				\
13047	getrlimit				\
13048	getspnam				\
13049	initstate				\
13050	issetugid				\
13051	on_exit					\
13052	random					\
13053	setprogname				\
13054	setstate				\
13055	strsvis					\
13056	strunvis				\
13057	strvis					\
13058	strvisx					\
13059	svis					\
13060	sysconf					\
13061	sysctl					\
13062	uname					\
13063	unvis					\
13064	vasnprintf				\
13065	vasprintf				\
13066	vis					\
13067
13068do
13069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13070echo "$as_me:$LINENO: checking for $ac_func" >&5
13071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13072if eval "test \"\${$as_ac_var+set}\" = set"; then
13073  echo $ECHO_N "(cached) $ECHO_C" >&6
13074else
13075  cat >conftest.$ac_ext <<_ACEOF
13076#line $LINENO "configure"
13077#include "confdefs.h"
13078/* System header to define __stub macros and hopefully few prototypes,
13079    which can conflict with char $ac_func (); below.  */
13080#include <assert.h>
13081/* Override any gcc2 internal prototype to avoid an error.  */
13082#ifdef __cplusplus
13083extern "C"
13084#endif
13085/* We use char because int might match the return type of a gcc2
13086   builtin and then its argument prototype would still apply.  */
13087char $ac_func ();
13088char (*f) ();
13089
13090#ifdef F77_DUMMY_MAIN
13091#  ifdef __cplusplus
13092     extern "C"
13093#  endif
13094   int F77_DUMMY_MAIN() { return 1; }
13095#endif
13096int
13097main ()
13098{
13099/* The GNU C library defines this for functions which it implements
13100    to always fail with ENOSYS.  Some functions are actually named
13101    something starting with __ and the normal name is an alias.  */
13102#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13103choke me
13104#else
13105f = $ac_func;
13106#endif
13107
13108  ;
13109  return 0;
13110}
13111_ACEOF
13112rm -f conftest.$ac_objext conftest$ac_exeext
13113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13114  (eval $ac_link) 2>&5
13115  ac_status=$?
13116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117  (exit $ac_status); } &&
13118         { ac_try='test -s conftest$ac_exeext'
13119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120  (eval $ac_try) 2>&5
13121  ac_status=$?
13122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123  (exit $ac_status); }; }; then
13124  eval "$as_ac_var=yes"
13125else
13126  echo "$as_me: failed program was:" >&5
13127cat conftest.$ac_ext >&5
13128eval "$as_ac_var=no"
13129fi
13130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13131fi
13132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13134if test `eval echo '${'$as_ac_var'}'` = yes; then
13135  cat >>confdefs.h <<_ACEOF
13136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13137_ACEOF
13138
13139fi
13140done
13141
13142
13143if test "$ac_cv_func_cgetent" = no; then
13144	LIBOBJS="$LIBOBJS getcap.$ac_objext"
13145fi
13146
13147
13148
13149
13150
13151
13152echo "$as_me:$LINENO: checking for getsockopt" >&5
13153echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
13154if test "${ac_cv_funclib_getsockopt+set}" = set; then
13155  echo $ECHO_N "(cached) $ECHO_C" >&6
13156else
13157
13158if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
13159	ac_save_LIBS="$LIBS"
13160	for ac_lib in "" ; do
13161		case "$ac_lib" in
13162		"") ;;
13163		yes) ac_lib="" ;;
13164		no) continue ;;
13165		-l*) ;;
13166		*) ac_lib="-l$ac_lib" ;;
13167		esac
13168		LIBS=" $ac_lib  $ac_save_LIBS"
13169		cat >conftest.$ac_ext <<_ACEOF
13170#line $LINENO "configure"
13171#include "confdefs.h"
13172#ifdef HAVE_SYS_TYPES_H
13173#include <sys/types.h>
13174#endif
13175#ifdef HAVE_SYS_SOCKET_H
13176#include <sys/socket.h>
13177#endif
13178#ifdef F77_DUMMY_MAIN
13179#  ifdef __cplusplus
13180     extern "C"
13181#  endif
13182   int F77_DUMMY_MAIN() { return 1; }
13183#endif
13184int
13185main ()
13186{
13187getsockopt(0,0,0,0,0)
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192rm -f conftest.$ac_objext conftest$ac_exeext
13193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13194  (eval $ac_link) 2>&5
13195  ac_status=$?
13196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197  (exit $ac_status); } &&
13198         { ac_try='test -s conftest$ac_exeext'
13199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200  (eval $ac_try) 2>&5
13201  ac_status=$?
13202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203  (exit $ac_status); }; }; then
13204  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
13205else
13206  echo "$as_me: failed program was:" >&5
13207cat conftest.$ac_ext >&5
13208fi
13209rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13210	done
13211	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
13212	LIBS="$ac_save_LIBS"
13213fi
13214
13215fi
13216
13217
13218eval "ac_res=\$ac_cv_funclib_getsockopt"
13219
13220if false; then
13221
13222for ac_func in getsockopt
13223do
13224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13225echo "$as_me:$LINENO: checking for $ac_func" >&5
13226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13227if eval "test \"\${$as_ac_var+set}\" = set"; then
13228  echo $ECHO_N "(cached) $ECHO_C" >&6
13229else
13230  cat >conftest.$ac_ext <<_ACEOF
13231#line $LINENO "configure"
13232#include "confdefs.h"
13233/* System header to define __stub macros and hopefully few prototypes,
13234    which can conflict with char $ac_func (); below.  */
13235#include <assert.h>
13236/* Override any gcc2 internal prototype to avoid an error.  */
13237#ifdef __cplusplus
13238extern "C"
13239#endif
13240/* We use char because int might match the return type of a gcc2
13241   builtin and then its argument prototype would still apply.  */
13242char $ac_func ();
13243char (*f) ();
13244
13245#ifdef F77_DUMMY_MAIN
13246#  ifdef __cplusplus
13247     extern "C"
13248#  endif
13249   int F77_DUMMY_MAIN() { return 1; }
13250#endif
13251int
13252main ()
13253{
13254/* The GNU C library defines this for functions which it implements
13255    to always fail with ENOSYS.  Some functions are actually named
13256    something starting with __ and the normal name is an alias.  */
13257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13258choke me
13259#else
13260f = $ac_func;
13261#endif
13262
13263  ;
13264  return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext conftest$ac_exeext
13268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269  (eval $ac_link) 2>&5
13270  ac_status=$?
13271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272  (exit $ac_status); } &&
13273         { ac_try='test -s conftest$ac_exeext'
13274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275  (eval $ac_try) 2>&5
13276  ac_status=$?
13277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278  (exit $ac_status); }; }; then
13279  eval "$as_ac_var=yes"
13280else
13281  echo "$as_me: failed program was:" >&5
13282cat conftest.$ac_ext >&5
13283eval "$as_ac_var=no"
13284fi
13285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13286fi
13287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13288echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13289if test `eval echo '${'$as_ac_var'}'` = yes; then
13290  cat >>confdefs.h <<_ACEOF
13291#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13292_ACEOF
13293
13294fi
13295done
13296
13297fi
13298# getsockopt
13299eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13300eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13301eval "LIB_getsockopt=$ac_res"
13302
13303case "$ac_res" in
13304	yes)
13305	eval "ac_cv_func_getsockopt=yes"
13306	eval "LIB_getsockopt="
13307	cat >>confdefs.h <<_ACEOF
13308#define $ac_tr_func 1
13309_ACEOF
13310
13311	echo "$as_me:$LINENO: result: yes" >&5
13312echo "${ECHO_T}yes" >&6
13313	;;
13314	no)
13315	eval "ac_cv_func_getsockopt=no"
13316	eval "LIB_getsockopt="
13317	echo "$as_me:$LINENO: result: no" >&5
13318echo "${ECHO_T}no" >&6
13319	;;
13320	*)
13321	eval "ac_cv_func_getsockopt=yes"
13322	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13323	cat >>confdefs.h <<_ACEOF
13324#define $ac_tr_func 1
13325_ACEOF
13326
13327	cat >>confdefs.h <<_ACEOF
13328#define $ac_tr_lib 1
13329_ACEOF
13330
13331	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
13332echo "${ECHO_T}yes, in $ac_res" >&6
13333	;;
13334esac
13335
13336
13337
13338
13339
13340echo "$as_me:$LINENO: checking for setsockopt" >&5
13341echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
13342if test "${ac_cv_funclib_setsockopt+set}" = set; then
13343  echo $ECHO_N "(cached) $ECHO_C" >&6
13344else
13345
13346if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
13347	ac_save_LIBS="$LIBS"
13348	for ac_lib in "" ; do
13349		case "$ac_lib" in
13350		"") ;;
13351		yes) ac_lib="" ;;
13352		no) continue ;;
13353		-l*) ;;
13354		*) ac_lib="-l$ac_lib" ;;
13355		esac
13356		LIBS=" $ac_lib  $ac_save_LIBS"
13357		cat >conftest.$ac_ext <<_ACEOF
13358#line $LINENO "configure"
13359#include "confdefs.h"
13360#ifdef HAVE_SYS_TYPES_H
13361#include <sys/types.h>
13362#endif
13363#ifdef HAVE_SYS_SOCKET_H
13364#include <sys/socket.h>
13365#endif
13366#ifdef F77_DUMMY_MAIN
13367#  ifdef __cplusplus
13368     extern "C"
13369#  endif
13370   int F77_DUMMY_MAIN() { return 1; }
13371#endif
13372int
13373main ()
13374{
13375setsockopt(0,0,0,0,0)
13376  ;
13377  return 0;
13378}
13379_ACEOF
13380rm -f conftest.$ac_objext conftest$ac_exeext
13381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13382  (eval $ac_link) 2>&5
13383  ac_status=$?
13384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385  (exit $ac_status); } &&
13386         { ac_try='test -s conftest$ac_exeext'
13387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388  (eval $ac_try) 2>&5
13389  ac_status=$?
13390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391  (exit $ac_status); }; }; then
13392  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
13393else
13394  echo "$as_me: failed program was:" >&5
13395cat conftest.$ac_ext >&5
13396fi
13397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13398	done
13399	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
13400	LIBS="$ac_save_LIBS"
13401fi
13402
13403fi
13404
13405
13406eval "ac_res=\$ac_cv_funclib_setsockopt"
13407
13408if false; then
13409
13410for ac_func in setsockopt
13411do
13412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13413echo "$as_me:$LINENO: checking for $ac_func" >&5
13414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13415if eval "test \"\${$as_ac_var+set}\" = set"; then
13416  echo $ECHO_N "(cached) $ECHO_C" >&6
13417else
13418  cat >conftest.$ac_ext <<_ACEOF
13419#line $LINENO "configure"
13420#include "confdefs.h"
13421/* System header to define __stub macros and hopefully few prototypes,
13422    which can conflict with char $ac_func (); below.  */
13423#include <assert.h>
13424/* Override any gcc2 internal prototype to avoid an error.  */
13425#ifdef __cplusplus
13426extern "C"
13427#endif
13428/* We use char because int might match the return type of a gcc2
13429   builtin and then its argument prototype would still apply.  */
13430char $ac_func ();
13431char (*f) ();
13432
13433#ifdef F77_DUMMY_MAIN
13434#  ifdef __cplusplus
13435     extern "C"
13436#  endif
13437   int F77_DUMMY_MAIN() { return 1; }
13438#endif
13439int
13440main ()
13441{
13442/* The GNU C library defines this for functions which it implements
13443    to always fail with ENOSYS.  Some functions are actually named
13444    something starting with __ and the normal name is an alias.  */
13445#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13446choke me
13447#else
13448f = $ac_func;
13449#endif
13450
13451  ;
13452  return 0;
13453}
13454_ACEOF
13455rm -f conftest.$ac_objext conftest$ac_exeext
13456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457  (eval $ac_link) 2>&5
13458  ac_status=$?
13459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460  (exit $ac_status); } &&
13461         { ac_try='test -s conftest$ac_exeext'
13462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463  (eval $ac_try) 2>&5
13464  ac_status=$?
13465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466  (exit $ac_status); }; }; then
13467  eval "$as_ac_var=yes"
13468else
13469  echo "$as_me: failed program was:" >&5
13470cat conftest.$ac_ext >&5
13471eval "$as_ac_var=no"
13472fi
13473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13474fi
13475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13476echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13477if test `eval echo '${'$as_ac_var'}'` = yes; then
13478  cat >>confdefs.h <<_ACEOF
13479#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13480_ACEOF
13481
13482fi
13483done
13484
13485fi
13486# setsockopt
13487eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13488eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13489eval "LIB_setsockopt=$ac_res"
13490
13491case "$ac_res" in
13492	yes)
13493	eval "ac_cv_func_setsockopt=yes"
13494	eval "LIB_setsockopt="
13495	cat >>confdefs.h <<_ACEOF
13496#define $ac_tr_func 1
13497_ACEOF
13498
13499	echo "$as_me:$LINENO: result: yes" >&5
13500echo "${ECHO_T}yes" >&6
13501	;;
13502	no)
13503	eval "ac_cv_func_setsockopt=no"
13504	eval "LIB_setsockopt="
13505	echo "$as_me:$LINENO: result: no" >&5
13506echo "${ECHO_T}no" >&6
13507	;;
13508	*)
13509	eval "ac_cv_func_setsockopt=yes"
13510	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13511	cat >>confdefs.h <<_ACEOF
13512#define $ac_tr_func 1
13513_ACEOF
13514
13515	cat >>confdefs.h <<_ACEOF
13516#define $ac_tr_lib 1
13517_ACEOF
13518
13519	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
13520echo "${ECHO_T}yes, in $ac_res" >&6
13521	;;
13522esac
13523
13524
13525
13526
13527
13528
13529
13530echo "$as_me:$LINENO: checking for hstrerror" >&5
13531echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
13532if test "${ac_cv_funclib_hstrerror+set}" = set; then
13533  echo $ECHO_N "(cached) $ECHO_C" >&6
13534else
13535
13536if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
13537	ac_save_LIBS="$LIBS"
13538	for ac_lib in "" resolv; do
13539		case "$ac_lib" in
13540		"") ;;
13541		yes) ac_lib="" ;;
13542		no) continue ;;
13543		-l*) ;;
13544		*) ac_lib="-l$ac_lib" ;;
13545		esac
13546		LIBS=" $ac_lib  $ac_save_LIBS"
13547		cat >conftest.$ac_ext <<_ACEOF
13548#line $LINENO "configure"
13549#include "confdefs.h"
13550#ifdef HAVE_NETDB_H
13551#include <netdb.h>
13552#endif
13553#ifdef F77_DUMMY_MAIN
13554#  ifdef __cplusplus
13555     extern "C"
13556#  endif
13557   int F77_DUMMY_MAIN() { return 1; }
13558#endif
13559int
13560main ()
13561{
13562hstrerror(17)
13563  ;
13564  return 0;
13565}
13566_ACEOF
13567rm -f conftest.$ac_objext conftest$ac_exeext
13568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13569  (eval $ac_link) 2>&5
13570  ac_status=$?
13571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572  (exit $ac_status); } &&
13573         { ac_try='test -s conftest$ac_exeext'
13574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575  (eval $ac_try) 2>&5
13576  ac_status=$?
13577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578  (exit $ac_status); }; }; then
13579  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
13580else
13581  echo "$as_me: failed program was:" >&5
13582cat conftest.$ac_ext >&5
13583fi
13584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13585	done
13586	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
13587	LIBS="$ac_save_LIBS"
13588fi
13589
13590fi
13591
13592
13593eval "ac_res=\$ac_cv_funclib_hstrerror"
13594
13595if false; then
13596
13597for ac_func in hstrerror
13598do
13599as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13600echo "$as_me:$LINENO: checking for $ac_func" >&5
13601echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13602if eval "test \"\${$as_ac_var+set}\" = set"; then
13603  echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605  cat >conftest.$ac_ext <<_ACEOF
13606#line $LINENO "configure"
13607#include "confdefs.h"
13608/* System header to define __stub macros and hopefully few prototypes,
13609    which can conflict with char $ac_func (); below.  */
13610#include <assert.h>
13611/* Override any gcc2 internal prototype to avoid an error.  */
13612#ifdef __cplusplus
13613extern "C"
13614#endif
13615/* We use char because int might match the return type of a gcc2
13616   builtin and then its argument prototype would still apply.  */
13617char $ac_func ();
13618char (*f) ();
13619
13620#ifdef F77_DUMMY_MAIN
13621#  ifdef __cplusplus
13622     extern "C"
13623#  endif
13624   int F77_DUMMY_MAIN() { return 1; }
13625#endif
13626int
13627main ()
13628{
13629/* The GNU C library defines this for functions which it implements
13630    to always fail with ENOSYS.  Some functions are actually named
13631    something starting with __ and the normal name is an alias.  */
13632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13633choke me
13634#else
13635f = $ac_func;
13636#endif
13637
13638  ;
13639  return 0;
13640}
13641_ACEOF
13642rm -f conftest.$ac_objext conftest$ac_exeext
13643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13644  (eval $ac_link) 2>&5
13645  ac_status=$?
13646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647  (exit $ac_status); } &&
13648         { ac_try='test -s conftest$ac_exeext'
13649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13650  (eval $ac_try) 2>&5
13651  ac_status=$?
13652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653  (exit $ac_status); }; }; then
13654  eval "$as_ac_var=yes"
13655else
13656  echo "$as_me: failed program was:" >&5
13657cat conftest.$ac_ext >&5
13658eval "$as_ac_var=no"
13659fi
13660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13661fi
13662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13664if test `eval echo '${'$as_ac_var'}'` = yes; then
13665  cat >>confdefs.h <<_ACEOF
13666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13667_ACEOF
13668
13669fi
13670done
13671
13672fi
13673# hstrerror
13674eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13675eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
13676eval "LIB_hstrerror=$ac_res"
13677
13678case "$ac_res" in
13679	yes)
13680	eval "ac_cv_func_hstrerror=yes"
13681	eval "LIB_hstrerror="
13682	cat >>confdefs.h <<_ACEOF
13683#define $ac_tr_func 1
13684_ACEOF
13685
13686	echo "$as_me:$LINENO: result: yes" >&5
13687echo "${ECHO_T}yes" >&6
13688	;;
13689	no)
13690	eval "ac_cv_func_hstrerror=no"
13691	eval "LIB_hstrerror="
13692	echo "$as_me:$LINENO: result: no" >&5
13693echo "${ECHO_T}no" >&6
13694	;;
13695	*)
13696	eval "ac_cv_func_hstrerror=yes"
13697	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
13698	cat >>confdefs.h <<_ACEOF
13699#define $ac_tr_func 1
13700_ACEOF
13701
13702	cat >>confdefs.h <<_ACEOF
13703#define $ac_tr_lib 1
13704_ACEOF
13705
13706	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
13707echo "${ECHO_T}yes, in $ac_res" >&6
13708	;;
13709esac
13710
13711
13712if test -n "$LIB_hstrerror"; then
13713	LIBS="$LIB_hstrerror $LIBS"
13714fi
13715
13716if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
13717	LIBOBJS="$LIBOBJS hstrerror.$ac_objext"
13718fi
13719
13720
13721if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
13722echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
13723echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
13724if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
13725  echo $ECHO_N "(cached) $ECHO_C" >&6
13726else
13727  cat >conftest.$ac_ext <<_ACEOF
13728#line $LINENO "configure"
13729#include "confdefs.h"
13730
13731#ifdef HAVE_NETDB_H
13732#include <netdb.h>
13733#endif
13734#ifdef F77_DUMMY_MAIN
13735#  ifdef __cplusplus
13736     extern "C"
13737#  endif
13738   int F77_DUMMY_MAIN() { return 1; }
13739#endif
13740int
13741main ()
13742{
13743struct foo { int foo; } xx;
13744extern int hstrerror (struct foo*);
13745hstrerror(&xx);
13746
13747  ;
13748  return 0;
13749}
13750_ACEOF
13751rm -f conftest.$ac_objext
13752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753  (eval $ac_compile) 2>&5
13754  ac_status=$?
13755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756  (exit $ac_status); } &&
13757         { ac_try='test -s conftest.$ac_objext'
13758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759  (eval $ac_try) 2>&5
13760  ac_status=$?
13761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762  (exit $ac_status); }; }; then
13763  eval "ac_cv_func_hstrerror_noproto=yes"
13764else
13765  echo "$as_me: failed program was:" >&5
13766cat conftest.$ac_ext >&5
13767eval "ac_cv_func_hstrerror_noproto=no"
13768fi
13769rm -f conftest.$ac_objext conftest.$ac_ext
13770fi
13771echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
13772echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
13773if test "$ac_cv_func_hstrerror_noproto" = yes; then
13774
13775cat >>confdefs.h <<\_ACEOF
13776#define NEED_HSTRERROR_PROTO 1
13777_ACEOF
13778
13779fi
13780fi
13781
13782
13783
13784if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
13785echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
13786echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
13787if test "${ac_cv_func_asprintf_noproto+set}" = set; then
13788  echo $ECHO_N "(cached) $ECHO_C" >&6
13789else
13790  cat >conftest.$ac_ext <<_ACEOF
13791#line $LINENO "configure"
13792#include "confdefs.h"
13793
13794	#include <stdio.h>
13795	#include <string.h>
13796#ifdef F77_DUMMY_MAIN
13797#  ifdef __cplusplus
13798     extern "C"
13799#  endif
13800   int F77_DUMMY_MAIN() { return 1; }
13801#endif
13802int
13803main ()
13804{
13805struct foo { int foo; } xx;
13806extern int asprintf (struct foo*);
13807asprintf(&xx);
13808
13809  ;
13810  return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext
13814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13815  (eval $ac_compile) 2>&5
13816  ac_status=$?
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); } &&
13819         { ac_try='test -s conftest.$ac_objext'
13820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821  (eval $ac_try) 2>&5
13822  ac_status=$?
13823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824  (exit $ac_status); }; }; then
13825  eval "ac_cv_func_asprintf_noproto=yes"
13826else
13827  echo "$as_me: failed program was:" >&5
13828cat conftest.$ac_ext >&5
13829eval "ac_cv_func_asprintf_noproto=no"
13830fi
13831rm -f conftest.$ac_objext conftest.$ac_ext
13832fi
13833echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
13834echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
13835if test "$ac_cv_func_asprintf_noproto" = yes; then
13836
13837cat >>confdefs.h <<\_ACEOF
13838#define NEED_ASPRINTF_PROTO 1
13839_ACEOF
13840
13841fi
13842fi
13843
13844if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
13845echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
13846echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
13847if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
13848  echo $ECHO_N "(cached) $ECHO_C" >&6
13849else
13850  cat >conftest.$ac_ext <<_ACEOF
13851#line $LINENO "configure"
13852#include "confdefs.h"
13853
13854	#include <stdio.h>
13855	#include <string.h>
13856#ifdef F77_DUMMY_MAIN
13857#  ifdef __cplusplus
13858     extern "C"
13859#  endif
13860   int F77_DUMMY_MAIN() { return 1; }
13861#endif
13862int
13863main ()
13864{
13865struct foo { int foo; } xx;
13866extern int vasprintf (struct foo*);
13867vasprintf(&xx);
13868
13869  ;
13870  return 0;
13871}
13872_ACEOF
13873rm -f conftest.$ac_objext
13874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13875  (eval $ac_compile) 2>&5
13876  ac_status=$?
13877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878  (exit $ac_status); } &&
13879         { ac_try='test -s conftest.$ac_objext'
13880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881  (eval $ac_try) 2>&5
13882  ac_status=$?
13883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884  (exit $ac_status); }; }; then
13885  eval "ac_cv_func_vasprintf_noproto=yes"
13886else
13887  echo "$as_me: failed program was:" >&5
13888cat conftest.$ac_ext >&5
13889eval "ac_cv_func_vasprintf_noproto=no"
13890fi
13891rm -f conftest.$ac_objext conftest.$ac_ext
13892fi
13893echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
13894echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
13895if test "$ac_cv_func_vasprintf_noproto" = yes; then
13896
13897cat >>confdefs.h <<\_ACEOF
13898#define NEED_VASPRINTF_PROTO 1
13899_ACEOF
13900
13901fi
13902fi
13903
13904if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
13905echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
13906echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
13907if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
13908  echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910  cat >conftest.$ac_ext <<_ACEOF
13911#line $LINENO "configure"
13912#include "confdefs.h"
13913
13914	#include <stdio.h>
13915	#include <string.h>
13916#ifdef F77_DUMMY_MAIN
13917#  ifdef __cplusplus
13918     extern "C"
13919#  endif
13920   int F77_DUMMY_MAIN() { return 1; }
13921#endif
13922int
13923main ()
13924{
13925struct foo { int foo; } xx;
13926extern int asnprintf (struct foo*);
13927asnprintf(&xx);
13928
13929  ;
13930  return 0;
13931}
13932_ACEOF
13933rm -f conftest.$ac_objext
13934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935  (eval $ac_compile) 2>&5
13936  ac_status=$?
13937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938  (exit $ac_status); } &&
13939         { ac_try='test -s conftest.$ac_objext'
13940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941  (eval $ac_try) 2>&5
13942  ac_status=$?
13943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944  (exit $ac_status); }; }; then
13945  eval "ac_cv_func_asnprintf_noproto=yes"
13946else
13947  echo "$as_me: failed program was:" >&5
13948cat conftest.$ac_ext >&5
13949eval "ac_cv_func_asnprintf_noproto=no"
13950fi
13951rm -f conftest.$ac_objext conftest.$ac_ext
13952fi
13953echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
13954echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
13955if test "$ac_cv_func_asnprintf_noproto" = yes; then
13956
13957cat >>confdefs.h <<\_ACEOF
13958#define NEED_ASNPRINTF_PROTO 1
13959_ACEOF
13960
13961fi
13962fi
13963
13964if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
13965echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
13966echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
13967if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
13968  echo $ECHO_N "(cached) $ECHO_C" >&6
13969else
13970  cat >conftest.$ac_ext <<_ACEOF
13971#line $LINENO "configure"
13972#include "confdefs.h"
13973
13974	#include <stdio.h>
13975	#include <string.h>
13976#ifdef F77_DUMMY_MAIN
13977#  ifdef __cplusplus
13978     extern "C"
13979#  endif
13980   int F77_DUMMY_MAIN() { return 1; }
13981#endif
13982int
13983main ()
13984{
13985struct foo { int foo; } xx;
13986extern int vasnprintf (struct foo*);
13987vasnprintf(&xx);
13988
13989  ;
13990  return 0;
13991}
13992_ACEOF
13993rm -f conftest.$ac_objext
13994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13995  (eval $ac_compile) 2>&5
13996  ac_status=$?
13997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998  (exit $ac_status); } &&
13999         { ac_try='test -s conftest.$ac_objext'
14000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001  (eval $ac_try) 2>&5
14002  ac_status=$?
14003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004  (exit $ac_status); }; }; then
14005  eval "ac_cv_func_vasnprintf_noproto=yes"
14006else
14007  echo "$as_me: failed program was:" >&5
14008cat conftest.$ac_ext >&5
14009eval "ac_cv_func_vasnprintf_noproto=no"
14010fi
14011rm -f conftest.$ac_objext conftest.$ac_ext
14012fi
14013echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
14014echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
14015if test "$ac_cv_func_vasnprintf_noproto" = yes; then
14016
14017cat >>confdefs.h <<\_ACEOF
14018#define NEED_VASNPRINTF_PROTO 1
14019_ACEOF
14020
14021fi
14022fi
14023
14024
14025
14026
14027
14028echo "$as_me:$LINENO: checking for bswap16" >&5
14029echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
14030if test "${ac_cv_funclib_bswap16+set}" = set; then
14031  echo $ECHO_N "(cached) $ECHO_C" >&6
14032else
14033
14034if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
14035	ac_save_LIBS="$LIBS"
14036	for ac_lib in "" ; do
14037		case "$ac_lib" in
14038		"") ;;
14039		yes) ac_lib="" ;;
14040		no) continue ;;
14041		-l*) ;;
14042		*) ac_lib="-l$ac_lib" ;;
14043		esac
14044		LIBS=" $ac_lib  $ac_save_LIBS"
14045		cat >conftest.$ac_ext <<_ACEOF
14046#line $LINENO "configure"
14047#include "confdefs.h"
14048#ifdef HAVE_SYS_BSWAP_H
14049#include <sys/bswap.h>
14050#endif
14051#ifdef F77_DUMMY_MAIN
14052#  ifdef __cplusplus
14053     extern "C"
14054#  endif
14055   int F77_DUMMY_MAIN() { return 1; }
14056#endif
14057int
14058main ()
14059{
14060bswap16(0)
14061  ;
14062  return 0;
14063}
14064_ACEOF
14065rm -f conftest.$ac_objext conftest$ac_exeext
14066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067  (eval $ac_link) 2>&5
14068  ac_status=$?
14069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070  (exit $ac_status); } &&
14071         { ac_try='test -s conftest$ac_exeext'
14072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073  (eval $ac_try) 2>&5
14074  ac_status=$?
14075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076  (exit $ac_status); }; }; then
14077  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
14078else
14079  echo "$as_me: failed program was:" >&5
14080cat conftest.$ac_ext >&5
14081fi
14082rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14083	done
14084	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
14085	LIBS="$ac_save_LIBS"
14086fi
14087
14088fi
14089
14090
14091eval "ac_res=\$ac_cv_funclib_bswap16"
14092
14093if false; then
14094
14095for ac_func in bswap16
14096do
14097as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14098echo "$as_me:$LINENO: checking for $ac_func" >&5
14099echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14100if eval "test \"\${$as_ac_var+set}\" = set"; then
14101  echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103  cat >conftest.$ac_ext <<_ACEOF
14104#line $LINENO "configure"
14105#include "confdefs.h"
14106/* System header to define __stub macros and hopefully few prototypes,
14107    which can conflict with char $ac_func (); below.  */
14108#include <assert.h>
14109/* Override any gcc2 internal prototype to avoid an error.  */
14110#ifdef __cplusplus
14111extern "C"
14112#endif
14113/* We use char because int might match the return type of a gcc2
14114   builtin and then its argument prototype would still apply.  */
14115char $ac_func ();
14116char (*f) ();
14117
14118#ifdef F77_DUMMY_MAIN
14119#  ifdef __cplusplus
14120     extern "C"
14121#  endif
14122   int F77_DUMMY_MAIN() { return 1; }
14123#endif
14124int
14125main ()
14126{
14127/* The GNU C library defines this for functions which it implements
14128    to always fail with ENOSYS.  Some functions are actually named
14129    something starting with __ and the normal name is an alias.  */
14130#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14131choke me
14132#else
14133f = $ac_func;
14134#endif
14135
14136  ;
14137  return 0;
14138}
14139_ACEOF
14140rm -f conftest.$ac_objext conftest$ac_exeext
14141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14142  (eval $ac_link) 2>&5
14143  ac_status=$?
14144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145  (exit $ac_status); } &&
14146         { ac_try='test -s conftest$ac_exeext'
14147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148  (eval $ac_try) 2>&5
14149  ac_status=$?
14150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151  (exit $ac_status); }; }; then
14152  eval "$as_ac_var=yes"
14153else
14154  echo "$as_me: failed program was:" >&5
14155cat conftest.$ac_ext >&5
14156eval "$as_ac_var=no"
14157fi
14158rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14159fi
14160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14162if test `eval echo '${'$as_ac_var'}'` = yes; then
14163  cat >>confdefs.h <<_ACEOF
14164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14165_ACEOF
14166
14167fi
14168done
14169
14170fi
14171# bswap16
14172eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14173eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14174eval "LIB_bswap16=$ac_res"
14175
14176case "$ac_res" in
14177	yes)
14178	eval "ac_cv_func_bswap16=yes"
14179	eval "LIB_bswap16="
14180	cat >>confdefs.h <<_ACEOF
14181#define $ac_tr_func 1
14182_ACEOF
14183
14184	echo "$as_me:$LINENO: result: yes" >&5
14185echo "${ECHO_T}yes" >&6
14186	;;
14187	no)
14188	eval "ac_cv_func_bswap16=no"
14189	eval "LIB_bswap16="
14190	echo "$as_me:$LINENO: result: no" >&5
14191echo "${ECHO_T}no" >&6
14192	;;
14193	*)
14194	eval "ac_cv_func_bswap16=yes"
14195	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14196	cat >>confdefs.h <<_ACEOF
14197#define $ac_tr_func 1
14198_ACEOF
14199
14200	cat >>confdefs.h <<_ACEOF
14201#define $ac_tr_lib 1
14202_ACEOF
14203
14204	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14205echo "${ECHO_T}yes, in $ac_res" >&6
14206	;;
14207esac
14208
14209
14210
14211
14212
14213
14214echo "$as_me:$LINENO: checking for bswap32" >&5
14215echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
14216if test "${ac_cv_funclib_bswap32+set}" = set; then
14217  echo $ECHO_N "(cached) $ECHO_C" >&6
14218else
14219
14220if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
14221	ac_save_LIBS="$LIBS"
14222	for ac_lib in "" ; do
14223		case "$ac_lib" in
14224		"") ;;
14225		yes) ac_lib="" ;;
14226		no) continue ;;
14227		-l*) ;;
14228		*) ac_lib="-l$ac_lib" ;;
14229		esac
14230		LIBS=" $ac_lib  $ac_save_LIBS"
14231		cat >conftest.$ac_ext <<_ACEOF
14232#line $LINENO "configure"
14233#include "confdefs.h"
14234#ifdef HAVE_SYS_BSWAP_H
14235#include <sys/bswap.h>
14236#endif
14237#ifdef F77_DUMMY_MAIN
14238#  ifdef __cplusplus
14239     extern "C"
14240#  endif
14241   int F77_DUMMY_MAIN() { return 1; }
14242#endif
14243int
14244main ()
14245{
14246bswap32(0)
14247  ;
14248  return 0;
14249}
14250_ACEOF
14251rm -f conftest.$ac_objext conftest$ac_exeext
14252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14253  (eval $ac_link) 2>&5
14254  ac_status=$?
14255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256  (exit $ac_status); } &&
14257         { ac_try='test -s conftest$ac_exeext'
14258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14259  (eval $ac_try) 2>&5
14260  ac_status=$?
14261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262  (exit $ac_status); }; }; then
14263  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
14264else
14265  echo "$as_me: failed program was:" >&5
14266cat conftest.$ac_ext >&5
14267fi
14268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14269	done
14270	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
14271	LIBS="$ac_save_LIBS"
14272fi
14273
14274fi
14275
14276
14277eval "ac_res=\$ac_cv_funclib_bswap32"
14278
14279if false; then
14280
14281for ac_func in bswap32
14282do
14283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14284echo "$as_me:$LINENO: checking for $ac_func" >&5
14285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14286if eval "test \"\${$as_ac_var+set}\" = set"; then
14287  echo $ECHO_N "(cached) $ECHO_C" >&6
14288else
14289  cat >conftest.$ac_ext <<_ACEOF
14290#line $LINENO "configure"
14291#include "confdefs.h"
14292/* System header to define __stub macros and hopefully few prototypes,
14293    which can conflict with char $ac_func (); below.  */
14294#include <assert.h>
14295/* Override any gcc2 internal prototype to avoid an error.  */
14296#ifdef __cplusplus
14297extern "C"
14298#endif
14299/* We use char because int might match the return type of a gcc2
14300   builtin and then its argument prototype would still apply.  */
14301char $ac_func ();
14302char (*f) ();
14303
14304#ifdef F77_DUMMY_MAIN
14305#  ifdef __cplusplus
14306     extern "C"
14307#  endif
14308   int F77_DUMMY_MAIN() { return 1; }
14309#endif
14310int
14311main ()
14312{
14313/* The GNU C library defines this for functions which it implements
14314    to always fail with ENOSYS.  Some functions are actually named
14315    something starting with __ and the normal name is an alias.  */
14316#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14317choke me
14318#else
14319f = $ac_func;
14320#endif
14321
14322  ;
14323  return 0;
14324}
14325_ACEOF
14326rm -f conftest.$ac_objext conftest$ac_exeext
14327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14328  (eval $ac_link) 2>&5
14329  ac_status=$?
14330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331  (exit $ac_status); } &&
14332         { ac_try='test -s conftest$ac_exeext'
14333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334  (eval $ac_try) 2>&5
14335  ac_status=$?
14336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337  (exit $ac_status); }; }; then
14338  eval "$as_ac_var=yes"
14339else
14340  echo "$as_me: failed program was:" >&5
14341cat conftest.$ac_ext >&5
14342eval "$as_ac_var=no"
14343fi
14344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14345fi
14346echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14347echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14348if test `eval echo '${'$as_ac_var'}'` = yes; then
14349  cat >>confdefs.h <<_ACEOF
14350#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14351_ACEOF
14352
14353fi
14354done
14355
14356fi
14357# bswap32
14358eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14359eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14360eval "LIB_bswap32=$ac_res"
14361
14362case "$ac_res" in
14363	yes)
14364	eval "ac_cv_func_bswap32=yes"
14365	eval "LIB_bswap32="
14366	cat >>confdefs.h <<_ACEOF
14367#define $ac_tr_func 1
14368_ACEOF
14369
14370	echo "$as_me:$LINENO: result: yes" >&5
14371echo "${ECHO_T}yes" >&6
14372	;;
14373	no)
14374	eval "ac_cv_func_bswap32=no"
14375	eval "LIB_bswap32="
14376	echo "$as_me:$LINENO: result: no" >&5
14377echo "${ECHO_T}no" >&6
14378	;;
14379	*)
14380	eval "ac_cv_func_bswap32=yes"
14381	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14382	cat >>confdefs.h <<_ACEOF
14383#define $ac_tr_func 1
14384_ACEOF
14385
14386	cat >>confdefs.h <<_ACEOF
14387#define $ac_tr_lib 1
14388_ACEOF
14389
14390	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14391echo "${ECHO_T}yes, in $ac_res" >&6
14392	;;
14393esac
14394
14395
14396
14397
14398
14399
14400echo "$as_me:$LINENO: checking for pidfile" >&5
14401echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
14402if test "${ac_cv_funclib_pidfile+set}" = set; then
14403  echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405
14406if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
14407	ac_save_LIBS="$LIBS"
14408	for ac_lib in "" util; do
14409		case "$ac_lib" in
14410		"") ;;
14411		yes) ac_lib="" ;;
14412		no) continue ;;
14413		-l*) ;;
14414		*) ac_lib="-l$ac_lib" ;;
14415		esac
14416		LIBS=" $ac_lib  $ac_save_LIBS"
14417		cat >conftest.$ac_ext <<_ACEOF
14418#line $LINENO "configure"
14419#include "confdefs.h"
14420#ifdef HAVE_UTIL_H
14421#include <util.h>
14422#endif
14423#ifdef F77_DUMMY_MAIN
14424#  ifdef __cplusplus
14425     extern "C"
14426#  endif
14427   int F77_DUMMY_MAIN() { return 1; }
14428#endif
14429int
14430main ()
14431{
14432pidfile(0)
14433  ;
14434  return 0;
14435}
14436_ACEOF
14437rm -f conftest.$ac_objext conftest$ac_exeext
14438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14439  (eval $ac_link) 2>&5
14440  ac_status=$?
14441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442  (exit $ac_status); } &&
14443         { ac_try='test -s conftest$ac_exeext'
14444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445  (eval $ac_try) 2>&5
14446  ac_status=$?
14447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448  (exit $ac_status); }; }; then
14449  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
14450else
14451  echo "$as_me: failed program was:" >&5
14452cat conftest.$ac_ext >&5
14453fi
14454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14455	done
14456	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
14457	LIBS="$ac_save_LIBS"
14458fi
14459
14460fi
14461
14462
14463eval "ac_res=\$ac_cv_funclib_pidfile"
14464
14465if false; then
14466
14467for ac_func in pidfile
14468do
14469as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14470echo "$as_me:$LINENO: checking for $ac_func" >&5
14471echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14472if eval "test \"\${$as_ac_var+set}\" = set"; then
14473  echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475  cat >conftest.$ac_ext <<_ACEOF
14476#line $LINENO "configure"
14477#include "confdefs.h"
14478/* System header to define __stub macros and hopefully few prototypes,
14479    which can conflict with char $ac_func (); below.  */
14480#include <assert.h>
14481/* Override any gcc2 internal prototype to avoid an error.  */
14482#ifdef __cplusplus
14483extern "C"
14484#endif
14485/* We use char because int might match the return type of a gcc2
14486   builtin and then its argument prototype would still apply.  */
14487char $ac_func ();
14488char (*f) ();
14489
14490#ifdef F77_DUMMY_MAIN
14491#  ifdef __cplusplus
14492     extern "C"
14493#  endif
14494   int F77_DUMMY_MAIN() { return 1; }
14495#endif
14496int
14497main ()
14498{
14499/* The GNU C library defines this for functions which it implements
14500    to always fail with ENOSYS.  Some functions are actually named
14501    something starting with __ and the normal name is an alias.  */
14502#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503choke me
14504#else
14505f = $ac_func;
14506#endif
14507
14508  ;
14509  return 0;
14510}
14511_ACEOF
14512rm -f conftest.$ac_objext conftest$ac_exeext
14513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14514  (eval $ac_link) 2>&5
14515  ac_status=$?
14516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517  (exit $ac_status); } &&
14518         { ac_try='test -s conftest$ac_exeext'
14519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520  (eval $ac_try) 2>&5
14521  ac_status=$?
14522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523  (exit $ac_status); }; }; then
14524  eval "$as_ac_var=yes"
14525else
14526  echo "$as_me: failed program was:" >&5
14527cat conftest.$ac_ext >&5
14528eval "$as_ac_var=no"
14529fi
14530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14531fi
14532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14534if test `eval echo '${'$as_ac_var'}'` = yes; then
14535  cat >>confdefs.h <<_ACEOF
14536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14537_ACEOF
14538
14539fi
14540done
14541
14542fi
14543# pidfile
14544eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14545eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14546eval "LIB_pidfile=$ac_res"
14547
14548case "$ac_res" in
14549	yes)
14550	eval "ac_cv_func_pidfile=yes"
14551	eval "LIB_pidfile="
14552	cat >>confdefs.h <<_ACEOF
14553#define $ac_tr_func 1
14554_ACEOF
14555
14556	echo "$as_me:$LINENO: result: yes" >&5
14557echo "${ECHO_T}yes" >&6
14558	;;
14559	no)
14560	eval "ac_cv_func_pidfile=no"
14561	eval "LIB_pidfile="
14562	echo "$as_me:$LINENO: result: no" >&5
14563echo "${ECHO_T}no" >&6
14564	;;
14565	*)
14566	eval "ac_cv_func_pidfile=yes"
14567	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14568	cat >>confdefs.h <<_ACEOF
14569#define $ac_tr_func 1
14570_ACEOF
14571
14572	cat >>confdefs.h <<_ACEOF
14573#define $ac_tr_lib 1
14574_ACEOF
14575
14576	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14577echo "${ECHO_T}yes, in $ac_res" >&6
14578	;;
14579esac
14580
14581
14582
14583
14584
14585
14586
14587echo "$as_me:$LINENO: checking for getaddrinfo" >&5
14588echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
14589if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
14590  echo $ECHO_N "(cached) $ECHO_C" >&6
14591else
14592
14593if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
14594	ac_save_LIBS="$LIBS"
14595	for ac_lib in "" ; do
14596		case "$ac_lib" in
14597		"") ;;
14598		yes) ac_lib="" ;;
14599		no) continue ;;
14600		-l*) ;;
14601		*) ac_lib="-l$ac_lib" ;;
14602		esac
14603		LIBS=" $ac_lib  $ac_save_LIBS"
14604		cat >conftest.$ac_ext <<_ACEOF
14605#line $LINENO "configure"
14606#include "confdefs.h"
14607#ifdef HAVE_NETDB_H
14608#include <netdb.h>
14609#endif
14610#ifdef F77_DUMMY_MAIN
14611#  ifdef __cplusplus
14612     extern "C"
14613#  endif
14614   int F77_DUMMY_MAIN() { return 1; }
14615#endif
14616int
14617main ()
14618{
14619getaddrinfo(0,0,0,0)
14620  ;
14621  return 0;
14622}
14623_ACEOF
14624rm -f conftest.$ac_objext conftest$ac_exeext
14625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14626  (eval $ac_link) 2>&5
14627  ac_status=$?
14628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629  (exit $ac_status); } &&
14630         { ac_try='test -s conftest$ac_exeext'
14631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632  (eval $ac_try) 2>&5
14633  ac_status=$?
14634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635  (exit $ac_status); }; }; then
14636  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
14637else
14638  echo "$as_me: failed program was:" >&5
14639cat conftest.$ac_ext >&5
14640fi
14641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14642	done
14643	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
14644	LIBS="$ac_save_LIBS"
14645fi
14646
14647fi
14648
14649
14650eval "ac_res=\$ac_cv_funclib_getaddrinfo"
14651
14652if false; then
14653
14654for ac_func in getaddrinfo
14655do
14656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14657echo "$as_me:$LINENO: checking for $ac_func" >&5
14658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14659if eval "test \"\${$as_ac_var+set}\" = set"; then
14660  echo $ECHO_N "(cached) $ECHO_C" >&6
14661else
14662  cat >conftest.$ac_ext <<_ACEOF
14663#line $LINENO "configure"
14664#include "confdefs.h"
14665/* System header to define __stub macros and hopefully few prototypes,
14666    which can conflict with char $ac_func (); below.  */
14667#include <assert.h>
14668/* Override any gcc2 internal prototype to avoid an error.  */
14669#ifdef __cplusplus
14670extern "C"
14671#endif
14672/* We use char because int might match the return type of a gcc2
14673   builtin and then its argument prototype would still apply.  */
14674char $ac_func ();
14675char (*f) ();
14676
14677#ifdef F77_DUMMY_MAIN
14678#  ifdef __cplusplus
14679     extern "C"
14680#  endif
14681   int F77_DUMMY_MAIN() { return 1; }
14682#endif
14683int
14684main ()
14685{
14686/* The GNU C library defines this for functions which it implements
14687    to always fail with ENOSYS.  Some functions are actually named
14688    something starting with __ and the normal name is an alias.  */
14689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14690choke me
14691#else
14692f = $ac_func;
14693#endif
14694
14695  ;
14696  return 0;
14697}
14698_ACEOF
14699rm -f conftest.$ac_objext conftest$ac_exeext
14700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14701  (eval $ac_link) 2>&5
14702  ac_status=$?
14703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704  (exit $ac_status); } &&
14705         { ac_try='test -s conftest$ac_exeext'
14706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707  (eval $ac_try) 2>&5
14708  ac_status=$?
14709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710  (exit $ac_status); }; }; then
14711  eval "$as_ac_var=yes"
14712else
14713  echo "$as_me: failed program was:" >&5
14714cat conftest.$ac_ext >&5
14715eval "$as_ac_var=no"
14716fi
14717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14718fi
14719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14720echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14721if test `eval echo '${'$as_ac_var'}'` = yes; then
14722  cat >>confdefs.h <<_ACEOF
14723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727done
14728
14729fi
14730# getaddrinfo
14731eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14732eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14733eval "LIB_getaddrinfo=$ac_res"
14734
14735case "$ac_res" in
14736	yes)
14737	eval "ac_cv_func_getaddrinfo=yes"
14738	eval "LIB_getaddrinfo="
14739	cat >>confdefs.h <<_ACEOF
14740#define $ac_tr_func 1
14741_ACEOF
14742
14743	echo "$as_me:$LINENO: result: yes" >&5
14744echo "${ECHO_T}yes" >&6
14745	;;
14746	no)
14747	eval "ac_cv_func_getaddrinfo=no"
14748	eval "LIB_getaddrinfo="
14749	echo "$as_me:$LINENO: result: no" >&5
14750echo "${ECHO_T}no" >&6
14751	;;
14752	*)
14753	eval "ac_cv_func_getaddrinfo=yes"
14754	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14755	cat >>confdefs.h <<_ACEOF
14756#define $ac_tr_func 1
14757_ACEOF
14758
14759	cat >>confdefs.h <<_ACEOF
14760#define $ac_tr_lib 1
14761_ACEOF
14762
14763	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14764echo "${ECHO_T}yes, in $ac_res" >&6
14765	;;
14766esac
14767
14768
14769if test -n "$LIB_getaddrinfo"; then
14770	LIBS="$LIB_getaddrinfo $LIBS"
14771fi
14772
14773if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
14774	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
14775fi
14776
14777
14778
14779
14780
14781
14782echo "$as_me:$LINENO: checking for getnameinfo" >&5
14783echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
14784if test "${ac_cv_funclib_getnameinfo+set}" = set; then
14785  echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787
14788if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
14789	ac_save_LIBS="$LIBS"
14790	for ac_lib in "" ; do
14791		case "$ac_lib" in
14792		"") ;;
14793		yes) ac_lib="" ;;
14794		no) continue ;;
14795		-l*) ;;
14796		*) ac_lib="-l$ac_lib" ;;
14797		esac
14798		LIBS=" $ac_lib  $ac_save_LIBS"
14799		cat >conftest.$ac_ext <<_ACEOF
14800#line $LINENO "configure"
14801#include "confdefs.h"
14802#ifdef HAVE_NETDB_H
14803#include <netdb.h>
14804#endif
14805#ifdef F77_DUMMY_MAIN
14806#  ifdef __cplusplus
14807     extern "C"
14808#  endif
14809   int F77_DUMMY_MAIN() { return 1; }
14810#endif
14811int
14812main ()
14813{
14814getnameinfo(0,0,0,0,0,0,0)
14815  ;
14816  return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext conftest$ac_exeext
14820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14821  (eval $ac_link) 2>&5
14822  ac_status=$?
14823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824  (exit $ac_status); } &&
14825         { ac_try='test -s conftest$ac_exeext'
14826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827  (eval $ac_try) 2>&5
14828  ac_status=$?
14829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830  (exit $ac_status); }; }; then
14831  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
14832else
14833  echo "$as_me: failed program was:" >&5
14834cat conftest.$ac_ext >&5
14835fi
14836rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14837	done
14838	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
14839	LIBS="$ac_save_LIBS"
14840fi
14841
14842fi
14843
14844
14845eval "ac_res=\$ac_cv_funclib_getnameinfo"
14846
14847if false; then
14848
14849for ac_func in getnameinfo
14850do
14851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14852echo "$as_me:$LINENO: checking for $ac_func" >&5
14853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14854if eval "test \"\${$as_ac_var+set}\" = set"; then
14855  echo $ECHO_N "(cached) $ECHO_C" >&6
14856else
14857  cat >conftest.$ac_ext <<_ACEOF
14858#line $LINENO "configure"
14859#include "confdefs.h"
14860/* System header to define __stub macros and hopefully few prototypes,
14861    which can conflict with char $ac_func (); below.  */
14862#include <assert.h>
14863/* Override any gcc2 internal prototype to avoid an error.  */
14864#ifdef __cplusplus
14865extern "C"
14866#endif
14867/* We use char because int might match the return type of a gcc2
14868   builtin and then its argument prototype would still apply.  */
14869char $ac_func ();
14870char (*f) ();
14871
14872#ifdef F77_DUMMY_MAIN
14873#  ifdef __cplusplus
14874     extern "C"
14875#  endif
14876   int F77_DUMMY_MAIN() { return 1; }
14877#endif
14878int
14879main ()
14880{
14881/* The GNU C library defines this for functions which it implements
14882    to always fail with ENOSYS.  Some functions are actually named
14883    something starting with __ and the normal name is an alias.  */
14884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14885choke me
14886#else
14887f = $ac_func;
14888#endif
14889
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894rm -f conftest.$ac_objext conftest$ac_exeext
14895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896  (eval $ac_link) 2>&5
14897  ac_status=$?
14898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899  (exit $ac_status); } &&
14900         { ac_try='test -s conftest$ac_exeext'
14901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902  (eval $ac_try) 2>&5
14903  ac_status=$?
14904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905  (exit $ac_status); }; }; then
14906  eval "$as_ac_var=yes"
14907else
14908  echo "$as_me: failed program was:" >&5
14909cat conftest.$ac_ext >&5
14910eval "$as_ac_var=no"
14911fi
14912rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14913fi
14914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14915echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14916if test `eval echo '${'$as_ac_var'}'` = yes; then
14917  cat >>confdefs.h <<_ACEOF
14918#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14919_ACEOF
14920
14921fi
14922done
14923
14924fi
14925# getnameinfo
14926eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14927eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
14928eval "LIB_getnameinfo=$ac_res"
14929
14930case "$ac_res" in
14931	yes)
14932	eval "ac_cv_func_getnameinfo=yes"
14933	eval "LIB_getnameinfo="
14934	cat >>confdefs.h <<_ACEOF
14935#define $ac_tr_func 1
14936_ACEOF
14937
14938	echo "$as_me:$LINENO: result: yes" >&5
14939echo "${ECHO_T}yes" >&6
14940	;;
14941	no)
14942	eval "ac_cv_func_getnameinfo=no"
14943	eval "LIB_getnameinfo="
14944	echo "$as_me:$LINENO: result: no" >&5
14945echo "${ECHO_T}no" >&6
14946	;;
14947	*)
14948	eval "ac_cv_func_getnameinfo=yes"
14949	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
14950	cat >>confdefs.h <<_ACEOF
14951#define $ac_tr_func 1
14952_ACEOF
14953
14954	cat >>confdefs.h <<_ACEOF
14955#define $ac_tr_lib 1
14956_ACEOF
14957
14958	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
14959echo "${ECHO_T}yes, in $ac_res" >&6
14960	;;
14961esac
14962
14963
14964if test -n "$LIB_getnameinfo"; then
14965	LIBS="$LIB_getnameinfo $LIBS"
14966fi
14967
14968if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
14969	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
14970fi
14971
14972
14973
14974
14975
14976
14977echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
14978echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
14979if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
14980  echo $ECHO_N "(cached) $ECHO_C" >&6
14981else
14982
14983if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
14984	ac_save_LIBS="$LIBS"
14985	for ac_lib in "" ; do
14986		case "$ac_lib" in
14987		"") ;;
14988		yes) ac_lib="" ;;
14989		no) continue ;;
14990		-l*) ;;
14991		*) ac_lib="-l$ac_lib" ;;
14992		esac
14993		LIBS=" $ac_lib  $ac_save_LIBS"
14994		cat >conftest.$ac_ext <<_ACEOF
14995#line $LINENO "configure"
14996#include "confdefs.h"
14997#ifdef HAVE_NETDB_H
14998#include <netdb.h>
14999#endif
15000#ifdef F77_DUMMY_MAIN
15001#  ifdef __cplusplus
15002     extern "C"
15003#  endif
15004   int F77_DUMMY_MAIN() { return 1; }
15005#endif
15006int
15007main ()
15008{
15009freeaddrinfo(0)
15010  ;
15011  return 0;
15012}
15013_ACEOF
15014rm -f conftest.$ac_objext conftest$ac_exeext
15015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016  (eval $ac_link) 2>&5
15017  ac_status=$?
15018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019  (exit $ac_status); } &&
15020         { ac_try='test -s conftest$ac_exeext'
15021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022  (eval $ac_try) 2>&5
15023  ac_status=$?
15024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025  (exit $ac_status); }; }; then
15026  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
15027else
15028  echo "$as_me: failed program was:" >&5
15029cat conftest.$ac_ext >&5
15030fi
15031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15032	done
15033	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
15034	LIBS="$ac_save_LIBS"
15035fi
15036
15037fi
15038
15039
15040eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
15041
15042if false; then
15043
15044for ac_func in freeaddrinfo
15045do
15046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15047echo "$as_me:$LINENO: checking for $ac_func" >&5
15048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15049if eval "test \"\${$as_ac_var+set}\" = set"; then
15050  echo $ECHO_N "(cached) $ECHO_C" >&6
15051else
15052  cat >conftest.$ac_ext <<_ACEOF
15053#line $LINENO "configure"
15054#include "confdefs.h"
15055/* System header to define __stub macros and hopefully few prototypes,
15056    which can conflict with char $ac_func (); below.  */
15057#include <assert.h>
15058/* Override any gcc2 internal prototype to avoid an error.  */
15059#ifdef __cplusplus
15060extern "C"
15061#endif
15062/* We use char because int might match the return type of a gcc2
15063   builtin and then its argument prototype would still apply.  */
15064char $ac_func ();
15065char (*f) ();
15066
15067#ifdef F77_DUMMY_MAIN
15068#  ifdef __cplusplus
15069     extern "C"
15070#  endif
15071   int F77_DUMMY_MAIN() { return 1; }
15072#endif
15073int
15074main ()
15075{
15076/* The GNU C library defines this for functions which it implements
15077    to always fail with ENOSYS.  Some functions are actually named
15078    something starting with __ and the normal name is an alias.  */
15079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15080choke me
15081#else
15082f = $ac_func;
15083#endif
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089rm -f conftest.$ac_objext conftest$ac_exeext
15090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15091  (eval $ac_link) 2>&5
15092  ac_status=$?
15093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094  (exit $ac_status); } &&
15095         { ac_try='test -s conftest$ac_exeext'
15096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097  (eval $ac_try) 2>&5
15098  ac_status=$?
15099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100  (exit $ac_status); }; }; then
15101  eval "$as_ac_var=yes"
15102else
15103  echo "$as_me: failed program was:" >&5
15104cat conftest.$ac_ext >&5
15105eval "$as_ac_var=no"
15106fi
15107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15108fi
15109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15110echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15111if test `eval echo '${'$as_ac_var'}'` = yes; then
15112  cat >>confdefs.h <<_ACEOF
15113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15114_ACEOF
15115
15116fi
15117done
15118
15119fi
15120# freeaddrinfo
15121eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15122eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15123eval "LIB_freeaddrinfo=$ac_res"
15124
15125case "$ac_res" in
15126	yes)
15127	eval "ac_cv_func_freeaddrinfo=yes"
15128	eval "LIB_freeaddrinfo="
15129	cat >>confdefs.h <<_ACEOF
15130#define $ac_tr_func 1
15131_ACEOF
15132
15133	echo "$as_me:$LINENO: result: yes" >&5
15134echo "${ECHO_T}yes" >&6
15135	;;
15136	no)
15137	eval "ac_cv_func_freeaddrinfo=no"
15138	eval "LIB_freeaddrinfo="
15139	echo "$as_me:$LINENO: result: no" >&5
15140echo "${ECHO_T}no" >&6
15141	;;
15142	*)
15143	eval "ac_cv_func_freeaddrinfo=yes"
15144	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15145	cat >>confdefs.h <<_ACEOF
15146#define $ac_tr_func 1
15147_ACEOF
15148
15149	cat >>confdefs.h <<_ACEOF
15150#define $ac_tr_lib 1
15151_ACEOF
15152
15153	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15154echo "${ECHO_T}yes, in $ac_res" >&6
15155	;;
15156esac
15157
15158
15159if test -n "$LIB_freeaddrinfo"; then
15160	LIBS="$LIB_freeaddrinfo $LIBS"
15161fi
15162
15163if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
15164	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
15165fi
15166
15167
15168
15169
15170
15171
15172echo "$as_me:$LINENO: checking for gai_strerror" >&5
15173echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
15174if test "${ac_cv_funclib_gai_strerror+set}" = set; then
15175  echo $ECHO_N "(cached) $ECHO_C" >&6
15176else
15177
15178if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
15179	ac_save_LIBS="$LIBS"
15180	for ac_lib in "" ; do
15181		case "$ac_lib" in
15182		"") ;;
15183		yes) ac_lib="" ;;
15184		no) continue ;;
15185		-l*) ;;
15186		*) ac_lib="-l$ac_lib" ;;
15187		esac
15188		LIBS=" $ac_lib  $ac_save_LIBS"
15189		cat >conftest.$ac_ext <<_ACEOF
15190#line $LINENO "configure"
15191#include "confdefs.h"
15192#ifdef HAVE_NETDB_H
15193#include <netdb.h>
15194#endif
15195#ifdef F77_DUMMY_MAIN
15196#  ifdef __cplusplus
15197     extern "C"
15198#  endif
15199   int F77_DUMMY_MAIN() { return 1; }
15200#endif
15201int
15202main ()
15203{
15204gai_strerror(0)
15205  ;
15206  return 0;
15207}
15208_ACEOF
15209rm -f conftest.$ac_objext conftest$ac_exeext
15210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15211  (eval $ac_link) 2>&5
15212  ac_status=$?
15213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214  (exit $ac_status); } &&
15215         { ac_try='test -s conftest$ac_exeext'
15216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217  (eval $ac_try) 2>&5
15218  ac_status=$?
15219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220  (exit $ac_status); }; }; then
15221  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
15222else
15223  echo "$as_me: failed program was:" >&5
15224cat conftest.$ac_ext >&5
15225fi
15226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15227	done
15228	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
15229	LIBS="$ac_save_LIBS"
15230fi
15231
15232fi
15233
15234
15235eval "ac_res=\$ac_cv_funclib_gai_strerror"
15236
15237if false; then
15238
15239for ac_func in gai_strerror
15240do
15241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15242echo "$as_me:$LINENO: checking for $ac_func" >&5
15243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15244if eval "test \"\${$as_ac_var+set}\" = set"; then
15245  echo $ECHO_N "(cached) $ECHO_C" >&6
15246else
15247  cat >conftest.$ac_ext <<_ACEOF
15248#line $LINENO "configure"
15249#include "confdefs.h"
15250/* System header to define __stub macros and hopefully few prototypes,
15251    which can conflict with char $ac_func (); below.  */
15252#include <assert.h>
15253/* Override any gcc2 internal prototype to avoid an error.  */
15254#ifdef __cplusplus
15255extern "C"
15256#endif
15257/* We use char because int might match the return type of a gcc2
15258   builtin and then its argument prototype would still apply.  */
15259char $ac_func ();
15260char (*f) ();
15261
15262#ifdef F77_DUMMY_MAIN
15263#  ifdef __cplusplus
15264     extern "C"
15265#  endif
15266   int F77_DUMMY_MAIN() { return 1; }
15267#endif
15268int
15269main ()
15270{
15271/* The GNU C library defines this for functions which it implements
15272    to always fail with ENOSYS.  Some functions are actually named
15273    something starting with __ and the normal name is an alias.  */
15274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15275choke me
15276#else
15277f = $ac_func;
15278#endif
15279
15280  ;
15281  return 0;
15282}
15283_ACEOF
15284rm -f conftest.$ac_objext conftest$ac_exeext
15285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15286  (eval $ac_link) 2>&5
15287  ac_status=$?
15288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289  (exit $ac_status); } &&
15290         { ac_try='test -s conftest$ac_exeext'
15291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292  (eval $ac_try) 2>&5
15293  ac_status=$?
15294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295  (exit $ac_status); }; }; then
15296  eval "$as_ac_var=yes"
15297else
15298  echo "$as_me: failed program was:" >&5
15299cat conftest.$ac_ext >&5
15300eval "$as_ac_var=no"
15301fi
15302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15303fi
15304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15306if test `eval echo '${'$as_ac_var'}'` = yes; then
15307  cat >>confdefs.h <<_ACEOF
15308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15309_ACEOF
15310
15311fi
15312done
15313
15314fi
15315# gai_strerror
15316eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15317eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
15318eval "LIB_gai_strerror=$ac_res"
15319
15320case "$ac_res" in
15321	yes)
15322	eval "ac_cv_func_gai_strerror=yes"
15323	eval "LIB_gai_strerror="
15324	cat >>confdefs.h <<_ACEOF
15325#define $ac_tr_func 1
15326_ACEOF
15327
15328	echo "$as_me:$LINENO: result: yes" >&5
15329echo "${ECHO_T}yes" >&6
15330	;;
15331	no)
15332	eval "ac_cv_func_gai_strerror=no"
15333	eval "LIB_gai_strerror="
15334	echo "$as_me:$LINENO: result: no" >&5
15335echo "${ECHO_T}no" >&6
15336	;;
15337	*)
15338	eval "ac_cv_func_gai_strerror=yes"
15339	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
15340	cat >>confdefs.h <<_ACEOF
15341#define $ac_tr_func 1
15342_ACEOF
15343
15344	cat >>confdefs.h <<_ACEOF
15345#define $ac_tr_lib 1
15346_ACEOF
15347
15348	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
15349echo "${ECHO_T}yes, in $ac_res" >&6
15350	;;
15351esac
15352
15353
15354if test -n "$LIB_gai_strerror"; then
15355	LIBS="$LIB_gai_strerror $LIBS"
15356fi
15357
15358if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
15359	LIBOBJS="$LIBOBJS gai_strerror.$ac_objext"
15360fi
15361
15362
15363echo "$as_me:$LINENO: checking for chown" >&5
15364echo $ECHO_N "checking for chown... $ECHO_C" >&6
15365if test "${ac_cv_func_chown+set}" = set; then
15366  echo $ECHO_N "(cached) $ECHO_C" >&6
15367else
15368  cat >conftest.$ac_ext <<_ACEOF
15369#line $LINENO "configure"
15370#include "confdefs.h"
15371/* System header to define __stub macros and hopefully few prototypes,
15372    which can conflict with char chown (); below.  */
15373#include <assert.h>
15374/* Override any gcc2 internal prototype to avoid an error.  */
15375#ifdef __cplusplus
15376extern "C"
15377#endif
15378/* We use char because int might match the return type of a gcc2
15379   builtin and then its argument prototype would still apply.  */
15380char chown ();
15381char (*f) ();
15382
15383#ifdef F77_DUMMY_MAIN
15384#  ifdef __cplusplus
15385     extern "C"
15386#  endif
15387   int F77_DUMMY_MAIN() { return 1; }
15388#endif
15389int
15390main ()
15391{
15392/* The GNU C library defines this for functions which it implements
15393    to always fail with ENOSYS.  Some functions are actually named
15394    something starting with __ and the normal name is an alias.  */
15395#if defined (__stub_chown) || defined (__stub___chown)
15396choke me
15397#else
15398f = chown;
15399#endif
15400
15401  ;
15402  return 0;
15403}
15404_ACEOF
15405rm -f conftest.$ac_objext conftest$ac_exeext
15406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15407  (eval $ac_link) 2>&5
15408  ac_status=$?
15409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410  (exit $ac_status); } &&
15411         { ac_try='test -s conftest$ac_exeext'
15412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413  (eval $ac_try) 2>&5
15414  ac_status=$?
15415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416  (exit $ac_status); }; }; then
15417  ac_cv_func_chown=yes
15418else
15419  echo "$as_me: failed program was:" >&5
15420cat conftest.$ac_ext >&5
15421ac_cv_func_chown=no
15422fi
15423rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15424fi
15425echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
15426echo "${ECHO_T}$ac_cv_func_chown" >&6
15427if test $ac_cv_func_chown = yes; then
15428
15429cat >>confdefs.h <<_ACEOF
15430#define HAVE_CHOWN 1
15431_ACEOF
15432
15433else
15434  LIBOBJS="$LIBOBJS chown.$ac_objext"
15435fi
15436echo "$as_me:$LINENO: checking for copyhostent" >&5
15437echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
15438if test "${ac_cv_func_copyhostent+set}" = set; then
15439  echo $ECHO_N "(cached) $ECHO_C" >&6
15440else
15441  cat >conftest.$ac_ext <<_ACEOF
15442#line $LINENO "configure"
15443#include "confdefs.h"
15444/* System header to define __stub macros and hopefully few prototypes,
15445    which can conflict with char copyhostent (); below.  */
15446#include <assert.h>
15447/* Override any gcc2 internal prototype to avoid an error.  */
15448#ifdef __cplusplus
15449extern "C"
15450#endif
15451/* We use char because int might match the return type of a gcc2
15452   builtin and then its argument prototype would still apply.  */
15453char copyhostent ();
15454char (*f) ();
15455
15456#ifdef F77_DUMMY_MAIN
15457#  ifdef __cplusplus
15458     extern "C"
15459#  endif
15460   int F77_DUMMY_MAIN() { return 1; }
15461#endif
15462int
15463main ()
15464{
15465/* The GNU C library defines this for functions which it implements
15466    to always fail with ENOSYS.  Some functions are actually named
15467    something starting with __ and the normal name is an alias.  */
15468#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
15469choke me
15470#else
15471f = copyhostent;
15472#endif
15473
15474  ;
15475  return 0;
15476}
15477_ACEOF
15478rm -f conftest.$ac_objext conftest$ac_exeext
15479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15480  (eval $ac_link) 2>&5
15481  ac_status=$?
15482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483  (exit $ac_status); } &&
15484         { ac_try='test -s conftest$ac_exeext'
15485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15486  (eval $ac_try) 2>&5
15487  ac_status=$?
15488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489  (exit $ac_status); }; }; then
15490  ac_cv_func_copyhostent=yes
15491else
15492  echo "$as_me: failed program was:" >&5
15493cat conftest.$ac_ext >&5
15494ac_cv_func_copyhostent=no
15495fi
15496rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15497fi
15498echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
15499echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
15500if test $ac_cv_func_copyhostent = yes; then
15501
15502cat >>confdefs.h <<_ACEOF
15503#define HAVE_COPYHOSTENT 1
15504_ACEOF
15505
15506else
15507  LIBOBJS="$LIBOBJS copyhostent.$ac_objext"
15508fi
15509echo "$as_me:$LINENO: checking for daemon" >&5
15510echo $ECHO_N "checking for daemon... $ECHO_C" >&6
15511if test "${ac_cv_func_daemon+set}" = set; then
15512  echo $ECHO_N "(cached) $ECHO_C" >&6
15513else
15514  cat >conftest.$ac_ext <<_ACEOF
15515#line $LINENO "configure"
15516#include "confdefs.h"
15517/* System header to define __stub macros and hopefully few prototypes,
15518    which can conflict with char daemon (); below.  */
15519#include <assert.h>
15520/* Override any gcc2 internal prototype to avoid an error.  */
15521#ifdef __cplusplus
15522extern "C"
15523#endif
15524/* We use char because int might match the return type of a gcc2
15525   builtin and then its argument prototype would still apply.  */
15526char daemon ();
15527char (*f) ();
15528
15529#ifdef F77_DUMMY_MAIN
15530#  ifdef __cplusplus
15531     extern "C"
15532#  endif
15533   int F77_DUMMY_MAIN() { return 1; }
15534#endif
15535int
15536main ()
15537{
15538/* The GNU C library defines this for functions which it implements
15539    to always fail with ENOSYS.  Some functions are actually named
15540    something starting with __ and the normal name is an alias.  */
15541#if defined (__stub_daemon) || defined (__stub___daemon)
15542choke me
15543#else
15544f = daemon;
15545#endif
15546
15547  ;
15548  return 0;
15549}
15550_ACEOF
15551rm -f conftest.$ac_objext conftest$ac_exeext
15552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15553  (eval $ac_link) 2>&5
15554  ac_status=$?
15555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556  (exit $ac_status); } &&
15557         { ac_try='test -s conftest$ac_exeext'
15558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559  (eval $ac_try) 2>&5
15560  ac_status=$?
15561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562  (exit $ac_status); }; }; then
15563  ac_cv_func_daemon=yes
15564else
15565  echo "$as_me: failed program was:" >&5
15566cat conftest.$ac_ext >&5
15567ac_cv_func_daemon=no
15568fi
15569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15570fi
15571echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
15572echo "${ECHO_T}$ac_cv_func_daemon" >&6
15573if test $ac_cv_func_daemon = yes; then
15574
15575cat >>confdefs.h <<_ACEOF
15576#define HAVE_DAEMON 1
15577_ACEOF
15578
15579else
15580  LIBOBJS="$LIBOBJS daemon.$ac_objext"
15581fi
15582echo "$as_me:$LINENO: checking for ecalloc" >&5
15583echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
15584if test "${ac_cv_func_ecalloc+set}" = set; then
15585  echo $ECHO_N "(cached) $ECHO_C" >&6
15586else
15587  cat >conftest.$ac_ext <<_ACEOF
15588#line $LINENO "configure"
15589#include "confdefs.h"
15590/* System header to define __stub macros and hopefully few prototypes,
15591    which can conflict with char ecalloc (); below.  */
15592#include <assert.h>
15593/* Override any gcc2 internal prototype to avoid an error.  */
15594#ifdef __cplusplus
15595extern "C"
15596#endif
15597/* We use char because int might match the return type of a gcc2
15598   builtin and then its argument prototype would still apply.  */
15599char ecalloc ();
15600char (*f) ();
15601
15602#ifdef F77_DUMMY_MAIN
15603#  ifdef __cplusplus
15604     extern "C"
15605#  endif
15606   int F77_DUMMY_MAIN() { return 1; }
15607#endif
15608int
15609main ()
15610{
15611/* The GNU C library defines this for functions which it implements
15612    to always fail with ENOSYS.  Some functions are actually named
15613    something starting with __ and the normal name is an alias.  */
15614#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
15615choke me
15616#else
15617f = ecalloc;
15618#endif
15619
15620  ;
15621  return 0;
15622}
15623_ACEOF
15624rm -f conftest.$ac_objext conftest$ac_exeext
15625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15626  (eval $ac_link) 2>&5
15627  ac_status=$?
15628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629  (exit $ac_status); } &&
15630         { ac_try='test -s conftest$ac_exeext'
15631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632  (eval $ac_try) 2>&5
15633  ac_status=$?
15634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635  (exit $ac_status); }; }; then
15636  ac_cv_func_ecalloc=yes
15637else
15638  echo "$as_me: failed program was:" >&5
15639cat conftest.$ac_ext >&5
15640ac_cv_func_ecalloc=no
15641fi
15642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15643fi
15644echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
15645echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
15646if test $ac_cv_func_ecalloc = yes; then
15647
15648cat >>confdefs.h <<_ACEOF
15649#define HAVE_ECALLOC 1
15650_ACEOF
15651
15652else
15653  LIBOBJS="$LIBOBJS ecalloc.$ac_objext"
15654fi
15655echo "$as_me:$LINENO: checking for emalloc" >&5
15656echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
15657if test "${ac_cv_func_emalloc+set}" = set; then
15658  echo $ECHO_N "(cached) $ECHO_C" >&6
15659else
15660  cat >conftest.$ac_ext <<_ACEOF
15661#line $LINENO "configure"
15662#include "confdefs.h"
15663/* System header to define __stub macros and hopefully few prototypes,
15664    which can conflict with char emalloc (); below.  */
15665#include <assert.h>
15666/* Override any gcc2 internal prototype to avoid an error.  */
15667#ifdef __cplusplus
15668extern "C"
15669#endif
15670/* We use char because int might match the return type of a gcc2
15671   builtin and then its argument prototype would still apply.  */
15672char emalloc ();
15673char (*f) ();
15674
15675#ifdef F77_DUMMY_MAIN
15676#  ifdef __cplusplus
15677     extern "C"
15678#  endif
15679   int F77_DUMMY_MAIN() { return 1; }
15680#endif
15681int
15682main ()
15683{
15684/* The GNU C library defines this for functions which it implements
15685    to always fail with ENOSYS.  Some functions are actually named
15686    something starting with __ and the normal name is an alias.  */
15687#if defined (__stub_emalloc) || defined (__stub___emalloc)
15688choke me
15689#else
15690f = emalloc;
15691#endif
15692
15693  ;
15694  return 0;
15695}
15696_ACEOF
15697rm -f conftest.$ac_objext conftest$ac_exeext
15698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15699  (eval $ac_link) 2>&5
15700  ac_status=$?
15701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702  (exit $ac_status); } &&
15703         { ac_try='test -s conftest$ac_exeext'
15704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705  (eval $ac_try) 2>&5
15706  ac_status=$?
15707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708  (exit $ac_status); }; }; then
15709  ac_cv_func_emalloc=yes
15710else
15711  echo "$as_me: failed program was:" >&5
15712cat conftest.$ac_ext >&5
15713ac_cv_func_emalloc=no
15714fi
15715rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15716fi
15717echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
15718echo "${ECHO_T}$ac_cv_func_emalloc" >&6
15719if test $ac_cv_func_emalloc = yes; then
15720
15721cat >>confdefs.h <<_ACEOF
15722#define HAVE_EMALLOC 1
15723_ACEOF
15724
15725else
15726  LIBOBJS="$LIBOBJS emalloc.$ac_objext"
15727fi
15728echo "$as_me:$LINENO: checking for erealloc" >&5
15729echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
15730if test "${ac_cv_func_erealloc+set}" = set; then
15731  echo $ECHO_N "(cached) $ECHO_C" >&6
15732else
15733  cat >conftest.$ac_ext <<_ACEOF
15734#line $LINENO "configure"
15735#include "confdefs.h"
15736/* System header to define __stub macros and hopefully few prototypes,
15737    which can conflict with char erealloc (); below.  */
15738#include <assert.h>
15739/* Override any gcc2 internal prototype to avoid an error.  */
15740#ifdef __cplusplus
15741extern "C"
15742#endif
15743/* We use char because int might match the return type of a gcc2
15744   builtin and then its argument prototype would still apply.  */
15745char erealloc ();
15746char (*f) ();
15747
15748#ifdef F77_DUMMY_MAIN
15749#  ifdef __cplusplus
15750     extern "C"
15751#  endif
15752   int F77_DUMMY_MAIN() { return 1; }
15753#endif
15754int
15755main ()
15756{
15757/* The GNU C library defines this for functions which it implements
15758    to always fail with ENOSYS.  Some functions are actually named
15759    something starting with __ and the normal name is an alias.  */
15760#if defined (__stub_erealloc) || defined (__stub___erealloc)
15761choke me
15762#else
15763f = erealloc;
15764#endif
15765
15766  ;
15767  return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext conftest$ac_exeext
15771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15772  (eval $ac_link) 2>&5
15773  ac_status=$?
15774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775  (exit $ac_status); } &&
15776         { ac_try='test -s conftest$ac_exeext'
15777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778  (eval $ac_try) 2>&5
15779  ac_status=$?
15780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781  (exit $ac_status); }; }; then
15782  ac_cv_func_erealloc=yes
15783else
15784  echo "$as_me: failed program was:" >&5
15785cat conftest.$ac_ext >&5
15786ac_cv_func_erealloc=no
15787fi
15788rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15789fi
15790echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
15791echo "${ECHO_T}$ac_cv_func_erealloc" >&6
15792if test $ac_cv_func_erealloc = yes; then
15793
15794cat >>confdefs.h <<_ACEOF
15795#define HAVE_EREALLOC 1
15796_ACEOF
15797
15798else
15799  LIBOBJS="$LIBOBJS erealloc.$ac_objext"
15800fi
15801echo "$as_me:$LINENO: checking for estrdup" >&5
15802echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
15803if test "${ac_cv_func_estrdup+set}" = set; then
15804  echo $ECHO_N "(cached) $ECHO_C" >&6
15805else
15806  cat >conftest.$ac_ext <<_ACEOF
15807#line $LINENO "configure"
15808#include "confdefs.h"
15809/* System header to define __stub macros and hopefully few prototypes,
15810    which can conflict with char estrdup (); below.  */
15811#include <assert.h>
15812/* Override any gcc2 internal prototype to avoid an error.  */
15813#ifdef __cplusplus
15814extern "C"
15815#endif
15816/* We use char because int might match the return type of a gcc2
15817   builtin and then its argument prototype would still apply.  */
15818char estrdup ();
15819char (*f) ();
15820
15821#ifdef F77_DUMMY_MAIN
15822#  ifdef __cplusplus
15823     extern "C"
15824#  endif
15825   int F77_DUMMY_MAIN() { return 1; }
15826#endif
15827int
15828main ()
15829{
15830/* The GNU C library defines this for functions which it implements
15831    to always fail with ENOSYS.  Some functions are actually named
15832    something starting with __ and the normal name is an alias.  */
15833#if defined (__stub_estrdup) || defined (__stub___estrdup)
15834choke me
15835#else
15836f = estrdup;
15837#endif
15838
15839  ;
15840  return 0;
15841}
15842_ACEOF
15843rm -f conftest.$ac_objext conftest$ac_exeext
15844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15845  (eval $ac_link) 2>&5
15846  ac_status=$?
15847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848  (exit $ac_status); } &&
15849         { ac_try='test -s conftest$ac_exeext'
15850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851  (eval $ac_try) 2>&5
15852  ac_status=$?
15853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854  (exit $ac_status); }; }; then
15855  ac_cv_func_estrdup=yes
15856else
15857  echo "$as_me: failed program was:" >&5
15858cat conftest.$ac_ext >&5
15859ac_cv_func_estrdup=no
15860fi
15861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15862fi
15863echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
15864echo "${ECHO_T}$ac_cv_func_estrdup" >&6
15865if test $ac_cv_func_estrdup = yes; then
15866
15867cat >>confdefs.h <<_ACEOF
15868#define HAVE_ESTRDUP 1
15869_ACEOF
15870
15871else
15872  LIBOBJS="$LIBOBJS estrdup.$ac_objext"
15873fi
15874echo "$as_me:$LINENO: checking for err" >&5
15875echo $ECHO_N "checking for err... $ECHO_C" >&6
15876if test "${ac_cv_func_err+set}" = set; then
15877  echo $ECHO_N "(cached) $ECHO_C" >&6
15878else
15879  cat >conftest.$ac_ext <<_ACEOF
15880#line $LINENO "configure"
15881#include "confdefs.h"
15882/* System header to define __stub macros and hopefully few prototypes,
15883    which can conflict with char err (); below.  */
15884#include <assert.h>
15885/* Override any gcc2 internal prototype to avoid an error.  */
15886#ifdef __cplusplus
15887extern "C"
15888#endif
15889/* We use char because int might match the return type of a gcc2
15890   builtin and then its argument prototype would still apply.  */
15891char err ();
15892char (*f) ();
15893
15894#ifdef F77_DUMMY_MAIN
15895#  ifdef __cplusplus
15896     extern "C"
15897#  endif
15898   int F77_DUMMY_MAIN() { return 1; }
15899#endif
15900int
15901main ()
15902{
15903/* The GNU C library defines this for functions which it implements
15904    to always fail with ENOSYS.  Some functions are actually named
15905    something starting with __ and the normal name is an alias.  */
15906#if defined (__stub_err) || defined (__stub___err)
15907choke me
15908#else
15909f = err;
15910#endif
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916rm -f conftest.$ac_objext conftest$ac_exeext
15917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15918  (eval $ac_link) 2>&5
15919  ac_status=$?
15920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921  (exit $ac_status); } &&
15922         { ac_try='test -s conftest$ac_exeext'
15923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924  (eval $ac_try) 2>&5
15925  ac_status=$?
15926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927  (exit $ac_status); }; }; then
15928  ac_cv_func_err=yes
15929else
15930  echo "$as_me: failed program was:" >&5
15931cat conftest.$ac_ext >&5
15932ac_cv_func_err=no
15933fi
15934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15935fi
15936echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
15937echo "${ECHO_T}$ac_cv_func_err" >&6
15938if test $ac_cv_func_err = yes; then
15939
15940cat >>confdefs.h <<_ACEOF
15941#define HAVE_ERR 1
15942_ACEOF
15943
15944else
15945  LIBOBJS="$LIBOBJS err.$ac_objext"
15946fi
15947echo "$as_me:$LINENO: checking for errx" >&5
15948echo $ECHO_N "checking for errx... $ECHO_C" >&6
15949if test "${ac_cv_func_errx+set}" = set; then
15950  echo $ECHO_N "(cached) $ECHO_C" >&6
15951else
15952  cat >conftest.$ac_ext <<_ACEOF
15953#line $LINENO "configure"
15954#include "confdefs.h"
15955/* System header to define __stub macros and hopefully few prototypes,
15956    which can conflict with char errx (); below.  */
15957#include <assert.h>
15958/* Override any gcc2 internal prototype to avoid an error.  */
15959#ifdef __cplusplus
15960extern "C"
15961#endif
15962/* We use char because int might match the return type of a gcc2
15963   builtin and then its argument prototype would still apply.  */
15964char errx ();
15965char (*f) ();
15966
15967#ifdef F77_DUMMY_MAIN
15968#  ifdef __cplusplus
15969     extern "C"
15970#  endif
15971   int F77_DUMMY_MAIN() { return 1; }
15972#endif
15973int
15974main ()
15975{
15976/* The GNU C library defines this for functions which it implements
15977    to always fail with ENOSYS.  Some functions are actually named
15978    something starting with __ and the normal name is an alias.  */
15979#if defined (__stub_errx) || defined (__stub___errx)
15980choke me
15981#else
15982f = errx;
15983#endif
15984
15985  ;
15986  return 0;
15987}
15988_ACEOF
15989rm -f conftest.$ac_objext conftest$ac_exeext
15990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991  (eval $ac_link) 2>&5
15992  ac_status=$?
15993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994  (exit $ac_status); } &&
15995         { ac_try='test -s conftest$ac_exeext'
15996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997  (eval $ac_try) 2>&5
15998  ac_status=$?
15999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000  (exit $ac_status); }; }; then
16001  ac_cv_func_errx=yes
16002else
16003  echo "$as_me: failed program was:" >&5
16004cat conftest.$ac_ext >&5
16005ac_cv_func_errx=no
16006fi
16007rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008fi
16009echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
16010echo "${ECHO_T}$ac_cv_func_errx" >&6
16011if test $ac_cv_func_errx = yes; then
16012
16013cat >>confdefs.h <<_ACEOF
16014#define HAVE_ERRX 1
16015_ACEOF
16016
16017else
16018  LIBOBJS="$LIBOBJS errx.$ac_objext"
16019fi
16020echo "$as_me:$LINENO: checking for fchown" >&5
16021echo $ECHO_N "checking for fchown... $ECHO_C" >&6
16022if test "${ac_cv_func_fchown+set}" = set; then
16023  echo $ECHO_N "(cached) $ECHO_C" >&6
16024else
16025  cat >conftest.$ac_ext <<_ACEOF
16026#line $LINENO "configure"
16027#include "confdefs.h"
16028/* System header to define __stub macros and hopefully few prototypes,
16029    which can conflict with char fchown (); below.  */
16030#include <assert.h>
16031/* Override any gcc2 internal prototype to avoid an error.  */
16032#ifdef __cplusplus
16033extern "C"
16034#endif
16035/* We use char because int might match the return type of a gcc2
16036   builtin and then its argument prototype would still apply.  */
16037char fchown ();
16038char (*f) ();
16039
16040#ifdef F77_DUMMY_MAIN
16041#  ifdef __cplusplus
16042     extern "C"
16043#  endif
16044   int F77_DUMMY_MAIN() { return 1; }
16045#endif
16046int
16047main ()
16048{
16049/* The GNU C library defines this for functions which it implements
16050    to always fail with ENOSYS.  Some functions are actually named
16051    something starting with __ and the normal name is an alias.  */
16052#if defined (__stub_fchown) || defined (__stub___fchown)
16053choke me
16054#else
16055f = fchown;
16056#endif
16057
16058  ;
16059  return 0;
16060}
16061_ACEOF
16062rm -f conftest.$ac_objext conftest$ac_exeext
16063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16064  (eval $ac_link) 2>&5
16065  ac_status=$?
16066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067  (exit $ac_status); } &&
16068         { ac_try='test -s conftest$ac_exeext'
16069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070  (eval $ac_try) 2>&5
16071  ac_status=$?
16072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073  (exit $ac_status); }; }; then
16074  ac_cv_func_fchown=yes
16075else
16076  echo "$as_me: failed program was:" >&5
16077cat conftest.$ac_ext >&5
16078ac_cv_func_fchown=no
16079fi
16080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16081fi
16082echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
16083echo "${ECHO_T}$ac_cv_func_fchown" >&6
16084if test $ac_cv_func_fchown = yes; then
16085
16086cat >>confdefs.h <<_ACEOF
16087#define HAVE_FCHOWN 1
16088_ACEOF
16089
16090else
16091  LIBOBJS="$LIBOBJS fchown.$ac_objext"
16092fi
16093echo "$as_me:$LINENO: checking for flock" >&5
16094echo $ECHO_N "checking for flock... $ECHO_C" >&6
16095if test "${ac_cv_func_flock+set}" = set; then
16096  echo $ECHO_N "(cached) $ECHO_C" >&6
16097else
16098  cat >conftest.$ac_ext <<_ACEOF
16099#line $LINENO "configure"
16100#include "confdefs.h"
16101/* System header to define __stub macros and hopefully few prototypes,
16102    which can conflict with char flock (); below.  */
16103#include <assert.h>
16104/* Override any gcc2 internal prototype to avoid an error.  */
16105#ifdef __cplusplus
16106extern "C"
16107#endif
16108/* We use char because int might match the return type of a gcc2
16109   builtin and then its argument prototype would still apply.  */
16110char flock ();
16111char (*f) ();
16112
16113#ifdef F77_DUMMY_MAIN
16114#  ifdef __cplusplus
16115     extern "C"
16116#  endif
16117   int F77_DUMMY_MAIN() { return 1; }
16118#endif
16119int
16120main ()
16121{
16122/* The GNU C library defines this for functions which it implements
16123    to always fail with ENOSYS.  Some functions are actually named
16124    something starting with __ and the normal name is an alias.  */
16125#if defined (__stub_flock) || defined (__stub___flock)
16126choke me
16127#else
16128f = flock;
16129#endif
16130
16131  ;
16132  return 0;
16133}
16134_ACEOF
16135rm -f conftest.$ac_objext conftest$ac_exeext
16136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137  (eval $ac_link) 2>&5
16138  ac_status=$?
16139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140  (exit $ac_status); } &&
16141         { ac_try='test -s conftest$ac_exeext'
16142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16143  (eval $ac_try) 2>&5
16144  ac_status=$?
16145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146  (exit $ac_status); }; }; then
16147  ac_cv_func_flock=yes
16148else
16149  echo "$as_me: failed program was:" >&5
16150cat conftest.$ac_ext >&5
16151ac_cv_func_flock=no
16152fi
16153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16154fi
16155echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
16156echo "${ECHO_T}$ac_cv_func_flock" >&6
16157if test $ac_cv_func_flock = yes; then
16158
16159cat >>confdefs.h <<_ACEOF
16160#define HAVE_FLOCK 1
16161_ACEOF
16162
16163else
16164  LIBOBJS="$LIBOBJS flock.$ac_objext"
16165fi
16166echo "$as_me:$LINENO: checking for fnmatch" >&5
16167echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
16168if test "${ac_cv_func_fnmatch+set}" = set; then
16169  echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171  cat >conftest.$ac_ext <<_ACEOF
16172#line $LINENO "configure"
16173#include "confdefs.h"
16174/* System header to define __stub macros and hopefully few prototypes,
16175    which can conflict with char fnmatch (); below.  */
16176#include <assert.h>
16177/* Override any gcc2 internal prototype to avoid an error.  */
16178#ifdef __cplusplus
16179extern "C"
16180#endif
16181/* We use char because int might match the return type of a gcc2
16182   builtin and then its argument prototype would still apply.  */
16183char fnmatch ();
16184char (*f) ();
16185
16186#ifdef F77_DUMMY_MAIN
16187#  ifdef __cplusplus
16188     extern "C"
16189#  endif
16190   int F77_DUMMY_MAIN() { return 1; }
16191#endif
16192int
16193main ()
16194{
16195/* The GNU C library defines this for functions which it implements
16196    to always fail with ENOSYS.  Some functions are actually named
16197    something starting with __ and the normal name is an alias.  */
16198#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
16199choke me
16200#else
16201f = fnmatch;
16202#endif
16203
16204  ;
16205  return 0;
16206}
16207_ACEOF
16208rm -f conftest.$ac_objext conftest$ac_exeext
16209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16210  (eval $ac_link) 2>&5
16211  ac_status=$?
16212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213  (exit $ac_status); } &&
16214         { ac_try='test -s conftest$ac_exeext'
16215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216  (eval $ac_try) 2>&5
16217  ac_status=$?
16218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219  (exit $ac_status); }; }; then
16220  ac_cv_func_fnmatch=yes
16221else
16222  echo "$as_me: failed program was:" >&5
16223cat conftest.$ac_ext >&5
16224ac_cv_func_fnmatch=no
16225fi
16226rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16227fi
16228echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
16229echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
16230if test $ac_cv_func_fnmatch = yes; then
16231
16232cat >>confdefs.h <<_ACEOF
16233#define HAVE_FNMATCH 1
16234_ACEOF
16235
16236else
16237  LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16238fi
16239echo "$as_me:$LINENO: checking for freehostent" >&5
16240echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
16241if test "${ac_cv_func_freehostent+set}" = set; then
16242  echo $ECHO_N "(cached) $ECHO_C" >&6
16243else
16244  cat >conftest.$ac_ext <<_ACEOF
16245#line $LINENO "configure"
16246#include "confdefs.h"
16247/* System header to define __stub macros and hopefully few prototypes,
16248    which can conflict with char freehostent (); below.  */
16249#include <assert.h>
16250/* Override any gcc2 internal prototype to avoid an error.  */
16251#ifdef __cplusplus
16252extern "C"
16253#endif
16254/* We use char because int might match the return type of a gcc2
16255   builtin and then its argument prototype would still apply.  */
16256char freehostent ();
16257char (*f) ();
16258
16259#ifdef F77_DUMMY_MAIN
16260#  ifdef __cplusplus
16261     extern "C"
16262#  endif
16263   int F77_DUMMY_MAIN() { return 1; }
16264#endif
16265int
16266main ()
16267{
16268/* The GNU C library defines this for functions which it implements
16269    to always fail with ENOSYS.  Some functions are actually named
16270    something starting with __ and the normal name is an alias.  */
16271#if defined (__stub_freehostent) || defined (__stub___freehostent)
16272choke me
16273#else
16274f = freehostent;
16275#endif
16276
16277  ;
16278  return 0;
16279}
16280_ACEOF
16281rm -f conftest.$ac_objext conftest$ac_exeext
16282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283  (eval $ac_link) 2>&5
16284  ac_status=$?
16285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286  (exit $ac_status); } &&
16287         { ac_try='test -s conftest$ac_exeext'
16288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289  (eval $ac_try) 2>&5
16290  ac_status=$?
16291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292  (exit $ac_status); }; }; then
16293  ac_cv_func_freehostent=yes
16294else
16295  echo "$as_me: failed program was:" >&5
16296cat conftest.$ac_ext >&5
16297ac_cv_func_freehostent=no
16298fi
16299rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16300fi
16301echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
16302echo "${ECHO_T}$ac_cv_func_freehostent" >&6
16303if test $ac_cv_func_freehostent = yes; then
16304
16305cat >>confdefs.h <<_ACEOF
16306#define HAVE_FREEHOSTENT 1
16307_ACEOF
16308
16309else
16310  LIBOBJS="$LIBOBJS freehostent.$ac_objext"
16311fi
16312echo "$as_me:$LINENO: checking for getcwd" >&5
16313echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
16314if test "${ac_cv_func_getcwd+set}" = set; then
16315  echo $ECHO_N "(cached) $ECHO_C" >&6
16316else
16317  cat >conftest.$ac_ext <<_ACEOF
16318#line $LINENO "configure"
16319#include "confdefs.h"
16320/* System header to define __stub macros and hopefully few prototypes,
16321    which can conflict with char getcwd (); below.  */
16322#include <assert.h>
16323/* Override any gcc2 internal prototype to avoid an error.  */
16324#ifdef __cplusplus
16325extern "C"
16326#endif
16327/* We use char because int might match the return type of a gcc2
16328   builtin and then its argument prototype would still apply.  */
16329char getcwd ();
16330char (*f) ();
16331
16332#ifdef F77_DUMMY_MAIN
16333#  ifdef __cplusplus
16334     extern "C"
16335#  endif
16336   int F77_DUMMY_MAIN() { return 1; }
16337#endif
16338int
16339main ()
16340{
16341/* The GNU C library defines this for functions which it implements
16342    to always fail with ENOSYS.  Some functions are actually named
16343    something starting with __ and the normal name is an alias.  */
16344#if defined (__stub_getcwd) || defined (__stub___getcwd)
16345choke me
16346#else
16347f = getcwd;
16348#endif
16349
16350  ;
16351  return 0;
16352}
16353_ACEOF
16354rm -f conftest.$ac_objext conftest$ac_exeext
16355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16356  (eval $ac_link) 2>&5
16357  ac_status=$?
16358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359  (exit $ac_status); } &&
16360         { ac_try='test -s conftest$ac_exeext'
16361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362  (eval $ac_try) 2>&5
16363  ac_status=$?
16364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365  (exit $ac_status); }; }; then
16366  ac_cv_func_getcwd=yes
16367else
16368  echo "$as_me: failed program was:" >&5
16369cat conftest.$ac_ext >&5
16370ac_cv_func_getcwd=no
16371fi
16372rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16373fi
16374echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
16375echo "${ECHO_T}$ac_cv_func_getcwd" >&6
16376if test $ac_cv_func_getcwd = yes; then
16377
16378cat >>confdefs.h <<_ACEOF
16379#define HAVE_GETCWD 1
16380_ACEOF
16381
16382else
16383  LIBOBJS="$LIBOBJS getcwd.$ac_objext"
16384fi
16385echo "$as_me:$LINENO: checking for getdtablesize" >&5
16386echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
16387if test "${ac_cv_func_getdtablesize+set}" = set; then
16388  echo $ECHO_N "(cached) $ECHO_C" >&6
16389else
16390  cat >conftest.$ac_ext <<_ACEOF
16391#line $LINENO "configure"
16392#include "confdefs.h"
16393/* System header to define __stub macros and hopefully few prototypes,
16394    which can conflict with char getdtablesize (); below.  */
16395#include <assert.h>
16396/* Override any gcc2 internal prototype to avoid an error.  */
16397#ifdef __cplusplus
16398extern "C"
16399#endif
16400/* We use char because int might match the return type of a gcc2
16401   builtin and then its argument prototype would still apply.  */
16402char getdtablesize ();
16403char (*f) ();
16404
16405#ifdef F77_DUMMY_MAIN
16406#  ifdef __cplusplus
16407     extern "C"
16408#  endif
16409   int F77_DUMMY_MAIN() { return 1; }
16410#endif
16411int
16412main ()
16413{
16414/* The GNU C library defines this for functions which it implements
16415    to always fail with ENOSYS.  Some functions are actually named
16416    something starting with __ and the normal name is an alias.  */
16417#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
16418choke me
16419#else
16420f = getdtablesize;
16421#endif
16422
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427rm -f conftest.$ac_objext conftest$ac_exeext
16428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429  (eval $ac_link) 2>&5
16430  ac_status=$?
16431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432  (exit $ac_status); } &&
16433         { ac_try='test -s conftest$ac_exeext'
16434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435  (eval $ac_try) 2>&5
16436  ac_status=$?
16437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438  (exit $ac_status); }; }; then
16439  ac_cv_func_getdtablesize=yes
16440else
16441  echo "$as_me: failed program was:" >&5
16442cat conftest.$ac_ext >&5
16443ac_cv_func_getdtablesize=no
16444fi
16445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16446fi
16447echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
16448echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
16449if test $ac_cv_func_getdtablesize = yes; then
16450
16451cat >>confdefs.h <<_ACEOF
16452#define HAVE_GETDTABLESIZE 1
16453_ACEOF
16454
16455else
16456  LIBOBJS="$LIBOBJS getdtablesize.$ac_objext"
16457fi
16458echo "$as_me:$LINENO: checking for getegid" >&5
16459echo $ECHO_N "checking for getegid... $ECHO_C" >&6
16460if test "${ac_cv_func_getegid+set}" = set; then
16461  echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463  cat >conftest.$ac_ext <<_ACEOF
16464#line $LINENO "configure"
16465#include "confdefs.h"
16466/* System header to define __stub macros and hopefully few prototypes,
16467    which can conflict with char getegid (); below.  */
16468#include <assert.h>
16469/* Override any gcc2 internal prototype to avoid an error.  */
16470#ifdef __cplusplus
16471extern "C"
16472#endif
16473/* We use char because int might match the return type of a gcc2
16474   builtin and then its argument prototype would still apply.  */
16475char getegid ();
16476char (*f) ();
16477
16478#ifdef F77_DUMMY_MAIN
16479#  ifdef __cplusplus
16480     extern "C"
16481#  endif
16482   int F77_DUMMY_MAIN() { return 1; }
16483#endif
16484int
16485main ()
16486{
16487/* The GNU C library defines this for functions which it implements
16488    to always fail with ENOSYS.  Some functions are actually named
16489    something starting with __ and the normal name is an alias.  */
16490#if defined (__stub_getegid) || defined (__stub___getegid)
16491choke me
16492#else
16493f = getegid;
16494#endif
16495
16496  ;
16497  return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext conftest$ac_exeext
16501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16502  (eval $ac_link) 2>&5
16503  ac_status=$?
16504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505  (exit $ac_status); } &&
16506         { ac_try='test -s conftest$ac_exeext'
16507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508  (eval $ac_try) 2>&5
16509  ac_status=$?
16510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511  (exit $ac_status); }; }; then
16512  ac_cv_func_getegid=yes
16513else
16514  echo "$as_me: failed program was:" >&5
16515cat conftest.$ac_ext >&5
16516ac_cv_func_getegid=no
16517fi
16518rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16519fi
16520echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
16521echo "${ECHO_T}$ac_cv_func_getegid" >&6
16522if test $ac_cv_func_getegid = yes; then
16523
16524cat >>confdefs.h <<_ACEOF
16525#define HAVE_GETEGID 1
16526_ACEOF
16527
16528else
16529  LIBOBJS="$LIBOBJS getegid.$ac_objext"
16530fi
16531echo "$as_me:$LINENO: checking for geteuid" >&5
16532echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
16533if test "${ac_cv_func_geteuid+set}" = set; then
16534  echo $ECHO_N "(cached) $ECHO_C" >&6
16535else
16536  cat >conftest.$ac_ext <<_ACEOF
16537#line $LINENO "configure"
16538#include "confdefs.h"
16539/* System header to define __stub macros and hopefully few prototypes,
16540    which can conflict with char geteuid (); below.  */
16541#include <assert.h>
16542/* Override any gcc2 internal prototype to avoid an error.  */
16543#ifdef __cplusplus
16544extern "C"
16545#endif
16546/* We use char because int might match the return type of a gcc2
16547   builtin and then its argument prototype would still apply.  */
16548char geteuid ();
16549char (*f) ();
16550
16551#ifdef F77_DUMMY_MAIN
16552#  ifdef __cplusplus
16553     extern "C"
16554#  endif
16555   int F77_DUMMY_MAIN() { return 1; }
16556#endif
16557int
16558main ()
16559{
16560/* The GNU C library defines this for functions which it implements
16561    to always fail with ENOSYS.  Some functions are actually named
16562    something starting with __ and the normal name is an alias.  */
16563#if defined (__stub_geteuid) || defined (__stub___geteuid)
16564choke me
16565#else
16566f = geteuid;
16567#endif
16568
16569  ;
16570  return 0;
16571}
16572_ACEOF
16573rm -f conftest.$ac_objext conftest$ac_exeext
16574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16575  (eval $ac_link) 2>&5
16576  ac_status=$?
16577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578  (exit $ac_status); } &&
16579         { ac_try='test -s conftest$ac_exeext'
16580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581  (eval $ac_try) 2>&5
16582  ac_status=$?
16583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584  (exit $ac_status); }; }; then
16585  ac_cv_func_geteuid=yes
16586else
16587  echo "$as_me: failed program was:" >&5
16588cat conftest.$ac_ext >&5
16589ac_cv_func_geteuid=no
16590fi
16591rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16592fi
16593echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
16594echo "${ECHO_T}$ac_cv_func_geteuid" >&6
16595if test $ac_cv_func_geteuid = yes; then
16596
16597cat >>confdefs.h <<_ACEOF
16598#define HAVE_GETEUID 1
16599_ACEOF
16600
16601else
16602  LIBOBJS="$LIBOBJS geteuid.$ac_objext"
16603fi
16604echo "$as_me:$LINENO: checking for getgid" >&5
16605echo $ECHO_N "checking for getgid... $ECHO_C" >&6
16606if test "${ac_cv_func_getgid+set}" = set; then
16607  echo $ECHO_N "(cached) $ECHO_C" >&6
16608else
16609  cat >conftest.$ac_ext <<_ACEOF
16610#line $LINENO "configure"
16611#include "confdefs.h"
16612/* System header to define __stub macros and hopefully few prototypes,
16613    which can conflict with char getgid (); below.  */
16614#include <assert.h>
16615/* Override any gcc2 internal prototype to avoid an error.  */
16616#ifdef __cplusplus
16617extern "C"
16618#endif
16619/* We use char because int might match the return type of a gcc2
16620   builtin and then its argument prototype would still apply.  */
16621char getgid ();
16622char (*f) ();
16623
16624#ifdef F77_DUMMY_MAIN
16625#  ifdef __cplusplus
16626     extern "C"
16627#  endif
16628   int F77_DUMMY_MAIN() { return 1; }
16629#endif
16630int
16631main ()
16632{
16633/* The GNU C library defines this for functions which it implements
16634    to always fail with ENOSYS.  Some functions are actually named
16635    something starting with __ and the normal name is an alias.  */
16636#if defined (__stub_getgid) || defined (__stub___getgid)
16637choke me
16638#else
16639f = getgid;
16640#endif
16641
16642  ;
16643  return 0;
16644}
16645_ACEOF
16646rm -f conftest.$ac_objext conftest$ac_exeext
16647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16648  (eval $ac_link) 2>&5
16649  ac_status=$?
16650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651  (exit $ac_status); } &&
16652         { ac_try='test -s conftest$ac_exeext'
16653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654  (eval $ac_try) 2>&5
16655  ac_status=$?
16656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657  (exit $ac_status); }; }; then
16658  ac_cv_func_getgid=yes
16659else
16660  echo "$as_me: failed program was:" >&5
16661cat conftest.$ac_ext >&5
16662ac_cv_func_getgid=no
16663fi
16664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16665fi
16666echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
16667echo "${ECHO_T}$ac_cv_func_getgid" >&6
16668if test $ac_cv_func_getgid = yes; then
16669
16670cat >>confdefs.h <<_ACEOF
16671#define HAVE_GETGID 1
16672_ACEOF
16673
16674else
16675  LIBOBJS="$LIBOBJS getgid.$ac_objext"
16676fi
16677echo "$as_me:$LINENO: checking for gethostname" >&5
16678echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
16679if test "${ac_cv_func_gethostname+set}" = set; then
16680  echo $ECHO_N "(cached) $ECHO_C" >&6
16681else
16682  cat >conftest.$ac_ext <<_ACEOF
16683#line $LINENO "configure"
16684#include "confdefs.h"
16685/* System header to define __stub macros and hopefully few prototypes,
16686    which can conflict with char gethostname (); below.  */
16687#include <assert.h>
16688/* Override any gcc2 internal prototype to avoid an error.  */
16689#ifdef __cplusplus
16690extern "C"
16691#endif
16692/* We use char because int might match the return type of a gcc2
16693   builtin and then its argument prototype would still apply.  */
16694char gethostname ();
16695char (*f) ();
16696
16697#ifdef F77_DUMMY_MAIN
16698#  ifdef __cplusplus
16699     extern "C"
16700#  endif
16701   int F77_DUMMY_MAIN() { return 1; }
16702#endif
16703int
16704main ()
16705{
16706/* The GNU C library defines this for functions which it implements
16707    to always fail with ENOSYS.  Some functions are actually named
16708    something starting with __ and the normal name is an alias.  */
16709#if defined (__stub_gethostname) || defined (__stub___gethostname)
16710choke me
16711#else
16712f = gethostname;
16713#endif
16714
16715  ;
16716  return 0;
16717}
16718_ACEOF
16719rm -f conftest.$ac_objext conftest$ac_exeext
16720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16721  (eval $ac_link) 2>&5
16722  ac_status=$?
16723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724  (exit $ac_status); } &&
16725         { ac_try='test -s conftest$ac_exeext'
16726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727  (eval $ac_try) 2>&5
16728  ac_status=$?
16729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730  (exit $ac_status); }; }; then
16731  ac_cv_func_gethostname=yes
16732else
16733  echo "$as_me: failed program was:" >&5
16734cat conftest.$ac_ext >&5
16735ac_cv_func_gethostname=no
16736fi
16737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16738fi
16739echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
16740echo "${ECHO_T}$ac_cv_func_gethostname" >&6
16741if test $ac_cv_func_gethostname = yes; then
16742
16743cat >>confdefs.h <<_ACEOF
16744#define HAVE_GETHOSTNAME 1
16745_ACEOF
16746
16747else
16748  LIBOBJS="$LIBOBJS gethostname.$ac_objext"
16749fi
16750echo "$as_me:$LINENO: checking for getifaddrs" >&5
16751echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
16752if test "${ac_cv_func_getifaddrs+set}" = set; then
16753  echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755  cat >conftest.$ac_ext <<_ACEOF
16756#line $LINENO "configure"
16757#include "confdefs.h"
16758/* System header to define __stub macros and hopefully few prototypes,
16759    which can conflict with char getifaddrs (); below.  */
16760#include <assert.h>
16761/* Override any gcc2 internal prototype to avoid an error.  */
16762#ifdef __cplusplus
16763extern "C"
16764#endif
16765/* We use char because int might match the return type of a gcc2
16766   builtin and then its argument prototype would still apply.  */
16767char getifaddrs ();
16768char (*f) ();
16769
16770#ifdef F77_DUMMY_MAIN
16771#  ifdef __cplusplus
16772     extern "C"
16773#  endif
16774   int F77_DUMMY_MAIN() { return 1; }
16775#endif
16776int
16777main ()
16778{
16779/* The GNU C library defines this for functions which it implements
16780    to always fail with ENOSYS.  Some functions are actually named
16781    something starting with __ and the normal name is an alias.  */
16782#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
16783choke me
16784#else
16785f = getifaddrs;
16786#endif
16787
16788  ;
16789  return 0;
16790}
16791_ACEOF
16792rm -f conftest.$ac_objext conftest$ac_exeext
16793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794  (eval $ac_link) 2>&5
16795  ac_status=$?
16796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797  (exit $ac_status); } &&
16798         { ac_try='test -s conftest$ac_exeext'
16799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800  (eval $ac_try) 2>&5
16801  ac_status=$?
16802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803  (exit $ac_status); }; }; then
16804  ac_cv_func_getifaddrs=yes
16805else
16806  echo "$as_me: failed program was:" >&5
16807cat conftest.$ac_ext >&5
16808ac_cv_func_getifaddrs=no
16809fi
16810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16811fi
16812echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
16813echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
16814if test $ac_cv_func_getifaddrs = yes; then
16815
16816cat >>confdefs.h <<_ACEOF
16817#define HAVE_GETIFADDRS 1
16818_ACEOF
16819
16820else
16821  LIBOBJS="$LIBOBJS getifaddrs.$ac_objext"
16822fi
16823echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
16824echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
16825if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
16826  echo $ECHO_N "(cached) $ECHO_C" >&6
16827else
16828  cat >conftest.$ac_ext <<_ACEOF
16829#line $LINENO "configure"
16830#include "confdefs.h"
16831/* System header to define __stub macros and hopefully few prototypes,
16832    which can conflict with char getipnodebyaddr (); below.  */
16833#include <assert.h>
16834/* Override any gcc2 internal prototype to avoid an error.  */
16835#ifdef __cplusplus
16836extern "C"
16837#endif
16838/* We use char because int might match the return type of a gcc2
16839   builtin and then its argument prototype would still apply.  */
16840char getipnodebyaddr ();
16841char (*f) ();
16842
16843#ifdef F77_DUMMY_MAIN
16844#  ifdef __cplusplus
16845     extern "C"
16846#  endif
16847   int F77_DUMMY_MAIN() { return 1; }
16848#endif
16849int
16850main ()
16851{
16852/* The GNU C library defines this for functions which it implements
16853    to always fail with ENOSYS.  Some functions are actually named
16854    something starting with __ and the normal name is an alias.  */
16855#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
16856choke me
16857#else
16858f = getipnodebyaddr;
16859#endif
16860
16861  ;
16862  return 0;
16863}
16864_ACEOF
16865rm -f conftest.$ac_objext conftest$ac_exeext
16866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16867  (eval $ac_link) 2>&5
16868  ac_status=$?
16869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870  (exit $ac_status); } &&
16871         { ac_try='test -s conftest$ac_exeext'
16872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873  (eval $ac_try) 2>&5
16874  ac_status=$?
16875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876  (exit $ac_status); }; }; then
16877  ac_cv_func_getipnodebyaddr=yes
16878else
16879  echo "$as_me: failed program was:" >&5
16880cat conftest.$ac_ext >&5
16881ac_cv_func_getipnodebyaddr=no
16882fi
16883rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16884fi
16885echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
16886echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
16887if test $ac_cv_func_getipnodebyaddr = yes; then
16888
16889cat >>confdefs.h <<_ACEOF
16890#define HAVE_GETIPNODEBYADDR 1
16891_ACEOF
16892
16893else
16894  LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext"
16895fi
16896echo "$as_me:$LINENO: checking for getipnodebyname" >&5
16897echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
16898if test "${ac_cv_func_getipnodebyname+set}" = set; then
16899  echo $ECHO_N "(cached) $ECHO_C" >&6
16900else
16901  cat >conftest.$ac_ext <<_ACEOF
16902#line $LINENO "configure"
16903#include "confdefs.h"
16904/* System header to define __stub macros and hopefully few prototypes,
16905    which can conflict with char getipnodebyname (); below.  */
16906#include <assert.h>
16907/* Override any gcc2 internal prototype to avoid an error.  */
16908#ifdef __cplusplus
16909extern "C"
16910#endif
16911/* We use char because int might match the return type of a gcc2
16912   builtin and then its argument prototype would still apply.  */
16913char getipnodebyname ();
16914char (*f) ();
16915
16916#ifdef F77_DUMMY_MAIN
16917#  ifdef __cplusplus
16918     extern "C"
16919#  endif
16920   int F77_DUMMY_MAIN() { return 1; }
16921#endif
16922int
16923main ()
16924{
16925/* The GNU C library defines this for functions which it implements
16926    to always fail with ENOSYS.  Some functions are actually named
16927    something starting with __ and the normal name is an alias.  */
16928#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
16929choke me
16930#else
16931f = getipnodebyname;
16932#endif
16933
16934  ;
16935  return 0;
16936}
16937_ACEOF
16938rm -f conftest.$ac_objext conftest$ac_exeext
16939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940  (eval $ac_link) 2>&5
16941  ac_status=$?
16942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943  (exit $ac_status); } &&
16944         { ac_try='test -s conftest$ac_exeext'
16945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16946  (eval $ac_try) 2>&5
16947  ac_status=$?
16948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949  (exit $ac_status); }; }; then
16950  ac_cv_func_getipnodebyname=yes
16951else
16952  echo "$as_me: failed program was:" >&5
16953cat conftest.$ac_ext >&5
16954ac_cv_func_getipnodebyname=no
16955fi
16956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16957fi
16958echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
16959echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
16960if test $ac_cv_func_getipnodebyname = yes; then
16961
16962cat >>confdefs.h <<_ACEOF
16963#define HAVE_GETIPNODEBYNAME 1
16964_ACEOF
16965
16966else
16967  LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext"
16968fi
16969echo "$as_me:$LINENO: checking for getopt" >&5
16970echo $ECHO_N "checking for getopt... $ECHO_C" >&6
16971if test "${ac_cv_func_getopt+set}" = set; then
16972  echo $ECHO_N "(cached) $ECHO_C" >&6
16973else
16974  cat >conftest.$ac_ext <<_ACEOF
16975#line $LINENO "configure"
16976#include "confdefs.h"
16977/* System header to define __stub macros and hopefully few prototypes,
16978    which can conflict with char getopt (); below.  */
16979#include <assert.h>
16980/* Override any gcc2 internal prototype to avoid an error.  */
16981#ifdef __cplusplus
16982extern "C"
16983#endif
16984/* We use char because int might match the return type of a gcc2
16985   builtin and then its argument prototype would still apply.  */
16986char getopt ();
16987char (*f) ();
16988
16989#ifdef F77_DUMMY_MAIN
16990#  ifdef __cplusplus
16991     extern "C"
16992#  endif
16993   int F77_DUMMY_MAIN() { return 1; }
16994#endif
16995int
16996main ()
16997{
16998/* The GNU C library defines this for functions which it implements
16999    to always fail with ENOSYS.  Some functions are actually named
17000    something starting with __ and the normal name is an alias.  */
17001#if defined (__stub_getopt) || defined (__stub___getopt)
17002choke me
17003#else
17004f = getopt;
17005#endif
17006
17007  ;
17008  return 0;
17009}
17010_ACEOF
17011rm -f conftest.$ac_objext conftest$ac_exeext
17012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013  (eval $ac_link) 2>&5
17014  ac_status=$?
17015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016  (exit $ac_status); } &&
17017         { ac_try='test -s conftest$ac_exeext'
17018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019  (eval $ac_try) 2>&5
17020  ac_status=$?
17021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022  (exit $ac_status); }; }; then
17023  ac_cv_func_getopt=yes
17024else
17025  echo "$as_me: failed program was:" >&5
17026cat conftest.$ac_ext >&5
17027ac_cv_func_getopt=no
17028fi
17029rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17030fi
17031echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
17032echo "${ECHO_T}$ac_cv_func_getopt" >&6
17033if test $ac_cv_func_getopt = yes; then
17034
17035cat >>confdefs.h <<_ACEOF
17036#define HAVE_GETOPT 1
17037_ACEOF
17038
17039else
17040  LIBOBJS="$LIBOBJS getopt.$ac_objext"
17041fi
17042echo "$as_me:$LINENO: checking for gettimeofday" >&5
17043echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
17044if test "${ac_cv_func_gettimeofday+set}" = set; then
17045  echo $ECHO_N "(cached) $ECHO_C" >&6
17046else
17047  cat >conftest.$ac_ext <<_ACEOF
17048#line $LINENO "configure"
17049#include "confdefs.h"
17050/* System header to define __stub macros and hopefully few prototypes,
17051    which can conflict with char gettimeofday (); below.  */
17052#include <assert.h>
17053/* Override any gcc2 internal prototype to avoid an error.  */
17054#ifdef __cplusplus
17055extern "C"
17056#endif
17057/* We use char because int might match the return type of a gcc2
17058   builtin and then its argument prototype would still apply.  */
17059char gettimeofday ();
17060char (*f) ();
17061
17062#ifdef F77_DUMMY_MAIN
17063#  ifdef __cplusplus
17064     extern "C"
17065#  endif
17066   int F77_DUMMY_MAIN() { return 1; }
17067#endif
17068int
17069main ()
17070{
17071/* The GNU C library defines this for functions which it implements
17072    to always fail with ENOSYS.  Some functions are actually named
17073    something starting with __ and the normal name is an alias.  */
17074#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
17075choke me
17076#else
17077f = gettimeofday;
17078#endif
17079
17080  ;
17081  return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext conftest$ac_exeext
17085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086  (eval $ac_link) 2>&5
17087  ac_status=$?
17088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089  (exit $ac_status); } &&
17090         { ac_try='test -s conftest$ac_exeext'
17091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092  (eval $ac_try) 2>&5
17093  ac_status=$?
17094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095  (exit $ac_status); }; }; then
17096  ac_cv_func_gettimeofday=yes
17097else
17098  echo "$as_me: failed program was:" >&5
17099cat conftest.$ac_ext >&5
17100ac_cv_func_gettimeofday=no
17101fi
17102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17103fi
17104echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
17105echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
17106if test $ac_cv_func_gettimeofday = yes; then
17107
17108cat >>confdefs.h <<_ACEOF
17109#define HAVE_GETTIMEOFDAY 1
17110_ACEOF
17111
17112else
17113  LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
17114fi
17115echo "$as_me:$LINENO: checking for getuid" >&5
17116echo $ECHO_N "checking for getuid... $ECHO_C" >&6
17117if test "${ac_cv_func_getuid+set}" = set; then
17118  echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120  cat >conftest.$ac_ext <<_ACEOF
17121#line $LINENO "configure"
17122#include "confdefs.h"
17123/* System header to define __stub macros and hopefully few prototypes,
17124    which can conflict with char getuid (); below.  */
17125#include <assert.h>
17126/* Override any gcc2 internal prototype to avoid an error.  */
17127#ifdef __cplusplus
17128extern "C"
17129#endif
17130/* We use char because int might match the return type of a gcc2
17131   builtin and then its argument prototype would still apply.  */
17132char getuid ();
17133char (*f) ();
17134
17135#ifdef F77_DUMMY_MAIN
17136#  ifdef __cplusplus
17137     extern "C"
17138#  endif
17139   int F77_DUMMY_MAIN() { return 1; }
17140#endif
17141int
17142main ()
17143{
17144/* The GNU C library defines this for functions which it implements
17145    to always fail with ENOSYS.  Some functions are actually named
17146    something starting with __ and the normal name is an alias.  */
17147#if defined (__stub_getuid) || defined (__stub___getuid)
17148choke me
17149#else
17150f = getuid;
17151#endif
17152
17153  ;
17154  return 0;
17155}
17156_ACEOF
17157rm -f conftest.$ac_objext conftest$ac_exeext
17158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17159  (eval $ac_link) 2>&5
17160  ac_status=$?
17161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162  (exit $ac_status); } &&
17163         { ac_try='test -s conftest$ac_exeext'
17164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165  (eval $ac_try) 2>&5
17166  ac_status=$?
17167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168  (exit $ac_status); }; }; then
17169  ac_cv_func_getuid=yes
17170else
17171  echo "$as_me: failed program was:" >&5
17172cat conftest.$ac_ext >&5
17173ac_cv_func_getuid=no
17174fi
17175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17176fi
17177echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
17178echo "${ECHO_T}$ac_cv_func_getuid" >&6
17179if test $ac_cv_func_getuid = yes; then
17180
17181cat >>confdefs.h <<_ACEOF
17182#define HAVE_GETUID 1
17183_ACEOF
17184
17185else
17186  LIBOBJS="$LIBOBJS getuid.$ac_objext"
17187fi
17188echo "$as_me:$LINENO: checking for getusershell" >&5
17189echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
17190if test "${ac_cv_func_getusershell+set}" = set; then
17191  echo $ECHO_N "(cached) $ECHO_C" >&6
17192else
17193  cat >conftest.$ac_ext <<_ACEOF
17194#line $LINENO "configure"
17195#include "confdefs.h"
17196/* System header to define __stub macros and hopefully few prototypes,
17197    which can conflict with char getusershell (); below.  */
17198#include <assert.h>
17199/* Override any gcc2 internal prototype to avoid an error.  */
17200#ifdef __cplusplus
17201extern "C"
17202#endif
17203/* We use char because int might match the return type of a gcc2
17204   builtin and then its argument prototype would still apply.  */
17205char getusershell ();
17206char (*f) ();
17207
17208#ifdef F77_DUMMY_MAIN
17209#  ifdef __cplusplus
17210     extern "C"
17211#  endif
17212   int F77_DUMMY_MAIN() { return 1; }
17213#endif
17214int
17215main ()
17216{
17217/* The GNU C library defines this for functions which it implements
17218    to always fail with ENOSYS.  Some functions are actually named
17219    something starting with __ and the normal name is an alias.  */
17220#if defined (__stub_getusershell) || defined (__stub___getusershell)
17221choke me
17222#else
17223f = getusershell;
17224#endif
17225
17226  ;
17227  return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext conftest$ac_exeext
17231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232  (eval $ac_link) 2>&5
17233  ac_status=$?
17234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235  (exit $ac_status); } &&
17236         { ac_try='test -s conftest$ac_exeext'
17237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238  (eval $ac_try) 2>&5
17239  ac_status=$?
17240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241  (exit $ac_status); }; }; then
17242  ac_cv_func_getusershell=yes
17243else
17244  echo "$as_me: failed program was:" >&5
17245cat conftest.$ac_ext >&5
17246ac_cv_func_getusershell=no
17247fi
17248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17249fi
17250echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
17251echo "${ECHO_T}$ac_cv_func_getusershell" >&6
17252if test $ac_cv_func_getusershell = yes; then
17253
17254cat >>confdefs.h <<_ACEOF
17255#define HAVE_GETUSERSHELL 1
17256_ACEOF
17257
17258else
17259  LIBOBJS="$LIBOBJS getusershell.$ac_objext"
17260fi
17261echo "$as_me:$LINENO: checking for initgroups" >&5
17262echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
17263if test "${ac_cv_func_initgroups+set}" = set; then
17264  echo $ECHO_N "(cached) $ECHO_C" >&6
17265else
17266  cat >conftest.$ac_ext <<_ACEOF
17267#line $LINENO "configure"
17268#include "confdefs.h"
17269/* System header to define __stub macros and hopefully few prototypes,
17270    which can conflict with char initgroups (); below.  */
17271#include <assert.h>
17272/* Override any gcc2 internal prototype to avoid an error.  */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276/* We use char because int might match the return type of a gcc2
17277   builtin and then its argument prototype would still apply.  */
17278char initgroups ();
17279char (*f) ();
17280
17281#ifdef F77_DUMMY_MAIN
17282#  ifdef __cplusplus
17283     extern "C"
17284#  endif
17285   int F77_DUMMY_MAIN() { return 1; }
17286#endif
17287int
17288main ()
17289{
17290/* The GNU C library defines this for functions which it implements
17291    to always fail with ENOSYS.  Some functions are actually named
17292    something starting with __ and the normal name is an alias.  */
17293#if defined (__stub_initgroups) || defined (__stub___initgroups)
17294choke me
17295#else
17296f = initgroups;
17297#endif
17298
17299  ;
17300  return 0;
17301}
17302_ACEOF
17303rm -f conftest.$ac_objext conftest$ac_exeext
17304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305  (eval $ac_link) 2>&5
17306  ac_status=$?
17307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308  (exit $ac_status); } &&
17309         { ac_try='test -s conftest$ac_exeext'
17310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311  (eval $ac_try) 2>&5
17312  ac_status=$?
17313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314  (exit $ac_status); }; }; then
17315  ac_cv_func_initgroups=yes
17316else
17317  echo "$as_me: failed program was:" >&5
17318cat conftest.$ac_ext >&5
17319ac_cv_func_initgroups=no
17320fi
17321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17322fi
17323echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
17324echo "${ECHO_T}$ac_cv_func_initgroups" >&6
17325if test $ac_cv_func_initgroups = yes; then
17326
17327cat >>confdefs.h <<_ACEOF
17328#define HAVE_INITGROUPS 1
17329_ACEOF
17330
17331else
17332  LIBOBJS="$LIBOBJS initgroups.$ac_objext"
17333fi
17334echo "$as_me:$LINENO: checking for innetgr" >&5
17335echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
17336if test "${ac_cv_func_innetgr+set}" = set; then
17337  echo $ECHO_N "(cached) $ECHO_C" >&6
17338else
17339  cat >conftest.$ac_ext <<_ACEOF
17340#line $LINENO "configure"
17341#include "confdefs.h"
17342/* System header to define __stub macros and hopefully few prototypes,
17343    which can conflict with char innetgr (); below.  */
17344#include <assert.h>
17345/* Override any gcc2 internal prototype to avoid an error.  */
17346#ifdef __cplusplus
17347extern "C"
17348#endif
17349/* We use char because int might match the return type of a gcc2
17350   builtin and then its argument prototype would still apply.  */
17351char innetgr ();
17352char (*f) ();
17353
17354#ifdef F77_DUMMY_MAIN
17355#  ifdef __cplusplus
17356     extern "C"
17357#  endif
17358   int F77_DUMMY_MAIN() { return 1; }
17359#endif
17360int
17361main ()
17362{
17363/* The GNU C library defines this for functions which it implements
17364    to always fail with ENOSYS.  Some functions are actually named
17365    something starting with __ and the normal name is an alias.  */
17366#if defined (__stub_innetgr) || defined (__stub___innetgr)
17367choke me
17368#else
17369f = innetgr;
17370#endif
17371
17372  ;
17373  return 0;
17374}
17375_ACEOF
17376rm -f conftest.$ac_objext conftest$ac_exeext
17377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17378  (eval $ac_link) 2>&5
17379  ac_status=$?
17380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381  (exit $ac_status); } &&
17382         { ac_try='test -s conftest$ac_exeext'
17383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384  (eval $ac_try) 2>&5
17385  ac_status=$?
17386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387  (exit $ac_status); }; }; then
17388  ac_cv_func_innetgr=yes
17389else
17390  echo "$as_me: failed program was:" >&5
17391cat conftest.$ac_ext >&5
17392ac_cv_func_innetgr=no
17393fi
17394rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17395fi
17396echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
17397echo "${ECHO_T}$ac_cv_func_innetgr" >&6
17398if test $ac_cv_func_innetgr = yes; then
17399
17400cat >>confdefs.h <<_ACEOF
17401#define HAVE_INNETGR 1
17402_ACEOF
17403
17404else
17405  LIBOBJS="$LIBOBJS innetgr.$ac_objext"
17406fi
17407echo "$as_me:$LINENO: checking for iruserok" >&5
17408echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
17409if test "${ac_cv_func_iruserok+set}" = set; then
17410  echo $ECHO_N "(cached) $ECHO_C" >&6
17411else
17412  cat >conftest.$ac_ext <<_ACEOF
17413#line $LINENO "configure"
17414#include "confdefs.h"
17415/* System header to define __stub macros and hopefully few prototypes,
17416    which can conflict with char iruserok (); below.  */
17417#include <assert.h>
17418/* Override any gcc2 internal prototype to avoid an error.  */
17419#ifdef __cplusplus
17420extern "C"
17421#endif
17422/* We use char because int might match the return type of a gcc2
17423   builtin and then its argument prototype would still apply.  */
17424char iruserok ();
17425char (*f) ();
17426
17427#ifdef F77_DUMMY_MAIN
17428#  ifdef __cplusplus
17429     extern "C"
17430#  endif
17431   int F77_DUMMY_MAIN() { return 1; }
17432#endif
17433int
17434main ()
17435{
17436/* The GNU C library defines this for functions which it implements
17437    to always fail with ENOSYS.  Some functions are actually named
17438    something starting with __ and the normal name is an alias.  */
17439#if defined (__stub_iruserok) || defined (__stub___iruserok)
17440choke me
17441#else
17442f = iruserok;
17443#endif
17444
17445  ;
17446  return 0;
17447}
17448_ACEOF
17449rm -f conftest.$ac_objext conftest$ac_exeext
17450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17451  (eval $ac_link) 2>&5
17452  ac_status=$?
17453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454  (exit $ac_status); } &&
17455         { ac_try='test -s conftest$ac_exeext'
17456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457  (eval $ac_try) 2>&5
17458  ac_status=$?
17459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460  (exit $ac_status); }; }; then
17461  ac_cv_func_iruserok=yes
17462else
17463  echo "$as_me: failed program was:" >&5
17464cat conftest.$ac_ext >&5
17465ac_cv_func_iruserok=no
17466fi
17467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17468fi
17469echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
17470echo "${ECHO_T}$ac_cv_func_iruserok" >&6
17471if test $ac_cv_func_iruserok = yes; then
17472
17473cat >>confdefs.h <<_ACEOF
17474#define HAVE_IRUSEROK 1
17475_ACEOF
17476
17477else
17478  LIBOBJS="$LIBOBJS iruserok.$ac_objext"
17479fi
17480echo "$as_me:$LINENO: checking for localtime_r" >&5
17481echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
17482if test "${ac_cv_func_localtime_r+set}" = set; then
17483  echo $ECHO_N "(cached) $ECHO_C" >&6
17484else
17485  cat >conftest.$ac_ext <<_ACEOF
17486#line $LINENO "configure"
17487#include "confdefs.h"
17488/* System header to define __stub macros and hopefully few prototypes,
17489    which can conflict with char localtime_r (); below.  */
17490#include <assert.h>
17491/* Override any gcc2 internal prototype to avoid an error.  */
17492#ifdef __cplusplus
17493extern "C"
17494#endif
17495/* We use char because int might match the return type of a gcc2
17496   builtin and then its argument prototype would still apply.  */
17497char localtime_r ();
17498char (*f) ();
17499
17500#ifdef F77_DUMMY_MAIN
17501#  ifdef __cplusplus
17502     extern "C"
17503#  endif
17504   int F77_DUMMY_MAIN() { return 1; }
17505#endif
17506int
17507main ()
17508{
17509/* The GNU C library defines this for functions which it implements
17510    to always fail with ENOSYS.  Some functions are actually named
17511    something starting with __ and the normal name is an alias.  */
17512#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
17513choke me
17514#else
17515f = localtime_r;
17516#endif
17517
17518  ;
17519  return 0;
17520}
17521_ACEOF
17522rm -f conftest.$ac_objext conftest$ac_exeext
17523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17524  (eval $ac_link) 2>&5
17525  ac_status=$?
17526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527  (exit $ac_status); } &&
17528         { ac_try='test -s conftest$ac_exeext'
17529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530  (eval $ac_try) 2>&5
17531  ac_status=$?
17532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533  (exit $ac_status); }; }; then
17534  ac_cv_func_localtime_r=yes
17535else
17536  echo "$as_me: failed program was:" >&5
17537cat conftest.$ac_ext >&5
17538ac_cv_func_localtime_r=no
17539fi
17540rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17541fi
17542echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
17543echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
17544if test $ac_cv_func_localtime_r = yes; then
17545
17546cat >>confdefs.h <<_ACEOF
17547#define HAVE_LOCALTIME_R 1
17548_ACEOF
17549
17550else
17551  LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
17552fi
17553echo "$as_me:$LINENO: checking for lstat" >&5
17554echo $ECHO_N "checking for lstat... $ECHO_C" >&6
17555if test "${ac_cv_func_lstat+set}" = set; then
17556  echo $ECHO_N "(cached) $ECHO_C" >&6
17557else
17558  cat >conftest.$ac_ext <<_ACEOF
17559#line $LINENO "configure"
17560#include "confdefs.h"
17561/* System header to define __stub macros and hopefully few prototypes,
17562    which can conflict with char lstat (); below.  */
17563#include <assert.h>
17564/* Override any gcc2 internal prototype to avoid an error.  */
17565#ifdef __cplusplus
17566extern "C"
17567#endif
17568/* We use char because int might match the return type of a gcc2
17569   builtin and then its argument prototype would still apply.  */
17570char lstat ();
17571char (*f) ();
17572
17573#ifdef F77_DUMMY_MAIN
17574#  ifdef __cplusplus
17575     extern "C"
17576#  endif
17577   int F77_DUMMY_MAIN() { return 1; }
17578#endif
17579int
17580main ()
17581{
17582/* The GNU C library defines this for functions which it implements
17583    to always fail with ENOSYS.  Some functions are actually named
17584    something starting with __ and the normal name is an alias.  */
17585#if defined (__stub_lstat) || defined (__stub___lstat)
17586choke me
17587#else
17588f = lstat;
17589#endif
17590
17591  ;
17592  return 0;
17593}
17594_ACEOF
17595rm -f conftest.$ac_objext conftest$ac_exeext
17596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17597  (eval $ac_link) 2>&5
17598  ac_status=$?
17599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600  (exit $ac_status); } &&
17601         { ac_try='test -s conftest$ac_exeext'
17602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603  (eval $ac_try) 2>&5
17604  ac_status=$?
17605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606  (exit $ac_status); }; }; then
17607  ac_cv_func_lstat=yes
17608else
17609  echo "$as_me: failed program was:" >&5
17610cat conftest.$ac_ext >&5
17611ac_cv_func_lstat=no
17612fi
17613rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614fi
17615echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
17616echo "${ECHO_T}$ac_cv_func_lstat" >&6
17617if test $ac_cv_func_lstat = yes; then
17618
17619cat >>confdefs.h <<_ACEOF
17620#define HAVE_LSTAT 1
17621_ACEOF
17622
17623else
17624  LIBOBJS="$LIBOBJS lstat.$ac_objext"
17625fi
17626echo "$as_me:$LINENO: checking for memmove" >&5
17627echo $ECHO_N "checking for memmove... $ECHO_C" >&6
17628if test "${ac_cv_func_memmove+set}" = set; then
17629  echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631  cat >conftest.$ac_ext <<_ACEOF
17632#line $LINENO "configure"
17633#include "confdefs.h"
17634/* System header to define __stub macros and hopefully few prototypes,
17635    which can conflict with char memmove (); below.  */
17636#include <assert.h>
17637/* Override any gcc2 internal prototype to avoid an error.  */
17638#ifdef __cplusplus
17639extern "C"
17640#endif
17641/* We use char because int might match the return type of a gcc2
17642   builtin and then its argument prototype would still apply.  */
17643char memmove ();
17644char (*f) ();
17645
17646#ifdef F77_DUMMY_MAIN
17647#  ifdef __cplusplus
17648     extern "C"
17649#  endif
17650   int F77_DUMMY_MAIN() { return 1; }
17651#endif
17652int
17653main ()
17654{
17655/* The GNU C library defines this for functions which it implements
17656    to always fail with ENOSYS.  Some functions are actually named
17657    something starting with __ and the normal name is an alias.  */
17658#if defined (__stub_memmove) || defined (__stub___memmove)
17659choke me
17660#else
17661f = memmove;
17662#endif
17663
17664  ;
17665  return 0;
17666}
17667_ACEOF
17668rm -f conftest.$ac_objext conftest$ac_exeext
17669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17670  (eval $ac_link) 2>&5
17671  ac_status=$?
17672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673  (exit $ac_status); } &&
17674         { ac_try='test -s conftest$ac_exeext'
17675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17676  (eval $ac_try) 2>&5
17677  ac_status=$?
17678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679  (exit $ac_status); }; }; then
17680  ac_cv_func_memmove=yes
17681else
17682  echo "$as_me: failed program was:" >&5
17683cat conftest.$ac_ext >&5
17684ac_cv_func_memmove=no
17685fi
17686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17687fi
17688echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
17689echo "${ECHO_T}$ac_cv_func_memmove" >&6
17690if test $ac_cv_func_memmove = yes; then
17691
17692cat >>confdefs.h <<_ACEOF
17693#define HAVE_MEMMOVE 1
17694_ACEOF
17695
17696else
17697  LIBOBJS="$LIBOBJS memmove.$ac_objext"
17698fi
17699echo "$as_me:$LINENO: checking for mkstemp" >&5
17700echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17701if test "${ac_cv_func_mkstemp+set}" = set; then
17702  echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704  cat >conftest.$ac_ext <<_ACEOF
17705#line $LINENO "configure"
17706#include "confdefs.h"
17707/* System header to define __stub macros and hopefully few prototypes,
17708    which can conflict with char mkstemp (); below.  */
17709#include <assert.h>
17710/* Override any gcc2 internal prototype to avoid an error.  */
17711#ifdef __cplusplus
17712extern "C"
17713#endif
17714/* We use char because int might match the return type of a gcc2
17715   builtin and then its argument prototype would still apply.  */
17716char mkstemp ();
17717char (*f) ();
17718
17719#ifdef F77_DUMMY_MAIN
17720#  ifdef __cplusplus
17721     extern "C"
17722#  endif
17723   int F77_DUMMY_MAIN() { return 1; }
17724#endif
17725int
17726main ()
17727{
17728/* The GNU C library defines this for functions which it implements
17729    to always fail with ENOSYS.  Some functions are actually named
17730    something starting with __ and the normal name is an alias.  */
17731#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17732choke me
17733#else
17734f = mkstemp;
17735#endif
17736
17737  ;
17738  return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
17742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17743  (eval $ac_link) 2>&5
17744  ac_status=$?
17745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746  (exit $ac_status); } &&
17747         { ac_try='test -s conftest$ac_exeext'
17748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749  (eval $ac_try) 2>&5
17750  ac_status=$?
17751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752  (exit $ac_status); }; }; then
17753  ac_cv_func_mkstemp=yes
17754else
17755  echo "$as_me: failed program was:" >&5
17756cat conftest.$ac_ext >&5
17757ac_cv_func_mkstemp=no
17758fi
17759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17760fi
17761echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
17762echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17763if test $ac_cv_func_mkstemp = yes; then
17764
17765cat >>confdefs.h <<_ACEOF
17766#define HAVE_MKSTEMP 1
17767_ACEOF
17768
17769else
17770  LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
17771fi
17772echo "$as_me:$LINENO: checking for putenv" >&5
17773echo $ECHO_N "checking for putenv... $ECHO_C" >&6
17774if test "${ac_cv_func_putenv+set}" = set; then
17775  echo $ECHO_N "(cached) $ECHO_C" >&6
17776else
17777  cat >conftest.$ac_ext <<_ACEOF
17778#line $LINENO "configure"
17779#include "confdefs.h"
17780/* System header to define __stub macros and hopefully few prototypes,
17781    which can conflict with char putenv (); below.  */
17782#include <assert.h>
17783/* Override any gcc2 internal prototype to avoid an error.  */
17784#ifdef __cplusplus
17785extern "C"
17786#endif
17787/* We use char because int might match the return type of a gcc2
17788   builtin and then its argument prototype would still apply.  */
17789char putenv ();
17790char (*f) ();
17791
17792#ifdef F77_DUMMY_MAIN
17793#  ifdef __cplusplus
17794     extern "C"
17795#  endif
17796   int F77_DUMMY_MAIN() { return 1; }
17797#endif
17798int
17799main ()
17800{
17801/* The GNU C library defines this for functions which it implements
17802    to always fail with ENOSYS.  Some functions are actually named
17803    something starting with __ and the normal name is an alias.  */
17804#if defined (__stub_putenv) || defined (__stub___putenv)
17805choke me
17806#else
17807f = putenv;
17808#endif
17809
17810  ;
17811  return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext conftest$ac_exeext
17815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816  (eval $ac_link) 2>&5
17817  ac_status=$?
17818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819  (exit $ac_status); } &&
17820         { ac_try='test -s conftest$ac_exeext'
17821  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822  (eval $ac_try) 2>&5
17823  ac_status=$?
17824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825  (exit $ac_status); }; }; then
17826  ac_cv_func_putenv=yes
17827else
17828  echo "$as_me: failed program was:" >&5
17829cat conftest.$ac_ext >&5
17830ac_cv_func_putenv=no
17831fi
17832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17833fi
17834echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
17835echo "${ECHO_T}$ac_cv_func_putenv" >&6
17836if test $ac_cv_func_putenv = yes; then
17837
17838cat >>confdefs.h <<_ACEOF
17839#define HAVE_PUTENV 1
17840_ACEOF
17841
17842else
17843  LIBOBJS="$LIBOBJS putenv.$ac_objext"
17844fi
17845echo "$as_me:$LINENO: checking for rcmd" >&5
17846echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
17847if test "${ac_cv_func_rcmd+set}" = set; then
17848  echo $ECHO_N "(cached) $ECHO_C" >&6
17849else
17850  cat >conftest.$ac_ext <<_ACEOF
17851#line $LINENO "configure"
17852#include "confdefs.h"
17853/* System header to define __stub macros and hopefully few prototypes,
17854    which can conflict with char rcmd (); below.  */
17855#include <assert.h>
17856/* Override any gcc2 internal prototype to avoid an error.  */
17857#ifdef __cplusplus
17858extern "C"
17859#endif
17860/* We use char because int might match the return type of a gcc2
17861   builtin and then its argument prototype would still apply.  */
17862char rcmd ();
17863char (*f) ();
17864
17865#ifdef F77_DUMMY_MAIN
17866#  ifdef __cplusplus
17867     extern "C"
17868#  endif
17869   int F77_DUMMY_MAIN() { return 1; }
17870#endif
17871int
17872main ()
17873{
17874/* The GNU C library defines this for functions which it implements
17875    to always fail with ENOSYS.  Some functions are actually named
17876    something starting with __ and the normal name is an alias.  */
17877#if defined (__stub_rcmd) || defined (__stub___rcmd)
17878choke me
17879#else
17880f = rcmd;
17881#endif
17882
17883  ;
17884  return 0;
17885}
17886_ACEOF
17887rm -f conftest.$ac_objext conftest$ac_exeext
17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17889  (eval $ac_link) 2>&5
17890  ac_status=$?
17891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892  (exit $ac_status); } &&
17893         { ac_try='test -s conftest$ac_exeext'
17894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17895  (eval $ac_try) 2>&5
17896  ac_status=$?
17897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898  (exit $ac_status); }; }; then
17899  ac_cv_func_rcmd=yes
17900else
17901  echo "$as_me: failed program was:" >&5
17902cat conftest.$ac_ext >&5
17903ac_cv_func_rcmd=no
17904fi
17905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906fi
17907echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
17908echo "${ECHO_T}$ac_cv_func_rcmd" >&6
17909if test $ac_cv_func_rcmd = yes; then
17910
17911cat >>confdefs.h <<_ACEOF
17912#define HAVE_RCMD 1
17913_ACEOF
17914
17915else
17916  LIBOBJS="$LIBOBJS rcmd.$ac_objext"
17917fi
17918echo "$as_me:$LINENO: checking for readv" >&5
17919echo $ECHO_N "checking for readv... $ECHO_C" >&6
17920if test "${ac_cv_func_readv+set}" = set; then
17921  echo $ECHO_N "(cached) $ECHO_C" >&6
17922else
17923  cat >conftest.$ac_ext <<_ACEOF
17924#line $LINENO "configure"
17925#include "confdefs.h"
17926/* System header to define __stub macros and hopefully few prototypes,
17927    which can conflict with char readv (); below.  */
17928#include <assert.h>
17929/* Override any gcc2 internal prototype to avoid an error.  */
17930#ifdef __cplusplus
17931extern "C"
17932#endif
17933/* We use char because int might match the return type of a gcc2
17934   builtin and then its argument prototype would still apply.  */
17935char readv ();
17936char (*f) ();
17937
17938#ifdef F77_DUMMY_MAIN
17939#  ifdef __cplusplus
17940     extern "C"
17941#  endif
17942   int F77_DUMMY_MAIN() { return 1; }
17943#endif
17944int
17945main ()
17946{
17947/* The GNU C library defines this for functions which it implements
17948    to always fail with ENOSYS.  Some functions are actually named
17949    something starting with __ and the normal name is an alias.  */
17950#if defined (__stub_readv) || defined (__stub___readv)
17951choke me
17952#else
17953f = readv;
17954#endif
17955
17956  ;
17957  return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext conftest$ac_exeext
17961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17962  (eval $ac_link) 2>&5
17963  ac_status=$?
17964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965  (exit $ac_status); } &&
17966         { ac_try='test -s conftest$ac_exeext'
17967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968  (eval $ac_try) 2>&5
17969  ac_status=$?
17970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971  (exit $ac_status); }; }; then
17972  ac_cv_func_readv=yes
17973else
17974  echo "$as_me: failed program was:" >&5
17975cat conftest.$ac_ext >&5
17976ac_cv_func_readv=no
17977fi
17978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17979fi
17980echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
17981echo "${ECHO_T}$ac_cv_func_readv" >&6
17982if test $ac_cv_func_readv = yes; then
17983
17984cat >>confdefs.h <<_ACEOF
17985#define HAVE_READV 1
17986_ACEOF
17987
17988else
17989  LIBOBJS="$LIBOBJS readv.$ac_objext"
17990fi
17991echo "$as_me:$LINENO: checking for recvmsg" >&5
17992echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
17993if test "${ac_cv_func_recvmsg+set}" = set; then
17994  echo $ECHO_N "(cached) $ECHO_C" >&6
17995else
17996  cat >conftest.$ac_ext <<_ACEOF
17997#line $LINENO "configure"
17998#include "confdefs.h"
17999/* System header to define __stub macros and hopefully few prototypes,
18000    which can conflict with char recvmsg (); below.  */
18001#include <assert.h>
18002/* Override any gcc2 internal prototype to avoid an error.  */
18003#ifdef __cplusplus
18004extern "C"
18005#endif
18006/* We use char because int might match the return type of a gcc2
18007   builtin and then its argument prototype would still apply.  */
18008char recvmsg ();
18009char (*f) ();
18010
18011#ifdef F77_DUMMY_MAIN
18012#  ifdef __cplusplus
18013     extern "C"
18014#  endif
18015   int F77_DUMMY_MAIN() { return 1; }
18016#endif
18017int
18018main ()
18019{
18020/* The GNU C library defines this for functions which it implements
18021    to always fail with ENOSYS.  Some functions are actually named
18022    something starting with __ and the normal name is an alias.  */
18023#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
18024choke me
18025#else
18026f = recvmsg;
18027#endif
18028
18029  ;
18030  return 0;
18031}
18032_ACEOF
18033rm -f conftest.$ac_objext conftest$ac_exeext
18034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18035  (eval $ac_link) 2>&5
18036  ac_status=$?
18037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038  (exit $ac_status); } &&
18039         { ac_try='test -s conftest$ac_exeext'
18040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041  (eval $ac_try) 2>&5
18042  ac_status=$?
18043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044  (exit $ac_status); }; }; then
18045  ac_cv_func_recvmsg=yes
18046else
18047  echo "$as_me: failed program was:" >&5
18048cat conftest.$ac_ext >&5
18049ac_cv_func_recvmsg=no
18050fi
18051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18052fi
18053echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
18054echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
18055if test $ac_cv_func_recvmsg = yes; then
18056
18057cat >>confdefs.h <<_ACEOF
18058#define HAVE_RECVMSG 1
18059_ACEOF
18060
18061else
18062  LIBOBJS="$LIBOBJS recvmsg.$ac_objext"
18063fi
18064echo "$as_me:$LINENO: checking for sendmsg" >&5
18065echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
18066if test "${ac_cv_func_sendmsg+set}" = set; then
18067  echo $ECHO_N "(cached) $ECHO_C" >&6
18068else
18069  cat >conftest.$ac_ext <<_ACEOF
18070#line $LINENO "configure"
18071#include "confdefs.h"
18072/* System header to define __stub macros and hopefully few prototypes,
18073    which can conflict with char sendmsg (); below.  */
18074#include <assert.h>
18075/* Override any gcc2 internal prototype to avoid an error.  */
18076#ifdef __cplusplus
18077extern "C"
18078#endif
18079/* We use char because int might match the return type of a gcc2
18080   builtin and then its argument prototype would still apply.  */
18081char sendmsg ();
18082char (*f) ();
18083
18084#ifdef F77_DUMMY_MAIN
18085#  ifdef __cplusplus
18086     extern "C"
18087#  endif
18088   int F77_DUMMY_MAIN() { return 1; }
18089#endif
18090int
18091main ()
18092{
18093/* The GNU C library defines this for functions which it implements
18094    to always fail with ENOSYS.  Some functions are actually named
18095    something starting with __ and the normal name is an alias.  */
18096#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
18097choke me
18098#else
18099f = sendmsg;
18100#endif
18101
18102  ;
18103  return 0;
18104}
18105_ACEOF
18106rm -f conftest.$ac_objext conftest$ac_exeext
18107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18108  (eval $ac_link) 2>&5
18109  ac_status=$?
18110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111  (exit $ac_status); } &&
18112         { ac_try='test -s conftest$ac_exeext'
18113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114  (eval $ac_try) 2>&5
18115  ac_status=$?
18116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117  (exit $ac_status); }; }; then
18118  ac_cv_func_sendmsg=yes
18119else
18120  echo "$as_me: failed program was:" >&5
18121cat conftest.$ac_ext >&5
18122ac_cv_func_sendmsg=no
18123fi
18124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18125fi
18126echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
18127echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
18128if test $ac_cv_func_sendmsg = yes; then
18129
18130cat >>confdefs.h <<_ACEOF
18131#define HAVE_SENDMSG 1
18132_ACEOF
18133
18134else
18135  LIBOBJS="$LIBOBJS sendmsg.$ac_objext"
18136fi
18137echo "$as_me:$LINENO: checking for setegid" >&5
18138echo $ECHO_N "checking for setegid... $ECHO_C" >&6
18139if test "${ac_cv_func_setegid+set}" = set; then
18140  echo $ECHO_N "(cached) $ECHO_C" >&6
18141else
18142  cat >conftest.$ac_ext <<_ACEOF
18143#line $LINENO "configure"
18144#include "confdefs.h"
18145/* System header to define __stub macros and hopefully few prototypes,
18146    which can conflict with char setegid (); below.  */
18147#include <assert.h>
18148/* Override any gcc2 internal prototype to avoid an error.  */
18149#ifdef __cplusplus
18150extern "C"
18151#endif
18152/* We use char because int might match the return type of a gcc2
18153   builtin and then its argument prototype would still apply.  */
18154char setegid ();
18155char (*f) ();
18156
18157#ifdef F77_DUMMY_MAIN
18158#  ifdef __cplusplus
18159     extern "C"
18160#  endif
18161   int F77_DUMMY_MAIN() { return 1; }
18162#endif
18163int
18164main ()
18165{
18166/* The GNU C library defines this for functions which it implements
18167    to always fail with ENOSYS.  Some functions are actually named
18168    something starting with __ and the normal name is an alias.  */
18169#if defined (__stub_setegid) || defined (__stub___setegid)
18170choke me
18171#else
18172f = setegid;
18173#endif
18174
18175  ;
18176  return 0;
18177}
18178_ACEOF
18179rm -f conftest.$ac_objext conftest$ac_exeext
18180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18181  (eval $ac_link) 2>&5
18182  ac_status=$?
18183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184  (exit $ac_status); } &&
18185         { ac_try='test -s conftest$ac_exeext'
18186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187  (eval $ac_try) 2>&5
18188  ac_status=$?
18189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190  (exit $ac_status); }; }; then
18191  ac_cv_func_setegid=yes
18192else
18193  echo "$as_me: failed program was:" >&5
18194cat conftest.$ac_ext >&5
18195ac_cv_func_setegid=no
18196fi
18197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18198fi
18199echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
18200echo "${ECHO_T}$ac_cv_func_setegid" >&6
18201if test $ac_cv_func_setegid = yes; then
18202
18203cat >>confdefs.h <<_ACEOF
18204#define HAVE_SETEGID 1
18205_ACEOF
18206
18207else
18208  LIBOBJS="$LIBOBJS setegid.$ac_objext"
18209fi
18210echo "$as_me:$LINENO: checking for setenv" >&5
18211echo $ECHO_N "checking for setenv... $ECHO_C" >&6
18212if test "${ac_cv_func_setenv+set}" = set; then
18213  echo $ECHO_N "(cached) $ECHO_C" >&6
18214else
18215  cat >conftest.$ac_ext <<_ACEOF
18216#line $LINENO "configure"
18217#include "confdefs.h"
18218/* System header to define __stub macros and hopefully few prototypes,
18219    which can conflict with char setenv (); below.  */
18220#include <assert.h>
18221/* Override any gcc2 internal prototype to avoid an error.  */
18222#ifdef __cplusplus
18223extern "C"
18224#endif
18225/* We use char because int might match the return type of a gcc2
18226   builtin and then its argument prototype would still apply.  */
18227char setenv ();
18228char (*f) ();
18229
18230#ifdef F77_DUMMY_MAIN
18231#  ifdef __cplusplus
18232     extern "C"
18233#  endif
18234   int F77_DUMMY_MAIN() { return 1; }
18235#endif
18236int
18237main ()
18238{
18239/* The GNU C library defines this for functions which it implements
18240    to always fail with ENOSYS.  Some functions are actually named
18241    something starting with __ and the normal name is an alias.  */
18242#if defined (__stub_setenv) || defined (__stub___setenv)
18243choke me
18244#else
18245f = setenv;
18246#endif
18247
18248  ;
18249  return 0;
18250}
18251_ACEOF
18252rm -f conftest.$ac_objext conftest$ac_exeext
18253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254  (eval $ac_link) 2>&5
18255  ac_status=$?
18256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257  (exit $ac_status); } &&
18258         { ac_try='test -s conftest$ac_exeext'
18259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260  (eval $ac_try) 2>&5
18261  ac_status=$?
18262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263  (exit $ac_status); }; }; then
18264  ac_cv_func_setenv=yes
18265else
18266  echo "$as_me: failed program was:" >&5
18267cat conftest.$ac_ext >&5
18268ac_cv_func_setenv=no
18269fi
18270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18271fi
18272echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
18273echo "${ECHO_T}$ac_cv_func_setenv" >&6
18274if test $ac_cv_func_setenv = yes; then
18275
18276cat >>confdefs.h <<_ACEOF
18277#define HAVE_SETENV 1
18278_ACEOF
18279
18280else
18281  LIBOBJS="$LIBOBJS setenv.$ac_objext"
18282fi
18283echo "$as_me:$LINENO: checking for seteuid" >&5
18284echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
18285if test "${ac_cv_func_seteuid+set}" = set; then
18286  echo $ECHO_N "(cached) $ECHO_C" >&6
18287else
18288  cat >conftest.$ac_ext <<_ACEOF
18289#line $LINENO "configure"
18290#include "confdefs.h"
18291/* System header to define __stub macros and hopefully few prototypes,
18292    which can conflict with char seteuid (); below.  */
18293#include <assert.h>
18294/* Override any gcc2 internal prototype to avoid an error.  */
18295#ifdef __cplusplus
18296extern "C"
18297#endif
18298/* We use char because int might match the return type of a gcc2
18299   builtin and then its argument prototype would still apply.  */
18300char seteuid ();
18301char (*f) ();
18302
18303#ifdef F77_DUMMY_MAIN
18304#  ifdef __cplusplus
18305     extern "C"
18306#  endif
18307   int F77_DUMMY_MAIN() { return 1; }
18308#endif
18309int
18310main ()
18311{
18312/* The GNU C library defines this for functions which it implements
18313    to always fail with ENOSYS.  Some functions are actually named
18314    something starting with __ and the normal name is an alias.  */
18315#if defined (__stub_seteuid) || defined (__stub___seteuid)
18316choke me
18317#else
18318f = seteuid;
18319#endif
18320
18321  ;
18322  return 0;
18323}
18324_ACEOF
18325rm -f conftest.$ac_objext conftest$ac_exeext
18326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327  (eval $ac_link) 2>&5
18328  ac_status=$?
18329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330  (exit $ac_status); } &&
18331         { ac_try='test -s conftest$ac_exeext'
18332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333  (eval $ac_try) 2>&5
18334  ac_status=$?
18335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336  (exit $ac_status); }; }; then
18337  ac_cv_func_seteuid=yes
18338else
18339  echo "$as_me: failed program was:" >&5
18340cat conftest.$ac_ext >&5
18341ac_cv_func_seteuid=no
18342fi
18343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18344fi
18345echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
18346echo "${ECHO_T}$ac_cv_func_seteuid" >&6
18347if test $ac_cv_func_seteuid = yes; then
18348
18349cat >>confdefs.h <<_ACEOF
18350#define HAVE_SETEUID 1
18351_ACEOF
18352
18353else
18354  LIBOBJS="$LIBOBJS seteuid.$ac_objext"
18355fi
18356echo "$as_me:$LINENO: checking for strcasecmp" >&5
18357echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
18358if test "${ac_cv_func_strcasecmp+set}" = set; then
18359  echo $ECHO_N "(cached) $ECHO_C" >&6
18360else
18361  cat >conftest.$ac_ext <<_ACEOF
18362#line $LINENO "configure"
18363#include "confdefs.h"
18364/* System header to define __stub macros and hopefully few prototypes,
18365    which can conflict with char strcasecmp (); below.  */
18366#include <assert.h>
18367/* Override any gcc2 internal prototype to avoid an error.  */
18368#ifdef __cplusplus
18369extern "C"
18370#endif
18371/* We use char because int might match the return type of a gcc2
18372   builtin and then its argument prototype would still apply.  */
18373char strcasecmp ();
18374char (*f) ();
18375
18376#ifdef F77_DUMMY_MAIN
18377#  ifdef __cplusplus
18378     extern "C"
18379#  endif
18380   int F77_DUMMY_MAIN() { return 1; }
18381#endif
18382int
18383main ()
18384{
18385/* The GNU C library defines this for functions which it implements
18386    to always fail with ENOSYS.  Some functions are actually named
18387    something starting with __ and the normal name is an alias.  */
18388#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
18389choke me
18390#else
18391f = strcasecmp;
18392#endif
18393
18394  ;
18395  return 0;
18396}
18397_ACEOF
18398rm -f conftest.$ac_objext conftest$ac_exeext
18399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18400  (eval $ac_link) 2>&5
18401  ac_status=$?
18402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); } &&
18404         { ac_try='test -s conftest$ac_exeext'
18405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406  (eval $ac_try) 2>&5
18407  ac_status=$?
18408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409  (exit $ac_status); }; }; then
18410  ac_cv_func_strcasecmp=yes
18411else
18412  echo "$as_me: failed program was:" >&5
18413cat conftest.$ac_ext >&5
18414ac_cv_func_strcasecmp=no
18415fi
18416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18417fi
18418echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
18419echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
18420if test $ac_cv_func_strcasecmp = yes; then
18421
18422cat >>confdefs.h <<_ACEOF
18423#define HAVE_STRCASECMP 1
18424_ACEOF
18425
18426else
18427  LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
18428fi
18429echo "$as_me:$LINENO: checking for strdup" >&5
18430echo $ECHO_N "checking for strdup... $ECHO_C" >&6
18431if test "${ac_cv_func_strdup+set}" = set; then
18432  echo $ECHO_N "(cached) $ECHO_C" >&6
18433else
18434  cat >conftest.$ac_ext <<_ACEOF
18435#line $LINENO "configure"
18436#include "confdefs.h"
18437/* System header to define __stub macros and hopefully few prototypes,
18438    which can conflict with char strdup (); below.  */
18439#include <assert.h>
18440/* Override any gcc2 internal prototype to avoid an error.  */
18441#ifdef __cplusplus
18442extern "C"
18443#endif
18444/* We use char because int might match the return type of a gcc2
18445   builtin and then its argument prototype would still apply.  */
18446char strdup ();
18447char (*f) ();
18448
18449#ifdef F77_DUMMY_MAIN
18450#  ifdef __cplusplus
18451     extern "C"
18452#  endif
18453   int F77_DUMMY_MAIN() { return 1; }
18454#endif
18455int
18456main ()
18457{
18458/* The GNU C library defines this for functions which it implements
18459    to always fail with ENOSYS.  Some functions are actually named
18460    something starting with __ and the normal name is an alias.  */
18461#if defined (__stub_strdup) || defined (__stub___strdup)
18462choke me
18463#else
18464f = strdup;
18465#endif
18466
18467  ;
18468  return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext conftest$ac_exeext
18472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18473  (eval $ac_link) 2>&5
18474  ac_status=$?
18475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476  (exit $ac_status); } &&
18477         { ac_try='test -s conftest$ac_exeext'
18478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479  (eval $ac_try) 2>&5
18480  ac_status=$?
18481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482  (exit $ac_status); }; }; then
18483  ac_cv_func_strdup=yes
18484else
18485  echo "$as_me: failed program was:" >&5
18486cat conftest.$ac_ext >&5
18487ac_cv_func_strdup=no
18488fi
18489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18490fi
18491echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
18492echo "${ECHO_T}$ac_cv_func_strdup" >&6
18493if test $ac_cv_func_strdup = yes; then
18494
18495cat >>confdefs.h <<_ACEOF
18496#define HAVE_STRDUP 1
18497_ACEOF
18498
18499else
18500  LIBOBJS="$LIBOBJS strdup.$ac_objext"
18501fi
18502echo "$as_me:$LINENO: checking for strerror" >&5
18503echo $ECHO_N "checking for strerror... $ECHO_C" >&6
18504if test "${ac_cv_func_strerror+set}" = set; then
18505  echo $ECHO_N "(cached) $ECHO_C" >&6
18506else
18507  cat >conftest.$ac_ext <<_ACEOF
18508#line $LINENO "configure"
18509#include "confdefs.h"
18510/* System header to define __stub macros and hopefully few prototypes,
18511    which can conflict with char strerror (); below.  */
18512#include <assert.h>
18513/* Override any gcc2 internal prototype to avoid an error.  */
18514#ifdef __cplusplus
18515extern "C"
18516#endif
18517/* We use char because int might match the return type of a gcc2
18518   builtin and then its argument prototype would still apply.  */
18519char strerror ();
18520char (*f) ();
18521
18522#ifdef F77_DUMMY_MAIN
18523#  ifdef __cplusplus
18524     extern "C"
18525#  endif
18526   int F77_DUMMY_MAIN() { return 1; }
18527#endif
18528int
18529main ()
18530{
18531/* The GNU C library defines this for functions which it implements
18532    to always fail with ENOSYS.  Some functions are actually named
18533    something starting with __ and the normal name is an alias.  */
18534#if defined (__stub_strerror) || defined (__stub___strerror)
18535choke me
18536#else
18537f = strerror;
18538#endif
18539
18540  ;
18541  return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext conftest$ac_exeext
18545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18546  (eval $ac_link) 2>&5
18547  ac_status=$?
18548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549  (exit $ac_status); } &&
18550         { ac_try='test -s conftest$ac_exeext'
18551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552  (eval $ac_try) 2>&5
18553  ac_status=$?
18554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555  (exit $ac_status); }; }; then
18556  ac_cv_func_strerror=yes
18557else
18558  echo "$as_me: failed program was:" >&5
18559cat conftest.$ac_ext >&5
18560ac_cv_func_strerror=no
18561fi
18562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563fi
18564echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
18565echo "${ECHO_T}$ac_cv_func_strerror" >&6
18566if test $ac_cv_func_strerror = yes; then
18567
18568cat >>confdefs.h <<_ACEOF
18569#define HAVE_STRERROR 1
18570_ACEOF
18571
18572else
18573  LIBOBJS="$LIBOBJS strerror.$ac_objext"
18574fi
18575echo "$as_me:$LINENO: checking for strftime" >&5
18576echo $ECHO_N "checking for strftime... $ECHO_C" >&6
18577if test "${ac_cv_func_strftime+set}" = set; then
18578  echo $ECHO_N "(cached) $ECHO_C" >&6
18579else
18580  cat >conftest.$ac_ext <<_ACEOF
18581#line $LINENO "configure"
18582#include "confdefs.h"
18583/* System header to define __stub macros and hopefully few prototypes,
18584    which can conflict with char strftime (); below.  */
18585#include <assert.h>
18586/* Override any gcc2 internal prototype to avoid an error.  */
18587#ifdef __cplusplus
18588extern "C"
18589#endif
18590/* We use char because int might match the return type of a gcc2
18591   builtin and then its argument prototype would still apply.  */
18592char strftime ();
18593char (*f) ();
18594
18595#ifdef F77_DUMMY_MAIN
18596#  ifdef __cplusplus
18597     extern "C"
18598#  endif
18599   int F77_DUMMY_MAIN() { return 1; }
18600#endif
18601int
18602main ()
18603{
18604/* The GNU C library defines this for functions which it implements
18605    to always fail with ENOSYS.  Some functions are actually named
18606    something starting with __ and the normal name is an alias.  */
18607#if defined (__stub_strftime) || defined (__stub___strftime)
18608choke me
18609#else
18610f = strftime;
18611#endif
18612
18613  ;
18614  return 0;
18615}
18616_ACEOF
18617rm -f conftest.$ac_objext conftest$ac_exeext
18618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18619  (eval $ac_link) 2>&5
18620  ac_status=$?
18621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622  (exit $ac_status); } &&
18623         { ac_try='test -s conftest$ac_exeext'
18624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625  (eval $ac_try) 2>&5
18626  ac_status=$?
18627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628  (exit $ac_status); }; }; then
18629  ac_cv_func_strftime=yes
18630else
18631  echo "$as_me: failed program was:" >&5
18632cat conftest.$ac_ext >&5
18633ac_cv_func_strftime=no
18634fi
18635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18636fi
18637echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
18638echo "${ECHO_T}$ac_cv_func_strftime" >&6
18639if test $ac_cv_func_strftime = yes; then
18640
18641cat >>confdefs.h <<_ACEOF
18642#define HAVE_STRFTIME 1
18643_ACEOF
18644
18645else
18646  LIBOBJS="$LIBOBJS strftime.$ac_objext"
18647fi
18648echo "$as_me:$LINENO: checking for strlcat" >&5
18649echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
18650if test "${ac_cv_func_strlcat+set}" = set; then
18651  echo $ECHO_N "(cached) $ECHO_C" >&6
18652else
18653  cat >conftest.$ac_ext <<_ACEOF
18654#line $LINENO "configure"
18655#include "confdefs.h"
18656/* System header to define __stub macros and hopefully few prototypes,
18657    which can conflict with char strlcat (); below.  */
18658#include <assert.h>
18659/* Override any gcc2 internal prototype to avoid an error.  */
18660#ifdef __cplusplus
18661extern "C"
18662#endif
18663/* We use char because int might match the return type of a gcc2
18664   builtin and then its argument prototype would still apply.  */
18665char strlcat ();
18666char (*f) ();
18667
18668#ifdef F77_DUMMY_MAIN
18669#  ifdef __cplusplus
18670     extern "C"
18671#  endif
18672   int F77_DUMMY_MAIN() { return 1; }
18673#endif
18674int
18675main ()
18676{
18677/* The GNU C library defines this for functions which it implements
18678    to always fail with ENOSYS.  Some functions are actually named
18679    something starting with __ and the normal name is an alias.  */
18680#if defined (__stub_strlcat) || defined (__stub___strlcat)
18681choke me
18682#else
18683f = strlcat;
18684#endif
18685
18686  ;
18687  return 0;
18688}
18689_ACEOF
18690rm -f conftest.$ac_objext conftest$ac_exeext
18691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18692  (eval $ac_link) 2>&5
18693  ac_status=$?
18694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695  (exit $ac_status); } &&
18696         { ac_try='test -s conftest$ac_exeext'
18697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18698  (eval $ac_try) 2>&5
18699  ac_status=$?
18700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701  (exit $ac_status); }; }; then
18702  ac_cv_func_strlcat=yes
18703else
18704  echo "$as_me: failed program was:" >&5
18705cat conftest.$ac_ext >&5
18706ac_cv_func_strlcat=no
18707fi
18708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18709fi
18710echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
18711echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18712if test $ac_cv_func_strlcat = yes; then
18713
18714cat >>confdefs.h <<_ACEOF
18715#define HAVE_STRLCAT 1
18716_ACEOF
18717
18718else
18719  LIBOBJS="$LIBOBJS strlcat.$ac_objext"
18720fi
18721echo "$as_me:$LINENO: checking for strlcpy" >&5
18722echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
18723if test "${ac_cv_func_strlcpy+set}" = set; then
18724  echo $ECHO_N "(cached) $ECHO_C" >&6
18725else
18726  cat >conftest.$ac_ext <<_ACEOF
18727#line $LINENO "configure"
18728#include "confdefs.h"
18729/* System header to define __stub macros and hopefully few prototypes,
18730    which can conflict with char strlcpy (); below.  */
18731#include <assert.h>
18732/* Override any gcc2 internal prototype to avoid an error.  */
18733#ifdef __cplusplus
18734extern "C"
18735#endif
18736/* We use char because int might match the return type of a gcc2
18737   builtin and then its argument prototype would still apply.  */
18738char strlcpy ();
18739char (*f) ();
18740
18741#ifdef F77_DUMMY_MAIN
18742#  ifdef __cplusplus
18743     extern "C"
18744#  endif
18745   int F77_DUMMY_MAIN() { return 1; }
18746#endif
18747int
18748main ()
18749{
18750/* The GNU C library defines this for functions which it implements
18751    to always fail with ENOSYS.  Some functions are actually named
18752    something starting with __ and the normal name is an alias.  */
18753#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
18754choke me
18755#else
18756f = strlcpy;
18757#endif
18758
18759  ;
18760  return 0;
18761}
18762_ACEOF
18763rm -f conftest.$ac_objext conftest$ac_exeext
18764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765  (eval $ac_link) 2>&5
18766  ac_status=$?
18767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768  (exit $ac_status); } &&
18769         { ac_try='test -s conftest$ac_exeext'
18770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771  (eval $ac_try) 2>&5
18772  ac_status=$?
18773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774  (exit $ac_status); }; }; then
18775  ac_cv_func_strlcpy=yes
18776else
18777  echo "$as_me: failed program was:" >&5
18778cat conftest.$ac_ext >&5
18779ac_cv_func_strlcpy=no
18780fi
18781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18782fi
18783echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
18784echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
18785if test $ac_cv_func_strlcpy = yes; then
18786
18787cat >>confdefs.h <<_ACEOF
18788#define HAVE_STRLCPY 1
18789_ACEOF
18790
18791else
18792  LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
18793fi
18794echo "$as_me:$LINENO: checking for strlwr" >&5
18795echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
18796if test "${ac_cv_func_strlwr+set}" = set; then
18797  echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799  cat >conftest.$ac_ext <<_ACEOF
18800#line $LINENO "configure"
18801#include "confdefs.h"
18802/* System header to define __stub macros and hopefully few prototypes,
18803    which can conflict with char strlwr (); below.  */
18804#include <assert.h>
18805/* Override any gcc2 internal prototype to avoid an error.  */
18806#ifdef __cplusplus
18807extern "C"
18808#endif
18809/* We use char because int might match the return type of a gcc2
18810   builtin and then its argument prototype would still apply.  */
18811char strlwr ();
18812char (*f) ();
18813
18814#ifdef F77_DUMMY_MAIN
18815#  ifdef __cplusplus
18816     extern "C"
18817#  endif
18818   int F77_DUMMY_MAIN() { return 1; }
18819#endif
18820int
18821main ()
18822{
18823/* The GNU C library defines this for functions which it implements
18824    to always fail with ENOSYS.  Some functions are actually named
18825    something starting with __ and the normal name is an alias.  */
18826#if defined (__stub_strlwr) || defined (__stub___strlwr)
18827choke me
18828#else
18829f = strlwr;
18830#endif
18831
18832  ;
18833  return 0;
18834}
18835_ACEOF
18836rm -f conftest.$ac_objext conftest$ac_exeext
18837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18838  (eval $ac_link) 2>&5
18839  ac_status=$?
18840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841  (exit $ac_status); } &&
18842         { ac_try='test -s conftest$ac_exeext'
18843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844  (eval $ac_try) 2>&5
18845  ac_status=$?
18846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847  (exit $ac_status); }; }; then
18848  ac_cv_func_strlwr=yes
18849else
18850  echo "$as_me: failed program was:" >&5
18851cat conftest.$ac_ext >&5
18852ac_cv_func_strlwr=no
18853fi
18854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18855fi
18856echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
18857echo "${ECHO_T}$ac_cv_func_strlwr" >&6
18858if test $ac_cv_func_strlwr = yes; then
18859
18860cat >>confdefs.h <<_ACEOF
18861#define HAVE_STRLWR 1
18862_ACEOF
18863
18864else
18865  LIBOBJS="$LIBOBJS strlwr.$ac_objext"
18866fi
18867echo "$as_me:$LINENO: checking for strncasecmp" >&5
18868echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
18869if test "${ac_cv_func_strncasecmp+set}" = set; then
18870  echo $ECHO_N "(cached) $ECHO_C" >&6
18871else
18872  cat >conftest.$ac_ext <<_ACEOF
18873#line $LINENO "configure"
18874#include "confdefs.h"
18875/* System header to define __stub macros and hopefully few prototypes,
18876    which can conflict with char strncasecmp (); below.  */
18877#include <assert.h>
18878/* Override any gcc2 internal prototype to avoid an error.  */
18879#ifdef __cplusplus
18880extern "C"
18881#endif
18882/* We use char because int might match the return type of a gcc2
18883   builtin and then its argument prototype would still apply.  */
18884char strncasecmp ();
18885char (*f) ();
18886
18887#ifdef F77_DUMMY_MAIN
18888#  ifdef __cplusplus
18889     extern "C"
18890#  endif
18891   int F77_DUMMY_MAIN() { return 1; }
18892#endif
18893int
18894main ()
18895{
18896/* The GNU C library defines this for functions which it implements
18897    to always fail with ENOSYS.  Some functions are actually named
18898    something starting with __ and the normal name is an alias.  */
18899#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
18900choke me
18901#else
18902f = strncasecmp;
18903#endif
18904
18905  ;
18906  return 0;
18907}
18908_ACEOF
18909rm -f conftest.$ac_objext conftest$ac_exeext
18910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18911  (eval $ac_link) 2>&5
18912  ac_status=$?
18913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914  (exit $ac_status); } &&
18915         { ac_try='test -s conftest$ac_exeext'
18916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18917  (eval $ac_try) 2>&5
18918  ac_status=$?
18919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18920  (exit $ac_status); }; }; then
18921  ac_cv_func_strncasecmp=yes
18922else
18923  echo "$as_me: failed program was:" >&5
18924cat conftest.$ac_ext >&5
18925ac_cv_func_strncasecmp=no
18926fi
18927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18928fi
18929echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
18930echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
18931if test $ac_cv_func_strncasecmp = yes; then
18932
18933cat >>confdefs.h <<_ACEOF
18934#define HAVE_STRNCASECMP 1
18935_ACEOF
18936
18937else
18938  LIBOBJS="$LIBOBJS strncasecmp.$ac_objext"
18939fi
18940echo "$as_me:$LINENO: checking for strndup" >&5
18941echo $ECHO_N "checking for strndup... $ECHO_C" >&6
18942if test "${ac_cv_func_strndup+set}" = set; then
18943  echo $ECHO_N "(cached) $ECHO_C" >&6
18944else
18945  cat >conftest.$ac_ext <<_ACEOF
18946#line $LINENO "configure"
18947#include "confdefs.h"
18948/* System header to define __stub macros and hopefully few prototypes,
18949    which can conflict with char strndup (); below.  */
18950#include <assert.h>
18951/* Override any gcc2 internal prototype to avoid an error.  */
18952#ifdef __cplusplus
18953extern "C"
18954#endif
18955/* We use char because int might match the return type of a gcc2
18956   builtin and then its argument prototype would still apply.  */
18957char strndup ();
18958char (*f) ();
18959
18960#ifdef F77_DUMMY_MAIN
18961#  ifdef __cplusplus
18962     extern "C"
18963#  endif
18964   int F77_DUMMY_MAIN() { return 1; }
18965#endif
18966int
18967main ()
18968{
18969/* The GNU C library defines this for functions which it implements
18970    to always fail with ENOSYS.  Some functions are actually named
18971    something starting with __ and the normal name is an alias.  */
18972#if defined (__stub_strndup) || defined (__stub___strndup)
18973choke me
18974#else
18975f = strndup;
18976#endif
18977
18978  ;
18979  return 0;
18980}
18981_ACEOF
18982rm -f conftest.$ac_objext conftest$ac_exeext
18983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18984  (eval $ac_link) 2>&5
18985  ac_status=$?
18986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987  (exit $ac_status); } &&
18988         { ac_try='test -s conftest$ac_exeext'
18989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990  (eval $ac_try) 2>&5
18991  ac_status=$?
18992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993  (exit $ac_status); }; }; then
18994  ac_cv_func_strndup=yes
18995else
18996  echo "$as_me: failed program was:" >&5
18997cat conftest.$ac_ext >&5
18998ac_cv_func_strndup=no
18999fi
19000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19001fi
19002echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
19003echo "${ECHO_T}$ac_cv_func_strndup" >&6
19004if test $ac_cv_func_strndup = yes; then
19005
19006cat >>confdefs.h <<_ACEOF
19007#define HAVE_STRNDUP 1
19008_ACEOF
19009
19010else
19011  LIBOBJS="$LIBOBJS strndup.$ac_objext"
19012fi
19013echo "$as_me:$LINENO: checking for strnlen" >&5
19014echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
19015if test "${ac_cv_func_strnlen+set}" = set; then
19016  echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018  cat >conftest.$ac_ext <<_ACEOF
19019#line $LINENO "configure"
19020#include "confdefs.h"
19021/* System header to define __stub macros and hopefully few prototypes,
19022    which can conflict with char strnlen (); below.  */
19023#include <assert.h>
19024/* Override any gcc2 internal prototype to avoid an error.  */
19025#ifdef __cplusplus
19026extern "C"
19027#endif
19028/* We use char because int might match the return type of a gcc2
19029   builtin and then its argument prototype would still apply.  */
19030char strnlen ();
19031char (*f) ();
19032
19033#ifdef F77_DUMMY_MAIN
19034#  ifdef __cplusplus
19035     extern "C"
19036#  endif
19037   int F77_DUMMY_MAIN() { return 1; }
19038#endif
19039int
19040main ()
19041{
19042/* The GNU C library defines this for functions which it implements
19043    to always fail with ENOSYS.  Some functions are actually named
19044    something starting with __ and the normal name is an alias.  */
19045#if defined (__stub_strnlen) || defined (__stub___strnlen)
19046choke me
19047#else
19048f = strnlen;
19049#endif
19050
19051  ;
19052  return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext conftest$ac_exeext
19056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19057  (eval $ac_link) 2>&5
19058  ac_status=$?
19059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060  (exit $ac_status); } &&
19061         { ac_try='test -s conftest$ac_exeext'
19062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063  (eval $ac_try) 2>&5
19064  ac_status=$?
19065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066  (exit $ac_status); }; }; then
19067  ac_cv_func_strnlen=yes
19068else
19069  echo "$as_me: failed program was:" >&5
19070cat conftest.$ac_ext >&5
19071ac_cv_func_strnlen=no
19072fi
19073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19074fi
19075echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
19076echo "${ECHO_T}$ac_cv_func_strnlen" >&6
19077if test $ac_cv_func_strnlen = yes; then
19078
19079cat >>confdefs.h <<_ACEOF
19080#define HAVE_STRNLEN 1
19081_ACEOF
19082
19083else
19084  LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19085fi
19086echo "$as_me:$LINENO: checking for strptime" >&5
19087echo $ECHO_N "checking for strptime... $ECHO_C" >&6
19088if test "${ac_cv_func_strptime+set}" = set; then
19089  echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091  cat >conftest.$ac_ext <<_ACEOF
19092#line $LINENO "configure"
19093#include "confdefs.h"
19094/* System header to define __stub macros and hopefully few prototypes,
19095    which can conflict with char strptime (); below.  */
19096#include <assert.h>
19097/* Override any gcc2 internal prototype to avoid an error.  */
19098#ifdef __cplusplus
19099extern "C"
19100#endif
19101/* We use char because int might match the return type of a gcc2
19102   builtin and then its argument prototype would still apply.  */
19103char strptime ();
19104char (*f) ();
19105
19106#ifdef F77_DUMMY_MAIN
19107#  ifdef __cplusplus
19108     extern "C"
19109#  endif
19110   int F77_DUMMY_MAIN() { return 1; }
19111#endif
19112int
19113main ()
19114{
19115/* The GNU C library defines this for functions which it implements
19116    to always fail with ENOSYS.  Some functions are actually named
19117    something starting with __ and the normal name is an alias.  */
19118#if defined (__stub_strptime) || defined (__stub___strptime)
19119choke me
19120#else
19121f = strptime;
19122#endif
19123
19124  ;
19125  return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext conftest$ac_exeext
19129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130  (eval $ac_link) 2>&5
19131  ac_status=$?
19132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133  (exit $ac_status); } &&
19134         { ac_try='test -s conftest$ac_exeext'
19135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136  (eval $ac_try) 2>&5
19137  ac_status=$?
19138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139  (exit $ac_status); }; }; then
19140  ac_cv_func_strptime=yes
19141else
19142  echo "$as_me: failed program was:" >&5
19143cat conftest.$ac_ext >&5
19144ac_cv_func_strptime=no
19145fi
19146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19147fi
19148echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
19149echo "${ECHO_T}$ac_cv_func_strptime" >&6
19150if test $ac_cv_func_strptime = yes; then
19151
19152cat >>confdefs.h <<_ACEOF
19153#define HAVE_STRPTIME 1
19154_ACEOF
19155
19156else
19157  LIBOBJS="$LIBOBJS strptime.$ac_objext"
19158fi
19159echo "$as_me:$LINENO: checking for strsep" >&5
19160echo $ECHO_N "checking for strsep... $ECHO_C" >&6
19161if test "${ac_cv_func_strsep+set}" = set; then
19162  echo $ECHO_N "(cached) $ECHO_C" >&6
19163else
19164  cat >conftest.$ac_ext <<_ACEOF
19165#line $LINENO "configure"
19166#include "confdefs.h"
19167/* System header to define __stub macros and hopefully few prototypes,
19168    which can conflict with char strsep (); below.  */
19169#include <assert.h>
19170/* Override any gcc2 internal prototype to avoid an error.  */
19171#ifdef __cplusplus
19172extern "C"
19173#endif
19174/* We use char because int might match the return type of a gcc2
19175   builtin and then its argument prototype would still apply.  */
19176char strsep ();
19177char (*f) ();
19178
19179#ifdef F77_DUMMY_MAIN
19180#  ifdef __cplusplus
19181     extern "C"
19182#  endif
19183   int F77_DUMMY_MAIN() { return 1; }
19184#endif
19185int
19186main ()
19187{
19188/* The GNU C library defines this for functions which it implements
19189    to always fail with ENOSYS.  Some functions are actually named
19190    something starting with __ and the normal name is an alias.  */
19191#if defined (__stub_strsep) || defined (__stub___strsep)
19192choke me
19193#else
19194f = strsep;
19195#endif
19196
19197  ;
19198  return 0;
19199}
19200_ACEOF
19201rm -f conftest.$ac_objext conftest$ac_exeext
19202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19203  (eval $ac_link) 2>&5
19204  ac_status=$?
19205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206  (exit $ac_status); } &&
19207         { ac_try='test -s conftest$ac_exeext'
19208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209  (eval $ac_try) 2>&5
19210  ac_status=$?
19211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212  (exit $ac_status); }; }; then
19213  ac_cv_func_strsep=yes
19214else
19215  echo "$as_me: failed program was:" >&5
19216cat conftest.$ac_ext >&5
19217ac_cv_func_strsep=no
19218fi
19219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19220fi
19221echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
19222echo "${ECHO_T}$ac_cv_func_strsep" >&6
19223if test $ac_cv_func_strsep = yes; then
19224
19225cat >>confdefs.h <<_ACEOF
19226#define HAVE_STRSEP 1
19227_ACEOF
19228
19229else
19230  LIBOBJS="$LIBOBJS strsep.$ac_objext"
19231fi
19232echo "$as_me:$LINENO: checking for strsep_copy" >&5
19233echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
19234if test "${ac_cv_func_strsep_copy+set}" = set; then
19235  echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237  cat >conftest.$ac_ext <<_ACEOF
19238#line $LINENO "configure"
19239#include "confdefs.h"
19240/* System header to define __stub macros and hopefully few prototypes,
19241    which can conflict with char strsep_copy (); below.  */
19242#include <assert.h>
19243/* Override any gcc2 internal prototype to avoid an error.  */
19244#ifdef __cplusplus
19245extern "C"
19246#endif
19247/* We use char because int might match the return type of a gcc2
19248   builtin and then its argument prototype would still apply.  */
19249char strsep_copy ();
19250char (*f) ();
19251
19252#ifdef F77_DUMMY_MAIN
19253#  ifdef __cplusplus
19254     extern "C"
19255#  endif
19256   int F77_DUMMY_MAIN() { return 1; }
19257#endif
19258int
19259main ()
19260{
19261/* The GNU C library defines this for functions which it implements
19262    to always fail with ENOSYS.  Some functions are actually named
19263    something starting with __ and the normal name is an alias.  */
19264#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
19265choke me
19266#else
19267f = strsep_copy;
19268#endif
19269
19270  ;
19271  return 0;
19272}
19273_ACEOF
19274rm -f conftest.$ac_objext conftest$ac_exeext
19275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19276  (eval $ac_link) 2>&5
19277  ac_status=$?
19278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279  (exit $ac_status); } &&
19280         { ac_try='test -s conftest$ac_exeext'
19281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282  (eval $ac_try) 2>&5
19283  ac_status=$?
19284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285  (exit $ac_status); }; }; then
19286  ac_cv_func_strsep_copy=yes
19287else
19288  echo "$as_me: failed program was:" >&5
19289cat conftest.$ac_ext >&5
19290ac_cv_func_strsep_copy=no
19291fi
19292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19293fi
19294echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
19295echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
19296if test $ac_cv_func_strsep_copy = yes; then
19297
19298cat >>confdefs.h <<_ACEOF
19299#define HAVE_STRSEP_COPY 1
19300_ACEOF
19301
19302else
19303  LIBOBJS="$LIBOBJS strsep_copy.$ac_objext"
19304fi
19305echo "$as_me:$LINENO: checking for strtok_r" >&5
19306echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
19307if test "${ac_cv_func_strtok_r+set}" = set; then
19308  echo $ECHO_N "(cached) $ECHO_C" >&6
19309else
19310  cat >conftest.$ac_ext <<_ACEOF
19311#line $LINENO "configure"
19312#include "confdefs.h"
19313/* System header to define __stub macros and hopefully few prototypes,
19314    which can conflict with char strtok_r (); below.  */
19315#include <assert.h>
19316/* Override any gcc2 internal prototype to avoid an error.  */
19317#ifdef __cplusplus
19318extern "C"
19319#endif
19320/* We use char because int might match the return type of a gcc2
19321   builtin and then its argument prototype would still apply.  */
19322char strtok_r ();
19323char (*f) ();
19324
19325#ifdef F77_DUMMY_MAIN
19326#  ifdef __cplusplus
19327     extern "C"
19328#  endif
19329   int F77_DUMMY_MAIN() { return 1; }
19330#endif
19331int
19332main ()
19333{
19334/* The GNU C library defines this for functions which it implements
19335    to always fail with ENOSYS.  Some functions are actually named
19336    something starting with __ and the normal name is an alias.  */
19337#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
19338choke me
19339#else
19340f = strtok_r;
19341#endif
19342
19343  ;
19344  return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349  (eval $ac_link) 2>&5
19350  ac_status=$?
19351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352  (exit $ac_status); } &&
19353         { ac_try='test -s conftest$ac_exeext'
19354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19355  (eval $ac_try) 2>&5
19356  ac_status=$?
19357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358  (exit $ac_status); }; }; then
19359  ac_cv_func_strtok_r=yes
19360else
19361  echo "$as_me: failed program was:" >&5
19362cat conftest.$ac_ext >&5
19363ac_cv_func_strtok_r=no
19364fi
19365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19366fi
19367echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
19368echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
19369if test $ac_cv_func_strtok_r = yes; then
19370
19371cat >>confdefs.h <<_ACEOF
19372#define HAVE_STRTOK_R 1
19373_ACEOF
19374
19375else
19376  LIBOBJS="$LIBOBJS strtok_r.$ac_objext"
19377fi
19378echo "$as_me:$LINENO: checking for strupr" >&5
19379echo $ECHO_N "checking for strupr... $ECHO_C" >&6
19380if test "${ac_cv_func_strupr+set}" = set; then
19381  echo $ECHO_N "(cached) $ECHO_C" >&6
19382else
19383  cat >conftest.$ac_ext <<_ACEOF
19384#line $LINENO "configure"
19385#include "confdefs.h"
19386/* System header to define __stub macros and hopefully few prototypes,
19387    which can conflict with char strupr (); below.  */
19388#include <assert.h>
19389/* Override any gcc2 internal prototype to avoid an error.  */
19390#ifdef __cplusplus
19391extern "C"
19392#endif
19393/* We use char because int might match the return type of a gcc2
19394   builtin and then its argument prototype would still apply.  */
19395char strupr ();
19396char (*f) ();
19397
19398#ifdef F77_DUMMY_MAIN
19399#  ifdef __cplusplus
19400     extern "C"
19401#  endif
19402   int F77_DUMMY_MAIN() { return 1; }
19403#endif
19404int
19405main ()
19406{
19407/* The GNU C library defines this for functions which it implements
19408    to always fail with ENOSYS.  Some functions are actually named
19409    something starting with __ and the normal name is an alias.  */
19410#if defined (__stub_strupr) || defined (__stub___strupr)
19411choke me
19412#else
19413f = strupr;
19414#endif
19415
19416  ;
19417  return 0;
19418}
19419_ACEOF
19420rm -f conftest.$ac_objext conftest$ac_exeext
19421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422  (eval $ac_link) 2>&5
19423  ac_status=$?
19424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425  (exit $ac_status); } &&
19426         { ac_try='test -s conftest$ac_exeext'
19427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428  (eval $ac_try) 2>&5
19429  ac_status=$?
19430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431  (exit $ac_status); }; }; then
19432  ac_cv_func_strupr=yes
19433else
19434  echo "$as_me: failed program was:" >&5
19435cat conftest.$ac_ext >&5
19436ac_cv_func_strupr=no
19437fi
19438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19439fi
19440echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
19441echo "${ECHO_T}$ac_cv_func_strupr" >&6
19442if test $ac_cv_func_strupr = yes; then
19443
19444cat >>confdefs.h <<_ACEOF
19445#define HAVE_STRUPR 1
19446_ACEOF
19447
19448else
19449  LIBOBJS="$LIBOBJS strupr.$ac_objext"
19450fi
19451echo "$as_me:$LINENO: checking for swab" >&5
19452echo $ECHO_N "checking for swab... $ECHO_C" >&6
19453if test "${ac_cv_func_swab+set}" = set; then
19454  echo $ECHO_N "(cached) $ECHO_C" >&6
19455else
19456  cat >conftest.$ac_ext <<_ACEOF
19457#line $LINENO "configure"
19458#include "confdefs.h"
19459/* System header to define __stub macros and hopefully few prototypes,
19460    which can conflict with char swab (); below.  */
19461#include <assert.h>
19462/* Override any gcc2 internal prototype to avoid an error.  */
19463#ifdef __cplusplus
19464extern "C"
19465#endif
19466/* We use char because int might match the return type of a gcc2
19467   builtin and then its argument prototype would still apply.  */
19468char swab ();
19469char (*f) ();
19470
19471#ifdef F77_DUMMY_MAIN
19472#  ifdef __cplusplus
19473     extern "C"
19474#  endif
19475   int F77_DUMMY_MAIN() { return 1; }
19476#endif
19477int
19478main ()
19479{
19480/* The GNU C library defines this for functions which it implements
19481    to always fail with ENOSYS.  Some functions are actually named
19482    something starting with __ and the normal name is an alias.  */
19483#if defined (__stub_swab) || defined (__stub___swab)
19484choke me
19485#else
19486f = swab;
19487#endif
19488
19489  ;
19490  return 0;
19491}
19492_ACEOF
19493rm -f conftest.$ac_objext conftest$ac_exeext
19494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19495  (eval $ac_link) 2>&5
19496  ac_status=$?
19497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498  (exit $ac_status); } &&
19499         { ac_try='test -s conftest$ac_exeext'
19500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501  (eval $ac_try) 2>&5
19502  ac_status=$?
19503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504  (exit $ac_status); }; }; then
19505  ac_cv_func_swab=yes
19506else
19507  echo "$as_me: failed program was:" >&5
19508cat conftest.$ac_ext >&5
19509ac_cv_func_swab=no
19510fi
19511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19512fi
19513echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
19514echo "${ECHO_T}$ac_cv_func_swab" >&6
19515if test $ac_cv_func_swab = yes; then
19516
19517cat >>confdefs.h <<_ACEOF
19518#define HAVE_SWAB 1
19519_ACEOF
19520
19521else
19522  LIBOBJS="$LIBOBJS swab.$ac_objext"
19523fi
19524echo "$as_me:$LINENO: checking for unsetenv" >&5
19525echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
19526if test "${ac_cv_func_unsetenv+set}" = set; then
19527  echo $ECHO_N "(cached) $ECHO_C" >&6
19528else
19529  cat >conftest.$ac_ext <<_ACEOF
19530#line $LINENO "configure"
19531#include "confdefs.h"
19532/* System header to define __stub macros and hopefully few prototypes,
19533    which can conflict with char unsetenv (); below.  */
19534#include <assert.h>
19535/* Override any gcc2 internal prototype to avoid an error.  */
19536#ifdef __cplusplus
19537extern "C"
19538#endif
19539/* We use char because int might match the return type of a gcc2
19540   builtin and then its argument prototype would still apply.  */
19541char unsetenv ();
19542char (*f) ();
19543
19544#ifdef F77_DUMMY_MAIN
19545#  ifdef __cplusplus
19546     extern "C"
19547#  endif
19548   int F77_DUMMY_MAIN() { return 1; }
19549#endif
19550int
19551main ()
19552{
19553/* The GNU C library defines this for functions which it implements
19554    to always fail with ENOSYS.  Some functions are actually named
19555    something starting with __ and the normal name is an alias.  */
19556#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
19557choke me
19558#else
19559f = unsetenv;
19560#endif
19561
19562  ;
19563  return 0;
19564}
19565_ACEOF
19566rm -f conftest.$ac_objext conftest$ac_exeext
19567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568  (eval $ac_link) 2>&5
19569  ac_status=$?
19570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571  (exit $ac_status); } &&
19572         { ac_try='test -s conftest$ac_exeext'
19573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574  (eval $ac_try) 2>&5
19575  ac_status=$?
19576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577  (exit $ac_status); }; }; then
19578  ac_cv_func_unsetenv=yes
19579else
19580  echo "$as_me: failed program was:" >&5
19581cat conftest.$ac_ext >&5
19582ac_cv_func_unsetenv=no
19583fi
19584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19585fi
19586echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
19587echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
19588if test $ac_cv_func_unsetenv = yes; then
19589
19590cat >>confdefs.h <<_ACEOF
19591#define HAVE_UNSETENV 1
19592_ACEOF
19593
19594else
19595  LIBOBJS="$LIBOBJS unsetenv.$ac_objext"
19596fi
19597echo "$as_me:$LINENO: checking for verr" >&5
19598echo $ECHO_N "checking for verr... $ECHO_C" >&6
19599if test "${ac_cv_func_verr+set}" = set; then
19600  echo $ECHO_N "(cached) $ECHO_C" >&6
19601else
19602  cat >conftest.$ac_ext <<_ACEOF
19603#line $LINENO "configure"
19604#include "confdefs.h"
19605/* System header to define __stub macros and hopefully few prototypes,
19606    which can conflict with char verr (); below.  */
19607#include <assert.h>
19608/* Override any gcc2 internal prototype to avoid an error.  */
19609#ifdef __cplusplus
19610extern "C"
19611#endif
19612/* We use char because int might match the return type of a gcc2
19613   builtin and then its argument prototype would still apply.  */
19614char verr ();
19615char (*f) ();
19616
19617#ifdef F77_DUMMY_MAIN
19618#  ifdef __cplusplus
19619     extern "C"
19620#  endif
19621   int F77_DUMMY_MAIN() { return 1; }
19622#endif
19623int
19624main ()
19625{
19626/* The GNU C library defines this for functions which it implements
19627    to always fail with ENOSYS.  Some functions are actually named
19628    something starting with __ and the normal name is an alias.  */
19629#if defined (__stub_verr) || defined (__stub___verr)
19630choke me
19631#else
19632f = verr;
19633#endif
19634
19635  ;
19636  return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext conftest$ac_exeext
19640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641  (eval $ac_link) 2>&5
19642  ac_status=$?
19643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644  (exit $ac_status); } &&
19645         { ac_try='test -s conftest$ac_exeext'
19646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647  (eval $ac_try) 2>&5
19648  ac_status=$?
19649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650  (exit $ac_status); }; }; then
19651  ac_cv_func_verr=yes
19652else
19653  echo "$as_me: failed program was:" >&5
19654cat conftest.$ac_ext >&5
19655ac_cv_func_verr=no
19656fi
19657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19658fi
19659echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
19660echo "${ECHO_T}$ac_cv_func_verr" >&6
19661if test $ac_cv_func_verr = yes; then
19662
19663cat >>confdefs.h <<_ACEOF
19664#define HAVE_VERR 1
19665_ACEOF
19666
19667else
19668  LIBOBJS="$LIBOBJS verr.$ac_objext"
19669fi
19670echo "$as_me:$LINENO: checking for verrx" >&5
19671echo $ECHO_N "checking for verrx... $ECHO_C" >&6
19672if test "${ac_cv_func_verrx+set}" = set; then
19673  echo $ECHO_N "(cached) $ECHO_C" >&6
19674else
19675  cat >conftest.$ac_ext <<_ACEOF
19676#line $LINENO "configure"
19677#include "confdefs.h"
19678/* System header to define __stub macros and hopefully few prototypes,
19679    which can conflict with char verrx (); below.  */
19680#include <assert.h>
19681/* Override any gcc2 internal prototype to avoid an error.  */
19682#ifdef __cplusplus
19683extern "C"
19684#endif
19685/* We use char because int might match the return type of a gcc2
19686   builtin and then its argument prototype would still apply.  */
19687char verrx ();
19688char (*f) ();
19689
19690#ifdef F77_DUMMY_MAIN
19691#  ifdef __cplusplus
19692     extern "C"
19693#  endif
19694   int F77_DUMMY_MAIN() { return 1; }
19695#endif
19696int
19697main ()
19698{
19699/* The GNU C library defines this for functions which it implements
19700    to always fail with ENOSYS.  Some functions are actually named
19701    something starting with __ and the normal name is an alias.  */
19702#if defined (__stub_verrx) || defined (__stub___verrx)
19703choke me
19704#else
19705f = verrx;
19706#endif
19707
19708  ;
19709  return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext conftest$ac_exeext
19713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19714  (eval $ac_link) 2>&5
19715  ac_status=$?
19716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717  (exit $ac_status); } &&
19718         { ac_try='test -s conftest$ac_exeext'
19719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720  (eval $ac_try) 2>&5
19721  ac_status=$?
19722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723  (exit $ac_status); }; }; then
19724  ac_cv_func_verrx=yes
19725else
19726  echo "$as_me: failed program was:" >&5
19727cat conftest.$ac_ext >&5
19728ac_cv_func_verrx=no
19729fi
19730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19731fi
19732echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
19733echo "${ECHO_T}$ac_cv_func_verrx" >&6
19734if test $ac_cv_func_verrx = yes; then
19735
19736cat >>confdefs.h <<_ACEOF
19737#define HAVE_VERRX 1
19738_ACEOF
19739
19740else
19741  LIBOBJS="$LIBOBJS verrx.$ac_objext"
19742fi
19743echo "$as_me:$LINENO: checking for vsyslog" >&5
19744echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
19745if test "${ac_cv_func_vsyslog+set}" = set; then
19746  echo $ECHO_N "(cached) $ECHO_C" >&6
19747else
19748  cat >conftest.$ac_ext <<_ACEOF
19749#line $LINENO "configure"
19750#include "confdefs.h"
19751/* System header to define __stub macros and hopefully few prototypes,
19752    which can conflict with char vsyslog (); below.  */
19753#include <assert.h>
19754/* Override any gcc2 internal prototype to avoid an error.  */
19755#ifdef __cplusplus
19756extern "C"
19757#endif
19758/* We use char because int might match the return type of a gcc2
19759   builtin and then its argument prototype would still apply.  */
19760char vsyslog ();
19761char (*f) ();
19762
19763#ifdef F77_DUMMY_MAIN
19764#  ifdef __cplusplus
19765     extern "C"
19766#  endif
19767   int F77_DUMMY_MAIN() { return 1; }
19768#endif
19769int
19770main ()
19771{
19772/* The GNU C library defines this for functions which it implements
19773    to always fail with ENOSYS.  Some functions are actually named
19774    something starting with __ and the normal name is an alias.  */
19775#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
19776choke me
19777#else
19778f = vsyslog;
19779#endif
19780
19781  ;
19782  return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext conftest$ac_exeext
19786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19787  (eval $ac_link) 2>&5
19788  ac_status=$?
19789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790  (exit $ac_status); } &&
19791         { ac_try='test -s conftest$ac_exeext'
19792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793  (eval $ac_try) 2>&5
19794  ac_status=$?
19795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796  (exit $ac_status); }; }; then
19797  ac_cv_func_vsyslog=yes
19798else
19799  echo "$as_me: failed program was:" >&5
19800cat conftest.$ac_ext >&5
19801ac_cv_func_vsyslog=no
19802fi
19803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19804fi
19805echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
19806echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
19807if test $ac_cv_func_vsyslog = yes; then
19808
19809cat >>confdefs.h <<_ACEOF
19810#define HAVE_VSYSLOG 1
19811_ACEOF
19812
19813else
19814  LIBOBJS="$LIBOBJS vsyslog.$ac_objext"
19815fi
19816echo "$as_me:$LINENO: checking for vwarn" >&5
19817echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
19818if test "${ac_cv_func_vwarn+set}" = set; then
19819  echo $ECHO_N "(cached) $ECHO_C" >&6
19820else
19821  cat >conftest.$ac_ext <<_ACEOF
19822#line $LINENO "configure"
19823#include "confdefs.h"
19824/* System header to define __stub macros and hopefully few prototypes,
19825    which can conflict with char vwarn (); below.  */
19826#include <assert.h>
19827/* Override any gcc2 internal prototype to avoid an error.  */
19828#ifdef __cplusplus
19829extern "C"
19830#endif
19831/* We use char because int might match the return type of a gcc2
19832   builtin and then its argument prototype would still apply.  */
19833char vwarn ();
19834char (*f) ();
19835
19836#ifdef F77_DUMMY_MAIN
19837#  ifdef __cplusplus
19838     extern "C"
19839#  endif
19840   int F77_DUMMY_MAIN() { return 1; }
19841#endif
19842int
19843main ()
19844{
19845/* The GNU C library defines this for functions which it implements
19846    to always fail with ENOSYS.  Some functions are actually named
19847    something starting with __ and the normal name is an alias.  */
19848#if defined (__stub_vwarn) || defined (__stub___vwarn)
19849choke me
19850#else
19851f = vwarn;
19852#endif
19853
19854  ;
19855  return 0;
19856}
19857_ACEOF
19858rm -f conftest.$ac_objext conftest$ac_exeext
19859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19860  (eval $ac_link) 2>&5
19861  ac_status=$?
19862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863  (exit $ac_status); } &&
19864         { ac_try='test -s conftest$ac_exeext'
19865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866  (eval $ac_try) 2>&5
19867  ac_status=$?
19868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869  (exit $ac_status); }; }; then
19870  ac_cv_func_vwarn=yes
19871else
19872  echo "$as_me: failed program was:" >&5
19873cat conftest.$ac_ext >&5
19874ac_cv_func_vwarn=no
19875fi
19876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19877fi
19878echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
19879echo "${ECHO_T}$ac_cv_func_vwarn" >&6
19880if test $ac_cv_func_vwarn = yes; then
19881
19882cat >>confdefs.h <<_ACEOF
19883#define HAVE_VWARN 1
19884_ACEOF
19885
19886else
19887  LIBOBJS="$LIBOBJS vwarn.$ac_objext"
19888fi
19889echo "$as_me:$LINENO: checking for vwarnx" >&5
19890echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
19891if test "${ac_cv_func_vwarnx+set}" = set; then
19892  echo $ECHO_N "(cached) $ECHO_C" >&6
19893else
19894  cat >conftest.$ac_ext <<_ACEOF
19895#line $LINENO "configure"
19896#include "confdefs.h"
19897/* System header to define __stub macros and hopefully few prototypes,
19898    which can conflict with char vwarnx (); below.  */
19899#include <assert.h>
19900/* Override any gcc2 internal prototype to avoid an error.  */
19901#ifdef __cplusplus
19902extern "C"
19903#endif
19904/* We use char because int might match the return type of a gcc2
19905   builtin and then its argument prototype would still apply.  */
19906char vwarnx ();
19907char (*f) ();
19908
19909#ifdef F77_DUMMY_MAIN
19910#  ifdef __cplusplus
19911     extern "C"
19912#  endif
19913   int F77_DUMMY_MAIN() { return 1; }
19914#endif
19915int
19916main ()
19917{
19918/* The GNU C library defines this for functions which it implements
19919    to always fail with ENOSYS.  Some functions are actually named
19920    something starting with __ and the normal name is an alias.  */
19921#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
19922choke me
19923#else
19924f = vwarnx;
19925#endif
19926
19927  ;
19928  return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext conftest$ac_exeext
19932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19933  (eval $ac_link) 2>&5
19934  ac_status=$?
19935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936  (exit $ac_status); } &&
19937         { ac_try='test -s conftest$ac_exeext'
19938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939  (eval $ac_try) 2>&5
19940  ac_status=$?
19941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942  (exit $ac_status); }; }; then
19943  ac_cv_func_vwarnx=yes
19944else
19945  echo "$as_me: failed program was:" >&5
19946cat conftest.$ac_ext >&5
19947ac_cv_func_vwarnx=no
19948fi
19949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19950fi
19951echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
19952echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
19953if test $ac_cv_func_vwarnx = yes; then
19954
19955cat >>confdefs.h <<_ACEOF
19956#define HAVE_VWARNX 1
19957_ACEOF
19958
19959else
19960  LIBOBJS="$LIBOBJS vwarnx.$ac_objext"
19961fi
19962echo "$as_me:$LINENO: checking for warn" >&5
19963echo $ECHO_N "checking for warn... $ECHO_C" >&6
19964if test "${ac_cv_func_warn+set}" = set; then
19965  echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967  cat >conftest.$ac_ext <<_ACEOF
19968#line $LINENO "configure"
19969#include "confdefs.h"
19970/* System header to define __stub macros and hopefully few prototypes,
19971    which can conflict with char warn (); below.  */
19972#include <assert.h>
19973/* Override any gcc2 internal prototype to avoid an error.  */
19974#ifdef __cplusplus
19975extern "C"
19976#endif
19977/* We use char because int might match the return type of a gcc2
19978   builtin and then its argument prototype would still apply.  */
19979char warn ();
19980char (*f) ();
19981
19982#ifdef F77_DUMMY_MAIN
19983#  ifdef __cplusplus
19984     extern "C"
19985#  endif
19986   int F77_DUMMY_MAIN() { return 1; }
19987#endif
19988int
19989main ()
19990{
19991/* The GNU C library defines this for functions which it implements
19992    to always fail with ENOSYS.  Some functions are actually named
19993    something starting with __ and the normal name is an alias.  */
19994#if defined (__stub_warn) || defined (__stub___warn)
19995choke me
19996#else
19997f = warn;
19998#endif
19999
20000  ;
20001  return 0;
20002}
20003_ACEOF
20004rm -f conftest.$ac_objext conftest$ac_exeext
20005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006  (eval $ac_link) 2>&5
20007  ac_status=$?
20008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009  (exit $ac_status); } &&
20010         { ac_try='test -s conftest$ac_exeext'
20011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012  (eval $ac_try) 2>&5
20013  ac_status=$?
20014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015  (exit $ac_status); }; }; then
20016  ac_cv_func_warn=yes
20017else
20018  echo "$as_me: failed program was:" >&5
20019cat conftest.$ac_ext >&5
20020ac_cv_func_warn=no
20021fi
20022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20023fi
20024echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
20025echo "${ECHO_T}$ac_cv_func_warn" >&6
20026if test $ac_cv_func_warn = yes; then
20027
20028cat >>confdefs.h <<_ACEOF
20029#define HAVE_WARN 1
20030_ACEOF
20031
20032else
20033  LIBOBJS="$LIBOBJS warn.$ac_objext"
20034fi
20035echo "$as_me:$LINENO: checking for warnx" >&5
20036echo $ECHO_N "checking for warnx... $ECHO_C" >&6
20037if test "${ac_cv_func_warnx+set}" = set; then
20038  echo $ECHO_N "(cached) $ECHO_C" >&6
20039else
20040  cat >conftest.$ac_ext <<_ACEOF
20041#line $LINENO "configure"
20042#include "confdefs.h"
20043/* System header to define __stub macros and hopefully few prototypes,
20044    which can conflict with char warnx (); below.  */
20045#include <assert.h>
20046/* Override any gcc2 internal prototype to avoid an error.  */
20047#ifdef __cplusplus
20048extern "C"
20049#endif
20050/* We use char because int might match the return type of a gcc2
20051   builtin and then its argument prototype would still apply.  */
20052char warnx ();
20053char (*f) ();
20054
20055#ifdef F77_DUMMY_MAIN
20056#  ifdef __cplusplus
20057     extern "C"
20058#  endif
20059   int F77_DUMMY_MAIN() { return 1; }
20060#endif
20061int
20062main ()
20063{
20064/* The GNU C library defines this for functions which it implements
20065    to always fail with ENOSYS.  Some functions are actually named
20066    something starting with __ and the normal name is an alias.  */
20067#if defined (__stub_warnx) || defined (__stub___warnx)
20068choke me
20069#else
20070f = warnx;
20071#endif
20072
20073  ;
20074  return 0;
20075}
20076_ACEOF
20077rm -f conftest.$ac_objext conftest$ac_exeext
20078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079  (eval $ac_link) 2>&5
20080  ac_status=$?
20081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082  (exit $ac_status); } &&
20083         { ac_try='test -s conftest$ac_exeext'
20084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20085  (eval $ac_try) 2>&5
20086  ac_status=$?
20087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088  (exit $ac_status); }; }; then
20089  ac_cv_func_warnx=yes
20090else
20091  echo "$as_me: failed program was:" >&5
20092cat conftest.$ac_ext >&5
20093ac_cv_func_warnx=no
20094fi
20095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20096fi
20097echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
20098echo "${ECHO_T}$ac_cv_func_warnx" >&6
20099if test $ac_cv_func_warnx = yes; then
20100
20101cat >>confdefs.h <<_ACEOF
20102#define HAVE_WARNX 1
20103_ACEOF
20104
20105else
20106  LIBOBJS="$LIBOBJS warnx.$ac_objext"
20107fi
20108echo "$as_me:$LINENO: checking for writev" >&5
20109echo $ECHO_N "checking for writev... $ECHO_C" >&6
20110if test "${ac_cv_func_writev+set}" = set; then
20111  echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113  cat >conftest.$ac_ext <<_ACEOF
20114#line $LINENO "configure"
20115#include "confdefs.h"
20116/* System header to define __stub macros and hopefully few prototypes,
20117    which can conflict with char writev (); below.  */
20118#include <assert.h>
20119/* Override any gcc2 internal prototype to avoid an error.  */
20120#ifdef __cplusplus
20121extern "C"
20122#endif
20123/* We use char because int might match the return type of a gcc2
20124   builtin and then its argument prototype would still apply.  */
20125char writev ();
20126char (*f) ();
20127
20128#ifdef F77_DUMMY_MAIN
20129#  ifdef __cplusplus
20130     extern "C"
20131#  endif
20132   int F77_DUMMY_MAIN() { return 1; }
20133#endif
20134int
20135main ()
20136{
20137/* The GNU C library defines this for functions which it implements
20138    to always fail with ENOSYS.  Some functions are actually named
20139    something starting with __ and the normal name is an alias.  */
20140#if defined (__stub_writev) || defined (__stub___writev)
20141choke me
20142#else
20143f = writev;
20144#endif
20145
20146  ;
20147  return 0;
20148}
20149_ACEOF
20150rm -f conftest.$ac_objext conftest$ac_exeext
20151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20152  (eval $ac_link) 2>&5
20153  ac_status=$?
20154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155  (exit $ac_status); } &&
20156         { ac_try='test -s conftest$ac_exeext'
20157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158  (eval $ac_try) 2>&5
20159  ac_status=$?
20160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161  (exit $ac_status); }; }; then
20162  ac_cv_func_writev=yes
20163else
20164  echo "$as_me: failed program was:" >&5
20165cat conftest.$ac_ext >&5
20166ac_cv_func_writev=no
20167fi
20168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20169fi
20170echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
20171echo "${ECHO_T}$ac_cv_func_writev" >&6
20172if test $ac_cv_func_writev = yes; then
20173
20174cat >>confdefs.h <<_ACEOF
20175#define HAVE_WRITEV 1
20176_ACEOF
20177
20178else
20179  LIBOBJS="$LIBOBJS writev.$ac_objext"
20180fi
20181
20182
20183
20184if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
20185echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
20186echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
20187if test "${ac_cv_func_strndup_noproto+set}" = set; then
20188  echo $ECHO_N "(cached) $ECHO_C" >&6
20189else
20190  cat >conftest.$ac_ext <<_ACEOF
20191#line $LINENO "configure"
20192#include "confdefs.h"
20193#include <string.h>
20194#ifdef F77_DUMMY_MAIN
20195#  ifdef __cplusplus
20196     extern "C"
20197#  endif
20198   int F77_DUMMY_MAIN() { return 1; }
20199#endif
20200int
20201main ()
20202{
20203struct foo { int foo; } xx;
20204extern int strndup (struct foo*);
20205strndup(&xx);
20206
20207  ;
20208  return 0;
20209}
20210_ACEOF
20211rm -f conftest.$ac_objext
20212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20213  (eval $ac_compile) 2>&5
20214  ac_status=$?
20215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216  (exit $ac_status); } &&
20217         { ac_try='test -s conftest.$ac_objext'
20218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219  (eval $ac_try) 2>&5
20220  ac_status=$?
20221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222  (exit $ac_status); }; }; then
20223  eval "ac_cv_func_strndup_noproto=yes"
20224else
20225  echo "$as_me: failed program was:" >&5
20226cat conftest.$ac_ext >&5
20227eval "ac_cv_func_strndup_noproto=no"
20228fi
20229rm -f conftest.$ac_objext conftest.$ac_ext
20230fi
20231echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
20232echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
20233if test "$ac_cv_func_strndup_noproto" = yes; then
20234
20235cat >>confdefs.h <<\_ACEOF
20236#define NEED_STRNDUP_PROTO 1
20237_ACEOF
20238
20239fi
20240fi
20241
20242if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
20243echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
20244echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
20245if test "${ac_cv_func_strsep_noproto+set}" = set; then
20246  echo $ECHO_N "(cached) $ECHO_C" >&6
20247else
20248  cat >conftest.$ac_ext <<_ACEOF
20249#line $LINENO "configure"
20250#include "confdefs.h"
20251#include <string.h>
20252#ifdef F77_DUMMY_MAIN
20253#  ifdef __cplusplus
20254     extern "C"
20255#  endif
20256   int F77_DUMMY_MAIN() { return 1; }
20257#endif
20258int
20259main ()
20260{
20261struct foo { int foo; } xx;
20262extern int strsep (struct foo*);
20263strsep(&xx);
20264
20265  ;
20266  return 0;
20267}
20268_ACEOF
20269rm -f conftest.$ac_objext
20270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20271  (eval $ac_compile) 2>&5
20272  ac_status=$?
20273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274  (exit $ac_status); } &&
20275         { ac_try='test -s conftest.$ac_objext'
20276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277  (eval $ac_try) 2>&5
20278  ac_status=$?
20279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280  (exit $ac_status); }; }; then
20281  eval "ac_cv_func_strsep_noproto=yes"
20282else
20283  echo "$as_me: failed program was:" >&5
20284cat conftest.$ac_ext >&5
20285eval "ac_cv_func_strsep_noproto=no"
20286fi
20287rm -f conftest.$ac_objext conftest.$ac_ext
20288fi
20289echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
20290echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
20291if test "$ac_cv_func_strsep_noproto" = yes; then
20292
20293cat >>confdefs.h <<\_ACEOF
20294#define NEED_STRSEP_PROTO 1
20295_ACEOF
20296
20297fi
20298fi
20299
20300if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
20301echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
20302echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
20303if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
20304  echo $ECHO_N "(cached) $ECHO_C" >&6
20305else
20306  cat >conftest.$ac_ext <<_ACEOF
20307#line $LINENO "configure"
20308#include "confdefs.h"
20309#include <string.h>
20310#ifdef F77_DUMMY_MAIN
20311#  ifdef __cplusplus
20312     extern "C"
20313#  endif
20314   int F77_DUMMY_MAIN() { return 1; }
20315#endif
20316int
20317main ()
20318{
20319struct foo { int foo; } xx;
20320extern int strtok_r (struct foo*);
20321strtok_r(&xx);
20322
20323  ;
20324  return 0;
20325}
20326_ACEOF
20327rm -f conftest.$ac_objext
20328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20329  (eval $ac_compile) 2>&5
20330  ac_status=$?
20331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332  (exit $ac_status); } &&
20333         { ac_try='test -s conftest.$ac_objext'
20334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335  (eval $ac_try) 2>&5
20336  ac_status=$?
20337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338  (exit $ac_status); }; }; then
20339  eval "ac_cv_func_strtok_r_noproto=yes"
20340else
20341  echo "$as_me: failed program was:" >&5
20342cat conftest.$ac_ext >&5
20343eval "ac_cv_func_strtok_r_noproto=no"
20344fi
20345rm -f conftest.$ac_objext conftest.$ac_ext
20346fi
20347echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
20348echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
20349if test "$ac_cv_func_strtok_r_noproto" = yes; then
20350
20351cat >>confdefs.h <<\_ACEOF
20352#define NEED_STRTOK_R_PROTO 1
20353_ACEOF
20354
20355fi
20356fi
20357
20358
20359
20360if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
20361echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
20362echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
20363if test "${ac_cv_func_strsvis_noproto+set}" = set; then
20364  echo $ECHO_N "(cached) $ECHO_C" >&6
20365else
20366  cat >conftest.$ac_ext <<_ACEOF
20367#line $LINENO "configure"
20368#include "confdefs.h"
20369#ifdef HAVE_VIS_H
20370#include <vis.h>
20371#endif
20372#ifdef F77_DUMMY_MAIN
20373#  ifdef __cplusplus
20374     extern "C"
20375#  endif
20376   int F77_DUMMY_MAIN() { return 1; }
20377#endif
20378int
20379main ()
20380{
20381struct foo { int foo; } xx;
20382extern int strsvis (struct foo*);
20383strsvis(&xx);
20384
20385  ;
20386  return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext
20390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20391  (eval $ac_compile) 2>&5
20392  ac_status=$?
20393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394  (exit $ac_status); } &&
20395         { ac_try='test -s conftest.$ac_objext'
20396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397  (eval $ac_try) 2>&5
20398  ac_status=$?
20399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400  (exit $ac_status); }; }; then
20401  eval "ac_cv_func_strsvis_noproto=yes"
20402else
20403  echo "$as_me: failed program was:" >&5
20404cat conftest.$ac_ext >&5
20405eval "ac_cv_func_strsvis_noproto=no"
20406fi
20407rm -f conftest.$ac_objext conftest.$ac_ext
20408fi
20409echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
20410echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
20411if test "$ac_cv_func_strsvis_noproto" = yes; then
20412
20413cat >>confdefs.h <<\_ACEOF
20414#define NEED_STRSVIS_PROTO 1
20415_ACEOF
20416
20417fi
20418fi
20419
20420if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
20421echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
20422echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
20423if test "${ac_cv_func_strunvis_noproto+set}" = set; then
20424  echo $ECHO_N "(cached) $ECHO_C" >&6
20425else
20426  cat >conftest.$ac_ext <<_ACEOF
20427#line $LINENO "configure"
20428#include "confdefs.h"
20429#ifdef HAVE_VIS_H
20430#include <vis.h>
20431#endif
20432#ifdef F77_DUMMY_MAIN
20433#  ifdef __cplusplus
20434     extern "C"
20435#  endif
20436   int F77_DUMMY_MAIN() { return 1; }
20437#endif
20438int
20439main ()
20440{
20441struct foo { int foo; } xx;
20442extern int strunvis (struct foo*);
20443strunvis(&xx);
20444
20445  ;
20446  return 0;
20447}
20448_ACEOF
20449rm -f conftest.$ac_objext
20450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20451  (eval $ac_compile) 2>&5
20452  ac_status=$?
20453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454  (exit $ac_status); } &&
20455         { ac_try='test -s conftest.$ac_objext'
20456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20457  (eval $ac_try) 2>&5
20458  ac_status=$?
20459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460  (exit $ac_status); }; }; then
20461  eval "ac_cv_func_strunvis_noproto=yes"
20462else
20463  echo "$as_me: failed program was:" >&5
20464cat conftest.$ac_ext >&5
20465eval "ac_cv_func_strunvis_noproto=no"
20466fi
20467rm -f conftest.$ac_objext conftest.$ac_ext
20468fi
20469echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
20470echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
20471if test "$ac_cv_func_strunvis_noproto" = yes; then
20472
20473cat >>confdefs.h <<\_ACEOF
20474#define NEED_STRUNVIS_PROTO 1
20475_ACEOF
20476
20477fi
20478fi
20479
20480if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
20481echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
20482echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
20483if test "${ac_cv_func_strvis_noproto+set}" = set; then
20484  echo $ECHO_N "(cached) $ECHO_C" >&6
20485else
20486  cat >conftest.$ac_ext <<_ACEOF
20487#line $LINENO "configure"
20488#include "confdefs.h"
20489#ifdef HAVE_VIS_H
20490#include <vis.h>
20491#endif
20492#ifdef F77_DUMMY_MAIN
20493#  ifdef __cplusplus
20494     extern "C"
20495#  endif
20496   int F77_DUMMY_MAIN() { return 1; }
20497#endif
20498int
20499main ()
20500{
20501struct foo { int foo; } xx;
20502extern int strvis (struct foo*);
20503strvis(&xx);
20504
20505  ;
20506  return 0;
20507}
20508_ACEOF
20509rm -f conftest.$ac_objext
20510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20511  (eval $ac_compile) 2>&5
20512  ac_status=$?
20513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514  (exit $ac_status); } &&
20515         { ac_try='test -s conftest.$ac_objext'
20516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517  (eval $ac_try) 2>&5
20518  ac_status=$?
20519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520  (exit $ac_status); }; }; then
20521  eval "ac_cv_func_strvis_noproto=yes"
20522else
20523  echo "$as_me: failed program was:" >&5
20524cat conftest.$ac_ext >&5
20525eval "ac_cv_func_strvis_noproto=no"
20526fi
20527rm -f conftest.$ac_objext conftest.$ac_ext
20528fi
20529echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
20530echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
20531if test "$ac_cv_func_strvis_noproto" = yes; then
20532
20533cat >>confdefs.h <<\_ACEOF
20534#define NEED_STRVIS_PROTO 1
20535_ACEOF
20536
20537fi
20538fi
20539
20540if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
20541echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
20542echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
20543if test "${ac_cv_func_strvisx_noproto+set}" = set; then
20544  echo $ECHO_N "(cached) $ECHO_C" >&6
20545else
20546  cat >conftest.$ac_ext <<_ACEOF
20547#line $LINENO "configure"
20548#include "confdefs.h"
20549#ifdef HAVE_VIS_H
20550#include <vis.h>
20551#endif
20552#ifdef F77_DUMMY_MAIN
20553#  ifdef __cplusplus
20554     extern "C"
20555#  endif
20556   int F77_DUMMY_MAIN() { return 1; }
20557#endif
20558int
20559main ()
20560{
20561struct foo { int foo; } xx;
20562extern int strvisx (struct foo*);
20563strvisx(&xx);
20564
20565  ;
20566  return 0;
20567}
20568_ACEOF
20569rm -f conftest.$ac_objext
20570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20571  (eval $ac_compile) 2>&5
20572  ac_status=$?
20573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574  (exit $ac_status); } &&
20575         { ac_try='test -s conftest.$ac_objext'
20576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577  (eval $ac_try) 2>&5
20578  ac_status=$?
20579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580  (exit $ac_status); }; }; then
20581  eval "ac_cv_func_strvisx_noproto=yes"
20582else
20583  echo "$as_me: failed program was:" >&5
20584cat conftest.$ac_ext >&5
20585eval "ac_cv_func_strvisx_noproto=no"
20586fi
20587rm -f conftest.$ac_objext conftest.$ac_ext
20588fi
20589echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
20590echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
20591if test "$ac_cv_func_strvisx_noproto" = yes; then
20592
20593cat >>confdefs.h <<\_ACEOF
20594#define NEED_STRVISX_PROTO 1
20595_ACEOF
20596
20597fi
20598fi
20599
20600if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
20601echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
20602echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
20603if test "${ac_cv_func_svis_noproto+set}" = set; then
20604  echo $ECHO_N "(cached) $ECHO_C" >&6
20605else
20606  cat >conftest.$ac_ext <<_ACEOF
20607#line $LINENO "configure"
20608#include "confdefs.h"
20609#ifdef HAVE_VIS_H
20610#include <vis.h>
20611#endif
20612#ifdef F77_DUMMY_MAIN
20613#  ifdef __cplusplus
20614     extern "C"
20615#  endif
20616   int F77_DUMMY_MAIN() { return 1; }
20617#endif
20618int
20619main ()
20620{
20621struct foo { int foo; } xx;
20622extern int svis (struct foo*);
20623svis(&xx);
20624
20625  ;
20626  return 0;
20627}
20628_ACEOF
20629rm -f conftest.$ac_objext
20630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20631  (eval $ac_compile) 2>&5
20632  ac_status=$?
20633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634  (exit $ac_status); } &&
20635         { ac_try='test -s conftest.$ac_objext'
20636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637  (eval $ac_try) 2>&5
20638  ac_status=$?
20639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640  (exit $ac_status); }; }; then
20641  eval "ac_cv_func_svis_noproto=yes"
20642else
20643  echo "$as_me: failed program was:" >&5
20644cat conftest.$ac_ext >&5
20645eval "ac_cv_func_svis_noproto=no"
20646fi
20647rm -f conftest.$ac_objext conftest.$ac_ext
20648fi
20649echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
20650echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
20651if test "$ac_cv_func_svis_noproto" = yes; then
20652
20653cat >>confdefs.h <<\_ACEOF
20654#define NEED_SVIS_PROTO 1
20655_ACEOF
20656
20657fi
20658fi
20659
20660if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
20661echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
20662echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
20663if test "${ac_cv_func_unvis_noproto+set}" = set; then
20664  echo $ECHO_N "(cached) $ECHO_C" >&6
20665else
20666  cat >conftest.$ac_ext <<_ACEOF
20667#line $LINENO "configure"
20668#include "confdefs.h"
20669#ifdef HAVE_VIS_H
20670#include <vis.h>
20671#endif
20672#ifdef F77_DUMMY_MAIN
20673#  ifdef __cplusplus
20674     extern "C"
20675#  endif
20676   int F77_DUMMY_MAIN() { return 1; }
20677#endif
20678int
20679main ()
20680{
20681struct foo { int foo; } xx;
20682extern int unvis (struct foo*);
20683unvis(&xx);
20684
20685  ;
20686  return 0;
20687}
20688_ACEOF
20689rm -f conftest.$ac_objext
20690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20691  (eval $ac_compile) 2>&5
20692  ac_status=$?
20693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } &&
20695         { ac_try='test -s conftest.$ac_objext'
20696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697  (eval $ac_try) 2>&5
20698  ac_status=$?
20699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700  (exit $ac_status); }; }; then
20701  eval "ac_cv_func_unvis_noproto=yes"
20702else
20703  echo "$as_me: failed program was:" >&5
20704cat conftest.$ac_ext >&5
20705eval "ac_cv_func_unvis_noproto=no"
20706fi
20707rm -f conftest.$ac_objext conftest.$ac_ext
20708fi
20709echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
20710echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
20711if test "$ac_cv_func_unvis_noproto" = yes; then
20712
20713cat >>confdefs.h <<\_ACEOF
20714#define NEED_UNVIS_PROTO 1
20715_ACEOF
20716
20717fi
20718fi
20719
20720if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
20721echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
20722echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
20723if test "${ac_cv_func_vis_noproto+set}" = set; then
20724  echo $ECHO_N "(cached) $ECHO_C" >&6
20725else
20726  cat >conftest.$ac_ext <<_ACEOF
20727#line $LINENO "configure"
20728#include "confdefs.h"
20729#ifdef HAVE_VIS_H
20730#include <vis.h>
20731#endif
20732#ifdef F77_DUMMY_MAIN
20733#  ifdef __cplusplus
20734     extern "C"
20735#  endif
20736   int F77_DUMMY_MAIN() { return 1; }
20737#endif
20738int
20739main ()
20740{
20741struct foo { int foo; } xx;
20742extern int vis (struct foo*);
20743vis(&xx);
20744
20745  ;
20746  return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext
20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751  (eval $ac_compile) 2>&5
20752  ac_status=$?
20753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754  (exit $ac_status); } &&
20755         { ac_try='test -s conftest.$ac_objext'
20756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757  (eval $ac_try) 2>&5
20758  ac_status=$?
20759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760  (exit $ac_status); }; }; then
20761  eval "ac_cv_func_vis_noproto=yes"
20762else
20763  echo "$as_me: failed program was:" >&5
20764cat conftest.$ac_ext >&5
20765eval "ac_cv_func_vis_noproto=no"
20766fi
20767rm -f conftest.$ac_objext conftest.$ac_ext
20768fi
20769echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
20770echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
20771if test "$ac_cv_func_vis_noproto" = yes; then
20772
20773cat >>confdefs.h <<\_ACEOF
20774#define NEED_VIS_PROTO 1
20775_ACEOF
20776
20777fi
20778fi
20779
20780
20781echo "$as_me:$LINENO: checking for inet_aton" >&5
20782echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
20783if test "${ac_cv_func_inet_aton+set}" = set; then
20784  echo $ECHO_N "(cached) $ECHO_C" >&6
20785else
20786  cat >conftest.$ac_ext <<_ACEOF
20787#line $LINENO "configure"
20788#include "confdefs.h"
20789#ifdef HAVE_SYS_TYPES_H
20790#include <sys/types.h>
20791#endif
20792#ifdef HAVE_SYS_SOCKET_H
20793#include <sys/socket.h>
20794#endif
20795#ifdef HAVE_NETINET_IN_H
20796#include <netinet/in.h>
20797#endif
20798#ifdef HAVE_ARPA_INET_H
20799#include <arpa/inet.h>
20800#endif
20801#ifdef F77_DUMMY_MAIN
20802#  ifdef __cplusplus
20803     extern "C"
20804#  endif
20805   int F77_DUMMY_MAIN() { return 1; }
20806#endif
20807int
20808main ()
20809{
20810
20811/* The GNU C library defines this for functions which it implements
20812    to always fail with ENOSYS.  Some functions are actually named
20813    something starting with __ and the normal name is an alias.  */
20814#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
20815choke me
20816#else
20817inet_aton(0,0)
20818#endif
20819
20820  ;
20821  return 0;
20822}
20823_ACEOF
20824rm -f conftest.$ac_objext conftest$ac_exeext
20825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20826  (eval $ac_link) 2>&5
20827  ac_status=$?
20828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829  (exit $ac_status); } &&
20830         { ac_try='test -s conftest$ac_exeext'
20831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832  (eval $ac_try) 2>&5
20833  ac_status=$?
20834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835  (exit $ac_status); }; }; then
20836  eval "ac_cv_func_inet_aton=yes"
20837else
20838  echo "$as_me: failed program was:" >&5
20839cat conftest.$ac_ext >&5
20840eval "ac_cv_func_inet_aton=no"
20841fi
20842rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20843fi
20844
20845if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
20846
20847cat >>confdefs.h <<_ACEOF
20848#define HAVE_INET_ATON 1
20849_ACEOF
20850
20851  echo "$as_me:$LINENO: result: yes" >&5
20852echo "${ECHO_T}yes" >&6
20853else
20854  echo "$as_me:$LINENO: result: no" >&5
20855echo "${ECHO_T}no" >&6
20856  LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
20857fi
20858
20859echo "$as_me:$LINENO: checking for inet_ntop" >&5
20860echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
20861if test "${ac_cv_func_inet_ntop+set}" = set; then
20862  echo $ECHO_N "(cached) $ECHO_C" >&6
20863else
20864  cat >conftest.$ac_ext <<_ACEOF
20865#line $LINENO "configure"
20866#include "confdefs.h"
20867#ifdef HAVE_SYS_TYPES_H
20868#include <sys/types.h>
20869#endif
20870#ifdef HAVE_SYS_SOCKET_H
20871#include <sys/socket.h>
20872#endif
20873#ifdef HAVE_NETINET_IN_H
20874#include <netinet/in.h>
20875#endif
20876#ifdef HAVE_ARPA_INET_H
20877#include <arpa/inet.h>
20878#endif
20879#ifdef F77_DUMMY_MAIN
20880#  ifdef __cplusplus
20881     extern "C"
20882#  endif
20883   int F77_DUMMY_MAIN() { return 1; }
20884#endif
20885int
20886main ()
20887{
20888
20889/* The GNU C library defines this for functions which it implements
20890    to always fail with ENOSYS.  Some functions are actually named
20891    something starting with __ and the normal name is an alias.  */
20892#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
20893choke me
20894#else
20895inet_ntop(0, 0, 0, 0)
20896#endif
20897
20898  ;
20899  return 0;
20900}
20901_ACEOF
20902rm -f conftest.$ac_objext conftest$ac_exeext
20903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20904  (eval $ac_link) 2>&5
20905  ac_status=$?
20906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907  (exit $ac_status); } &&
20908         { ac_try='test -s conftest$ac_exeext'
20909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20910  (eval $ac_try) 2>&5
20911  ac_status=$?
20912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913  (exit $ac_status); }; }; then
20914  eval "ac_cv_func_inet_ntop=yes"
20915else
20916  echo "$as_me: failed program was:" >&5
20917cat conftest.$ac_ext >&5
20918eval "ac_cv_func_inet_ntop=no"
20919fi
20920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20921fi
20922
20923if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
20924
20925cat >>confdefs.h <<_ACEOF
20926#define HAVE_INET_NTOP 1
20927_ACEOF
20928
20929  echo "$as_me:$LINENO: result: yes" >&5
20930echo "${ECHO_T}yes" >&6
20931else
20932  echo "$as_me:$LINENO: result: no" >&5
20933echo "${ECHO_T}no" >&6
20934  LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
20935fi
20936
20937echo "$as_me:$LINENO: checking for inet_pton" >&5
20938echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
20939if test "${ac_cv_func_inet_pton+set}" = set; then
20940  echo $ECHO_N "(cached) $ECHO_C" >&6
20941else
20942  cat >conftest.$ac_ext <<_ACEOF
20943#line $LINENO "configure"
20944#include "confdefs.h"
20945#ifdef HAVE_SYS_TYPES_H
20946#include <sys/types.h>
20947#endif
20948#ifdef HAVE_SYS_SOCKET_H
20949#include <sys/socket.h>
20950#endif
20951#ifdef HAVE_NETINET_IN_H
20952#include <netinet/in.h>
20953#endif
20954#ifdef HAVE_ARPA_INET_H
20955#include <arpa/inet.h>
20956#endif
20957#ifdef F77_DUMMY_MAIN
20958#  ifdef __cplusplus
20959     extern "C"
20960#  endif
20961   int F77_DUMMY_MAIN() { return 1; }
20962#endif
20963int
20964main ()
20965{
20966
20967/* The GNU C library defines this for functions which it implements
20968    to always fail with ENOSYS.  Some functions are actually named
20969    something starting with __ and the normal name is an alias.  */
20970#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
20971choke me
20972#else
20973inet_pton(0,0,0)
20974#endif
20975
20976  ;
20977  return 0;
20978}
20979_ACEOF
20980rm -f conftest.$ac_objext conftest$ac_exeext
20981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20982  (eval $ac_link) 2>&5
20983  ac_status=$?
20984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985  (exit $ac_status); } &&
20986         { ac_try='test -s conftest$ac_exeext'
20987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20988  (eval $ac_try) 2>&5
20989  ac_status=$?
20990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991  (exit $ac_status); }; }; then
20992  eval "ac_cv_func_inet_pton=yes"
20993else
20994  echo "$as_me: failed program was:" >&5
20995cat conftest.$ac_ext >&5
20996eval "ac_cv_func_inet_pton=no"
20997fi
20998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20999fi
21000
21001if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
21002
21003cat >>confdefs.h <<_ACEOF
21004#define HAVE_INET_PTON 1
21005_ACEOF
21006
21007  echo "$as_me:$LINENO: result: yes" >&5
21008echo "${ECHO_T}yes" >&6
21009else
21010  echo "$as_me:$LINENO: result: no" >&5
21011echo "${ECHO_T}no" >&6
21012  LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
21013fi
21014
21015
21016
21017echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
21018echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
21019if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
21020  echo $ECHO_N "(cached) $ECHO_C" >&6
21021else
21022
21023cat >conftest.$ac_ext <<_ACEOF
21024#line $LINENO "configure"
21025#include "confdefs.h"
21026#include <sys/types.h>
21027#include <sys/socket.h>
21028#ifdef F77_DUMMY_MAIN
21029#  ifdef __cplusplus
21030     extern "C"
21031#  endif
21032   int F77_DUMMY_MAIN() { return 1; }
21033#endif
21034int
21035main ()
21036{
21037struct sockaddr x; x.sa_len;
21038  ;
21039  return 0;
21040}
21041_ACEOF
21042rm -f conftest.$ac_objext
21043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21044  (eval $ac_compile) 2>&5
21045  ac_status=$?
21046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047  (exit $ac_status); } &&
21048         { ac_try='test -s conftest.$ac_objext'
21049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050  (eval $ac_try) 2>&5
21051  ac_status=$?
21052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053  (exit $ac_status); }; }; then
21054  ac_cv_type_struct_sockaddr_sa_len=yes
21055else
21056  echo "$as_me: failed program was:" >&5
21057cat conftest.$ac_ext >&5
21058ac_cv_type_struct_sockaddr_sa_len=no
21059fi
21060rm -f conftest.$ac_objext conftest.$ac_ext
21061fi
21062echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
21063echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
21064if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
21065
21066
21067cat >>confdefs.h <<\_ACEOF
21068#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21069_ACEOF
21070
21071
21072fi
21073
21074
21075
21076if test "$ac_cv_func_getnameinfo" = "yes"; then
21077
21078echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
21079echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
21080if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
21081  echo $ECHO_N "(cached) $ECHO_C" >&6
21082else
21083  if test "$cross_compiling" = yes; then
21084  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21085echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21086   { (exit 1); exit 1; }; }
21087else
21088  cat >conftest.$ac_ext <<_ACEOF
21089#line $LINENO "configure"
21090#include "confdefs.h"
21091#include <stdio.h>
21092#include <sys/types.h>
21093#include <sys/socket.h>
21094#include <netinet/in.h>
21095#include <netdb.h>
21096
21097int
21098main(int argc, char **argv)
21099{
21100  struct sockaddr_in sin;
21101  char host[256];
21102  memset(&sin, 0, sizeof(sin));
21103#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
21104  sin.sin_len = sizeof(sin);
21105#endif
21106  sin.sin_family = AF_INET;
21107  sin.sin_addr.s_addr = 0xffffffff;
21108  sin.sin_port = 0;
21109  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
21110	      NULL, 0, 0);
21111}
21112
21113_ACEOF
21114rm -f conftest$ac_exeext
21115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21116  (eval $ac_link) 2>&5
21117  ac_status=$?
21118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21121  (eval $ac_try) 2>&5
21122  ac_status=$?
21123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124  (exit $ac_status); }; }; then
21125  ac_cv_func_getnameinfo_broken=no
21126else
21127  echo "$as_me: program exited with status $ac_status" >&5
21128echo "$as_me: failed program was:" >&5
21129cat conftest.$ac_ext >&5
21130( exit $ac_status )
21131ac_cv_func_getnameinfo_broken=yes
21132fi
21133rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21134fi
21135fi
21136echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
21137echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
21138  if test "$ac_cv_func_getnameinfo_broken" = yes; then
21139	LIBOBJS="$LIBOBJS getnameinfo.$ac_objext"
21140  fi
21141fi
21142
21143if test "$ac_cv_func_getaddrinfo" = "yes"; then
21144
21145echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
21146echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
21147if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
21148  echo $ECHO_N "(cached) $ECHO_C" >&6
21149else
21150  if test "$cross_compiling" = yes; then
21151  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
21152echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21153   { (exit 1); exit 1; }; }
21154else
21155  cat >conftest.$ac_ext <<_ACEOF
21156#line $LINENO "configure"
21157#include "confdefs.h"
21158#include <stdio.h>
21159#include <sys/types.h>
21160#include <sys/socket.h>
21161#include <netdb.h>
21162
21163int
21164main(int argc, char **argv)
21165{
21166	struct addrinfo hints, *ai;
21167	memset(&hints, 0, sizeof(hints));
21168	hints.ai_flags = AI_PASSIVE;
21169	hints.ai_socktype = SOCK_STREAM;
21170	hints.ai_family = PF_UNSPEC;
21171	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
21172		return 1;
21173	return 0;
21174}
21175
21176_ACEOF
21177rm -f conftest$ac_exeext
21178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179  (eval $ac_link) 2>&5
21180  ac_status=$?
21181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184  (eval $ac_try) 2>&5
21185  ac_status=$?
21186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187  (exit $ac_status); }; }; then
21188  ac_cv_func_getaddrinfo_numserv=yes
21189else
21190  echo "$as_me: program exited with status $ac_status" >&5
21191echo "$as_me: failed program was:" >&5
21192cat conftest.$ac_ext >&5
21193( exit $ac_status )
21194ac_cv_func_getaddrinfo_numserv=no
21195fi
21196rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21197fi
21198fi
21199echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
21200echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
21201  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
21202	LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21203	LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext"
21204  fi
21205fi
21206
21207
21208if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
21209echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
21210echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
21211if test "${ac_cv_func_setenv_noproto+set}" = set; then
21212  echo $ECHO_N "(cached) $ECHO_C" >&6
21213else
21214  cat >conftest.$ac_ext <<_ACEOF
21215#line $LINENO "configure"
21216#include "confdefs.h"
21217#include <stdlib.h>
21218#ifdef F77_DUMMY_MAIN
21219#  ifdef __cplusplus
21220     extern "C"
21221#  endif
21222   int F77_DUMMY_MAIN() { return 1; }
21223#endif
21224int
21225main ()
21226{
21227struct foo { int foo; } xx;
21228extern int setenv (struct foo*);
21229setenv(&xx);
21230
21231  ;
21232  return 0;
21233}
21234_ACEOF
21235rm -f conftest.$ac_objext
21236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21237  (eval $ac_compile) 2>&5
21238  ac_status=$?
21239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240  (exit $ac_status); } &&
21241         { ac_try='test -s conftest.$ac_objext'
21242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243  (eval $ac_try) 2>&5
21244  ac_status=$?
21245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246  (exit $ac_status); }; }; then
21247  eval "ac_cv_func_setenv_noproto=yes"
21248else
21249  echo "$as_me: failed program was:" >&5
21250cat conftest.$ac_ext >&5
21251eval "ac_cv_func_setenv_noproto=no"
21252fi
21253rm -f conftest.$ac_objext conftest.$ac_ext
21254fi
21255echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
21256echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
21257if test "$ac_cv_func_setenv_noproto" = yes; then
21258
21259cat >>confdefs.h <<\_ACEOF
21260#define NEED_SETENV_PROTO 1
21261_ACEOF
21262
21263fi
21264fi
21265
21266
21267if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
21268echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
21269echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
21270if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
21271  echo $ECHO_N "(cached) $ECHO_C" >&6
21272else
21273  cat >conftest.$ac_ext <<_ACEOF
21274#line $LINENO "configure"
21275#include "confdefs.h"
21276#include <stdlib.h>
21277#ifdef F77_DUMMY_MAIN
21278#  ifdef __cplusplus
21279     extern "C"
21280#  endif
21281   int F77_DUMMY_MAIN() { return 1; }
21282#endif
21283int
21284main ()
21285{
21286struct foo { int foo; } xx;
21287extern int unsetenv (struct foo*);
21288unsetenv(&xx);
21289
21290  ;
21291  return 0;
21292}
21293_ACEOF
21294rm -f conftest.$ac_objext
21295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21296  (eval $ac_compile) 2>&5
21297  ac_status=$?
21298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299  (exit $ac_status); } &&
21300         { ac_try='test -s conftest.$ac_objext'
21301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302  (eval $ac_try) 2>&5
21303  ac_status=$?
21304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305  (exit $ac_status); }; }; then
21306  eval "ac_cv_func_unsetenv_noproto=yes"
21307else
21308  echo "$as_me: failed program was:" >&5
21309cat conftest.$ac_ext >&5
21310eval "ac_cv_func_unsetenv_noproto=no"
21311fi
21312rm -f conftest.$ac_objext conftest.$ac_ext
21313fi
21314echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
21315echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
21316if test "$ac_cv_func_unsetenv_noproto" = yes; then
21317
21318cat >>confdefs.h <<\_ACEOF
21319#define NEED_UNSETENV_PROTO 1
21320_ACEOF
21321
21322fi
21323fi
21324
21325
21326if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
21327echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
21328echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
21329if test "${ac_cv_func_gethostname_noproto+set}" = set; then
21330  echo $ECHO_N "(cached) $ECHO_C" >&6
21331else
21332  cat >conftest.$ac_ext <<_ACEOF
21333#line $LINENO "configure"
21334#include "confdefs.h"
21335#include <unistd.h>
21336#ifdef F77_DUMMY_MAIN
21337#  ifdef __cplusplus
21338     extern "C"
21339#  endif
21340   int F77_DUMMY_MAIN() { return 1; }
21341#endif
21342int
21343main ()
21344{
21345struct foo { int foo; } xx;
21346extern int gethostname (struct foo*);
21347gethostname(&xx);
21348
21349  ;
21350  return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext
21354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21355  (eval $ac_compile) 2>&5
21356  ac_status=$?
21357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358  (exit $ac_status); } &&
21359         { ac_try='test -s conftest.$ac_objext'
21360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361  (eval $ac_try) 2>&5
21362  ac_status=$?
21363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364  (exit $ac_status); }; }; then
21365  eval "ac_cv_func_gethostname_noproto=yes"
21366else
21367  echo "$as_me: failed program was:" >&5
21368cat conftest.$ac_ext >&5
21369eval "ac_cv_func_gethostname_noproto=no"
21370fi
21371rm -f conftest.$ac_objext conftest.$ac_ext
21372fi
21373echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
21374echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
21375if test "$ac_cv_func_gethostname_noproto" = yes; then
21376
21377cat >>confdefs.h <<\_ACEOF
21378#define NEED_GETHOSTNAME_PROTO 1
21379_ACEOF
21380
21381fi
21382fi
21383
21384
21385if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
21386echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
21387echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
21388if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
21389  echo $ECHO_N "(cached) $ECHO_C" >&6
21390else
21391  cat >conftest.$ac_ext <<_ACEOF
21392#line $LINENO "configure"
21393#include "confdefs.h"
21394#include <unistd.h>
21395#ifdef F77_DUMMY_MAIN
21396#  ifdef __cplusplus
21397     extern "C"
21398#  endif
21399   int F77_DUMMY_MAIN() { return 1; }
21400#endif
21401int
21402main ()
21403{
21404struct foo { int foo; } xx;
21405extern int mkstemp (struct foo*);
21406mkstemp(&xx);
21407
21408  ;
21409  return 0;
21410}
21411_ACEOF
21412rm -f conftest.$ac_objext
21413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21414  (eval $ac_compile) 2>&5
21415  ac_status=$?
21416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417  (exit $ac_status); } &&
21418         { ac_try='test -s conftest.$ac_objext'
21419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420  (eval $ac_try) 2>&5
21421  ac_status=$?
21422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423  (exit $ac_status); }; }; then
21424  eval "ac_cv_func_mkstemp_noproto=yes"
21425else
21426  echo "$as_me: failed program was:" >&5
21427cat conftest.$ac_ext >&5
21428eval "ac_cv_func_mkstemp_noproto=no"
21429fi
21430rm -f conftest.$ac_objext conftest.$ac_ext
21431fi
21432echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
21433echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
21434if test "$ac_cv_func_mkstemp_noproto" = yes; then
21435
21436cat >>confdefs.h <<\_ACEOF
21437#define NEED_MKSTEMP_PROTO 1
21438_ACEOF
21439
21440fi
21441fi
21442
21443
21444if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
21445echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
21446echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
21447if test "${ac_cv_func_getusershell_noproto+set}" = set; then
21448  echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450  cat >conftest.$ac_ext <<_ACEOF
21451#line $LINENO "configure"
21452#include "confdefs.h"
21453#include <unistd.h>
21454#ifdef F77_DUMMY_MAIN
21455#  ifdef __cplusplus
21456     extern "C"
21457#  endif
21458   int F77_DUMMY_MAIN() { return 1; }
21459#endif
21460int
21461main ()
21462{
21463struct foo { int foo; } xx;
21464extern int getusershell (struct foo*);
21465getusershell(&xx);
21466
21467  ;
21468  return 0;
21469}
21470_ACEOF
21471rm -f conftest.$ac_objext
21472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21473  (eval $ac_compile) 2>&5
21474  ac_status=$?
21475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476  (exit $ac_status); } &&
21477         { ac_try='test -s conftest.$ac_objext'
21478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479  (eval $ac_try) 2>&5
21480  ac_status=$?
21481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482  (exit $ac_status); }; }; then
21483  eval "ac_cv_func_getusershell_noproto=yes"
21484else
21485  echo "$as_me: failed program was:" >&5
21486cat conftest.$ac_ext >&5
21487eval "ac_cv_func_getusershell_noproto=no"
21488fi
21489rm -f conftest.$ac_objext conftest.$ac_ext
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
21492echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
21493if test "$ac_cv_func_getusershell_noproto" = yes; then
21494
21495cat >>confdefs.h <<\_ACEOF
21496#define NEED_GETUSERSHELL_PROTO 1
21497_ACEOF
21498
21499fi
21500fi
21501
21502
21503
21504if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
21505echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
21506echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
21507if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
21508  echo $ECHO_N "(cached) $ECHO_C" >&6
21509else
21510  cat >conftest.$ac_ext <<_ACEOF
21511#line $LINENO "configure"
21512#include "confdefs.h"
21513
21514#ifdef HAVE_SYS_TYPES_H
21515#include <sys/types.h>
21516#endif
21517#ifdef HAVE_SYS_SOCKET_H
21518#include <sys/socket.h>
21519#endif
21520#ifdef HAVE_NETINET_IN_H
21521#include <netinet/in.h>
21522#endif
21523#ifdef HAVE_ARPA_INET_H
21524#include <arpa/inet.h>
21525#endif
21526#ifdef F77_DUMMY_MAIN
21527#  ifdef __cplusplus
21528     extern "C"
21529#  endif
21530   int F77_DUMMY_MAIN() { return 1; }
21531#endif
21532int
21533main ()
21534{
21535struct foo { int foo; } xx;
21536extern int inet_aton (struct foo*);
21537inet_aton(&xx);
21538
21539  ;
21540  return 0;
21541}
21542_ACEOF
21543rm -f conftest.$ac_objext
21544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545  (eval $ac_compile) 2>&5
21546  ac_status=$?
21547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548  (exit $ac_status); } &&
21549         { ac_try='test -s conftest.$ac_objext'
21550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551  (eval $ac_try) 2>&5
21552  ac_status=$?
21553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554  (exit $ac_status); }; }; then
21555  eval "ac_cv_func_inet_aton_noproto=yes"
21556else
21557  echo "$as_me: failed program was:" >&5
21558cat conftest.$ac_ext >&5
21559eval "ac_cv_func_inet_aton_noproto=no"
21560fi
21561rm -f conftest.$ac_objext conftest.$ac_ext
21562fi
21563echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
21564echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
21565if test "$ac_cv_func_inet_aton_noproto" = yes; then
21566
21567cat >>confdefs.h <<\_ACEOF
21568#define NEED_INET_ATON_PROTO 1
21569_ACEOF
21570
21571fi
21572fi
21573
21574
21575
21576
21577
21578echo "$as_me:$LINENO: checking for crypt" >&5
21579echo $ECHO_N "checking for crypt... $ECHO_C" >&6
21580if test "${ac_cv_funclib_crypt+set}" = set; then
21581  echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583
21584if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
21585	ac_save_LIBS="$LIBS"
21586	for ac_lib in "" crypt; do
21587		case "$ac_lib" in
21588		"") ;;
21589		yes) ac_lib="" ;;
21590		no) continue ;;
21591		-l*) ;;
21592		*) ac_lib="-l$ac_lib" ;;
21593		esac
21594		LIBS=" $ac_lib  $ac_save_LIBS"
21595		cat >conftest.$ac_ext <<_ACEOF
21596#line $LINENO "configure"
21597#include "confdefs.h"
21598
21599#ifdef F77_DUMMY_MAIN
21600#  ifdef __cplusplus
21601     extern "C"
21602#  endif
21603   int F77_DUMMY_MAIN() { return 1; }
21604#endif
21605int
21606main ()
21607{
21608crypt()
21609  ;
21610  return 0;
21611}
21612_ACEOF
21613rm -f conftest.$ac_objext conftest$ac_exeext
21614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21615  (eval $ac_link) 2>&5
21616  ac_status=$?
21617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618  (exit $ac_status); } &&
21619         { ac_try='test -s conftest$ac_exeext'
21620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21621  (eval $ac_try) 2>&5
21622  ac_status=$?
21623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624  (exit $ac_status); }; }; then
21625  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
21626else
21627  echo "$as_me: failed program was:" >&5
21628cat conftest.$ac_ext >&5
21629fi
21630rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21631	done
21632	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
21633	LIBS="$ac_save_LIBS"
21634fi
21635
21636fi
21637
21638
21639eval "ac_res=\$ac_cv_funclib_crypt"
21640
21641if false; then
21642
21643for ac_func in crypt
21644do
21645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21646echo "$as_me:$LINENO: checking for $ac_func" >&5
21647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21648if eval "test \"\${$as_ac_var+set}\" = set"; then
21649  echo $ECHO_N "(cached) $ECHO_C" >&6
21650else
21651  cat >conftest.$ac_ext <<_ACEOF
21652#line $LINENO "configure"
21653#include "confdefs.h"
21654/* System header to define __stub macros and hopefully few prototypes,
21655    which can conflict with char $ac_func (); below.  */
21656#include <assert.h>
21657/* Override any gcc2 internal prototype to avoid an error.  */
21658#ifdef __cplusplus
21659extern "C"
21660#endif
21661/* We use char because int might match the return type of a gcc2
21662   builtin and then its argument prototype would still apply.  */
21663char $ac_func ();
21664char (*f) ();
21665
21666#ifdef F77_DUMMY_MAIN
21667#  ifdef __cplusplus
21668     extern "C"
21669#  endif
21670   int F77_DUMMY_MAIN() { return 1; }
21671#endif
21672int
21673main ()
21674{
21675/* The GNU C library defines this for functions which it implements
21676    to always fail with ENOSYS.  Some functions are actually named
21677    something starting with __ and the normal name is an alias.  */
21678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21679choke me
21680#else
21681f = $ac_func;
21682#endif
21683
21684  ;
21685  return 0;
21686}
21687_ACEOF
21688rm -f conftest.$ac_objext conftest$ac_exeext
21689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21690  (eval $ac_link) 2>&5
21691  ac_status=$?
21692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693  (exit $ac_status); } &&
21694         { ac_try='test -s conftest$ac_exeext'
21695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696  (eval $ac_try) 2>&5
21697  ac_status=$?
21698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699  (exit $ac_status); }; }; then
21700  eval "$as_ac_var=yes"
21701else
21702  echo "$as_me: failed program was:" >&5
21703cat conftest.$ac_ext >&5
21704eval "$as_ac_var=no"
21705fi
21706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21707fi
21708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21709echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21710if test `eval echo '${'$as_ac_var'}'` = yes; then
21711  cat >>confdefs.h <<_ACEOF
21712#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21713_ACEOF
21714
21715fi
21716done
21717
21718fi
21719# crypt
21720eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21721eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21722eval "LIB_crypt=$ac_res"
21723
21724case "$ac_res" in
21725	yes)
21726	eval "ac_cv_func_crypt=yes"
21727	eval "LIB_crypt="
21728	cat >>confdefs.h <<_ACEOF
21729#define $ac_tr_func 1
21730_ACEOF
21731
21732	echo "$as_me:$LINENO: result: yes" >&5
21733echo "${ECHO_T}yes" >&6
21734	;;
21735	no)
21736	eval "ac_cv_func_crypt=no"
21737	eval "LIB_crypt="
21738	echo "$as_me:$LINENO: result: no" >&5
21739echo "${ECHO_T}no" >&6
21740	;;
21741	*)
21742	eval "ac_cv_func_crypt=yes"
21743	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21744	cat >>confdefs.h <<_ACEOF
21745#define $ac_tr_func 1
21746_ACEOF
21747
21748	cat >>confdefs.h <<_ACEOF
21749#define $ac_tr_lib 1
21750_ACEOF
21751
21752	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21753echo "${ECHO_T}yes, in $ac_res" >&6
21754	;;
21755esac
21756
21757
21758
21759
21760
21761
21762echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
21763echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
21764if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
21765  echo $ECHO_N "(cached) $ECHO_C" >&6
21766else
21767  cat >conftest.$ac_ext <<_ACEOF
21768#line $LINENO "configure"
21769#include "confdefs.h"
21770
21771#ifdef HAVE_SYS_TYPES_H
21772#include <sys/types.h>
21773#endif
21774#ifdef HAVE_SYS_SOCKET_H
21775#include <sys/socket.h>
21776#endif
21777#ifdef HAVE_NETINET_IN_H
21778#include <netinet/in.h>
21779#endif
21780#ifdef HAVE_ARPA_INET_H
21781#include <arpa/inet.h>
21782#endif
21783#ifdef HAVE_NETDB_H
21784#include <netdb.h>
21785#endif
21786
21787#ifdef F77_DUMMY_MAIN
21788#  ifdef __cplusplus
21789     extern "C"
21790#  endif
21791   int F77_DUMMY_MAIN() { return 1; }
21792#endif
21793int
21794main ()
21795{
21796struct hostent *gethostbyname(const char *);
21797  ;
21798  return 0;
21799}
21800_ACEOF
21801rm -f conftest.$ac_objext
21802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21803  (eval $ac_compile) 2>&5
21804  ac_status=$?
21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806  (exit $ac_status); } &&
21807         { ac_try='test -s conftest.$ac_objext'
21808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809  (eval $ac_try) 2>&5
21810  ac_status=$?
21811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812  (exit $ac_status); }; }; then
21813  eval "ac_cv_func_gethostbyname_proto_compat=yes"
21814else
21815  echo "$as_me: failed program was:" >&5
21816cat conftest.$ac_ext >&5
21817eval "ac_cv_func_gethostbyname_proto_compat=no"
21818fi
21819rm -f conftest.$ac_objext conftest.$ac_ext
21820fi
21821echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
21822echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
21823
21824if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
21825
21826cat >>confdefs.h <<\_ACEOF
21827#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
21828_ACEOF
21829
21830fi
21831
21832
21833
21834
21835echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
21836echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
21837if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
21838  echo $ECHO_N "(cached) $ECHO_C" >&6
21839else
21840  cat >conftest.$ac_ext <<_ACEOF
21841#line $LINENO "configure"
21842#include "confdefs.h"
21843
21844#ifdef HAVE_SYS_TYPES_H
21845#include <sys/types.h>
21846#endif
21847#ifdef HAVE_SYS_SOCKET_H
21848#include <sys/socket.h>
21849#endif
21850#ifdef HAVE_NETINET_IN_H
21851#include <netinet/in.h>
21852#endif
21853#ifdef HAVE_ARPA_INET_H
21854#include <arpa/inet.h>
21855#endif
21856#ifdef HAVE_NETDB_H
21857#include <netdb.h>
21858#endif
21859
21860#ifdef F77_DUMMY_MAIN
21861#  ifdef __cplusplus
21862     extern "C"
21863#  endif
21864   int F77_DUMMY_MAIN() { return 1; }
21865#endif
21866int
21867main ()
21868{
21869struct hostent *gethostbyaddr(const void *, size_t, int);
21870  ;
21871  return 0;
21872}
21873_ACEOF
21874rm -f conftest.$ac_objext
21875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21876  (eval $ac_compile) 2>&5
21877  ac_status=$?
21878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879  (exit $ac_status); } &&
21880         { ac_try='test -s conftest.$ac_objext'
21881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882  (eval $ac_try) 2>&5
21883  ac_status=$?
21884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885  (exit $ac_status); }; }; then
21886  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
21887else
21888  echo "$as_me: failed program was:" >&5
21889cat conftest.$ac_ext >&5
21890eval "ac_cv_func_gethostbyaddr_proto_compat=no"
21891fi
21892rm -f conftest.$ac_objext conftest.$ac_ext
21893fi
21894echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
21895echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
21896
21897if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
21898
21899cat >>confdefs.h <<\_ACEOF
21900#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
21901_ACEOF
21902
21903fi
21904
21905
21906
21907
21908echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
21909echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
21910if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
21911  echo $ECHO_N "(cached) $ECHO_C" >&6
21912else
21913  cat >conftest.$ac_ext <<_ACEOF
21914#line $LINENO "configure"
21915#include "confdefs.h"
21916
21917#ifdef HAVE_SYS_TYPES_H
21918#include <sys/types.h>
21919#endif
21920#ifdef HAVE_SYS_SOCKET_H
21921#include <sys/socket.h>
21922#endif
21923#ifdef HAVE_NETINET_IN_H
21924#include <netinet/in.h>
21925#endif
21926#ifdef HAVE_ARPA_INET_H
21927#include <arpa/inet.h>
21928#endif
21929#ifdef HAVE_NETDB_H
21930#include <netdb.h>
21931#endif
21932
21933#ifdef F77_DUMMY_MAIN
21934#  ifdef __cplusplus
21935     extern "C"
21936#  endif
21937   int F77_DUMMY_MAIN() { return 1; }
21938#endif
21939int
21940main ()
21941{
21942struct servent *getservbyname(const char *, const char *);
21943  ;
21944  return 0;
21945}
21946_ACEOF
21947rm -f conftest.$ac_objext
21948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21949  (eval $ac_compile) 2>&5
21950  ac_status=$?
21951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952  (exit $ac_status); } &&
21953         { ac_try='test -s conftest.$ac_objext'
21954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21955  (eval $ac_try) 2>&5
21956  ac_status=$?
21957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958  (exit $ac_status); }; }; then
21959  eval "ac_cv_func_getservbyname_proto_compat=yes"
21960else
21961  echo "$as_me: failed program was:" >&5
21962cat conftest.$ac_ext >&5
21963eval "ac_cv_func_getservbyname_proto_compat=no"
21964fi
21965rm -f conftest.$ac_objext conftest.$ac_ext
21966fi
21967echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
21968echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
21969
21970if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
21971
21972cat >>confdefs.h <<\_ACEOF
21973#define GETSERVBYNAME_PROTO_COMPATIBLE 1
21974_ACEOF
21975
21976fi
21977
21978
21979
21980
21981echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
21982echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
21983if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
21984  echo $ECHO_N "(cached) $ECHO_C" >&6
21985else
21986  cat >conftest.$ac_ext <<_ACEOF
21987#line $LINENO "configure"
21988#include "confdefs.h"
21989
21990#ifdef HAVE_SYS_TYPES_H
21991#include <sys/types.h>
21992#endif
21993#ifdef HAVE_SYS_SOCKET_H
21994#include <sys/socket.h>
21995#endif
21996
21997#ifdef F77_DUMMY_MAIN
21998#  ifdef __cplusplus
21999     extern "C"
22000#  endif
22001   int F77_DUMMY_MAIN() { return 1; }
22002#endif
22003int
22004main ()
22005{
22006int getsockname(int, struct sockaddr*, socklen_t*);
22007  ;
22008  return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext
22012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22013  (eval $ac_compile) 2>&5
22014  ac_status=$?
22015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016  (exit $ac_status); } &&
22017         { ac_try='test -s conftest.$ac_objext'
22018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019  (eval $ac_try) 2>&5
22020  ac_status=$?
22021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022  (exit $ac_status); }; }; then
22023  eval "ac_cv_func_getsockname_proto_compat=yes"
22024else
22025  echo "$as_me: failed program was:" >&5
22026cat conftest.$ac_ext >&5
22027eval "ac_cv_func_getsockname_proto_compat=no"
22028fi
22029rm -f conftest.$ac_objext conftest.$ac_ext
22030fi
22031echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
22032echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
22033
22034if test "$ac_cv_func_getsockname_proto_compat" = yes; then
22035
22036cat >>confdefs.h <<\_ACEOF
22037#define GETSOCKNAME_PROTO_COMPATIBLE 1
22038_ACEOF
22039
22040fi
22041
22042
22043
22044
22045echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
22046echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
22047if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
22048  echo $ECHO_N "(cached) $ECHO_C" >&6
22049else
22050  cat >conftest.$ac_ext <<_ACEOF
22051#line $LINENO "configure"
22052#include "confdefs.h"
22053
22054#ifdef HAVE_SYSLOG_H
22055#include <syslog.h>
22056#endif
22057
22058#ifdef F77_DUMMY_MAIN
22059#  ifdef __cplusplus
22060     extern "C"
22061#  endif
22062   int F77_DUMMY_MAIN() { return 1; }
22063#endif
22064int
22065main ()
22066{
22067void openlog(const char *, int, int);
22068  ;
22069  return 0;
22070}
22071_ACEOF
22072rm -f conftest.$ac_objext
22073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22074  (eval $ac_compile) 2>&5
22075  ac_status=$?
22076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077  (exit $ac_status); } &&
22078         { ac_try='test -s conftest.$ac_objext'
22079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080  (eval $ac_try) 2>&5
22081  ac_status=$?
22082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083  (exit $ac_status); }; }; then
22084  eval "ac_cv_func_openlog_proto_compat=yes"
22085else
22086  echo "$as_me: failed program was:" >&5
22087cat conftest.$ac_ext >&5
22088eval "ac_cv_func_openlog_proto_compat=no"
22089fi
22090rm -f conftest.$ac_objext conftest.$ac_ext
22091fi
22092echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
22093echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
22094
22095if test "$ac_cv_func_openlog_proto_compat" = yes; then
22096
22097cat >>confdefs.h <<\_ACEOF
22098#define OPENLOG_PROTO_COMPATIBLE 1
22099_ACEOF
22100
22101fi
22102
22103
22104
22105
22106if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
22107echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
22108echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
22109if test "${ac_cv_func_crypt_noproto+set}" = set; then
22110  echo $ECHO_N "(cached) $ECHO_C" >&6
22111else
22112  cat >conftest.$ac_ext <<_ACEOF
22113#line $LINENO "configure"
22114#include "confdefs.h"
22115
22116#ifdef HAVE_CRYPT_H
22117#include <crypt.h>
22118#endif
22119#ifdef HAVE_UNISTD_H
22120#include <unistd.h>
22121#endif
22122
22123#ifdef F77_DUMMY_MAIN
22124#  ifdef __cplusplus
22125     extern "C"
22126#  endif
22127   int F77_DUMMY_MAIN() { return 1; }
22128#endif
22129int
22130main ()
22131{
22132struct foo { int foo; } xx;
22133extern int crypt (struct foo*);
22134crypt(&xx);
22135
22136  ;
22137  return 0;
22138}
22139_ACEOF
22140rm -f conftest.$ac_objext
22141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22142  (eval $ac_compile) 2>&5
22143  ac_status=$?
22144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145  (exit $ac_status); } &&
22146         { ac_try='test -s conftest.$ac_objext'
22147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148  (eval $ac_try) 2>&5
22149  ac_status=$?
22150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151  (exit $ac_status); }; }; then
22152  eval "ac_cv_func_crypt_noproto=yes"
22153else
22154  echo "$as_me: failed program was:" >&5
22155cat conftest.$ac_ext >&5
22156eval "ac_cv_func_crypt_noproto=no"
22157fi
22158rm -f conftest.$ac_objext conftest.$ac_ext
22159fi
22160echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
22161echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
22162if test "$ac_cv_func_crypt_noproto" = yes; then
22163
22164cat >>confdefs.h <<\_ACEOF
22165#define NEED_CRYPT_PROTO 1
22166_ACEOF
22167
22168fi
22169fi
22170
22171
22172
22173
22174echo "$as_me:$LINENO: checking for h_errno" >&5
22175echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
22176if test "${ac_cv_var_h_errno+set}" = set; then
22177  echo $ECHO_N "(cached) $ECHO_C" >&6
22178else
22179
22180cat >conftest.$ac_ext <<_ACEOF
22181#line $LINENO "configure"
22182#include "confdefs.h"
22183extern int h_errno;
22184int foo() { return h_errno; }
22185#ifdef F77_DUMMY_MAIN
22186#  ifdef __cplusplus
22187     extern "C"
22188#  endif
22189   int F77_DUMMY_MAIN() { return 1; }
22190#endif
22191int
22192main ()
22193{
22194foo()
22195  ;
22196  return 0;
22197}
22198_ACEOF
22199rm -f conftest.$ac_objext conftest$ac_exeext
22200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22201  (eval $ac_link) 2>&5
22202  ac_status=$?
22203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204  (exit $ac_status); } &&
22205         { ac_try='test -s conftest$ac_exeext'
22206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22207  (eval $ac_try) 2>&5
22208  ac_status=$?
22209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210  (exit $ac_status); }; }; then
22211  ac_cv_var_h_errno=yes
22212else
22213  echo "$as_me: failed program was:" >&5
22214cat conftest.$ac_ext >&5
22215ac_cv_var_h_errno=no
22216fi
22217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22218
22219fi
22220
22221ac_foo=`eval echo \\$ac_cv_var_h_errno`
22222echo "$as_me:$LINENO: result: $ac_foo" >&5
22223echo "${ECHO_T}$ac_foo" >&6
22224if test "$ac_foo" = yes; then
22225
22226cat >>confdefs.h <<_ACEOF
22227#define HAVE_H_ERRNO 1
22228_ACEOF
22229
22230
22231echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
22232echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
22233if test "${ac_cv_var_h_errno_declaration+set}" = set; then
22234  echo $ECHO_N "(cached) $ECHO_C" >&6
22235else
22236
22237cat >conftest.$ac_ext <<_ACEOF
22238#line $LINENO "configure"
22239#include "confdefs.h"
22240#ifdef HAVE_SYS_TYPES_H
22241#include <sys/types.h>
22242#endif
22243#ifdef HAVE_NETDB_H
22244#include <netdb.h>
22245#endif
22246extern struct { int foo; } h_errno;
22247#ifdef F77_DUMMY_MAIN
22248#  ifdef __cplusplus
22249     extern "C"
22250#  endif
22251   int F77_DUMMY_MAIN() { return 1; }
22252#endif
22253int
22254main ()
22255{
22256h_errno.foo = 1;
22257  ;
22258  return 0;
22259}
22260_ACEOF
22261rm -f conftest.$ac_objext
22262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22263  (eval $ac_compile) 2>&5
22264  ac_status=$?
22265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266  (exit $ac_status); } &&
22267         { ac_try='test -s conftest.$ac_objext'
22268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22269  (eval $ac_try) 2>&5
22270  ac_status=$?
22271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272  (exit $ac_status); }; }; then
22273  eval "ac_cv_var_h_errno_declaration=no"
22274else
22275  echo "$as_me: failed program was:" >&5
22276cat conftest.$ac_ext >&5
22277eval "ac_cv_var_h_errno_declaration=yes"
22278fi
22279rm -f conftest.$ac_objext conftest.$ac_ext
22280
22281fi
22282
22283
22284
22285
22286echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
22287echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
22288if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
22289
22290cat >>confdefs.h <<\_ACEOF
22291#define HAVE_H_ERRNO_DECLARATION 1
22292_ACEOF
22293
22294fi
22295
22296
22297fi
22298
22299
22300
22301echo "$as_me:$LINENO: checking for h_errlist" >&5
22302echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
22303if test "${ac_cv_var_h_errlist+set}" = set; then
22304  echo $ECHO_N "(cached) $ECHO_C" >&6
22305else
22306
22307cat >conftest.$ac_ext <<_ACEOF
22308#line $LINENO "configure"
22309#include "confdefs.h"
22310extern int h_errlist;
22311int foo() { return h_errlist; }
22312#ifdef F77_DUMMY_MAIN
22313#  ifdef __cplusplus
22314     extern "C"
22315#  endif
22316   int F77_DUMMY_MAIN() { return 1; }
22317#endif
22318int
22319main ()
22320{
22321foo()
22322  ;
22323  return 0;
22324}
22325_ACEOF
22326rm -f conftest.$ac_objext conftest$ac_exeext
22327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22328  (eval $ac_link) 2>&5
22329  ac_status=$?
22330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331  (exit $ac_status); } &&
22332         { ac_try='test -s conftest$ac_exeext'
22333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22334  (eval $ac_try) 2>&5
22335  ac_status=$?
22336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337  (exit $ac_status); }; }; then
22338  ac_cv_var_h_errlist=yes
22339else
22340  echo "$as_me: failed program was:" >&5
22341cat conftest.$ac_ext >&5
22342ac_cv_var_h_errlist=no
22343fi
22344rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22345
22346fi
22347
22348ac_foo=`eval echo \\$ac_cv_var_h_errlist`
22349echo "$as_me:$LINENO: result: $ac_foo" >&5
22350echo "${ECHO_T}$ac_foo" >&6
22351if test "$ac_foo" = yes; then
22352
22353cat >>confdefs.h <<_ACEOF
22354#define HAVE_H_ERRLIST 1
22355_ACEOF
22356
22357
22358echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
22359echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
22360if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
22361  echo $ECHO_N "(cached) $ECHO_C" >&6
22362else
22363
22364cat >conftest.$ac_ext <<_ACEOF
22365#line $LINENO "configure"
22366#include "confdefs.h"
22367#ifdef HAVE_NETDB_H
22368#include <netdb.h>
22369#endif
22370extern struct { int foo; } h_errlist;
22371#ifdef F77_DUMMY_MAIN
22372#  ifdef __cplusplus
22373     extern "C"
22374#  endif
22375   int F77_DUMMY_MAIN() { return 1; }
22376#endif
22377int
22378main ()
22379{
22380h_errlist.foo = 1;
22381  ;
22382  return 0;
22383}
22384_ACEOF
22385rm -f conftest.$ac_objext
22386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22387  (eval $ac_compile) 2>&5
22388  ac_status=$?
22389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390  (exit $ac_status); } &&
22391         { ac_try='test -s conftest.$ac_objext'
22392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393  (eval $ac_try) 2>&5
22394  ac_status=$?
22395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396  (exit $ac_status); }; }; then
22397  eval "ac_cv_var_h_errlist_declaration=no"
22398else
22399  echo "$as_me: failed program was:" >&5
22400cat conftest.$ac_ext >&5
22401eval "ac_cv_var_h_errlist_declaration=yes"
22402fi
22403rm -f conftest.$ac_objext conftest.$ac_ext
22404
22405fi
22406
22407
22408
22409
22410echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
22411echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
22412if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
22413
22414cat >>confdefs.h <<\_ACEOF
22415#define HAVE_H_ERRLIST_DECLARATION 1
22416_ACEOF
22417
22418fi
22419
22420
22421fi
22422
22423
22424
22425echo "$as_me:$LINENO: checking for h_nerr" >&5
22426echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
22427if test "${ac_cv_var_h_nerr+set}" = set; then
22428  echo $ECHO_N "(cached) $ECHO_C" >&6
22429else
22430
22431cat >conftest.$ac_ext <<_ACEOF
22432#line $LINENO "configure"
22433#include "confdefs.h"
22434extern int h_nerr;
22435int foo() { return h_nerr; }
22436#ifdef F77_DUMMY_MAIN
22437#  ifdef __cplusplus
22438     extern "C"
22439#  endif
22440   int F77_DUMMY_MAIN() { return 1; }
22441#endif
22442int
22443main ()
22444{
22445foo()
22446  ;
22447  return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext conftest$ac_exeext
22451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22452  (eval $ac_link) 2>&5
22453  ac_status=$?
22454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455  (exit $ac_status); } &&
22456         { ac_try='test -s conftest$ac_exeext'
22457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458  (eval $ac_try) 2>&5
22459  ac_status=$?
22460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461  (exit $ac_status); }; }; then
22462  ac_cv_var_h_nerr=yes
22463else
22464  echo "$as_me: failed program was:" >&5
22465cat conftest.$ac_ext >&5
22466ac_cv_var_h_nerr=no
22467fi
22468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22469
22470fi
22471
22472ac_foo=`eval echo \\$ac_cv_var_h_nerr`
22473echo "$as_me:$LINENO: result: $ac_foo" >&5
22474echo "${ECHO_T}$ac_foo" >&6
22475if test "$ac_foo" = yes; then
22476
22477cat >>confdefs.h <<_ACEOF
22478#define HAVE_H_NERR 1
22479_ACEOF
22480
22481
22482echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
22483echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
22484if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
22485  echo $ECHO_N "(cached) $ECHO_C" >&6
22486else
22487
22488cat >conftest.$ac_ext <<_ACEOF
22489#line $LINENO "configure"
22490#include "confdefs.h"
22491#ifdef HAVE_NETDB_H
22492#include <netdb.h>
22493#endif
22494extern struct { int foo; } h_nerr;
22495#ifdef F77_DUMMY_MAIN
22496#  ifdef __cplusplus
22497     extern "C"
22498#  endif
22499   int F77_DUMMY_MAIN() { return 1; }
22500#endif
22501int
22502main ()
22503{
22504h_nerr.foo = 1;
22505  ;
22506  return 0;
22507}
22508_ACEOF
22509rm -f conftest.$ac_objext
22510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22511  (eval $ac_compile) 2>&5
22512  ac_status=$?
22513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514  (exit $ac_status); } &&
22515         { ac_try='test -s conftest.$ac_objext'
22516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22517  (eval $ac_try) 2>&5
22518  ac_status=$?
22519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520  (exit $ac_status); }; }; then
22521  eval "ac_cv_var_h_nerr_declaration=no"
22522else
22523  echo "$as_me: failed program was:" >&5
22524cat conftest.$ac_ext >&5
22525eval "ac_cv_var_h_nerr_declaration=yes"
22526fi
22527rm -f conftest.$ac_objext conftest.$ac_ext
22528
22529fi
22530
22531
22532
22533
22534echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
22535echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
22536if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
22537
22538cat >>confdefs.h <<\_ACEOF
22539#define HAVE_H_NERR_DECLARATION 1
22540_ACEOF
22541
22542fi
22543
22544
22545fi
22546
22547
22548
22549echo "$as_me:$LINENO: checking for __progname" >&5
22550echo $ECHO_N "checking for __progname... $ECHO_C" >&6
22551if test "${ac_cv_var___progname+set}" = set; then
22552  echo $ECHO_N "(cached) $ECHO_C" >&6
22553else
22554
22555cat >conftest.$ac_ext <<_ACEOF
22556#line $LINENO "configure"
22557#include "confdefs.h"
22558extern int __progname;
22559int foo() { return __progname; }
22560#ifdef F77_DUMMY_MAIN
22561#  ifdef __cplusplus
22562     extern "C"
22563#  endif
22564   int F77_DUMMY_MAIN() { return 1; }
22565#endif
22566int
22567main ()
22568{
22569foo()
22570  ;
22571  return 0;
22572}
22573_ACEOF
22574rm -f conftest.$ac_objext conftest$ac_exeext
22575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22576  (eval $ac_link) 2>&5
22577  ac_status=$?
22578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579  (exit $ac_status); } &&
22580         { ac_try='test -s conftest$ac_exeext'
22581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582  (eval $ac_try) 2>&5
22583  ac_status=$?
22584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585  (exit $ac_status); }; }; then
22586  ac_cv_var___progname=yes
22587else
22588  echo "$as_me: failed program was:" >&5
22589cat conftest.$ac_ext >&5
22590ac_cv_var___progname=no
22591fi
22592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22593
22594fi
22595
22596ac_foo=`eval echo \\$ac_cv_var___progname`
22597echo "$as_me:$LINENO: result: $ac_foo" >&5
22598echo "${ECHO_T}$ac_foo" >&6
22599if test "$ac_foo" = yes; then
22600
22601cat >>confdefs.h <<_ACEOF
22602#define HAVE___PROGNAME 1
22603_ACEOF
22604
22605
22606echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
22607echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
22608if test "${ac_cv_var___progname_declaration+set}" = set; then
22609  echo $ECHO_N "(cached) $ECHO_C" >&6
22610else
22611
22612cat >conftest.$ac_ext <<_ACEOF
22613#line $LINENO "configure"
22614#include "confdefs.h"
22615#ifdef HAVE_ERR_H
22616#include <err.h>
22617#endif
22618extern struct { int foo; } __progname;
22619#ifdef F77_DUMMY_MAIN
22620#  ifdef __cplusplus
22621     extern "C"
22622#  endif
22623   int F77_DUMMY_MAIN() { return 1; }
22624#endif
22625int
22626main ()
22627{
22628__progname.foo = 1;
22629  ;
22630  return 0;
22631}
22632_ACEOF
22633rm -f conftest.$ac_objext
22634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22635  (eval $ac_compile) 2>&5
22636  ac_status=$?
22637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638  (exit $ac_status); } &&
22639         { ac_try='test -s conftest.$ac_objext'
22640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641  (eval $ac_try) 2>&5
22642  ac_status=$?
22643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644  (exit $ac_status); }; }; then
22645  eval "ac_cv_var___progname_declaration=no"
22646else
22647  echo "$as_me: failed program was:" >&5
22648cat conftest.$ac_ext >&5
22649eval "ac_cv_var___progname_declaration=yes"
22650fi
22651rm -f conftest.$ac_objext conftest.$ac_ext
22652
22653fi
22654
22655
22656
22657
22658echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
22659echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
22660if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
22661
22662cat >>confdefs.h <<\_ACEOF
22663#define HAVE___PROGNAME_DECLARATION 1
22664_ACEOF
22665
22666fi
22667
22668
22669fi
22670
22671
22672
22673echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
22674echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
22675if test "${ac_cv_var_optarg_declaration+set}" = set; then
22676  echo $ECHO_N "(cached) $ECHO_C" >&6
22677else
22678
22679cat >conftest.$ac_ext <<_ACEOF
22680#line $LINENO "configure"
22681#include "confdefs.h"
22682#include <stdlib.h>
22683#ifdef HAVE_UNISTD_H
22684#include <unistd.h>
22685#endif
22686extern struct { int foo; } optarg;
22687#ifdef F77_DUMMY_MAIN
22688#  ifdef __cplusplus
22689     extern "C"
22690#  endif
22691   int F77_DUMMY_MAIN() { return 1; }
22692#endif
22693int
22694main ()
22695{
22696optarg.foo = 1;
22697  ;
22698  return 0;
22699}
22700_ACEOF
22701rm -f conftest.$ac_objext
22702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22703  (eval $ac_compile) 2>&5
22704  ac_status=$?
22705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706  (exit $ac_status); } &&
22707         { ac_try='test -s conftest.$ac_objext'
22708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709  (eval $ac_try) 2>&5
22710  ac_status=$?
22711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712  (exit $ac_status); }; }; then
22713  eval "ac_cv_var_optarg_declaration=no"
22714else
22715  echo "$as_me: failed program was:" >&5
22716cat conftest.$ac_ext >&5
22717eval "ac_cv_var_optarg_declaration=yes"
22718fi
22719rm -f conftest.$ac_objext conftest.$ac_ext
22720
22721fi
22722
22723
22724
22725
22726echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
22727echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
22728if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
22729
22730cat >>confdefs.h <<\_ACEOF
22731#define HAVE_OPTARG_DECLARATION 1
22732_ACEOF
22733
22734fi
22735
22736
22737
22738echo "$as_me:$LINENO: checking if optind is properly declared" >&5
22739echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
22740if test "${ac_cv_var_optind_declaration+set}" = set; then
22741  echo $ECHO_N "(cached) $ECHO_C" >&6
22742else
22743
22744cat >conftest.$ac_ext <<_ACEOF
22745#line $LINENO "configure"
22746#include "confdefs.h"
22747#include <stdlib.h>
22748#ifdef HAVE_UNISTD_H
22749#include <unistd.h>
22750#endif
22751extern struct { int foo; } optind;
22752#ifdef F77_DUMMY_MAIN
22753#  ifdef __cplusplus
22754     extern "C"
22755#  endif
22756   int F77_DUMMY_MAIN() { return 1; }
22757#endif
22758int
22759main ()
22760{
22761optind.foo = 1;
22762  ;
22763  return 0;
22764}
22765_ACEOF
22766rm -f conftest.$ac_objext
22767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768  (eval $ac_compile) 2>&5
22769  ac_status=$?
22770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771  (exit $ac_status); } &&
22772         { ac_try='test -s conftest.$ac_objext'
22773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774  (eval $ac_try) 2>&5
22775  ac_status=$?
22776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777  (exit $ac_status); }; }; then
22778  eval "ac_cv_var_optind_declaration=no"
22779else
22780  echo "$as_me: failed program was:" >&5
22781cat conftest.$ac_ext >&5
22782eval "ac_cv_var_optind_declaration=yes"
22783fi
22784rm -f conftest.$ac_objext conftest.$ac_ext
22785
22786fi
22787
22788
22789
22790
22791echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
22792echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
22793if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
22794
22795cat >>confdefs.h <<\_ACEOF
22796#define HAVE_OPTIND_DECLARATION 1
22797_ACEOF
22798
22799fi
22800
22801
22802
22803echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
22804echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
22805if test "${ac_cv_var_opterr_declaration+set}" = set; then
22806  echo $ECHO_N "(cached) $ECHO_C" >&6
22807else
22808
22809cat >conftest.$ac_ext <<_ACEOF
22810#line $LINENO "configure"
22811#include "confdefs.h"
22812#include <stdlib.h>
22813#ifdef HAVE_UNISTD_H
22814#include <unistd.h>
22815#endif
22816extern struct { int foo; } opterr;
22817#ifdef F77_DUMMY_MAIN
22818#  ifdef __cplusplus
22819     extern "C"
22820#  endif
22821   int F77_DUMMY_MAIN() { return 1; }
22822#endif
22823int
22824main ()
22825{
22826opterr.foo = 1;
22827  ;
22828  return 0;
22829}
22830_ACEOF
22831rm -f conftest.$ac_objext
22832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22833  (eval $ac_compile) 2>&5
22834  ac_status=$?
22835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836  (exit $ac_status); } &&
22837         { ac_try='test -s conftest.$ac_objext'
22838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839  (eval $ac_try) 2>&5
22840  ac_status=$?
22841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842  (exit $ac_status); }; }; then
22843  eval "ac_cv_var_opterr_declaration=no"
22844else
22845  echo "$as_me: failed program was:" >&5
22846cat conftest.$ac_ext >&5
22847eval "ac_cv_var_opterr_declaration=yes"
22848fi
22849rm -f conftest.$ac_objext conftest.$ac_ext
22850
22851fi
22852
22853
22854
22855
22856echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
22857echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
22858if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
22859
22860cat >>confdefs.h <<\_ACEOF
22861#define HAVE_OPTERR_DECLARATION 1
22862_ACEOF
22863
22864fi
22865
22866
22867
22868echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
22869echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
22870if test "${ac_cv_var_optopt_declaration+set}" = set; then
22871  echo $ECHO_N "(cached) $ECHO_C" >&6
22872else
22873
22874cat >conftest.$ac_ext <<_ACEOF
22875#line $LINENO "configure"
22876#include "confdefs.h"
22877#include <stdlib.h>
22878#ifdef HAVE_UNISTD_H
22879#include <unistd.h>
22880#endif
22881extern struct { int foo; } optopt;
22882#ifdef F77_DUMMY_MAIN
22883#  ifdef __cplusplus
22884     extern "C"
22885#  endif
22886   int F77_DUMMY_MAIN() { return 1; }
22887#endif
22888int
22889main ()
22890{
22891optopt.foo = 1;
22892  ;
22893  return 0;
22894}
22895_ACEOF
22896rm -f conftest.$ac_objext
22897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898  (eval $ac_compile) 2>&5
22899  ac_status=$?
22900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901  (exit $ac_status); } &&
22902         { ac_try='test -s conftest.$ac_objext'
22903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904  (eval $ac_try) 2>&5
22905  ac_status=$?
22906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907  (exit $ac_status); }; }; then
22908  eval "ac_cv_var_optopt_declaration=no"
22909else
22910  echo "$as_me: failed program was:" >&5
22911cat conftest.$ac_ext >&5
22912eval "ac_cv_var_optopt_declaration=yes"
22913fi
22914rm -f conftest.$ac_objext conftest.$ac_ext
22915
22916fi
22917
22918
22919
22920
22921echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
22922echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
22923if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
22924
22925cat >>confdefs.h <<\_ACEOF
22926#define HAVE_OPTOPT_DECLARATION 1
22927_ACEOF
22928
22929fi
22930
22931
22932
22933
22934echo "$as_me:$LINENO: checking if environ is properly declared" >&5
22935echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
22936if test "${ac_cv_var_environ_declaration+set}" = set; then
22937  echo $ECHO_N "(cached) $ECHO_C" >&6
22938else
22939
22940cat >conftest.$ac_ext <<_ACEOF
22941#line $LINENO "configure"
22942#include "confdefs.h"
22943#include <stdlib.h>
22944extern struct { int foo; } environ;
22945#ifdef F77_DUMMY_MAIN
22946#  ifdef __cplusplus
22947     extern "C"
22948#  endif
22949   int F77_DUMMY_MAIN() { return 1; }
22950#endif
22951int
22952main ()
22953{
22954environ.foo = 1;
22955  ;
22956  return 0;
22957}
22958_ACEOF
22959rm -f conftest.$ac_objext
22960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22961  (eval $ac_compile) 2>&5
22962  ac_status=$?
22963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964  (exit $ac_status); } &&
22965         { ac_try='test -s conftest.$ac_objext'
22966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967  (eval $ac_try) 2>&5
22968  ac_status=$?
22969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970  (exit $ac_status); }; }; then
22971  eval "ac_cv_var_environ_declaration=no"
22972else
22973  echo "$as_me: failed program was:" >&5
22974cat conftest.$ac_ext >&5
22975eval "ac_cv_var_environ_declaration=yes"
22976fi
22977rm -f conftest.$ac_objext conftest.$ac_ext
22978
22979fi
22980
22981
22982
22983
22984echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
22985echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
22986if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
22987
22988cat >>confdefs.h <<\_ACEOF
22989#define HAVE_ENVIRON_DECLARATION 1
22990_ACEOF
22991
22992fi
22993
22994
22995
22996
22997
22998
22999echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
23000echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
23001if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
23002  echo $ECHO_N "(cached) $ECHO_C" >&6
23003else
23004
23005cat >conftest.$ac_ext <<_ACEOF
23006#line $LINENO "configure"
23007#include "confdefs.h"
23008#include <time.h>
23009#ifdef F77_DUMMY_MAIN
23010#  ifdef __cplusplus
23011     extern "C"
23012#  endif
23013   int F77_DUMMY_MAIN() { return 1; }
23014#endif
23015int
23016main ()
23017{
23018struct tm x; x.tm_gmtoff;
23019  ;
23020  return 0;
23021}
23022_ACEOF
23023rm -f conftest.$ac_objext
23024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23025  (eval $ac_compile) 2>&5
23026  ac_status=$?
23027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028  (exit $ac_status); } &&
23029         { ac_try='test -s conftest.$ac_objext'
23030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031  (eval $ac_try) 2>&5
23032  ac_status=$?
23033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034  (exit $ac_status); }; }; then
23035  ac_cv_type_struct_tm_tm_gmtoff=yes
23036else
23037  echo "$as_me: failed program was:" >&5
23038cat conftest.$ac_ext >&5
23039ac_cv_type_struct_tm_tm_gmtoff=no
23040fi
23041rm -f conftest.$ac_objext conftest.$ac_ext
23042fi
23043echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
23044echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
23045if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
23046
23047
23048cat >>confdefs.h <<\_ACEOF
23049#define HAVE_STRUCT_TM_TM_GMTOFF 1
23050_ACEOF
23051
23052
23053fi
23054
23055
23056
23057
23058echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
23059echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
23060if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
23061  echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063
23064cat >conftest.$ac_ext <<_ACEOF
23065#line $LINENO "configure"
23066#include "confdefs.h"
23067#include <time.h>
23068#ifdef F77_DUMMY_MAIN
23069#  ifdef __cplusplus
23070     extern "C"
23071#  endif
23072   int F77_DUMMY_MAIN() { return 1; }
23073#endif
23074int
23075main ()
23076{
23077struct tm x; x.tm_zone;
23078  ;
23079  return 0;
23080}
23081_ACEOF
23082rm -f conftest.$ac_objext
23083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23084  (eval $ac_compile) 2>&5
23085  ac_status=$?
23086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087  (exit $ac_status); } &&
23088         { ac_try='test -s conftest.$ac_objext'
23089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23090  (eval $ac_try) 2>&5
23091  ac_status=$?
23092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093  (exit $ac_status); }; }; then
23094  ac_cv_type_struct_tm_tm_zone=yes
23095else
23096  echo "$as_me: failed program was:" >&5
23097cat conftest.$ac_ext >&5
23098ac_cv_type_struct_tm_tm_zone=no
23099fi
23100rm -f conftest.$ac_objext conftest.$ac_ext
23101fi
23102echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
23103echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
23104if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
23105
23106
23107cat >>confdefs.h <<\_ACEOF
23108#define HAVE_STRUCT_TM_TM_ZONE 1
23109_ACEOF
23110
23111
23112fi
23113
23114
23115
23116
23117
23118echo "$as_me:$LINENO: checking for timezone" >&5
23119echo $ECHO_N "checking for timezone... $ECHO_C" >&6
23120if test "${ac_cv_var_timezone+set}" = set; then
23121  echo $ECHO_N "(cached) $ECHO_C" >&6
23122else
23123
23124cat >conftest.$ac_ext <<_ACEOF
23125#line $LINENO "configure"
23126#include "confdefs.h"
23127extern int timezone;
23128int foo() { return timezone; }
23129#ifdef F77_DUMMY_MAIN
23130#  ifdef __cplusplus
23131     extern "C"
23132#  endif
23133   int F77_DUMMY_MAIN() { return 1; }
23134#endif
23135int
23136main ()
23137{
23138foo()
23139  ;
23140  return 0;
23141}
23142_ACEOF
23143rm -f conftest.$ac_objext conftest$ac_exeext
23144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23145  (eval $ac_link) 2>&5
23146  ac_status=$?
23147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148  (exit $ac_status); } &&
23149         { ac_try='test -s conftest$ac_exeext'
23150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151  (eval $ac_try) 2>&5
23152  ac_status=$?
23153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154  (exit $ac_status); }; }; then
23155  ac_cv_var_timezone=yes
23156else
23157  echo "$as_me: failed program was:" >&5
23158cat conftest.$ac_ext >&5
23159ac_cv_var_timezone=no
23160fi
23161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23162
23163fi
23164
23165ac_foo=`eval echo \\$ac_cv_var_timezone`
23166echo "$as_me:$LINENO: result: $ac_foo" >&5
23167echo "${ECHO_T}$ac_foo" >&6
23168if test "$ac_foo" = yes; then
23169
23170cat >>confdefs.h <<_ACEOF
23171#define HAVE_TIMEZONE 1
23172_ACEOF
23173
23174
23175echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
23176echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
23177if test "${ac_cv_var_timezone_declaration+set}" = set; then
23178  echo $ECHO_N "(cached) $ECHO_C" >&6
23179else
23180
23181cat >conftest.$ac_ext <<_ACEOF
23182#line $LINENO "configure"
23183#include "confdefs.h"
23184#include <time.h>
23185extern struct { int foo; } timezone;
23186#ifdef F77_DUMMY_MAIN
23187#  ifdef __cplusplus
23188     extern "C"
23189#  endif
23190   int F77_DUMMY_MAIN() { return 1; }
23191#endif
23192int
23193main ()
23194{
23195timezone.foo = 1;
23196  ;
23197  return 0;
23198}
23199_ACEOF
23200rm -f conftest.$ac_objext
23201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23202  (eval $ac_compile) 2>&5
23203  ac_status=$?
23204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205  (exit $ac_status); } &&
23206         { ac_try='test -s conftest.$ac_objext'
23207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23208  (eval $ac_try) 2>&5
23209  ac_status=$?
23210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211  (exit $ac_status); }; }; then
23212  eval "ac_cv_var_timezone_declaration=no"
23213else
23214  echo "$as_me: failed program was:" >&5
23215cat conftest.$ac_ext >&5
23216eval "ac_cv_var_timezone_declaration=yes"
23217fi
23218rm -f conftest.$ac_objext conftest.$ac_ext
23219
23220fi
23221
23222
23223
23224
23225echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
23226echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
23227if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
23228
23229cat >>confdefs.h <<\_ACEOF
23230#define HAVE_TIMEZONE_DECLARATION 1
23231_ACEOF
23232
23233fi
23234
23235
23236fi
23237
23238
23239echo "$as_me:$LINENO: checking for altzone" >&5
23240echo $ECHO_N "checking for altzone... $ECHO_C" >&6
23241if test "${ac_cv_var_altzone+set}" = set; then
23242  echo $ECHO_N "(cached) $ECHO_C" >&6
23243else
23244
23245cat >conftest.$ac_ext <<_ACEOF
23246#line $LINENO "configure"
23247#include "confdefs.h"
23248extern int altzone;
23249int foo() { return altzone; }
23250#ifdef F77_DUMMY_MAIN
23251#  ifdef __cplusplus
23252     extern "C"
23253#  endif
23254   int F77_DUMMY_MAIN() { return 1; }
23255#endif
23256int
23257main ()
23258{
23259foo()
23260  ;
23261  return 0;
23262}
23263_ACEOF
23264rm -f conftest.$ac_objext conftest$ac_exeext
23265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266  (eval $ac_link) 2>&5
23267  ac_status=$?
23268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269  (exit $ac_status); } &&
23270         { ac_try='test -s conftest$ac_exeext'
23271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23272  (eval $ac_try) 2>&5
23273  ac_status=$?
23274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275  (exit $ac_status); }; }; then
23276  ac_cv_var_altzone=yes
23277else
23278  echo "$as_me: failed program was:" >&5
23279cat conftest.$ac_ext >&5
23280ac_cv_var_altzone=no
23281fi
23282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23283
23284fi
23285
23286ac_foo=`eval echo \\$ac_cv_var_altzone`
23287echo "$as_me:$LINENO: result: $ac_foo" >&5
23288echo "${ECHO_T}$ac_foo" >&6
23289if test "$ac_foo" = yes; then
23290
23291cat >>confdefs.h <<_ACEOF
23292#define HAVE_ALTZONE 1
23293_ACEOF
23294
23295
23296echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
23297echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
23298if test "${ac_cv_var_altzone_declaration+set}" = set; then
23299  echo $ECHO_N "(cached) $ECHO_C" >&6
23300else
23301
23302cat >conftest.$ac_ext <<_ACEOF
23303#line $LINENO "configure"
23304#include "confdefs.h"
23305#include <time.h>
23306extern struct { int foo; } altzone;
23307#ifdef F77_DUMMY_MAIN
23308#  ifdef __cplusplus
23309     extern "C"
23310#  endif
23311   int F77_DUMMY_MAIN() { return 1; }
23312#endif
23313int
23314main ()
23315{
23316altzone.foo = 1;
23317  ;
23318  return 0;
23319}
23320_ACEOF
23321rm -f conftest.$ac_objext
23322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23323  (eval $ac_compile) 2>&5
23324  ac_status=$?
23325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326  (exit $ac_status); } &&
23327         { ac_try='test -s conftest.$ac_objext'
23328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329  (eval $ac_try) 2>&5
23330  ac_status=$?
23331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332  (exit $ac_status); }; }; then
23333  eval "ac_cv_var_altzone_declaration=no"
23334else
23335  echo "$as_me: failed program was:" >&5
23336cat conftest.$ac_ext >&5
23337eval "ac_cv_var_altzone_declaration=yes"
23338fi
23339rm -f conftest.$ac_objext conftest.$ac_ext
23340
23341fi
23342
23343
23344
23345
23346echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
23347echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
23348if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
23349
23350cat >>confdefs.h <<\_ACEOF
23351#define HAVE_ALTZONE_DECLARATION 1
23352_ACEOF
23353
23354fi
23355
23356
23357fi
23358
23359
23360
23361
23362cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
23363echo "$as_me:$LINENO: checking for sa_family_t" >&5
23364echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
23365if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23366  echo $ECHO_N "(cached) $ECHO_C" >&6
23367else
23368  cat >conftest.$ac_ext <<_ACEOF
23369#line $LINENO "configure"
23370#include "confdefs.h"
23371#include <sys/types.h>
23372#if STDC_HEADERS
23373#include <stdlib.h>
23374#include <stddef.h>
23375#endif
23376#include <sys/socket.h>
23377#ifdef F77_DUMMY_MAIN
23378#  ifdef __cplusplus
23379     extern "C"
23380#  endif
23381   int F77_DUMMY_MAIN() { return 1; }
23382#endif
23383int
23384main ()
23385{
23386sa_family_t foo;
23387  ;
23388  return 0;
23389}
23390_ACEOF
23391rm -f conftest.$ac_objext
23392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23393  (eval $ac_compile) 2>&5
23394  ac_status=$?
23395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396  (exit $ac_status); } &&
23397         { ac_try='test -s conftest.$ac_objext'
23398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399  (eval $ac_try) 2>&5
23400  ac_status=$?
23401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402  (exit $ac_status); }; }; then
23403  eval "ac_cv_type_$cv=yes"
23404else
23405  echo "$as_me: failed program was:" >&5
23406cat conftest.$ac_ext >&5
23407eval "ac_cv_type_$cv=no"
23408fi
23409rm -f conftest.$ac_objext conftest.$ac_ext
23410fi
23411ac_foo=`eval echo \\$ac_cv_type_$cv`
23412echo "$as_me:$LINENO: result: $ac_foo" >&5
23413echo "${ECHO_T}$ac_foo" >&6
23414if test "$ac_foo" = yes; then
23415  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23416if false; then
23417	echo "$as_me:$LINENO: checking for sa_family_t" >&5
23418echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
23419if test "${ac_cv_type_sa_family_t+set}" = set; then
23420  echo $ECHO_N "(cached) $ECHO_C" >&6
23421else
23422  cat >conftest.$ac_ext <<_ACEOF
23423#line $LINENO "configure"
23424#include "confdefs.h"
23425$ac_includes_default
23426#ifdef F77_DUMMY_MAIN
23427#  ifdef __cplusplus
23428     extern "C"
23429#  endif
23430   int F77_DUMMY_MAIN() { return 1; }
23431#endif
23432int
23433main ()
23434{
23435if ((sa_family_t *) 0)
23436  return 0;
23437if (sizeof (sa_family_t))
23438  return 0;
23439  ;
23440  return 0;
23441}
23442_ACEOF
23443rm -f conftest.$ac_objext
23444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23445  (eval $ac_compile) 2>&5
23446  ac_status=$?
23447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448  (exit $ac_status); } &&
23449         { ac_try='test -s conftest.$ac_objext'
23450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451  (eval $ac_try) 2>&5
23452  ac_status=$?
23453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454  (exit $ac_status); }; }; then
23455  ac_cv_type_sa_family_t=yes
23456else
23457  echo "$as_me: failed program was:" >&5
23458cat conftest.$ac_ext >&5
23459ac_cv_type_sa_family_t=no
23460fi
23461rm -f conftest.$ac_objext conftest.$ac_ext
23462fi
23463echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
23464echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
23465if test $ac_cv_type_sa_family_t = yes; then
23466
23467cat >>confdefs.h <<_ACEOF
23468#define HAVE_SA_FAMILY_T 1
23469_ACEOF
23470
23471
23472fi
23473
23474fi
23475
23476cat >>confdefs.h <<_ACEOF
23477#define $ac_tr_hdr 1
23478_ACEOF
23479
23480fi
23481
23482
23483
23484cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
23485echo "$as_me:$LINENO: checking for socklen_t" >&5
23486echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23487if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23488  echo $ECHO_N "(cached) $ECHO_C" >&6
23489else
23490  cat >conftest.$ac_ext <<_ACEOF
23491#line $LINENO "configure"
23492#include "confdefs.h"
23493#include <sys/types.h>
23494#if STDC_HEADERS
23495#include <stdlib.h>
23496#include <stddef.h>
23497#endif
23498#include <sys/socket.h>
23499#ifdef F77_DUMMY_MAIN
23500#  ifdef __cplusplus
23501     extern "C"
23502#  endif
23503   int F77_DUMMY_MAIN() { return 1; }
23504#endif
23505int
23506main ()
23507{
23508socklen_t foo;
23509  ;
23510  return 0;
23511}
23512_ACEOF
23513rm -f conftest.$ac_objext
23514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23515  (eval $ac_compile) 2>&5
23516  ac_status=$?
23517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518  (exit $ac_status); } &&
23519         { ac_try='test -s conftest.$ac_objext'
23520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23521  (eval $ac_try) 2>&5
23522  ac_status=$?
23523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524  (exit $ac_status); }; }; then
23525  eval "ac_cv_type_$cv=yes"
23526else
23527  echo "$as_me: failed program was:" >&5
23528cat conftest.$ac_ext >&5
23529eval "ac_cv_type_$cv=no"
23530fi
23531rm -f conftest.$ac_objext conftest.$ac_ext
23532fi
23533ac_foo=`eval echo \\$ac_cv_type_$cv`
23534echo "$as_me:$LINENO: result: $ac_foo" >&5
23535echo "${ECHO_T}$ac_foo" >&6
23536if test "$ac_foo" = yes; then
23537  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23538if false; then
23539	echo "$as_me:$LINENO: checking for socklen_t" >&5
23540echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23541if test "${ac_cv_type_socklen_t+set}" = set; then
23542  echo $ECHO_N "(cached) $ECHO_C" >&6
23543else
23544  cat >conftest.$ac_ext <<_ACEOF
23545#line $LINENO "configure"
23546#include "confdefs.h"
23547$ac_includes_default
23548#ifdef F77_DUMMY_MAIN
23549#  ifdef __cplusplus
23550     extern "C"
23551#  endif
23552   int F77_DUMMY_MAIN() { return 1; }
23553#endif
23554int
23555main ()
23556{
23557if ((socklen_t *) 0)
23558  return 0;
23559if (sizeof (socklen_t))
23560  return 0;
23561  ;
23562  return 0;
23563}
23564_ACEOF
23565rm -f conftest.$ac_objext
23566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23567  (eval $ac_compile) 2>&5
23568  ac_status=$?
23569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570  (exit $ac_status); } &&
23571         { ac_try='test -s conftest.$ac_objext'
23572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23573  (eval $ac_try) 2>&5
23574  ac_status=$?
23575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576  (exit $ac_status); }; }; then
23577  ac_cv_type_socklen_t=yes
23578else
23579  echo "$as_me: failed program was:" >&5
23580cat conftest.$ac_ext >&5
23581ac_cv_type_socklen_t=no
23582fi
23583rm -f conftest.$ac_objext conftest.$ac_ext
23584fi
23585echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23586echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
23587if test $ac_cv_type_socklen_t = yes; then
23588
23589cat >>confdefs.h <<_ACEOF
23590#define HAVE_SOCKLEN_T 1
23591_ACEOF
23592
23593
23594fi
23595
23596fi
23597
23598cat >>confdefs.h <<_ACEOF
23599#define $ac_tr_hdr 1
23600_ACEOF
23601
23602fi
23603
23604
23605
23606cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
23607echo "$as_me:$LINENO: checking for struct sockaddr" >&5
23608echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
23609if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23610  echo $ECHO_N "(cached) $ECHO_C" >&6
23611else
23612  cat >conftest.$ac_ext <<_ACEOF
23613#line $LINENO "configure"
23614#include "confdefs.h"
23615#include <sys/types.h>
23616#if STDC_HEADERS
23617#include <stdlib.h>
23618#include <stddef.h>
23619#endif
23620#include <sys/socket.h>
23621#ifdef F77_DUMMY_MAIN
23622#  ifdef __cplusplus
23623     extern "C"
23624#  endif
23625   int F77_DUMMY_MAIN() { return 1; }
23626#endif
23627int
23628main ()
23629{
23630struct sockaddr foo;
23631  ;
23632  return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext
23636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23637  (eval $ac_compile) 2>&5
23638  ac_status=$?
23639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640  (exit $ac_status); } &&
23641         { ac_try='test -s conftest.$ac_objext'
23642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643  (eval $ac_try) 2>&5
23644  ac_status=$?
23645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646  (exit $ac_status); }; }; then
23647  eval "ac_cv_type_$cv=yes"
23648else
23649  echo "$as_me: failed program was:" >&5
23650cat conftest.$ac_ext >&5
23651eval "ac_cv_type_$cv=no"
23652fi
23653rm -f conftest.$ac_objext conftest.$ac_ext
23654fi
23655ac_foo=`eval echo \\$ac_cv_type_$cv`
23656echo "$as_me:$LINENO: result: $ac_foo" >&5
23657echo "${ECHO_T}$ac_foo" >&6
23658if test "$ac_foo" = yes; then
23659  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23660if false; then
23661	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
23662echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
23663if test "${ac_cv_type_struct_sockaddr+set}" = set; then
23664  echo $ECHO_N "(cached) $ECHO_C" >&6
23665else
23666  cat >conftest.$ac_ext <<_ACEOF
23667#line $LINENO "configure"
23668#include "confdefs.h"
23669$ac_includes_default
23670#ifdef F77_DUMMY_MAIN
23671#  ifdef __cplusplus
23672     extern "C"
23673#  endif
23674   int F77_DUMMY_MAIN() { return 1; }
23675#endif
23676int
23677main ()
23678{
23679if ((struct sockaddr *) 0)
23680  return 0;
23681if (sizeof (struct sockaddr))
23682  return 0;
23683  ;
23684  return 0;
23685}
23686_ACEOF
23687rm -f conftest.$ac_objext
23688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23689  (eval $ac_compile) 2>&5
23690  ac_status=$?
23691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692  (exit $ac_status); } &&
23693         { ac_try='test -s conftest.$ac_objext'
23694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23695  (eval $ac_try) 2>&5
23696  ac_status=$?
23697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698  (exit $ac_status); }; }; then
23699  ac_cv_type_struct_sockaddr=yes
23700else
23701  echo "$as_me: failed program was:" >&5
23702cat conftest.$ac_ext >&5
23703ac_cv_type_struct_sockaddr=no
23704fi
23705rm -f conftest.$ac_objext conftest.$ac_ext
23706fi
23707echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
23708echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
23709if test $ac_cv_type_struct_sockaddr = yes; then
23710
23711cat >>confdefs.h <<_ACEOF
23712#define HAVE_STRUCT_SOCKADDR 1
23713_ACEOF
23714
23715
23716fi
23717
23718fi
23719
23720cat >>confdefs.h <<_ACEOF
23721#define $ac_tr_hdr 1
23722_ACEOF
23723
23724fi
23725
23726
23727
23728cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
23729echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23730echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23731if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23732  echo $ECHO_N "(cached) $ECHO_C" >&6
23733else
23734  cat >conftest.$ac_ext <<_ACEOF
23735#line $LINENO "configure"
23736#include "confdefs.h"
23737#include <sys/types.h>
23738#if STDC_HEADERS
23739#include <stdlib.h>
23740#include <stddef.h>
23741#endif
23742#include <sys/socket.h>
23743#ifdef F77_DUMMY_MAIN
23744#  ifdef __cplusplus
23745     extern "C"
23746#  endif
23747   int F77_DUMMY_MAIN() { return 1; }
23748#endif
23749int
23750main ()
23751{
23752struct sockaddr_storage foo;
23753  ;
23754  return 0;
23755}
23756_ACEOF
23757rm -f conftest.$ac_objext
23758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23759  (eval $ac_compile) 2>&5
23760  ac_status=$?
23761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762  (exit $ac_status); } &&
23763         { ac_try='test -s conftest.$ac_objext'
23764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765  (eval $ac_try) 2>&5
23766  ac_status=$?
23767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768  (exit $ac_status); }; }; then
23769  eval "ac_cv_type_$cv=yes"
23770else
23771  echo "$as_me: failed program was:" >&5
23772cat conftest.$ac_ext >&5
23773eval "ac_cv_type_$cv=no"
23774fi
23775rm -f conftest.$ac_objext conftest.$ac_ext
23776fi
23777ac_foo=`eval echo \\$ac_cv_type_$cv`
23778echo "$as_me:$LINENO: result: $ac_foo" >&5
23779echo "${ECHO_T}$ac_foo" >&6
23780if test "$ac_foo" = yes; then
23781  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23782if false; then
23783	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23784echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
23785if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23786  echo $ECHO_N "(cached) $ECHO_C" >&6
23787else
23788  cat >conftest.$ac_ext <<_ACEOF
23789#line $LINENO "configure"
23790#include "confdefs.h"
23791$ac_includes_default
23792#ifdef F77_DUMMY_MAIN
23793#  ifdef __cplusplus
23794     extern "C"
23795#  endif
23796   int F77_DUMMY_MAIN() { return 1; }
23797#endif
23798int
23799main ()
23800{
23801if ((struct sockaddr_storage *) 0)
23802  return 0;
23803if (sizeof (struct sockaddr_storage))
23804  return 0;
23805  ;
23806  return 0;
23807}
23808_ACEOF
23809rm -f conftest.$ac_objext
23810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23811  (eval $ac_compile) 2>&5
23812  ac_status=$?
23813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814  (exit $ac_status); } &&
23815         { ac_try='test -s conftest.$ac_objext'
23816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817  (eval $ac_try) 2>&5
23818  ac_status=$?
23819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820  (exit $ac_status); }; }; then
23821  ac_cv_type_struct_sockaddr_storage=yes
23822else
23823  echo "$as_me: failed program was:" >&5
23824cat conftest.$ac_ext >&5
23825ac_cv_type_struct_sockaddr_storage=no
23826fi
23827rm -f conftest.$ac_objext conftest.$ac_ext
23828fi
23829echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23830echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
23831if test $ac_cv_type_struct_sockaddr_storage = yes; then
23832
23833cat >>confdefs.h <<_ACEOF
23834#define HAVE_STRUCT_SOCKADDR_STORAGE 1
23835_ACEOF
23836
23837
23838fi
23839
23840fi
23841
23842cat >>confdefs.h <<_ACEOF
23843#define $ac_tr_hdr 1
23844_ACEOF
23845
23846fi
23847
23848
23849
23850cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
23851echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23852echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23853if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23854  echo $ECHO_N "(cached) $ECHO_C" >&6
23855else
23856  cat >conftest.$ac_ext <<_ACEOF
23857#line $LINENO "configure"
23858#include "confdefs.h"
23859#include <sys/types.h>
23860#if STDC_HEADERS
23861#include <stdlib.h>
23862#include <stddef.h>
23863#endif
23864#include <netdb.h>
23865#ifdef F77_DUMMY_MAIN
23866#  ifdef __cplusplus
23867     extern "C"
23868#  endif
23869   int F77_DUMMY_MAIN() { return 1; }
23870#endif
23871int
23872main ()
23873{
23874struct addrinfo foo;
23875  ;
23876  return 0;
23877}
23878_ACEOF
23879rm -f conftest.$ac_objext
23880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23881  (eval $ac_compile) 2>&5
23882  ac_status=$?
23883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884  (exit $ac_status); } &&
23885         { ac_try='test -s conftest.$ac_objext'
23886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23887  (eval $ac_try) 2>&5
23888  ac_status=$?
23889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890  (exit $ac_status); }; }; then
23891  eval "ac_cv_type_$cv=yes"
23892else
23893  echo "$as_me: failed program was:" >&5
23894cat conftest.$ac_ext >&5
23895eval "ac_cv_type_$cv=no"
23896fi
23897rm -f conftest.$ac_objext conftest.$ac_ext
23898fi
23899ac_foo=`eval echo \\$ac_cv_type_$cv`
23900echo "$as_me:$LINENO: result: $ac_foo" >&5
23901echo "${ECHO_T}$ac_foo" >&6
23902if test "$ac_foo" = yes; then
23903  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
23904if false; then
23905	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23906echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
23907if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23908  echo $ECHO_N "(cached) $ECHO_C" >&6
23909else
23910  cat >conftest.$ac_ext <<_ACEOF
23911#line $LINENO "configure"
23912#include "confdefs.h"
23913$ac_includes_default
23914#ifdef F77_DUMMY_MAIN
23915#  ifdef __cplusplus
23916     extern "C"
23917#  endif
23918   int F77_DUMMY_MAIN() { return 1; }
23919#endif
23920int
23921main ()
23922{
23923if ((struct addrinfo *) 0)
23924  return 0;
23925if (sizeof (struct addrinfo))
23926  return 0;
23927  ;
23928  return 0;
23929}
23930_ACEOF
23931rm -f conftest.$ac_objext
23932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23933  (eval $ac_compile) 2>&5
23934  ac_status=$?
23935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936  (exit $ac_status); } &&
23937         { ac_try='test -s conftest.$ac_objext'
23938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23939  (eval $ac_try) 2>&5
23940  ac_status=$?
23941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942  (exit $ac_status); }; }; then
23943  ac_cv_type_struct_addrinfo=yes
23944else
23945  echo "$as_me: failed program was:" >&5
23946cat conftest.$ac_ext >&5
23947ac_cv_type_struct_addrinfo=no
23948fi
23949rm -f conftest.$ac_objext conftest.$ac_ext
23950fi
23951echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23952echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
23953if test $ac_cv_type_struct_addrinfo = yes; then
23954
23955cat >>confdefs.h <<_ACEOF
23956#define HAVE_STRUCT_ADDRINFO 1
23957_ACEOF
23958
23959
23960fi
23961
23962fi
23963
23964cat >>confdefs.h <<_ACEOF
23965#define $ac_tr_hdr 1
23966_ACEOF
23967
23968fi
23969
23970
23971
23972cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
23973echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
23974echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
23975if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
23976  echo $ECHO_N "(cached) $ECHO_C" >&6
23977else
23978  cat >conftest.$ac_ext <<_ACEOF
23979#line $LINENO "configure"
23980#include "confdefs.h"
23981#include <sys/types.h>
23982#if STDC_HEADERS
23983#include <stdlib.h>
23984#include <stddef.h>
23985#endif
23986#include <ifaddrs.h>
23987#ifdef F77_DUMMY_MAIN
23988#  ifdef __cplusplus
23989     extern "C"
23990#  endif
23991   int F77_DUMMY_MAIN() { return 1; }
23992#endif
23993int
23994main ()
23995{
23996struct ifaddrs foo;
23997  ;
23998  return 0;
23999}
24000_ACEOF
24001rm -f conftest.$ac_objext
24002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24003  (eval $ac_compile) 2>&5
24004  ac_status=$?
24005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006  (exit $ac_status); } &&
24007         { ac_try='test -s conftest.$ac_objext'
24008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009  (eval $ac_try) 2>&5
24010  ac_status=$?
24011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012  (exit $ac_status); }; }; then
24013  eval "ac_cv_type_$cv=yes"
24014else
24015  echo "$as_me: failed program was:" >&5
24016cat conftest.$ac_ext >&5
24017eval "ac_cv_type_$cv=no"
24018fi
24019rm -f conftest.$ac_objext conftest.$ac_ext
24020fi
24021ac_foo=`eval echo \\$ac_cv_type_$cv`
24022echo "$as_me:$LINENO: result: $ac_foo" >&5
24023echo "${ECHO_T}$ac_foo" >&6
24024if test "$ac_foo" = yes; then
24025  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24026if false; then
24027	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
24028echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
24029if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
24030  echo $ECHO_N "(cached) $ECHO_C" >&6
24031else
24032  cat >conftest.$ac_ext <<_ACEOF
24033#line $LINENO "configure"
24034#include "confdefs.h"
24035$ac_includes_default
24036#ifdef F77_DUMMY_MAIN
24037#  ifdef __cplusplus
24038     extern "C"
24039#  endif
24040   int F77_DUMMY_MAIN() { return 1; }
24041#endif
24042int
24043main ()
24044{
24045if ((struct ifaddrs *) 0)
24046  return 0;
24047if (sizeof (struct ifaddrs))
24048  return 0;
24049  ;
24050  return 0;
24051}
24052_ACEOF
24053rm -f conftest.$ac_objext
24054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24055  (eval $ac_compile) 2>&5
24056  ac_status=$?
24057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058  (exit $ac_status); } &&
24059         { ac_try='test -s conftest.$ac_objext'
24060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24061  (eval $ac_try) 2>&5
24062  ac_status=$?
24063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064  (exit $ac_status); }; }; then
24065  ac_cv_type_struct_ifaddrs=yes
24066else
24067  echo "$as_me: failed program was:" >&5
24068cat conftest.$ac_ext >&5
24069ac_cv_type_struct_ifaddrs=no
24070fi
24071rm -f conftest.$ac_objext conftest.$ac_ext
24072fi
24073echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
24074echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
24075if test $ac_cv_type_struct_ifaddrs = yes; then
24076
24077cat >>confdefs.h <<_ACEOF
24078#define HAVE_STRUCT_IFADDRS 1
24079_ACEOF
24080
24081
24082fi
24083
24084fi
24085
24086cat >>confdefs.h <<_ACEOF
24087#define $ac_tr_hdr 1
24088_ACEOF
24089
24090fi
24091
24092
24093
24094cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
24095echo "$as_me:$LINENO: checking for struct iovec" >&5
24096echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
24097if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
24098  echo $ECHO_N "(cached) $ECHO_C" >&6
24099else
24100  cat >conftest.$ac_ext <<_ACEOF
24101#line $LINENO "configure"
24102#include "confdefs.h"
24103#include <sys/types.h>
24104#if STDC_HEADERS
24105#include <stdlib.h>
24106#include <stddef.h>
24107#endif
24108
24109#include <sys/types.h>
24110#include <sys/uio.h>
24111
24112#ifdef F77_DUMMY_MAIN
24113#  ifdef __cplusplus
24114     extern "C"
24115#  endif
24116   int F77_DUMMY_MAIN() { return 1; }
24117#endif
24118int
24119main ()
24120{
24121struct iovec foo;
24122  ;
24123  return 0;
24124}
24125_ACEOF
24126rm -f conftest.$ac_objext
24127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24128  (eval $ac_compile) 2>&5
24129  ac_status=$?
24130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131  (exit $ac_status); } &&
24132         { ac_try='test -s conftest.$ac_objext'
24133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134  (eval $ac_try) 2>&5
24135  ac_status=$?
24136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137  (exit $ac_status); }; }; then
24138  eval "ac_cv_type_$cv=yes"
24139else
24140  echo "$as_me: failed program was:" >&5
24141cat conftest.$ac_ext >&5
24142eval "ac_cv_type_$cv=no"
24143fi
24144rm -f conftest.$ac_objext conftest.$ac_ext
24145fi
24146ac_foo=`eval echo \\$ac_cv_type_$cv`
24147echo "$as_me:$LINENO: result: $ac_foo" >&5
24148echo "${ECHO_T}$ac_foo" >&6
24149if test "$ac_foo" = yes; then
24150  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24151if false; then
24152	echo "$as_me:$LINENO: checking for struct iovec" >&5
24153echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
24154if test "${ac_cv_type_struct_iovec+set}" = set; then
24155  echo $ECHO_N "(cached) $ECHO_C" >&6
24156else
24157  cat >conftest.$ac_ext <<_ACEOF
24158#line $LINENO "configure"
24159#include "confdefs.h"
24160$ac_includes_default
24161#ifdef F77_DUMMY_MAIN
24162#  ifdef __cplusplus
24163     extern "C"
24164#  endif
24165   int F77_DUMMY_MAIN() { return 1; }
24166#endif
24167int
24168main ()
24169{
24170if ((struct iovec *) 0)
24171  return 0;
24172if (sizeof (struct iovec))
24173  return 0;
24174  ;
24175  return 0;
24176}
24177_ACEOF
24178rm -f conftest.$ac_objext
24179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24180  (eval $ac_compile) 2>&5
24181  ac_status=$?
24182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183  (exit $ac_status); } &&
24184         { ac_try='test -s conftest.$ac_objext'
24185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186  (eval $ac_try) 2>&5
24187  ac_status=$?
24188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189  (exit $ac_status); }; }; then
24190  ac_cv_type_struct_iovec=yes
24191else
24192  echo "$as_me: failed program was:" >&5
24193cat conftest.$ac_ext >&5
24194ac_cv_type_struct_iovec=no
24195fi
24196rm -f conftest.$ac_objext conftest.$ac_ext
24197fi
24198echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
24199echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
24200if test $ac_cv_type_struct_iovec = yes; then
24201
24202cat >>confdefs.h <<_ACEOF
24203#define HAVE_STRUCT_IOVEC 1
24204_ACEOF
24205
24206
24207fi
24208
24209fi
24210
24211cat >>confdefs.h <<_ACEOF
24212#define $ac_tr_hdr 1
24213_ACEOF
24214
24215fi
24216
24217
24218
24219cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
24220echo "$as_me:$LINENO: checking for struct msghdr" >&5
24221echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
24222if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
24223  echo $ECHO_N "(cached) $ECHO_C" >&6
24224else
24225  cat >conftest.$ac_ext <<_ACEOF
24226#line $LINENO "configure"
24227#include "confdefs.h"
24228#include <sys/types.h>
24229#if STDC_HEADERS
24230#include <stdlib.h>
24231#include <stddef.h>
24232#endif
24233
24234#include <sys/types.h>
24235#include <sys/socket.h>
24236
24237#ifdef F77_DUMMY_MAIN
24238#  ifdef __cplusplus
24239     extern "C"
24240#  endif
24241   int F77_DUMMY_MAIN() { return 1; }
24242#endif
24243int
24244main ()
24245{
24246struct msghdr foo;
24247  ;
24248  return 0;
24249}
24250_ACEOF
24251rm -f conftest.$ac_objext
24252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24253  (eval $ac_compile) 2>&5
24254  ac_status=$?
24255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256  (exit $ac_status); } &&
24257         { ac_try='test -s conftest.$ac_objext'
24258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259  (eval $ac_try) 2>&5
24260  ac_status=$?
24261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262  (exit $ac_status); }; }; then
24263  eval "ac_cv_type_$cv=yes"
24264else
24265  echo "$as_me: failed program was:" >&5
24266cat conftest.$ac_ext >&5
24267eval "ac_cv_type_$cv=no"
24268fi
24269rm -f conftest.$ac_objext conftest.$ac_ext
24270fi
24271ac_foo=`eval echo \\$ac_cv_type_$cv`
24272echo "$as_me:$LINENO: result: $ac_foo" >&5
24273echo "${ECHO_T}$ac_foo" >&6
24274if test "$ac_foo" = yes; then
24275  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
24276if false; then
24277	echo "$as_me:$LINENO: checking for struct msghdr" >&5
24278echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
24279if test "${ac_cv_type_struct_msghdr+set}" = set; then
24280  echo $ECHO_N "(cached) $ECHO_C" >&6
24281else
24282  cat >conftest.$ac_ext <<_ACEOF
24283#line $LINENO "configure"
24284#include "confdefs.h"
24285$ac_includes_default
24286#ifdef F77_DUMMY_MAIN
24287#  ifdef __cplusplus
24288     extern "C"
24289#  endif
24290   int F77_DUMMY_MAIN() { return 1; }
24291#endif
24292int
24293main ()
24294{
24295if ((struct msghdr *) 0)
24296  return 0;
24297if (sizeof (struct msghdr))
24298  return 0;
24299  ;
24300  return 0;
24301}
24302_ACEOF
24303rm -f conftest.$ac_objext
24304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24305  (eval $ac_compile) 2>&5
24306  ac_status=$?
24307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308  (exit $ac_status); } &&
24309         { ac_try='test -s conftest.$ac_objext'
24310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311  (eval $ac_try) 2>&5
24312  ac_status=$?
24313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314  (exit $ac_status); }; }; then
24315  ac_cv_type_struct_msghdr=yes
24316else
24317  echo "$as_me: failed program was:" >&5
24318cat conftest.$ac_ext >&5
24319ac_cv_type_struct_msghdr=no
24320fi
24321rm -f conftest.$ac_objext conftest.$ac_ext
24322fi
24323echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
24324echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
24325if test $ac_cv_type_struct_msghdr = yes; then
24326
24327cat >>confdefs.h <<_ACEOF
24328#define HAVE_STRUCT_MSGHDR 1
24329_ACEOF
24330
24331
24332fi
24333
24334fi
24335
24336cat >>confdefs.h <<_ACEOF
24337#define $ac_tr_hdr 1
24338_ACEOF
24339
24340fi
24341
24342
24343
24344
24345echo "$as_me:$LINENO: checking for struct winsize" >&5
24346echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
24347if test "${ac_cv_struct_winsize+set}" = set; then
24348  echo $ECHO_N "(cached) $ECHO_C" >&6
24349else
24350
24351ac_cv_struct_winsize=no
24352for i in sys/termios.h sys/ioctl.h; do
24353cat >conftest.$ac_ext <<_ACEOF
24354#line $LINENO "configure"
24355#include "confdefs.h"
24356#include <$i>
24357
24358_ACEOF
24359if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24360  egrep "struct[ 	]*winsize" >/dev/null 2>&1; then
24361  ac_cv_struct_winsize=yes; break
24362fi
24363rm -f conftest*
24364done
24365
24366fi
24367
24368if test "$ac_cv_struct_winsize" = "yes"; then
24369
24370cat >>confdefs.h <<\_ACEOF
24371#define HAVE_STRUCT_WINSIZE 1
24372_ACEOF
24373
24374fi
24375echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
24376echo "${ECHO_T}$ac_cv_struct_winsize" >&6
24377cat >conftest.$ac_ext <<_ACEOF
24378#line $LINENO "configure"
24379#include "confdefs.h"
24380#include <termios.h>
24381
24382_ACEOF
24383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24384  egrep "ws_xpixel" >/dev/null 2>&1; then
24385
24386cat >>confdefs.h <<\_ACEOF
24387#define HAVE_WS_XPIXEL 1
24388_ACEOF
24389
24390fi
24391rm -f conftest*
24392
24393cat >conftest.$ac_ext <<_ACEOF
24394#line $LINENO "configure"
24395#include "confdefs.h"
24396#include <termios.h>
24397
24398_ACEOF
24399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24400  egrep "ws_ypixel" >/dev/null 2>&1; then
24401
24402cat >>confdefs.h <<\_ACEOF
24403#define HAVE_WS_YPIXEL 1
24404_ACEOF
24405
24406fi
24407rm -f conftest*
24408
24409
24410
24411
24412
24413echo "$as_me:$LINENO: checking for struct spwd" >&5
24414echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
24415if test "${ac_cv_struct_spwd+set}" = set; then
24416  echo $ECHO_N "(cached) $ECHO_C" >&6
24417else
24418
24419cat >conftest.$ac_ext <<_ACEOF
24420#line $LINENO "configure"
24421#include "confdefs.h"
24422#include <pwd.h>
24423#ifdef HAVE_SHADOW_H
24424#include <shadow.h>
24425#endif
24426#ifdef F77_DUMMY_MAIN
24427#  ifdef __cplusplus
24428     extern "C"
24429#  endif
24430   int F77_DUMMY_MAIN() { return 1; }
24431#endif
24432int
24433main ()
24434{
24435struct spwd foo;
24436  ;
24437  return 0;
24438}
24439_ACEOF
24440rm -f conftest.$ac_objext
24441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24442  (eval $ac_compile) 2>&5
24443  ac_status=$?
24444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445  (exit $ac_status); } &&
24446         { ac_try='test -s conftest.$ac_objext'
24447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448  (eval $ac_try) 2>&5
24449  ac_status=$?
24450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451  (exit $ac_status); }; }; then
24452  ac_cv_struct_spwd=yes
24453else
24454  echo "$as_me: failed program was:" >&5
24455cat conftest.$ac_ext >&5
24456ac_cv_struct_spwd=no
24457fi
24458rm -f conftest.$ac_objext conftest.$ac_ext
24459
24460fi
24461
24462echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
24463echo "${ECHO_T}$ac_cv_struct_spwd" >&6
24464
24465if test "$ac_cv_struct_spwd" = "yes"; then
24466
24467cat >>confdefs.h <<\_ACEOF
24468#define HAVE_STRUCT_SPWD 1
24469_ACEOF
24470
24471fi
24472
24473
24474
24475LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
24476
24477
24478LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
24479
24480
24481
24482# Check whether --with-openldap or --without-openldap was given.
24483if test "${with_openldap+set}" = set; then
24484  withval="$with_openldap"
24485
24486fi;
24487
24488# Check whether --with-openldap-lib or --without-openldap-lib was given.
24489if test "${with_openldap_lib+set}" = set; then
24490  withval="$with_openldap_lib"
24491  if test "$withval" = "yes" -o "$withval" = "no"; then
24492  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
24493echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
24494   { (exit 1); exit 1; }; }
24495elif test "X$with_openldap" = "X"; then
24496  with_openldap=yes
24497fi
24498fi;
24499
24500# Check whether --with-openldap-include or --without-openldap-include was given.
24501if test "${with_openldap_include+set}" = set; then
24502  withval="$with_openldap_include"
24503  if test "$withval" = "yes" -o "$withval" = "no"; then
24504  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
24505echo "$as_me: error: No argument for --with-openldap-include" >&2;}
24506   { (exit 1); exit 1; }; }
24507elif test "X$with_openldap" = "X"; then
24508  with_openldap=yes
24509fi
24510fi;
24511
24512# Check whether --with-openldap-config or --without-openldap-config was given.
24513if test "${with_openldap_config+set}" = set; then
24514  withval="$with_openldap_config"
24515
24516fi;
24517
24518
24519
24520echo "$as_me:$LINENO: checking for openldap" >&5
24521echo $ECHO_N "checking for openldap... $ECHO_C" >&6
24522
24523case "$with_openldap" in
24524yes|"") d='' ;;
24525no)	d= ;;
24526*)	d="$with_openldap" ;;
24527esac
24528
24529header_dirs=
24530lib_dirs=
24531for i in $d; do
24532	if test "$with_openldap_include" = ""; then
24533		if test -d "$i/include/openldap"; then
24534			header_dirs="$header_dirs $i/include/openldap"
24535		fi
24536		if test -d "$i/include"; then
24537			header_dirs="$header_dirs $i/include"
24538		fi
24539	fi
24540	if test "$with_openldap_lib" = ""; then
24541		if test -d "$i/lib$abilibdirext"; then
24542			lib_dirs="$lib_dirs $i/lib$abilibdirext"
24543		fi
24544	fi
24545done
24546
24547if test "$with_openldap_include"; then
24548	header_dirs="$with_openldap_include $header_dirs"
24549fi
24550if test "$with_openldap_lib"; then
24551	lib_dirs="$with_openldap_lib $lib_dirs"
24552fi
24553
24554if test "$with_openldap_config" = ""; then
24555	with_openldap_config=''
24556fi
24557
24558openldap_cflags=
24559openldap_libs=
24560
24561case "$with_openldap_config" in
24562yes|no|"")
24563	;;
24564*)
24565	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
24566	openldap_libs="`$with_openldap_config --libs 2>&1`"
24567	;;
24568esac
24569
24570found=no
24571if test "$with_openldap" != no; then
24572	save_CFLAGS="$CFLAGS"
24573	save_LIBS="$LIBS"
24574	if test "$openldap_cflags" -a "$openldap_libs"; then
24575		CFLAGS="$openldap_cflags $save_CFLAGS"
24576		LIBS="$openldap_libs $save_LIBS"
24577		cat >conftest.$ac_ext <<_ACEOF
24578#line $LINENO "configure"
24579#include "confdefs.h"
24580#include <lber.h>
24581#include <ldap.h>
24582#ifdef F77_DUMMY_MAIN
24583#  ifdef __cplusplus
24584     extern "C"
24585#  endif
24586   int F77_DUMMY_MAIN() { return 1; }
24587#endif
24588int
24589main ()
24590{
24591
24592  ;
24593  return 0;
24594}
24595_ACEOF
24596rm -f conftest.$ac_objext conftest$ac_exeext
24597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24598  (eval $ac_link) 2>&5
24599  ac_status=$?
24600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601  (exit $ac_status); } &&
24602         { ac_try='test -s conftest$ac_exeext'
24603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604  (eval $ac_try) 2>&5
24605  ac_status=$?
24606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607  (exit $ac_status); }; }; then
24608
24609			INCLUDE_openldap="$openldap_cflags"
24610			LIB_openldap="$openldap_libs"
24611			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
24612echo "${ECHO_T}from $with_openldap_config" >&6
24613			found=yes
24614else
24615  echo "$as_me: failed program was:" >&5
24616cat conftest.$ac_ext >&5
24617fi
24618rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24619	fi
24620	if test "$found" = no; then
24621		ires= lres=
24622		for i in $header_dirs; do
24623			CFLAGS="-I$i $save_CFLAGS"
24624			cat >conftest.$ac_ext <<_ACEOF
24625#line $LINENO "configure"
24626#include "confdefs.h"
24627#include <lber.h>
24628#include <ldap.h>
24629#ifdef F77_DUMMY_MAIN
24630#  ifdef __cplusplus
24631     extern "C"
24632#  endif
24633   int F77_DUMMY_MAIN() { return 1; }
24634#endif
24635int
24636main ()
24637{
24638
24639  ;
24640  return 0;
24641}
24642_ACEOF
24643rm -f conftest.$ac_objext
24644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24645  (eval $ac_compile) 2>&5
24646  ac_status=$?
24647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648  (exit $ac_status); } &&
24649         { ac_try='test -s conftest.$ac_objext'
24650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651  (eval $ac_try) 2>&5
24652  ac_status=$?
24653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654  (exit $ac_status); }; }; then
24655  ires=$i;break
24656else
24657  echo "$as_me: failed program was:" >&5
24658cat conftest.$ac_ext >&5
24659fi
24660rm -f conftest.$ac_objext conftest.$ac_ext
24661		done
24662		for i in $lib_dirs; do
24663			LIBS="-L$i -lldap -llber  $save_LIBS"
24664			cat >conftest.$ac_ext <<_ACEOF
24665#line $LINENO "configure"
24666#include "confdefs.h"
24667#include <lber.h>
24668#include <ldap.h>
24669#ifdef F77_DUMMY_MAIN
24670#  ifdef __cplusplus
24671     extern "C"
24672#  endif
24673   int F77_DUMMY_MAIN() { return 1; }
24674#endif
24675int
24676main ()
24677{
24678
24679  ;
24680  return 0;
24681}
24682_ACEOF
24683rm -f conftest.$ac_objext conftest$ac_exeext
24684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24685  (eval $ac_link) 2>&5
24686  ac_status=$?
24687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688  (exit $ac_status); } &&
24689         { ac_try='test -s conftest$ac_exeext'
24690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24691  (eval $ac_try) 2>&5
24692  ac_status=$?
24693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694  (exit $ac_status); }; }; then
24695  lres=$i;break
24696else
24697  echo "$as_me: failed program was:" >&5
24698cat conftest.$ac_ext >&5
24699fi
24700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24701		done
24702		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
24703			INCLUDE_openldap="-I$ires"
24704			LIB_openldap="-L$lres -lldap -llber"
24705			found=yes
24706			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
24707echo "${ECHO_T}headers $ires, libraries $lres" >&6
24708		fi
24709	fi
24710	CFLAGS="$save_CFLAGS"
24711	LIBS="$save_LIBS"
24712fi
24713
24714if test "$found" = yes; then
24715
24716cat >>confdefs.h <<_ACEOF
24717#define OPENLDAP 1
24718_ACEOF
24719
24720	with_openldap=yes
24721else
24722	with_openldap=no
24723	INCLUDE_openldap=
24724	LIB_openldap=
24725	echo "$as_me:$LINENO: result: no" >&5
24726echo "${ECHO_T}no" >&6
24727fi
24728
24729
24730
24731
24732
24733if test "$openldap_libdir"; then
24734	LIB_openldap="-R $openldap_libdir $LIB_openldap"
24735fi
24736
24737
24738
24739# Check whether --with-krb4 or --without-krb4 was given.
24740if test "${with_krb4+set}" = set; then
24741  withval="$with_krb4"
24742
24743fi;
24744
24745# Check whether --with-krb4-lib or --without-krb4-lib was given.
24746if test "${with_krb4_lib+set}" = set; then
24747  withval="$with_krb4_lib"
24748  if test "$withval" = "yes" -o "$withval" = "no"; then
24749  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
24750echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
24751   { (exit 1); exit 1; }; }
24752elif test "X$with_krb4" = "X"; then
24753  with_krb4=yes
24754fi
24755fi;
24756
24757# Check whether --with-krb4-include or --without-krb4-include was given.
24758if test "${with_krb4_include+set}" = set; then
24759  withval="$with_krb4_include"
24760  if test "$withval" = "yes" -o "$withval" = "no"; then
24761  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
24762echo "$as_me: error: No argument for --with-krb4-include" >&2;}
24763   { (exit 1); exit 1; }; }
24764elif test "X$with_krb4" = "X"; then
24765  with_krb4=yes
24766fi
24767fi;
24768
24769# Check whether --with-krb4-config or --without-krb4-config was given.
24770if test "${with_krb4_config+set}" = set; then
24771  withval="$with_krb4_config"
24772
24773fi;
24774
24775
24776
24777echo "$as_me:$LINENO: checking for krb4" >&5
24778echo $ECHO_N "checking for krb4... $ECHO_C" >&6
24779
24780case "$with_krb4" in
24781yes|"") d='/usr/athena' ;;
24782no)	d= ;;
24783*)	d="$with_krb4" ;;
24784esac
24785
24786header_dirs=
24787lib_dirs=
24788for i in $d; do
24789	if test "$with_krb4_include" = ""; then
24790		if test -d "$i/include/krb4"; then
24791			header_dirs="$header_dirs $i/include/krb4"
24792		fi
24793		if test -d "$i/include"; then
24794			header_dirs="$header_dirs $i/include"
24795		fi
24796	fi
24797	if test "$with_krb4_lib" = ""; then
24798		if test -d "$i/lib$abilibdirext"; then
24799			lib_dirs="$lib_dirs $i/lib$abilibdirext"
24800		fi
24801	fi
24802done
24803
24804if test "$with_krb4_include"; then
24805	header_dirs="$with_krb4_include $header_dirs"
24806fi
24807if test "$with_krb4_lib"; then
24808	lib_dirs="$with_krb4_lib $lib_dirs"
24809fi
24810
24811if test "$with_krb4_config" = ""; then
24812	with_krb4_config='krb4-config'
24813fi
24814
24815krb4_cflags=
24816krb4_libs=
24817
24818case "$with_krb4_config" in
24819yes|no|"")
24820	;;
24821*)
24822	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
24823	krb4_libs="`$with_krb4_config --libs 2>&1`"
24824	;;
24825esac
24826
24827found=no
24828if test "$with_krb4" != no; then
24829	save_CFLAGS="$CFLAGS"
24830	save_LIBS="$LIBS"
24831	if test "$krb4_cflags" -a "$krb4_libs"; then
24832		CFLAGS="$krb4_cflags $save_CFLAGS"
24833		LIBS="$krb4_libs $save_LIBS"
24834		cat >conftest.$ac_ext <<_ACEOF
24835#line $LINENO "configure"
24836#include "confdefs.h"
24837#include <krb.h>
24838#ifdef F77_DUMMY_MAIN
24839#  ifdef __cplusplus
24840     extern "C"
24841#  endif
24842   int F77_DUMMY_MAIN() { return 1; }
24843#endif
24844int
24845main ()
24846{
24847
24848  ;
24849  return 0;
24850}
24851_ACEOF
24852rm -f conftest.$ac_objext conftest$ac_exeext
24853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24854  (eval $ac_link) 2>&5
24855  ac_status=$?
24856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857  (exit $ac_status); } &&
24858         { ac_try='test -s conftest$ac_exeext'
24859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860  (eval $ac_try) 2>&5
24861  ac_status=$?
24862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863  (exit $ac_status); }; }; then
24864
24865			INCLUDE_krb4="$krb4_cflags"
24866			LIB_krb4="$krb4_libs"
24867			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
24868echo "${ECHO_T}from $with_krb4_config" >&6
24869			found=yes
24870else
24871  echo "$as_me: failed program was:" >&5
24872cat conftest.$ac_ext >&5
24873fi
24874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24875	fi
24876	if test "$found" = no; then
24877		ires= lres=
24878		for i in $header_dirs; do
24879			CFLAGS="-I$i $save_CFLAGS"
24880			cat >conftest.$ac_ext <<_ACEOF
24881#line $LINENO "configure"
24882#include "confdefs.h"
24883#include <krb.h>
24884#ifdef F77_DUMMY_MAIN
24885#  ifdef __cplusplus
24886     extern "C"
24887#  endif
24888   int F77_DUMMY_MAIN() { return 1; }
24889#endif
24890int
24891main ()
24892{
24893
24894  ;
24895  return 0;
24896}
24897_ACEOF
24898rm -f conftest.$ac_objext
24899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24900  (eval $ac_compile) 2>&5
24901  ac_status=$?
24902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903  (exit $ac_status); } &&
24904         { ac_try='test -s conftest.$ac_objext'
24905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24906  (eval $ac_try) 2>&5
24907  ac_status=$?
24908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909  (exit $ac_status); }; }; then
24910  ires=$i;break
24911else
24912  echo "$as_me: failed program was:" >&5
24913cat conftest.$ac_ext >&5
24914fi
24915rm -f conftest.$ac_objext conftest.$ac_ext
24916		done
24917		for i in $lib_dirs; do
24918			LIBS="-L$i -lkrb -ldes $save_LIBS"
24919			cat >conftest.$ac_ext <<_ACEOF
24920#line $LINENO "configure"
24921#include "confdefs.h"
24922#include <krb.h>
24923#ifdef F77_DUMMY_MAIN
24924#  ifdef __cplusplus
24925     extern "C"
24926#  endif
24927   int F77_DUMMY_MAIN() { return 1; }
24928#endif
24929int
24930main ()
24931{
24932
24933  ;
24934  return 0;
24935}
24936_ACEOF
24937rm -f conftest.$ac_objext conftest$ac_exeext
24938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24939  (eval $ac_link) 2>&5
24940  ac_status=$?
24941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942  (exit $ac_status); } &&
24943         { ac_try='test -s conftest$ac_exeext'
24944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945  (eval $ac_try) 2>&5
24946  ac_status=$?
24947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948  (exit $ac_status); }; }; then
24949  lres=$i;break
24950else
24951  echo "$as_me: failed program was:" >&5
24952cat conftest.$ac_ext >&5
24953fi
24954rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24955		done
24956		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
24957			INCLUDE_krb4="-I$ires"
24958			LIB_krb4="-L$lres -lkrb"
24959			found=yes
24960			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
24961echo "${ECHO_T}headers $ires, libraries $lres" >&6
24962		fi
24963	fi
24964	CFLAGS="$save_CFLAGS"
24965	LIBS="$save_LIBS"
24966fi
24967
24968if test "$found" = yes; then
24969
24970cat >>confdefs.h <<_ACEOF
24971#define KRB4 1
24972_ACEOF
24973
24974	with_krb4=yes
24975else
24976	with_krb4=no
24977	INCLUDE_krb4=
24978	LIB_krb4=
24979	echo "$as_me:$LINENO: result: no" >&5
24980echo "${ECHO_T}no" >&6
24981fi
24982
24983
24984
24985
24986
24987LIB_kdb=
24988if test "$with_krb4" != "no"; then
24989	save_CFLAGS="$CFLAGS"
24990	CFLAGS="$CFLAGS $INCLUDE_krb4"
24991	save_LIBS="$LIBS"
24992	LIBS="$LIB_krb4 $LIBS"
24993	EXTRA_LIB45=lib45.a
24994
24995	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
24996echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
24997if test "${ac_cv_func_krb_put_int_four+set}" = set; then
24998  echo $ECHO_N "(cached) $ECHO_C" >&6
24999else
25000  cat >conftest.$ac_ext <<_ACEOF
25001#line $LINENO "configure"
25002#include "confdefs.h"
25003#include <krb.h>
25004#ifdef F77_DUMMY_MAIN
25005#  ifdef __cplusplus
25006     extern "C"
25007#  endif
25008   int F77_DUMMY_MAIN() { return 1; }
25009#endif
25010int
25011main ()
25012{
25013
25014		char tmp[4];
25015		krb_put_int(17, tmp, 4, sizeof(tmp));
25016  ;
25017  return 0;
25018}
25019_ACEOF
25020rm -f conftest.$ac_objext
25021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25022  (eval $ac_compile) 2>&5
25023  ac_status=$?
25024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025  (exit $ac_status); } &&
25026         { ac_try='test -s conftest.$ac_objext'
25027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028  (eval $ac_try) 2>&5
25029  ac_status=$?
25030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031  (exit $ac_status); }; }; then
25032  ac_cv_func_krb_put_int_four=yes
25033else
25034  echo "$as_me: failed program was:" >&5
25035cat conftest.$ac_ext >&5
25036ac_cv_func_krb_put_int_four=no
25037fi
25038rm -f conftest.$ac_objext conftest.$ac_ext
25039
25040fi
25041echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
25042echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
25043	if test "$ac_cv_func_krb_put_int_four" = yes; then
25044
25045cat >>confdefs.h <<\_ACEOF
25046#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
25047_ACEOF
25048
25049	fi
25050
25051
25052	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
25053echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
25054if test "${ac_cv_func_krb_verify_secure+set}" = set; then
25055  echo $ECHO_N "(cached) $ECHO_C" >&6
25056else
25057  cat >conftest.$ac_ext <<_ACEOF
25058#line $LINENO "configure"
25059#include "confdefs.h"
25060#include <krb.h>
25061#ifdef F77_DUMMY_MAIN
25062#  ifdef __cplusplus
25063     extern "C"
25064#  endif
25065   int F77_DUMMY_MAIN() { return 1; }
25066#endif
25067int
25068main ()
25069{
25070
25071		int x = KRB_VERIFY_SECURE
25072  ;
25073  return 0;
25074}
25075_ACEOF
25076rm -f conftest.$ac_objext
25077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25078  (eval $ac_compile) 2>&5
25079  ac_status=$?
25080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081  (exit $ac_status); } &&
25082         { ac_try='test -s conftest.$ac_objext'
25083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25084  (eval $ac_try) 2>&5
25085  ac_status=$?
25086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087  (exit $ac_status); }; }; then
25088  ac_cv_func_krb_verify_secure=yes
25089else
25090  echo "$as_me: failed program was:" >&5
25091cat conftest.$ac_ext >&5
25092ac_cv_func_krb_verify_secure=no
25093fi
25094rm -f conftest.$ac_objext conftest.$ac_ext
25095
25096fi
25097echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
25098echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
25099	if test "$ac_cv_func_krb_verify_secure" != yes; then
25100
25101cat >>confdefs.h <<\_ACEOF
25102#define KRB_VERIFY_SECURE 1
25103_ACEOF
25104
25105
25106cat >>confdefs.h <<\_ACEOF
25107#define KRB_VERIFY_SECURE_FAIL 2
25108_ACEOF
25109
25110	fi
25111	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
25112echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
25113if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
25114  echo $ECHO_N "(cached) $ECHO_C" >&6
25115else
25116  cat >conftest.$ac_ext <<_ACEOF
25117#line $LINENO "configure"
25118#include "confdefs.h"
25119#include <krb.h>
25120#ifdef F77_DUMMY_MAIN
25121#  ifdef __cplusplus
25122     extern "C"
25123#  endif
25124   int F77_DUMMY_MAIN() { return 1; }
25125#endif
25126int
25127main ()
25128{
25129
25130		int x = KRB_VERIFY_NOT_SECURE
25131  ;
25132  return 0;
25133}
25134_ACEOF
25135rm -f conftest.$ac_objext
25136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25137  (eval $ac_compile) 2>&5
25138  ac_status=$?
25139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140  (exit $ac_status); } &&
25141         { ac_try='test -s conftest.$ac_objext'
25142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143  (eval $ac_try) 2>&5
25144  ac_status=$?
25145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146  (exit $ac_status); }; }; then
25147  ac_cv_func_krb_verify_not_secure=yes
25148else
25149  echo "$as_me: failed program was:" >&5
25150cat conftest.$ac_ext >&5
25151ac_cv_func_krb_verify_not_secure=no
25152fi
25153rm -f conftest.$ac_objext conftest.$ac_ext
25154
25155fi
25156echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
25157echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
25158	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
25159
25160cat >>confdefs.h <<\_ACEOF
25161#define KRB_VERIFY_NOT_SECURE 0
25162_ACEOF
25163
25164	fi
25165
25166
25167
25168
25169echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
25170echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
25171if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
25172  echo $ECHO_N "(cached) $ECHO_C" >&6
25173else
25174
25175if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
25176	ac_save_LIBS="$LIBS"
25177	for ac_lib in "" ; do
25178		case "$ac_lib" in
25179		"") ;;
25180		yes) ac_lib="" ;;
25181		no) continue ;;
25182		-l*) ;;
25183		*) ac_lib="-l$ac_lib" ;;
25184		esac
25185		LIBS=" $ac_lib  $ac_save_LIBS"
25186		cat >conftest.$ac_ext <<_ACEOF
25187#line $LINENO "configure"
25188#include "confdefs.h"
25189
25190#ifdef F77_DUMMY_MAIN
25191#  ifdef __cplusplus
25192     extern "C"
25193#  endif
25194   int F77_DUMMY_MAIN() { return 1; }
25195#endif
25196int
25197main ()
25198{
25199krb_enable_debug()
25200  ;
25201  return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext conftest$ac_exeext
25205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25206  (eval $ac_link) 2>&5
25207  ac_status=$?
25208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209  (exit $ac_status); } &&
25210         { ac_try='test -s conftest$ac_exeext'
25211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212  (eval $ac_try) 2>&5
25213  ac_status=$?
25214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215  (exit $ac_status); }; }; then
25216  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break
25217else
25218  echo "$as_me: failed program was:" >&5
25219cat conftest.$ac_ext >&5
25220fi
25221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25222	done
25223	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
25224	LIBS="$ac_save_LIBS"
25225fi
25226
25227fi
25228
25229
25230eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
25231
25232if false; then
25233
25234for ac_func in krb_enable_debug
25235do
25236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25237echo "$as_me:$LINENO: checking for $ac_func" >&5
25238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25239if eval "test \"\${$as_ac_var+set}\" = set"; then
25240  echo $ECHO_N "(cached) $ECHO_C" >&6
25241else
25242  cat >conftest.$ac_ext <<_ACEOF
25243#line $LINENO "configure"
25244#include "confdefs.h"
25245/* System header to define __stub macros and hopefully few prototypes,
25246    which can conflict with char $ac_func (); below.  */
25247#include <assert.h>
25248/* Override any gcc2 internal prototype to avoid an error.  */
25249#ifdef __cplusplus
25250extern "C"
25251#endif
25252/* We use char because int might match the return type of a gcc2
25253   builtin and then its argument prototype would still apply.  */
25254char $ac_func ();
25255char (*f) ();
25256
25257#ifdef F77_DUMMY_MAIN
25258#  ifdef __cplusplus
25259     extern "C"
25260#  endif
25261   int F77_DUMMY_MAIN() { return 1; }
25262#endif
25263int
25264main ()
25265{
25266/* The GNU C library defines this for functions which it implements
25267    to always fail with ENOSYS.  Some functions are actually named
25268    something starting with __ and the normal name is an alias.  */
25269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25270choke me
25271#else
25272f = $ac_func;
25273#endif
25274
25275  ;
25276  return 0;
25277}
25278_ACEOF
25279rm -f conftest.$ac_objext conftest$ac_exeext
25280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25281  (eval $ac_link) 2>&5
25282  ac_status=$?
25283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284  (exit $ac_status); } &&
25285         { ac_try='test -s conftest$ac_exeext'
25286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287  (eval $ac_try) 2>&5
25288  ac_status=$?
25289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290  (exit $ac_status); }; }; then
25291  eval "$as_ac_var=yes"
25292else
25293  echo "$as_me: failed program was:" >&5
25294cat conftest.$ac_ext >&5
25295eval "$as_ac_var=no"
25296fi
25297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25298fi
25299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25300echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25301if test `eval echo '${'$as_ac_var'}'` = yes; then
25302  cat >>confdefs.h <<_ACEOF
25303#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25304_ACEOF
25305
25306fi
25307done
25308
25309fi
25310# krb_enable_debug
25311eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25312eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25313eval "LIB_krb_enable_debug=$ac_res"
25314
25315case "$ac_res" in
25316	yes)
25317	eval "ac_cv_func_krb_enable_debug=yes"
25318	eval "LIB_krb_enable_debug="
25319	cat >>confdefs.h <<_ACEOF
25320#define $ac_tr_func 1
25321_ACEOF
25322
25323	echo "$as_me:$LINENO: result: yes" >&5
25324echo "${ECHO_T}yes" >&6
25325	;;
25326	no)
25327	eval "ac_cv_func_krb_enable_debug=no"
25328	eval "LIB_krb_enable_debug="
25329	echo "$as_me:$LINENO: result: no" >&5
25330echo "${ECHO_T}no" >&6
25331	;;
25332	*)
25333	eval "ac_cv_func_krb_enable_debug=yes"
25334	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25335	cat >>confdefs.h <<_ACEOF
25336#define $ac_tr_func 1
25337_ACEOF
25338
25339	cat >>confdefs.h <<_ACEOF
25340#define $ac_tr_lib 1
25341_ACEOF
25342
25343	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25344echo "${ECHO_T}yes, in $ac_res" >&6
25345	;;
25346esac
25347
25348
25349if test -n "$LIB_krb_enable_debug"; then
25350	LIBS="$LIB_krb_enable_debug $LIBS"
25351fi
25352
25353
25354
25355
25356
25357echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
25358echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
25359if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
25360  echo $ECHO_N "(cached) $ECHO_C" >&6
25361else
25362
25363if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
25364	ac_save_LIBS="$LIBS"
25365	for ac_lib in "" ; do
25366		case "$ac_lib" in
25367		"") ;;
25368		yes) ac_lib="" ;;
25369		no) continue ;;
25370		-l*) ;;
25371		*) ac_lib="-l$ac_lib" ;;
25372		esac
25373		LIBS=" $ac_lib  $ac_save_LIBS"
25374		cat >conftest.$ac_ext <<_ACEOF
25375#line $LINENO "configure"
25376#include "confdefs.h"
25377
25378#ifdef F77_DUMMY_MAIN
25379#  ifdef __cplusplus
25380     extern "C"
25381#  endif
25382   int F77_DUMMY_MAIN() { return 1; }
25383#endif
25384int
25385main ()
25386{
25387krb_disable_debug()
25388  ;
25389  return 0;
25390}
25391_ACEOF
25392rm -f conftest.$ac_objext conftest$ac_exeext
25393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25394  (eval $ac_link) 2>&5
25395  ac_status=$?
25396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397  (exit $ac_status); } &&
25398         { ac_try='test -s conftest$ac_exeext'
25399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400  (eval $ac_try) 2>&5
25401  ac_status=$?
25402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403  (exit $ac_status); }; }; then
25404  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break
25405else
25406  echo "$as_me: failed program was:" >&5
25407cat conftest.$ac_ext >&5
25408fi
25409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25410	done
25411	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
25412	LIBS="$ac_save_LIBS"
25413fi
25414
25415fi
25416
25417
25418eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
25419
25420if false; then
25421
25422for ac_func in krb_disable_debug
25423do
25424as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25425echo "$as_me:$LINENO: checking for $ac_func" >&5
25426echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25427if eval "test \"\${$as_ac_var+set}\" = set"; then
25428  echo $ECHO_N "(cached) $ECHO_C" >&6
25429else
25430  cat >conftest.$ac_ext <<_ACEOF
25431#line $LINENO "configure"
25432#include "confdefs.h"
25433/* System header to define __stub macros and hopefully few prototypes,
25434    which can conflict with char $ac_func (); below.  */
25435#include <assert.h>
25436/* Override any gcc2 internal prototype to avoid an error.  */
25437#ifdef __cplusplus
25438extern "C"
25439#endif
25440/* We use char because int might match the return type of a gcc2
25441   builtin and then its argument prototype would still apply.  */
25442char $ac_func ();
25443char (*f) ();
25444
25445#ifdef F77_DUMMY_MAIN
25446#  ifdef __cplusplus
25447     extern "C"
25448#  endif
25449   int F77_DUMMY_MAIN() { return 1; }
25450#endif
25451int
25452main ()
25453{
25454/* The GNU C library defines this for functions which it implements
25455    to always fail with ENOSYS.  Some functions are actually named
25456    something starting with __ and the normal name is an alias.  */
25457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25458choke me
25459#else
25460f = $ac_func;
25461#endif
25462
25463  ;
25464  return 0;
25465}
25466_ACEOF
25467rm -f conftest.$ac_objext conftest$ac_exeext
25468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25469  (eval $ac_link) 2>&5
25470  ac_status=$?
25471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472  (exit $ac_status); } &&
25473         { ac_try='test -s conftest$ac_exeext'
25474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475  (eval $ac_try) 2>&5
25476  ac_status=$?
25477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478  (exit $ac_status); }; }; then
25479  eval "$as_ac_var=yes"
25480else
25481  echo "$as_me: failed program was:" >&5
25482cat conftest.$ac_ext >&5
25483eval "$as_ac_var=no"
25484fi
25485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25486fi
25487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25489if test `eval echo '${'$as_ac_var'}'` = yes; then
25490  cat >>confdefs.h <<_ACEOF
25491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25492_ACEOF
25493
25494fi
25495done
25496
25497fi
25498# krb_disable_debug
25499eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25500eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25501eval "LIB_krb_disable_debug=$ac_res"
25502
25503case "$ac_res" in
25504	yes)
25505	eval "ac_cv_func_krb_disable_debug=yes"
25506	eval "LIB_krb_disable_debug="
25507	cat >>confdefs.h <<_ACEOF
25508#define $ac_tr_func 1
25509_ACEOF
25510
25511	echo "$as_me:$LINENO: result: yes" >&5
25512echo "${ECHO_T}yes" >&6
25513	;;
25514	no)
25515	eval "ac_cv_func_krb_disable_debug=no"
25516	eval "LIB_krb_disable_debug="
25517	echo "$as_me:$LINENO: result: no" >&5
25518echo "${ECHO_T}no" >&6
25519	;;
25520	*)
25521	eval "ac_cv_func_krb_disable_debug=yes"
25522	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25523	cat >>confdefs.h <<_ACEOF
25524#define $ac_tr_func 1
25525_ACEOF
25526
25527	cat >>confdefs.h <<_ACEOF
25528#define $ac_tr_lib 1
25529_ACEOF
25530
25531	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25532echo "${ECHO_T}yes, in $ac_res" >&6
25533	;;
25534esac
25535
25536
25537if test -n "$LIB_krb_disable_debug"; then
25538	LIBS="$LIB_krb_disable_debug $LIBS"
25539fi
25540
25541
25542
25543
25544
25545echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
25546echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
25547if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
25548  echo $ECHO_N "(cached) $ECHO_C" >&6
25549else
25550
25551if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
25552	ac_save_LIBS="$LIBS"
25553	for ac_lib in "" ; do
25554		case "$ac_lib" in
25555		"") ;;
25556		yes) ac_lib="" ;;
25557		no) continue ;;
25558		-l*) ;;
25559		*) ac_lib="-l$ac_lib" ;;
25560		esac
25561		LIBS=" $ac_lib  $ac_save_LIBS"
25562		cat >conftest.$ac_ext <<_ACEOF
25563#line $LINENO "configure"
25564#include "confdefs.h"
25565
25566#ifdef F77_DUMMY_MAIN
25567#  ifdef __cplusplus
25568     extern "C"
25569#  endif
25570   int F77_DUMMY_MAIN() { return 1; }
25571#endif
25572int
25573main ()
25574{
25575krb_get_our_ip_for_realm()
25576  ;
25577  return 0;
25578}
25579_ACEOF
25580rm -f conftest.$ac_objext conftest$ac_exeext
25581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25582  (eval $ac_link) 2>&5
25583  ac_status=$?
25584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585  (exit $ac_status); } &&
25586         { ac_try='test -s conftest$ac_exeext'
25587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588  (eval $ac_try) 2>&5
25589  ac_status=$?
25590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591  (exit $ac_status); }; }; then
25592  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break
25593else
25594  echo "$as_me: failed program was:" >&5
25595cat conftest.$ac_ext >&5
25596fi
25597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25598	done
25599	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
25600	LIBS="$ac_save_LIBS"
25601fi
25602
25603fi
25604
25605
25606eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
25607
25608if false; then
25609
25610for ac_func in krb_get_our_ip_for_realm
25611do
25612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25613echo "$as_me:$LINENO: checking for $ac_func" >&5
25614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25615if eval "test \"\${$as_ac_var+set}\" = set"; then
25616  echo $ECHO_N "(cached) $ECHO_C" >&6
25617else
25618  cat >conftest.$ac_ext <<_ACEOF
25619#line $LINENO "configure"
25620#include "confdefs.h"
25621/* System header to define __stub macros and hopefully few prototypes,
25622    which can conflict with char $ac_func (); below.  */
25623#include <assert.h>
25624/* Override any gcc2 internal prototype to avoid an error.  */
25625#ifdef __cplusplus
25626extern "C"
25627#endif
25628/* We use char because int might match the return type of a gcc2
25629   builtin and then its argument prototype would still apply.  */
25630char $ac_func ();
25631char (*f) ();
25632
25633#ifdef F77_DUMMY_MAIN
25634#  ifdef __cplusplus
25635     extern "C"
25636#  endif
25637   int F77_DUMMY_MAIN() { return 1; }
25638#endif
25639int
25640main ()
25641{
25642/* The GNU C library defines this for functions which it implements
25643    to always fail with ENOSYS.  Some functions are actually named
25644    something starting with __ and the normal name is an alias.  */
25645#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25646choke me
25647#else
25648f = $ac_func;
25649#endif
25650
25651  ;
25652  return 0;
25653}
25654_ACEOF
25655rm -f conftest.$ac_objext conftest$ac_exeext
25656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25657  (eval $ac_link) 2>&5
25658  ac_status=$?
25659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660  (exit $ac_status); } &&
25661         { ac_try='test -s conftest$ac_exeext'
25662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663  (eval $ac_try) 2>&5
25664  ac_status=$?
25665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666  (exit $ac_status); }; }; then
25667  eval "$as_ac_var=yes"
25668else
25669  echo "$as_me: failed program was:" >&5
25670cat conftest.$ac_ext >&5
25671eval "$as_ac_var=no"
25672fi
25673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25674fi
25675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25676echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25677if test `eval echo '${'$as_ac_var'}'` = yes; then
25678  cat >>confdefs.h <<_ACEOF
25679#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25680_ACEOF
25681
25682fi
25683done
25684
25685fi
25686# krb_get_our_ip_for_realm
25687eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25688eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25689eval "LIB_krb_get_our_ip_for_realm=$ac_res"
25690
25691case "$ac_res" in
25692	yes)
25693	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
25694	eval "LIB_krb_get_our_ip_for_realm="
25695	cat >>confdefs.h <<_ACEOF
25696#define $ac_tr_func 1
25697_ACEOF
25698
25699	echo "$as_me:$LINENO: result: yes" >&5
25700echo "${ECHO_T}yes" >&6
25701	;;
25702	no)
25703	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
25704	eval "LIB_krb_get_our_ip_for_realm="
25705	echo "$as_me:$LINENO: result: no" >&5
25706echo "${ECHO_T}no" >&6
25707	;;
25708	*)
25709	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
25710	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25711	cat >>confdefs.h <<_ACEOF
25712#define $ac_tr_func 1
25713_ACEOF
25714
25715	cat >>confdefs.h <<_ACEOF
25716#define $ac_tr_lib 1
25717_ACEOF
25718
25719	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25720echo "${ECHO_T}yes, in $ac_res" >&6
25721	;;
25722esac
25723
25724
25725if test -n "$LIB_krb_get_our_ip_for_realm"; then
25726	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
25727fi
25728
25729
25730
25731
25732
25733echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
25734echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
25735if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
25736  echo $ECHO_N "(cached) $ECHO_C" >&6
25737else
25738
25739if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
25740	ac_save_LIBS="$LIBS"
25741	for ac_lib in "" ; do
25742		case "$ac_lib" in
25743		"") ;;
25744		yes) ac_lib="" ;;
25745		no) continue ;;
25746		-l*) ;;
25747		*) ac_lib="-l$ac_lib" ;;
25748		esac
25749		LIBS=" $ac_lib  $ac_save_LIBS"
25750		cat >conftest.$ac_ext <<_ACEOF
25751#line $LINENO "configure"
25752#include "confdefs.h"
25753
25754#ifdef F77_DUMMY_MAIN
25755#  ifdef __cplusplus
25756     extern "C"
25757#  endif
25758   int F77_DUMMY_MAIN() { return 1; }
25759#endif
25760int
25761main ()
25762{
25763krb_kdctimeofday()
25764  ;
25765  return 0;
25766}
25767_ACEOF
25768rm -f conftest.$ac_objext conftest$ac_exeext
25769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25770  (eval $ac_link) 2>&5
25771  ac_status=$?
25772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773  (exit $ac_status); } &&
25774         { ac_try='test -s conftest$ac_exeext'
25775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25776  (eval $ac_try) 2>&5
25777  ac_status=$?
25778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779  (exit $ac_status); }; }; then
25780  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
25781else
25782  echo "$as_me: failed program was:" >&5
25783cat conftest.$ac_ext >&5
25784fi
25785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25786	done
25787	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
25788	LIBS="$ac_save_LIBS"
25789fi
25790
25791fi
25792
25793
25794eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
25795
25796if false; then
25797
25798for ac_func in krb_kdctimeofday
25799do
25800as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25801echo "$as_me:$LINENO: checking for $ac_func" >&5
25802echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25803if eval "test \"\${$as_ac_var+set}\" = set"; then
25804  echo $ECHO_N "(cached) $ECHO_C" >&6
25805else
25806  cat >conftest.$ac_ext <<_ACEOF
25807#line $LINENO "configure"
25808#include "confdefs.h"
25809/* System header to define __stub macros and hopefully few prototypes,
25810    which can conflict with char $ac_func (); below.  */
25811#include <assert.h>
25812/* Override any gcc2 internal prototype to avoid an error.  */
25813#ifdef __cplusplus
25814extern "C"
25815#endif
25816/* We use char because int might match the return type of a gcc2
25817   builtin and then its argument prototype would still apply.  */
25818char $ac_func ();
25819char (*f) ();
25820
25821#ifdef F77_DUMMY_MAIN
25822#  ifdef __cplusplus
25823     extern "C"
25824#  endif
25825   int F77_DUMMY_MAIN() { return 1; }
25826#endif
25827int
25828main ()
25829{
25830/* The GNU C library defines this for functions which it implements
25831    to always fail with ENOSYS.  Some functions are actually named
25832    something starting with __ and the normal name is an alias.  */
25833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25834choke me
25835#else
25836f = $ac_func;
25837#endif
25838
25839  ;
25840  return 0;
25841}
25842_ACEOF
25843rm -f conftest.$ac_objext conftest$ac_exeext
25844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25845  (eval $ac_link) 2>&5
25846  ac_status=$?
25847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848  (exit $ac_status); } &&
25849         { ac_try='test -s conftest$ac_exeext'
25850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851  (eval $ac_try) 2>&5
25852  ac_status=$?
25853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854  (exit $ac_status); }; }; then
25855  eval "$as_ac_var=yes"
25856else
25857  echo "$as_me: failed program was:" >&5
25858cat conftest.$ac_ext >&5
25859eval "$as_ac_var=no"
25860fi
25861rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25862fi
25863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25865if test `eval echo '${'$as_ac_var'}'` = yes; then
25866  cat >>confdefs.h <<_ACEOF
25867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25868_ACEOF
25869
25870fi
25871done
25872
25873fi
25874# krb_kdctimeofday
25875eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25876eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
25877eval "LIB_krb_kdctimeofday=$ac_res"
25878
25879case "$ac_res" in
25880	yes)
25881	eval "ac_cv_func_krb_kdctimeofday=yes"
25882	eval "LIB_krb_kdctimeofday="
25883	cat >>confdefs.h <<_ACEOF
25884#define $ac_tr_func 1
25885_ACEOF
25886
25887	echo "$as_me:$LINENO: result: yes" >&5
25888echo "${ECHO_T}yes" >&6
25889	;;
25890	no)
25891	eval "ac_cv_func_krb_kdctimeofday=no"
25892	eval "LIB_krb_kdctimeofday="
25893	echo "$as_me:$LINENO: result: no" >&5
25894echo "${ECHO_T}no" >&6
25895	;;
25896	*)
25897	eval "ac_cv_func_krb_kdctimeofday=yes"
25898	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
25899	cat >>confdefs.h <<_ACEOF
25900#define $ac_tr_func 1
25901_ACEOF
25902
25903	cat >>confdefs.h <<_ACEOF
25904#define $ac_tr_lib 1
25905_ACEOF
25906
25907	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
25908echo "${ECHO_T}yes, in $ac_res" >&6
25909	;;
25910esac
25911
25912
25913if test -n "$LIB_krb_kdctimeofday"; then
25914	LIBS="$LIB_krb_kdctimeofday $LIBS"
25915fi
25916
25917
25918
25919
25920
25921
25922
25923echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
25924echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
25925if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
25926  echo $ECHO_N "(cached) $ECHO_C" >&6
25927else
25928
25929if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
25930	ac_save_LIBS="$LIBS"
25931	for ac_lib in "" ; do
25932		case "$ac_lib" in
25933		"") ;;
25934		yes) ac_lib="" ;;
25935		no) continue ;;
25936		-l*) ;;
25937		*) ac_lib="-l$ac_lib" ;;
25938		esac
25939		LIBS=" $ac_lib  $ac_save_LIBS"
25940		cat >conftest.$ac_ext <<_ACEOF
25941#line $LINENO "configure"
25942#include "confdefs.h"
25943
25944#ifdef F77_DUMMY_MAIN
25945#  ifdef __cplusplus
25946     extern "C"
25947#  endif
25948   int F77_DUMMY_MAIN() { return 1; }
25949#endif
25950int
25951main ()
25952{
25953krb_get_kdc_time_diff()
25954  ;
25955  return 0;
25956}
25957_ACEOF
25958rm -f conftest.$ac_objext conftest$ac_exeext
25959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25960  (eval $ac_link) 2>&5
25961  ac_status=$?
25962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963  (exit $ac_status); } &&
25964         { ac_try='test -s conftest$ac_exeext'
25965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966  (eval $ac_try) 2>&5
25967  ac_status=$?
25968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969  (exit $ac_status); }; }; then
25970  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break
25971else
25972  echo "$as_me: failed program was:" >&5
25973cat conftest.$ac_ext >&5
25974fi
25975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25976	done
25977	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
25978	LIBS="$ac_save_LIBS"
25979fi
25980
25981fi
25982
25983
25984eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
25985
25986if false; then
25987
25988for ac_func in krb_get_kdc_time_diff
25989do
25990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25991echo "$as_me:$LINENO: checking for $ac_func" >&5
25992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25993if eval "test \"\${$as_ac_var+set}\" = set"; then
25994  echo $ECHO_N "(cached) $ECHO_C" >&6
25995else
25996  cat >conftest.$ac_ext <<_ACEOF
25997#line $LINENO "configure"
25998#include "confdefs.h"
25999/* System header to define __stub macros and hopefully few prototypes,
26000    which can conflict with char $ac_func (); below.  */
26001#include <assert.h>
26002/* Override any gcc2 internal prototype to avoid an error.  */
26003#ifdef __cplusplus
26004extern "C"
26005#endif
26006/* We use char because int might match the return type of a gcc2
26007   builtin and then its argument prototype would still apply.  */
26008char $ac_func ();
26009char (*f) ();
26010
26011#ifdef F77_DUMMY_MAIN
26012#  ifdef __cplusplus
26013     extern "C"
26014#  endif
26015   int F77_DUMMY_MAIN() { return 1; }
26016#endif
26017int
26018main ()
26019{
26020/* The GNU C library defines this for functions which it implements
26021    to always fail with ENOSYS.  Some functions are actually named
26022    something starting with __ and the normal name is an alias.  */
26023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26024choke me
26025#else
26026f = $ac_func;
26027#endif
26028
26029  ;
26030  return 0;
26031}
26032_ACEOF
26033rm -f conftest.$ac_objext conftest$ac_exeext
26034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26035  (eval $ac_link) 2>&5
26036  ac_status=$?
26037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038  (exit $ac_status); } &&
26039         { ac_try='test -s conftest$ac_exeext'
26040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041  (eval $ac_try) 2>&5
26042  ac_status=$?
26043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044  (exit $ac_status); }; }; then
26045  eval "$as_ac_var=yes"
26046else
26047  echo "$as_me: failed program was:" >&5
26048cat conftest.$ac_ext >&5
26049eval "$as_ac_var=no"
26050fi
26051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26052fi
26053echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26054echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26055if test `eval echo '${'$as_ac_var'}'` = yes; then
26056  cat >>confdefs.h <<_ACEOF
26057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26058_ACEOF
26059
26060fi
26061done
26062
26063fi
26064# krb_get_kdc_time_diff
26065eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26066eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26067eval "LIB_krb_get_kdc_time_diff=$ac_res"
26068
26069case "$ac_res" in
26070	yes)
26071	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
26072	eval "LIB_krb_get_kdc_time_diff="
26073	cat >>confdefs.h <<_ACEOF
26074#define $ac_tr_func 1
26075_ACEOF
26076
26077	echo "$as_me:$LINENO: result: yes" >&5
26078echo "${ECHO_T}yes" >&6
26079	;;
26080	no)
26081	eval "ac_cv_func_krb_get_kdc_time_diff=no"
26082	eval "LIB_krb_get_kdc_time_diff="
26083	echo "$as_me:$LINENO: result: no" >&5
26084echo "${ECHO_T}no" >&6
26085	;;
26086	*)
26087	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
26088	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26089	cat >>confdefs.h <<_ACEOF
26090#define $ac_tr_func 1
26091_ACEOF
26092
26093	cat >>confdefs.h <<_ACEOF
26094#define $ac_tr_lib 1
26095_ACEOF
26096
26097	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26098echo "${ECHO_T}yes, in $ac_res" >&6
26099	;;
26100esac
26101
26102
26103if test -n "$LIB_krb_get_kdc_time_diff"; then
26104	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
26105fi
26106
26107
26108
26109	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
26110echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
26111if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
26112  echo $ECHO_N "(cached) $ECHO_C" >&6
26113else
26114  cat >conftest.$ac_ext <<_ACEOF
26115#line $LINENO "configure"
26116#include "confdefs.h"
26117#include <krb.h>
26118			#include <prot.h>
26119#ifdef F77_DUMMY_MAIN
26120#  ifdef __cplusplus
26121     extern "C"
26122#  endif
26123   int F77_DUMMY_MAIN() { return 1; }
26124#endif
26125int
26126main ()
26127{
26128
26129		char *x = KRB_SENDAUTH_VERS
26130  ;
26131  return 0;
26132}
26133_ACEOF
26134rm -f conftest.$ac_objext
26135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26136  (eval $ac_compile) 2>&5
26137  ac_status=$?
26138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139  (exit $ac_status); } &&
26140         { ac_try='test -s conftest.$ac_objext'
26141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26142  (eval $ac_try) 2>&5
26143  ac_status=$?
26144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145  (exit $ac_status); }; }; then
26146  ac_cv_func_krb_sendauth_vers=yes
26147else
26148  echo "$as_me: failed program was:" >&5
26149cat conftest.$ac_ext >&5
26150ac_cv_func_krb_sendauth_vers=no
26151fi
26152rm -f conftest.$ac_objext conftest.$ac_ext
26153
26154fi
26155echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
26156echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
26157	if test "$ac_cv_func_krb_sendauth_vers" != yes; then
26158
26159cat >>confdefs.h <<\_ACEOF
26160#define KRB_SENDAUTH_VERS "AUTHV0.1"
26161_ACEOF
26162
26163	fi
26164	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
26165echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
26166if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
26167  echo $ECHO_N "(cached) $ECHO_C" >&6
26168else
26169  cat >conftest.$ac_ext <<_ACEOF
26170#line $LINENO "configure"
26171#include "confdefs.h"
26172#include <krb.h>
26173		int krb_mk_req(KTEXT a, const char *s, const char *i,
26174			       const char *r, int32_t checksum)
26175		{ return 17; }
26176#ifdef F77_DUMMY_MAIN
26177#  ifdef __cplusplus
26178     extern "C"
26179#  endif
26180   int F77_DUMMY_MAIN() { return 1; }
26181#endif
26182int
26183main ()
26184{
26185
26186  ;
26187  return 0;
26188}
26189_ACEOF
26190rm -f conftest.$ac_objext
26191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26192  (eval $ac_compile) 2>&5
26193  ac_status=$?
26194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195  (exit $ac_status); } &&
26196         { ac_try='test -s conftest.$ac_objext'
26197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198  (eval $ac_try) 2>&5
26199  ac_status=$?
26200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201  (exit $ac_status); }; }; then
26202  ac_cv_func_krb_mk_req_const=yes
26203else
26204  echo "$as_me: failed program was:" >&5
26205cat conftest.$ac_ext >&5
26206ac_cv_func_krb_mk_req_const=no
26207fi
26208rm -f conftest.$ac_objext conftest.$ac_ext
26209
26210fi
26211echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
26212echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
26213	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
26214
26215cat >>confdefs.h <<\_ACEOF
26216#define KRB_MK_REQ_CONST 1
26217_ACEOF
26218
26219	fi
26220
26221	LIBS="$save_LIBS"
26222	CFLAGS="$save_CFLAGS"
26223	LIB_kdb="-lkdb -lkrb"
26224	if test "$krb4_libdir"; then
26225		LIB_krb4="-R $krb4_libdir $LIB_krb4"
26226		LIB_kdb="-R $krb4_libdir -L$krb4_libdir $LIB_kdb"
26227	fi
26228fi
26229
26230
26231if test "$with_krb4" != "no"; then
26232  KRB4_TRUE=
26233  KRB4_FALSE='#'
26234else
26235  KRB4_TRUE='#'
26236  KRB4_FALSE=
26237fi
26238
26239
26240
26241if true; then
26242  KRB5_TRUE=
26243  KRB5_FALSE='#'
26244else
26245  KRB5_TRUE='#'
26246  KRB5_FALSE=
26247fi
26248
26249
26250
26251if true; then
26252  do_roken_rename_TRUE=
26253  do_roken_rename_FALSE='#'
26254else
26255  do_roken_rename_TRUE='#'
26256  do_roken_rename_FALSE=
26257fi
26258
26259
26260
26261cat >>confdefs.h <<\_ACEOF
26262#define KRB5 1
26263_ACEOF
26264
26265# Check whether --enable-dce or --disable-dce was given.
26266if test "${enable_dce+set}" = set; then
26267  enableval="$enable_dce"
26268
26269fi;
26270if test "$enable_dce" = yes; then
26271
26272cat >>confdefs.h <<\_ACEOF
26273#define DCE 1
26274_ACEOF
26275
26276fi
26277
26278
26279if test "$enable_dce" = yes; then
26280  DCE_TRUE=
26281  DCE_FALSE='#'
26282else
26283  DCE_TRUE='#'
26284  DCE_FALSE=
26285fi
26286
26287
26288## XXX quite horrible:
26289if test -f /etc/ibmcxx.cfg; then
26290	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
26291	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
26292	dpagaix_ldflags=
26293else
26294	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
26295	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
26296	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
26297fi
26298
26299
26300
26301
26302
26303# Check whether --enable-otp or --disable-otp was given.
26304if test "${enable_otp+set}" = set; then
26305  enableval="$enable_otp"
26306
26307fi;
26308if test "$enable_otp" = yes -a "$db_type" = unknown; then
26309	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
26310echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
26311   { (exit 1); exit 1; }; }
26312fi
26313if test "$enable_otp" != no; then
26314	if test "$db_type" != unknown; then
26315		enable_otp=yes
26316	else
26317		enable_otp=no
26318	fi
26319fi
26320if test "$enable_otp" = yes; then
26321
26322cat >>confdefs.h <<\_ACEOF
26323#define OTP 1
26324_ACEOF
26325
26326	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
26327
26328fi
26329echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
26330echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
26331echo "$as_me:$LINENO: result: $enable_otp" >&5
26332echo "${ECHO_T}$enable_otp" >&6
26333
26334
26335if test "$enable_otp" = yes; then
26336  OTP_TRUE=
26337  OTP_FALSE='#'
26338else
26339  OTP_TRUE='#'
26340  OTP_FALSE=
26341fi
26342
26343
26344
26345# Check whether --enable-osfc2 or --disable-osfc2 was given.
26346if test "${enable_osfc2+set}" = set; then
26347  enableval="$enable_osfc2"
26348
26349fi;
26350LIB_security=
26351if test "$enable_osfc2" = yes; then
26352
26353cat >>confdefs.h <<\_ACEOF
26354#define HAVE_OSFC2 1
26355_ACEOF
26356
26357	LIB_security=-lsecurity
26358fi
26359
26360
26361
26362# Extract the first word of "nroff", so it can be a program name with args.
26363set dummy nroff; ac_word=$2
26364echo "$as_me:$LINENO: checking for $ac_word" >&5
26365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26366if test "${ac_cv_path_NROFF+set}" = set; then
26367  echo $ECHO_N "(cached) $ECHO_C" >&6
26368else
26369  case $NROFF in
26370  [\\/]* | ?:[\\/]*)
26371  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
26372  ;;
26373  *)
26374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26375for as_dir in $PATH
26376do
26377  IFS=$as_save_IFS
26378  test -z "$as_dir" && as_dir=.
26379  for ac_exec_ext in '' $ac_executable_extensions; do
26380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26381    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
26382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26383    break 2
26384  fi
26385done
26386done
26387
26388  ;;
26389esac
26390fi
26391NROFF=$ac_cv_path_NROFF
26392
26393if test -n "$NROFF"; then
26394  echo "$as_me:$LINENO: result: $NROFF" >&5
26395echo "${ECHO_T}$NROFF" >&6
26396else
26397  echo "$as_me:$LINENO: result: no" >&5
26398echo "${ECHO_T}no" >&6
26399fi
26400
26401# Extract the first word of "groff", so it can be a program name with args.
26402set dummy groff; ac_word=$2
26403echo "$as_me:$LINENO: checking for $ac_word" >&5
26404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26405if test "${ac_cv_path_GROFF+set}" = set; then
26406  echo $ECHO_N "(cached) $ECHO_C" >&6
26407else
26408  case $GROFF in
26409  [\\/]* | ?:[\\/]*)
26410  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
26411  ;;
26412  *)
26413  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26414for as_dir in $PATH
26415do
26416  IFS=$as_save_IFS
26417  test -z "$as_dir" && as_dir=.
26418  for ac_exec_ext in '' $ac_executable_extensions; do
26419  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26420    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
26421    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26422    break 2
26423  fi
26424done
26425done
26426
26427  ;;
26428esac
26429fi
26430GROFF=$ac_cv_path_GROFF
26431
26432if test -n "$GROFF"; then
26433  echo "$as_me:$LINENO: result: $GROFF" >&5
26434echo "${ECHO_T}$GROFF" >&6
26435else
26436  echo "$as_me:$LINENO: result: no" >&5
26437echo "${ECHO_T}no" >&6
26438fi
26439
26440echo "$as_me:$LINENO: checking how to format man pages" >&5
26441echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
26442if test "${ac_cv_sys_man_format+set}" = set; then
26443  echo $ECHO_N "(cached) $ECHO_C" >&6
26444else
26445  cat > conftest.1 << END
26446.Dd January 1, 1970
26447.Dt CONFTEST 1
26448.Sh NAME
26449.Nm conftest
26450.Nd
26451foobar
26452END
26453
26454if test "$NROFF" ; then
26455	for i in "-mdoc" "-mandoc"; do
26456		if "$NROFF" $i conftest.1 2> /dev/null | \
26457			grep Jan > /dev/null 2>&1 ; then
26458			ac_cv_sys_man_format="$NROFF $i"
26459			break
26460		fi
26461	done
26462fi
26463if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
26464	for i in "-mdoc" "-mandoc"; do
26465		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
26466			grep Jan > /dev/null 2>&1 ; then
26467			ac_cv_sys_man_format="$GROFF -Tascii $i"
26468			break
26469		fi
26470	done
26471fi
26472if test "$ac_cv_sys_man_format"; then
26473	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
26474fi
26475
26476fi
26477echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
26478echo "${ECHO_T}$ac_cv_sys_man_format" >&6
26479if test "$ac_cv_sys_man_format"; then
26480	CATMAN="$ac_cv_sys_man_format"
26481
26482fi
26483
26484
26485if test "$CATMAN"; then
26486  CATMAN_TRUE=
26487  CATMAN_FALSE='#'
26488else
26489  CATMAN_TRUE='#'
26490  CATMAN_FALSE=
26491fi
26492
26493echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
26494echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
26495if test "${ac_cv_sys_catman_ext+set}" = set; then
26496  echo $ECHO_N "(cached) $ECHO_C" >&6
26497else
26498  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
26499	ac_cv_sys_catman_ext=0
26500else
26501	ac_cv_sys_catman_ext=number
26502fi
26503
26504fi
26505echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
26506echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
26507if test "$ac_cv_sys_catman_ext" = number; then
26508	CATMANEXT='$$section'
26509else
26510	CATMANEXT=0
26511fi
26512
26513
26514
26515
26516
26517# Check whether --with-readline or --without-readline was given.
26518if test "${with_readline+set}" = set; then
26519  withval="$with_readline"
26520
26521fi;
26522
26523# Check whether --with-readline-lib or --without-readline-lib was given.
26524if test "${with_readline_lib+set}" = set; then
26525  withval="$with_readline_lib"
26526  if test "$withval" = "yes" -o "$withval" = "no"; then
26527  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
26528echo "$as_me: error: No argument for --with-readline-lib" >&2;}
26529   { (exit 1); exit 1; }; }
26530elif test "X$with_readline" = "X"; then
26531  with_readline=yes
26532fi
26533fi;
26534
26535# Check whether --with-readline-include or --without-readline-include was given.
26536if test "${with_readline_include+set}" = set; then
26537  withval="$with_readline_include"
26538  if test "$withval" = "yes" -o "$withval" = "no"; then
26539  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
26540echo "$as_me: error: No argument for --with-readline-include" >&2;}
26541   { (exit 1); exit 1; }; }
26542elif test "X$with_readline" = "X"; then
26543  with_readline=yes
26544fi
26545fi;
26546
26547# Check whether --with-readline-config or --without-readline-config was given.
26548if test "${with_readline_config+set}" = set; then
26549  withval="$with_readline_config"
26550
26551fi;
26552
26553
26554
26555echo "$as_me:$LINENO: checking for readline" >&5
26556echo $ECHO_N "checking for readline... $ECHO_C" >&6
26557
26558case "$with_readline" in
26559yes|"") d='' ;;
26560no)	d= ;;
26561*)	d="$with_readline" ;;
26562esac
26563
26564header_dirs=
26565lib_dirs=
26566for i in $d; do
26567	if test "$with_readline_include" = ""; then
26568		if test -d "$i/include/readline"; then
26569			header_dirs="$header_dirs $i/include/readline"
26570		fi
26571		if test -d "$i/include"; then
26572			header_dirs="$header_dirs $i/include"
26573		fi
26574	fi
26575	if test "$with_readline_lib" = ""; then
26576		if test -d "$i/lib$abilibdirext"; then
26577			lib_dirs="$lib_dirs $i/lib$abilibdirext"
26578		fi
26579	fi
26580done
26581
26582if test "$with_readline_include"; then
26583	header_dirs="$with_readline_include $header_dirs"
26584fi
26585if test "$with_readline_lib"; then
26586	lib_dirs="$with_readline_lib $lib_dirs"
26587fi
26588
26589if test "$with_readline_config" = ""; then
26590	with_readline_config=''
26591fi
26592
26593readline_cflags=
26594readline_libs=
26595
26596case "$with_readline_config" in
26597yes|no|"")
26598	;;
26599*)
26600	readline_cflags="`$with_readline_config --cflags 2>&1`"
26601	readline_libs="`$with_readline_config --libs 2>&1`"
26602	;;
26603esac
26604
26605found=no
26606if test "$with_readline" != no; then
26607	save_CFLAGS="$CFLAGS"
26608	save_LIBS="$LIBS"
26609	if test "$readline_cflags" -a "$readline_libs"; then
26610		CFLAGS="$readline_cflags $save_CFLAGS"
26611		LIBS="$readline_libs $save_LIBS"
26612		cat >conftest.$ac_ext <<_ACEOF
26613#line $LINENO "configure"
26614#include "confdefs.h"
26615#include <stdio.h>
26616 #include <readline.h>
26617#ifdef F77_DUMMY_MAIN
26618#  ifdef __cplusplus
26619     extern "C"
26620#  endif
26621   int F77_DUMMY_MAIN() { return 1; }
26622#endif
26623int
26624main ()
26625{
26626
26627  ;
26628  return 0;
26629}
26630_ACEOF
26631rm -f conftest.$ac_objext conftest$ac_exeext
26632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26633  (eval $ac_link) 2>&5
26634  ac_status=$?
26635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636  (exit $ac_status); } &&
26637         { ac_try='test -s conftest$ac_exeext'
26638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639  (eval $ac_try) 2>&5
26640  ac_status=$?
26641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642  (exit $ac_status); }; }; then
26643
26644			INCLUDE_readline="$readline_cflags"
26645			LIB_readline="$readline_libs"
26646			echo "$as_me:$LINENO: result: from $with_readline_config" >&5
26647echo "${ECHO_T}from $with_readline_config" >&6
26648			found=yes
26649else
26650  echo "$as_me: failed program was:" >&5
26651cat conftest.$ac_ext >&5
26652fi
26653rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26654	fi
26655	if test "$found" = no; then
26656		ires= lres=
26657		for i in $header_dirs; do
26658			CFLAGS="-I$i $save_CFLAGS"
26659			cat >conftest.$ac_ext <<_ACEOF
26660#line $LINENO "configure"
26661#include "confdefs.h"
26662#include <stdio.h>
26663 #include <readline.h>
26664#ifdef F77_DUMMY_MAIN
26665#  ifdef __cplusplus
26666     extern "C"
26667#  endif
26668   int F77_DUMMY_MAIN() { return 1; }
26669#endif
26670int
26671main ()
26672{
26673
26674  ;
26675  return 0;
26676}
26677_ACEOF
26678rm -f conftest.$ac_objext
26679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26680  (eval $ac_compile) 2>&5
26681  ac_status=$?
26682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683  (exit $ac_status); } &&
26684         { ac_try='test -s conftest.$ac_objext'
26685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686  (eval $ac_try) 2>&5
26687  ac_status=$?
26688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689  (exit $ac_status); }; }; then
26690  ires=$i;break
26691else
26692  echo "$as_me: failed program was:" >&5
26693cat conftest.$ac_ext >&5
26694fi
26695rm -f conftest.$ac_objext conftest.$ac_ext
26696		done
26697		for i in $lib_dirs; do
26698			LIBS="-L$i -lreadline  $save_LIBS"
26699			cat >conftest.$ac_ext <<_ACEOF
26700#line $LINENO "configure"
26701#include "confdefs.h"
26702#include <stdio.h>
26703 #include <readline.h>
26704#ifdef F77_DUMMY_MAIN
26705#  ifdef __cplusplus
26706     extern "C"
26707#  endif
26708   int F77_DUMMY_MAIN() { return 1; }
26709#endif
26710int
26711main ()
26712{
26713
26714  ;
26715  return 0;
26716}
26717_ACEOF
26718rm -f conftest.$ac_objext conftest$ac_exeext
26719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26720  (eval $ac_link) 2>&5
26721  ac_status=$?
26722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723  (exit $ac_status); } &&
26724         { ac_try='test -s conftest$ac_exeext'
26725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26726  (eval $ac_try) 2>&5
26727  ac_status=$?
26728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729  (exit $ac_status); }; }; then
26730  lres=$i;break
26731else
26732  echo "$as_me: failed program was:" >&5
26733cat conftest.$ac_ext >&5
26734fi
26735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26736		done
26737		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
26738			INCLUDE_readline="-I$ires"
26739			LIB_readline="-L$lres -lreadline"
26740			found=yes
26741			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
26742echo "${ECHO_T}headers $ires, libraries $lres" >&6
26743		fi
26744	fi
26745	CFLAGS="$save_CFLAGS"
26746	LIBS="$save_LIBS"
26747fi
26748
26749if test "$found" = yes; then
26750
26751cat >>confdefs.h <<_ACEOF
26752#define READLINE 1
26753_ACEOF
26754
26755	with_readline=yes
26756else
26757	with_readline=no
26758	INCLUDE_readline=
26759	LIB_readline=
26760	echo "$as_me:$LINENO: result: no" >&5
26761echo "${ECHO_T}no" >&6
26762fi
26763
26764
26765
26766
26767
26768
26769
26770# Check whether --with-hesiod or --without-hesiod was given.
26771if test "${with_hesiod+set}" = set; then
26772  withval="$with_hesiod"
26773
26774fi;
26775
26776# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
26777if test "${with_hesiod_lib+set}" = set; then
26778  withval="$with_hesiod_lib"
26779  if test "$withval" = "yes" -o "$withval" = "no"; then
26780  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
26781echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
26782   { (exit 1); exit 1; }; }
26783elif test "X$with_hesiod" = "X"; then
26784  with_hesiod=yes
26785fi
26786fi;
26787
26788# Check whether --with-hesiod-include or --without-hesiod-include was given.
26789if test "${with_hesiod_include+set}" = set; then
26790  withval="$with_hesiod_include"
26791  if test "$withval" = "yes" -o "$withval" = "no"; then
26792  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
26793echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
26794   { (exit 1); exit 1; }; }
26795elif test "X$with_hesiod" = "X"; then
26796  with_hesiod=yes
26797fi
26798fi;
26799
26800# Check whether --with-hesiod-config or --without-hesiod-config was given.
26801if test "${with_hesiod_config+set}" = set; then
26802  withval="$with_hesiod_config"
26803
26804fi;
26805
26806
26807
26808echo "$as_me:$LINENO: checking for hesiod" >&5
26809echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
26810
26811case "$with_hesiod" in
26812yes|"") d='' ;;
26813no)	d= ;;
26814*)	d="$with_hesiod" ;;
26815esac
26816
26817header_dirs=
26818lib_dirs=
26819for i in $d; do
26820	if test "$with_hesiod_include" = ""; then
26821		if test -d "$i/include/hesiod"; then
26822			header_dirs="$header_dirs $i/include/hesiod"
26823		fi
26824		if test -d "$i/include"; then
26825			header_dirs="$header_dirs $i/include"
26826		fi
26827	fi
26828	if test "$with_hesiod_lib" = ""; then
26829		if test -d "$i/lib$abilibdirext"; then
26830			lib_dirs="$lib_dirs $i/lib$abilibdirext"
26831		fi
26832	fi
26833done
26834
26835if test "$with_hesiod_include"; then
26836	header_dirs="$with_hesiod_include $header_dirs"
26837fi
26838if test "$with_hesiod_lib"; then
26839	lib_dirs="$with_hesiod_lib $lib_dirs"
26840fi
26841
26842if test "$with_hesiod_config" = ""; then
26843	with_hesiod_config=''
26844fi
26845
26846hesiod_cflags=
26847hesiod_libs=
26848
26849case "$with_hesiod_config" in
26850yes|no|"")
26851	;;
26852*)
26853	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
26854	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
26855	;;
26856esac
26857
26858found=no
26859if test "$with_hesiod" != no; then
26860	save_CFLAGS="$CFLAGS"
26861	save_LIBS="$LIBS"
26862	if test "$hesiod_cflags" -a "$hesiod_libs"; then
26863		CFLAGS="$hesiod_cflags $save_CFLAGS"
26864		LIBS="$hesiod_libs $save_LIBS"
26865		cat >conftest.$ac_ext <<_ACEOF
26866#line $LINENO "configure"
26867#include "confdefs.h"
26868#include <hesiod.h>
26869#ifdef F77_DUMMY_MAIN
26870#  ifdef __cplusplus
26871     extern "C"
26872#  endif
26873   int F77_DUMMY_MAIN() { return 1; }
26874#endif
26875int
26876main ()
26877{
26878
26879  ;
26880  return 0;
26881}
26882_ACEOF
26883rm -f conftest.$ac_objext conftest$ac_exeext
26884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26885  (eval $ac_link) 2>&5
26886  ac_status=$?
26887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26888  (exit $ac_status); } &&
26889         { ac_try='test -s conftest$ac_exeext'
26890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26891  (eval $ac_try) 2>&5
26892  ac_status=$?
26893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894  (exit $ac_status); }; }; then
26895
26896			INCLUDE_hesiod="$hesiod_cflags"
26897			LIB_hesiod="$hesiod_libs"
26898			echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
26899echo "${ECHO_T}from $with_hesiod_config" >&6
26900			found=yes
26901else
26902  echo "$as_me: failed program was:" >&5
26903cat conftest.$ac_ext >&5
26904fi
26905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26906	fi
26907	if test "$found" = no; then
26908		ires= lres=
26909		for i in $header_dirs; do
26910			CFLAGS="-I$i $save_CFLAGS"
26911			cat >conftest.$ac_ext <<_ACEOF
26912#line $LINENO "configure"
26913#include "confdefs.h"
26914#include <hesiod.h>
26915#ifdef F77_DUMMY_MAIN
26916#  ifdef __cplusplus
26917     extern "C"
26918#  endif
26919   int F77_DUMMY_MAIN() { return 1; }
26920#endif
26921int
26922main ()
26923{
26924
26925  ;
26926  return 0;
26927}
26928_ACEOF
26929rm -f conftest.$ac_objext
26930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26931  (eval $ac_compile) 2>&5
26932  ac_status=$?
26933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934  (exit $ac_status); } &&
26935         { ac_try='test -s conftest.$ac_objext'
26936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26937  (eval $ac_try) 2>&5
26938  ac_status=$?
26939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940  (exit $ac_status); }; }; then
26941  ires=$i;break
26942else
26943  echo "$as_me: failed program was:" >&5
26944cat conftest.$ac_ext >&5
26945fi
26946rm -f conftest.$ac_objext conftest.$ac_ext
26947		done
26948		for i in $lib_dirs; do
26949			LIBS="-L$i -lhesiod  $save_LIBS"
26950			cat >conftest.$ac_ext <<_ACEOF
26951#line $LINENO "configure"
26952#include "confdefs.h"
26953#include <hesiod.h>
26954#ifdef F77_DUMMY_MAIN
26955#  ifdef __cplusplus
26956     extern "C"
26957#  endif
26958   int F77_DUMMY_MAIN() { return 1; }
26959#endif
26960int
26961main ()
26962{
26963
26964  ;
26965  return 0;
26966}
26967_ACEOF
26968rm -f conftest.$ac_objext conftest$ac_exeext
26969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26970  (eval $ac_link) 2>&5
26971  ac_status=$?
26972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973  (exit $ac_status); } &&
26974         { ac_try='test -s conftest$ac_exeext'
26975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976  (eval $ac_try) 2>&5
26977  ac_status=$?
26978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979  (exit $ac_status); }; }; then
26980  lres=$i;break
26981else
26982  echo "$as_me: failed program was:" >&5
26983cat conftest.$ac_ext >&5
26984fi
26985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26986		done
26987		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
26988			INCLUDE_hesiod="-I$ires"
26989			LIB_hesiod="-L$lres -lhesiod"
26990			found=yes
26991			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
26992echo "${ECHO_T}headers $ires, libraries $lres" >&6
26993		fi
26994	fi
26995	CFLAGS="$save_CFLAGS"
26996	LIBS="$save_LIBS"
26997fi
26998
26999if test "$found" = yes; then
27000
27001cat >>confdefs.h <<_ACEOF
27002#define HESIOD 1
27003_ACEOF
27004
27005	with_hesiod=yes
27006else
27007	with_hesiod=no
27008	INCLUDE_hesiod=
27009	LIB_hesiod=
27010	echo "$as_me:$LINENO: result: no" >&5
27011echo "${ECHO_T}no" >&6
27012fi
27013
27014
27015
27016
27017
27018
27019# Check whether --enable-bigendian or --disable-bigendian was given.
27020if test "${enable_bigendian+set}" = set; then
27021  enableval="$enable_bigendian"
27022  krb_cv_c_bigendian=yes
27023fi;
27024# Check whether --enable-littleendian or --disable-littleendian was given.
27025if test "${enable_littleendian+set}" = set; then
27026  enableval="$enable_littleendian"
27027  krb_cv_c_bigendian=no
27028fi;
27029echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
27030echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
27031if test "${krb_cv_c_bigendian_compile+set}" = set; then
27032  echo $ECHO_N "(cached) $ECHO_C" >&6
27033else
27034  cat >conftest.$ac_ext <<_ACEOF
27035#line $LINENO "configure"
27036#include "confdefs.h"
27037
27038#include <sys/types.h>
27039#include <sys/param.h>
27040#ifdef F77_DUMMY_MAIN
27041#  ifdef __cplusplus
27042     extern "C"
27043#  endif
27044   int F77_DUMMY_MAIN() { return 1; }
27045#endif
27046int
27047main ()
27048{
27049
27050#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27051 bogus endian macros
27052#endif
27053  ;
27054  return 0;
27055}
27056_ACEOF
27057rm -f conftest.$ac_objext
27058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27059  (eval $ac_compile) 2>&5
27060  ac_status=$?
27061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062  (exit $ac_status); } &&
27063         { ac_try='test -s conftest.$ac_objext'
27064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065  (eval $ac_try) 2>&5
27066  ac_status=$?
27067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068  (exit $ac_status); }; }; then
27069  krb_cv_c_bigendian_compile=yes
27070else
27071  echo "$as_me: failed program was:" >&5
27072cat conftest.$ac_ext >&5
27073krb_cv_c_bigendian_compile=no
27074fi
27075rm -f conftest.$ac_objext conftest.$ac_ext
27076fi
27077echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
27078echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
27079echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27080echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27081if test "${krb_cv_c_bigendian+set}" = set; then
27082  echo $ECHO_N "(cached) $ECHO_C" >&6
27083else
27084
27085  if test "$krb_cv_c_bigendian_compile" = "yes"; then
27086    cat >conftest.$ac_ext <<_ACEOF
27087#line $LINENO "configure"
27088#include "confdefs.h"
27089
27090#include <sys/types.h>
27091#include <sys/param.h>
27092#ifdef F77_DUMMY_MAIN
27093#  ifdef __cplusplus
27094     extern "C"
27095#  endif
27096   int F77_DUMMY_MAIN() { return 1; }
27097#endif
27098int
27099main ()
27100{
27101
27102#if BYTE_ORDER != BIG_ENDIAN
27103  not big endian
27104#endif
27105  ;
27106  return 0;
27107}
27108_ACEOF
27109rm -f conftest.$ac_objext
27110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27111  (eval $ac_compile) 2>&5
27112  ac_status=$?
27113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114  (exit $ac_status); } &&
27115         { ac_try='test -s conftest.$ac_objext'
27116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27117  (eval $ac_try) 2>&5
27118  ac_status=$?
27119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120  (exit $ac_status); }; }; then
27121  krb_cv_c_bigendian=yes
27122else
27123  echo "$as_me: failed program was:" >&5
27124cat conftest.$ac_ext >&5
27125krb_cv_c_bigendian=no
27126fi
27127rm -f conftest.$ac_objext conftest.$ac_ext
27128  else
27129    if test "$cross_compiling" = yes; then
27130  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
27131echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
27132   { (exit 1); exit 1; }; }
27133else
27134  cat >conftest.$ac_ext <<_ACEOF
27135#line $LINENO "configure"
27136#include "confdefs.h"
27137main () {
27138      /* Are we little or big endian?  From Harbison&Steele.  */
27139      union
27140      {
27141	long l;
27142	char c[sizeof (long)];
27143    } u;
27144    u.l = 1;
27145    exit (u.c[sizeof (long) - 1] == 1);
27146  }
27147_ACEOF
27148rm -f conftest$ac_exeext
27149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150  (eval $ac_link) 2>&5
27151  ac_status=$?
27152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155  (eval $ac_try) 2>&5
27156  ac_status=$?
27157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158  (exit $ac_status); }; }; then
27159  krb_cv_c_bigendian=no
27160else
27161  echo "$as_me: program exited with status $ac_status" >&5
27162echo "$as_me: failed program was:" >&5
27163cat conftest.$ac_ext >&5
27164( exit $ac_status )
27165krb_cv_c_bigendian=yes
27166fi
27167rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27168fi
27169  fi
27170
27171fi
27172echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
27173echo "${ECHO_T}$krb_cv_c_bigendian" >&6
27174if test "$krb_cv_c_bigendian" = "yes"; then
27175
27176cat >>confdefs.h <<\_ACEOF
27177#define WORDS_BIGENDIAN 1
27178_ACEOF
27179fi
27180if test "$krb_cv_c_bigendian_compile" = "yes"; then
27181
27182cat >>confdefs.h <<\_ACEOF
27183#define ENDIANESS_IN_SYS_PARAM_H 1
27184_ACEOF
27185fi
27186
27187
27188
27189echo "$as_me:$LINENO: checking for inline" >&5
27190echo $ECHO_N "checking for inline... $ECHO_C" >&6
27191if test "${ac_cv_c_inline+set}" = set; then
27192  echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
27194  ac_cv_c_inline=no
27195for ac_kw in inline __inline__ __inline; do
27196  cat >conftest.$ac_ext <<_ACEOF
27197#line $LINENO "configure"
27198#include "confdefs.h"
27199#ifndef __cplusplus
27200static $ac_kw int static_foo () {return 0; }
27201$ac_kw int foo () {return 0; }
27202#endif
27203
27204_ACEOF
27205rm -f conftest.$ac_objext
27206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27207  (eval $ac_compile) 2>&5
27208  ac_status=$?
27209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210  (exit $ac_status); } &&
27211         { ac_try='test -s conftest.$ac_objext'
27212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213  (eval $ac_try) 2>&5
27214  ac_status=$?
27215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216  (exit $ac_status); }; }; then
27217  ac_cv_c_inline=$ac_kw; break
27218else
27219  echo "$as_me: failed program was:" >&5
27220cat conftest.$ac_ext >&5
27221fi
27222rm -f conftest.$ac_objext conftest.$ac_ext
27223done
27224
27225fi
27226echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
27227echo "${ECHO_T}$ac_cv_c_inline" >&6
27228case $ac_cv_c_inline in
27229  inline | yes) ;;
27230  no)
27231cat >>confdefs.h <<\_ACEOF
27232#define inline
27233_ACEOF
27234 ;;
27235  *)  cat >>confdefs.h <<_ACEOF
27236#define inline $ac_cv_c_inline
27237_ACEOF
27238 ;;
27239esac
27240
27241
27242
27243
27244
27245
27246echo "$as_me:$LINENO: checking for dlopen" >&5
27247echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
27248if test "${ac_cv_funclib_dlopen+set}" = set; then
27249  echo $ECHO_N "(cached) $ECHO_C" >&6
27250else
27251
27252if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
27253	ac_save_LIBS="$LIBS"
27254	for ac_lib in "" dl; do
27255		case "$ac_lib" in
27256		"") ;;
27257		yes) ac_lib="" ;;
27258		no) continue ;;
27259		-l*) ;;
27260		*) ac_lib="-l$ac_lib" ;;
27261		esac
27262		LIBS=" $ac_lib  $ac_save_LIBS"
27263		cat >conftest.$ac_ext <<_ACEOF
27264#line $LINENO "configure"
27265#include "confdefs.h"
27266
27267#ifdef F77_DUMMY_MAIN
27268#  ifdef __cplusplus
27269     extern "C"
27270#  endif
27271   int F77_DUMMY_MAIN() { return 1; }
27272#endif
27273int
27274main ()
27275{
27276dlopen()
27277  ;
27278  return 0;
27279}
27280_ACEOF
27281rm -f conftest.$ac_objext conftest$ac_exeext
27282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27283  (eval $ac_link) 2>&5
27284  ac_status=$?
27285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286  (exit $ac_status); } &&
27287         { ac_try='test -s conftest$ac_exeext'
27288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27289  (eval $ac_try) 2>&5
27290  ac_status=$?
27291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292  (exit $ac_status); }; }; then
27293  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
27294else
27295  echo "$as_me: failed program was:" >&5
27296cat conftest.$ac_ext >&5
27297fi
27298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27299	done
27300	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
27301	LIBS="$ac_save_LIBS"
27302fi
27303
27304fi
27305
27306
27307eval "ac_res=\$ac_cv_funclib_dlopen"
27308
27309if false; then
27310
27311for ac_func in dlopen
27312do
27313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27314echo "$as_me:$LINENO: checking for $ac_func" >&5
27315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27316if eval "test \"\${$as_ac_var+set}\" = set"; then
27317  echo $ECHO_N "(cached) $ECHO_C" >&6
27318else
27319  cat >conftest.$ac_ext <<_ACEOF
27320#line $LINENO "configure"
27321#include "confdefs.h"
27322/* System header to define __stub macros and hopefully few prototypes,
27323    which can conflict with char $ac_func (); below.  */
27324#include <assert.h>
27325/* Override any gcc2 internal prototype to avoid an error.  */
27326#ifdef __cplusplus
27327extern "C"
27328#endif
27329/* We use char because int might match the return type of a gcc2
27330   builtin and then its argument prototype would still apply.  */
27331char $ac_func ();
27332char (*f) ();
27333
27334#ifdef F77_DUMMY_MAIN
27335#  ifdef __cplusplus
27336     extern "C"
27337#  endif
27338   int F77_DUMMY_MAIN() { return 1; }
27339#endif
27340int
27341main ()
27342{
27343/* The GNU C library defines this for functions which it implements
27344    to always fail with ENOSYS.  Some functions are actually named
27345    something starting with __ and the normal name is an alias.  */
27346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27347choke me
27348#else
27349f = $ac_func;
27350#endif
27351
27352  ;
27353  return 0;
27354}
27355_ACEOF
27356rm -f conftest.$ac_objext conftest$ac_exeext
27357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27358  (eval $ac_link) 2>&5
27359  ac_status=$?
27360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361  (exit $ac_status); } &&
27362         { ac_try='test -s conftest$ac_exeext'
27363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27364  (eval $ac_try) 2>&5
27365  ac_status=$?
27366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367  (exit $ac_status); }; }; then
27368  eval "$as_ac_var=yes"
27369else
27370  echo "$as_me: failed program was:" >&5
27371cat conftest.$ac_ext >&5
27372eval "$as_ac_var=no"
27373fi
27374rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27375fi
27376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27378if test `eval echo '${'$as_ac_var'}'` = yes; then
27379  cat >>confdefs.h <<_ACEOF
27380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27381_ACEOF
27382
27383fi
27384done
27385
27386fi
27387# dlopen
27388eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27389eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27390eval "LIB_dlopen=$ac_res"
27391
27392case "$ac_res" in
27393	yes)
27394	eval "ac_cv_func_dlopen=yes"
27395	eval "LIB_dlopen="
27396	cat >>confdefs.h <<_ACEOF
27397#define $ac_tr_func 1
27398_ACEOF
27399
27400	echo "$as_me:$LINENO: result: yes" >&5
27401echo "${ECHO_T}yes" >&6
27402	;;
27403	no)
27404	eval "ac_cv_func_dlopen=no"
27405	eval "LIB_dlopen="
27406	echo "$as_me:$LINENO: result: no" >&5
27407echo "${ECHO_T}no" >&6
27408	;;
27409	*)
27410	eval "ac_cv_func_dlopen=yes"
27411	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27412	cat >>confdefs.h <<_ACEOF
27413#define $ac_tr_func 1
27414_ACEOF
27415
27416	cat >>confdefs.h <<_ACEOF
27417#define $ac_tr_lib 1
27418_ACEOF
27419
27420	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27421echo "${ECHO_T}yes, in $ac_res" >&6
27422	;;
27423esac
27424
27425
27426
27427
27428if test "$ac_cv_funclib_dlopen" != no; then
27429  HAVE_DLOPEN_TRUE=
27430  HAVE_DLOPEN_FALSE='#'
27431else
27432  HAVE_DLOPEN_TRUE='#'
27433  HAVE_DLOPEN_FALSE=
27434fi
27435
27436
27437
27438
27439aix=no
27440case "$host" in
27441*-*-aix3*)
27442	aix=3
27443	;;
27444*-*-aix4*|*-*-aix5*)
27445	aix=4
27446	;;
27447esac
27448
27449
27450
27451if test "$aix" != no; then
27452  AIX_TRUE=
27453  AIX_FALSE='#'
27454else
27455  AIX_TRUE='#'
27456  AIX_FALSE=
27457fi
27458
27459
27460if test "$aix" = 4; then
27461  AIX4_TRUE=
27462  AIX4_FALSE='#'
27463else
27464  AIX4_TRUE='#'
27465  AIX4_FALSE=
27466fi
27467
27468
27469
27470# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
27471if test "${enable_dynamic_afs+set}" = set; then
27472  enableval="$enable_dynamic_afs"
27473
27474fi;
27475
27476if test "$aix" != no; then
27477	if test "$enable_dynamic_afs" != no; then
27478
27479		if test "$ac_cv_func_dlopen" = no; then
27480
27481
27482
27483echo "$as_me:$LINENO: checking for loadquery" >&5
27484echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
27485if test "${ac_cv_funclib_loadquery+set}" = set; then
27486  echo $ECHO_N "(cached) $ECHO_C" >&6
27487else
27488
27489if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
27490	ac_save_LIBS="$LIBS"
27491	for ac_lib in "" ld; do
27492		case "$ac_lib" in
27493		"") ;;
27494		yes) ac_lib="" ;;
27495		no) continue ;;
27496		-l*) ;;
27497		*) ac_lib="-l$ac_lib" ;;
27498		esac
27499		LIBS=" $ac_lib  $ac_save_LIBS"
27500		cat >conftest.$ac_ext <<_ACEOF
27501#line $LINENO "configure"
27502#include "confdefs.h"
27503
27504#ifdef F77_DUMMY_MAIN
27505#  ifdef __cplusplus
27506     extern "C"
27507#  endif
27508   int F77_DUMMY_MAIN() { return 1; }
27509#endif
27510int
27511main ()
27512{
27513loadquery()
27514  ;
27515  return 0;
27516}
27517_ACEOF
27518rm -f conftest.$ac_objext conftest$ac_exeext
27519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27520  (eval $ac_link) 2>&5
27521  ac_status=$?
27522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523  (exit $ac_status); } &&
27524         { ac_try='test -s conftest$ac_exeext'
27525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526  (eval $ac_try) 2>&5
27527  ac_status=$?
27528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529  (exit $ac_status); }; }; then
27530  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
27531else
27532  echo "$as_me: failed program was:" >&5
27533cat conftest.$ac_ext >&5
27534fi
27535rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27536	done
27537	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
27538	LIBS="$ac_save_LIBS"
27539fi
27540
27541fi
27542
27543
27544eval "ac_res=\$ac_cv_funclib_loadquery"
27545
27546if false; then
27547
27548for ac_func in loadquery
27549do
27550as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27551echo "$as_me:$LINENO: checking for $ac_func" >&5
27552echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27553if eval "test \"\${$as_ac_var+set}\" = set"; then
27554  echo $ECHO_N "(cached) $ECHO_C" >&6
27555else
27556  cat >conftest.$ac_ext <<_ACEOF
27557#line $LINENO "configure"
27558#include "confdefs.h"
27559/* System header to define __stub macros and hopefully few prototypes,
27560    which can conflict with char $ac_func (); below.  */
27561#include <assert.h>
27562/* Override any gcc2 internal prototype to avoid an error.  */
27563#ifdef __cplusplus
27564extern "C"
27565#endif
27566/* We use char because int might match the return type of a gcc2
27567   builtin and then its argument prototype would still apply.  */
27568char $ac_func ();
27569char (*f) ();
27570
27571#ifdef F77_DUMMY_MAIN
27572#  ifdef __cplusplus
27573     extern "C"
27574#  endif
27575   int F77_DUMMY_MAIN() { return 1; }
27576#endif
27577int
27578main ()
27579{
27580/* The GNU C library defines this for functions which it implements
27581    to always fail with ENOSYS.  Some functions are actually named
27582    something starting with __ and the normal name is an alias.  */
27583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27584choke me
27585#else
27586f = $ac_func;
27587#endif
27588
27589  ;
27590  return 0;
27591}
27592_ACEOF
27593rm -f conftest.$ac_objext conftest$ac_exeext
27594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27595  (eval $ac_link) 2>&5
27596  ac_status=$?
27597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598  (exit $ac_status); } &&
27599         { ac_try='test -s conftest$ac_exeext'
27600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601  (eval $ac_try) 2>&5
27602  ac_status=$?
27603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604  (exit $ac_status); }; }; then
27605  eval "$as_ac_var=yes"
27606else
27607  echo "$as_me: failed program was:" >&5
27608cat conftest.$ac_ext >&5
27609eval "$as_ac_var=no"
27610fi
27611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27612fi
27613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27615if test `eval echo '${'$as_ac_var'}'` = yes; then
27616  cat >>confdefs.h <<_ACEOF
27617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27618_ACEOF
27619
27620fi
27621done
27622
27623fi
27624# loadquery
27625eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27626eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27627eval "LIB_loadquery=$ac_res"
27628
27629case "$ac_res" in
27630	yes)
27631	eval "ac_cv_func_loadquery=yes"
27632	eval "LIB_loadquery="
27633	cat >>confdefs.h <<_ACEOF
27634#define $ac_tr_func 1
27635_ACEOF
27636
27637	echo "$as_me:$LINENO: result: yes" >&5
27638echo "${ECHO_T}yes" >&6
27639	;;
27640	no)
27641	eval "ac_cv_func_loadquery=no"
27642	eval "LIB_loadquery="
27643	echo "$as_me:$LINENO: result: no" >&5
27644echo "${ECHO_T}no" >&6
27645	;;
27646	*)
27647	eval "ac_cv_func_loadquery=yes"
27648	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27649	cat >>confdefs.h <<_ACEOF
27650#define $ac_tr_func 1
27651_ACEOF
27652
27653	cat >>confdefs.h <<_ACEOF
27654#define $ac_tr_lib 1
27655_ACEOF
27656
27657	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27658echo "${ECHO_T}yes, in $ac_res" >&6
27659	;;
27660esac
27661
27662
27663		fi
27664		if test "$ac_cv_func_dlopen" != no; then
27665			AIX_EXTRA_KAFS='$(LIB_dlopen)'
27666		elif test "$ac_cv_func_loadquery" != no; then
27667			AIX_EXTRA_KAFS='$(LIB_loadquery)'
27668		else
27669			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
27670echo "$as_me: not using dynloaded AFS library" >&6;}
27671			AIX_EXTRA_KAFS=
27672			enable_dynamic_afs=no
27673		fi
27674	else
27675		AIX_EXTRA_KAFS=
27676	fi
27677fi
27678
27679
27680
27681if test "$enable_dynamic_afs" != no; then
27682  AIX_DYNAMIC_AFS_TRUE=
27683  AIX_DYNAMIC_AFS_FALSE='#'
27684else
27685  AIX_DYNAMIC_AFS_TRUE='#'
27686  AIX_DYNAMIC_AFS_FALSE=
27687fi
27688
27689
27690
27691
27692
27693
27694irix=no
27695case "$host" in
27696*-*-irix4*)
27697
27698cat >>confdefs.h <<\_ACEOF
27699#define IRIX4 1
27700_ACEOF
27701
27702	irix=yes
27703	;;
27704*-*-irix*)
27705	irix=yes
27706	;;
27707esac
27708
27709
27710if test "$irix" != no; then
27711  IRIX_TRUE=
27712  IRIX_FALSE='#'
27713else
27714  IRIX_TRUE='#'
27715  IRIX_FALSE=
27716fi
27717
27718
27719
27720
27721
27722sunos=no
27723case "$host" in
27724*-*-sunos4*)
27725	sunos=40
27726	;;
27727*-*-solaris2.7)
27728	sunos=57
27729	;;
27730*-*-solaris2.89)
27731	sunos=58
27732	;;
27733*-*-solaris2*)
27734	sunos=50
27735	;;
27736esac
27737if test "$sunos" != no; then
27738
27739cat >>confdefs.h <<_ACEOF
27740#define SunOS $sunos
27741_ACEOF
27742
27743fi
27744
27745
27746echo "$as_me:$LINENO: checking for X" >&5
27747echo $ECHO_N "checking for X... $ECHO_C" >&6
27748
27749
27750# Check whether --with-x or --without-x was given.
27751if test "${with_x+set}" = set; then
27752  withval="$with_x"
27753
27754fi;
27755# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27756if test "x$with_x" = xno; then
27757  # The user explicitly disabled X.
27758  have_x=disabled
27759else
27760  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27761    # Both variables are already set.
27762    have_x=yes
27763  else
27764    if test "${ac_cv_have_x+set}" = set; then
27765  echo $ECHO_N "(cached) $ECHO_C" >&6
27766else
27767  # One or both of the vars are not set, and there is no cached value.
27768ac_x_includes=no ac_x_libraries=no
27769rm -fr conftest.dir
27770if mkdir conftest.dir; then
27771  cd conftest.dir
27772  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27773  cat >Imakefile <<'_ACEOF'
27774acfindx:
27775	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27776_ACEOF
27777  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27778    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27779    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27780    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27781    for ac_extension in a so sl; do
27782      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
27783         test -f $ac_im_libdir/libX11.$ac_extension; then
27784        ac_im_usrlibdir=$ac_im_libdir; break
27785      fi
27786    done
27787    # Screen out bogus values from the imake configuration.  They are
27788    # bogus both because they are the default anyway, and because
27789    # using them would break gcc on systems where it needs fixed includes.
27790    case $ac_im_incroot in
27791	/usr/include) ;;
27792	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27793    esac
27794    case $ac_im_usrlibdir in
27795	/usr/lib | /lib) ;;
27796	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27797    esac
27798  fi
27799  cd ..
27800  rm -fr conftest.dir
27801fi
27802
27803# Standard set of common directories for X headers.
27804# Check X11 before X11Rn because it is often a symlink to the current release.
27805ac_x_header_dirs='
27806/usr/X11/include
27807/usr/X11R6/include
27808/usr/X11R5/include
27809/usr/X11R4/include
27810
27811/usr/include/X11
27812/usr/include/X11R6
27813/usr/include/X11R5
27814/usr/include/X11R4
27815
27816/usr/local/X11/include
27817/usr/local/X11R6/include
27818/usr/local/X11R5/include
27819/usr/local/X11R4/include
27820
27821/usr/local/include/X11
27822/usr/local/include/X11R6
27823/usr/local/include/X11R5
27824/usr/local/include/X11R4
27825
27826/usr/X386/include
27827/usr/x386/include
27828/usr/XFree86/include/X11
27829
27830/usr/include
27831/usr/local/include
27832/usr/unsupported/include
27833/usr/athena/include
27834/usr/local/x11r5/include
27835/usr/lpp/Xamples/include
27836
27837/usr/openwin/include
27838/usr/openwin/share/include'
27839
27840if test "$ac_x_includes" = no; then
27841  # Guess where to find include files, by looking for Intrinsic.h.
27842  # First, try using that file with no special directory specified.
27843  cat >conftest.$ac_ext <<_ACEOF
27844#line $LINENO "configure"
27845#include "confdefs.h"
27846#include <X11/Intrinsic.h>
27847_ACEOF
27848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27850  ac_status=$?
27851  egrep -v '^ *\+' conftest.er1 >conftest.err
27852  rm -f conftest.er1
27853  cat conftest.err >&5
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); } >/dev/null; then
27856  if test -s conftest.err; then
27857    ac_cpp_err=$ac_c_preproc_warn_flag
27858  else
27859    ac_cpp_err=
27860  fi
27861else
27862  ac_cpp_err=yes
27863fi
27864if test -z "$ac_cpp_err"; then
27865  # We can compile using X headers with no special include directory.
27866ac_x_includes=
27867else
27868  echo "$as_me: failed program was:" >&5
27869  cat conftest.$ac_ext >&5
27870  for ac_dir in $ac_x_header_dirs; do
27871  if test -r "$ac_dir/X11/Intrinsic.h"; then
27872    ac_x_includes=$ac_dir
27873    break
27874  fi
27875done
27876fi
27877rm -f conftest.err conftest.$ac_ext
27878fi # $ac_x_includes = no
27879
27880if test "$ac_x_libraries" = no; then
27881  # Check for the libraries.
27882  # See if we find them without any special options.
27883  # Don't add to $LIBS permanently.
27884  ac_save_LIBS=$LIBS
27885  LIBS="-lXt $LIBS"
27886  cat >conftest.$ac_ext <<_ACEOF
27887#line $LINENO "configure"
27888#include "confdefs.h"
27889#include <X11/Intrinsic.h>
27890#ifdef F77_DUMMY_MAIN
27891#  ifdef __cplusplus
27892     extern "C"
27893#  endif
27894   int F77_DUMMY_MAIN() { return 1; }
27895#endif
27896int
27897main ()
27898{
27899XtMalloc (0)
27900  ;
27901  return 0;
27902}
27903_ACEOF
27904rm -f conftest.$ac_objext conftest$ac_exeext
27905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27906  (eval $ac_link) 2>&5
27907  ac_status=$?
27908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909  (exit $ac_status); } &&
27910         { ac_try='test -s conftest$ac_exeext'
27911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912  (eval $ac_try) 2>&5
27913  ac_status=$?
27914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915  (exit $ac_status); }; }; then
27916  LIBS=$ac_save_LIBS
27917# We can link X programs with no special library path.
27918ac_x_libraries=
27919else
27920  echo "$as_me: failed program was:" >&5
27921cat conftest.$ac_ext >&5
27922LIBS=$ac_save_LIBS
27923for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27924do
27925  # Don't even attempt the hair of trying to link an X program!
27926  for ac_extension in a so sl; do
27927    if test -r $ac_dir/libXt.$ac_extension; then
27928      ac_x_libraries=$ac_dir
27929      break 2
27930    fi
27931  done
27932done
27933fi
27934rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27935fi # $ac_x_libraries = no
27936
27937if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27938  # Didn't find X anywhere.  Cache the known absence of X.
27939  ac_cv_have_x="have_x=no"
27940else
27941  # Record where we found X for the cache.
27942  ac_cv_have_x="have_x=yes \
27943	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
27944fi
27945fi
27946
27947  fi
27948  eval "$ac_cv_have_x"
27949fi # $with_x != no
27950
27951if test "$have_x" != yes; then
27952  echo "$as_me:$LINENO: result: $have_x" >&5
27953echo "${ECHO_T}$have_x" >&6
27954  no_x=yes
27955else
27956  # If each of the values was on the command line, it overrides each guess.
27957  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27958  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27959  # Update the cache value to reflect the command line values.
27960  ac_cv_have_x="have_x=yes \
27961		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
27962  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
27963echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
27964fi
27965
27966
27967if test "$no_x" = yes; then
27968  # Not all programs may use this symbol, but it does not hurt to define it.
27969
27970cat >>confdefs.h <<\_ACEOF
27971#define X_DISPLAY_MISSING 1
27972_ACEOF
27973
27974  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27975else
27976  if test -n "$x_includes"; then
27977    X_CFLAGS="$X_CFLAGS -I$x_includes"
27978  fi
27979
27980  # It would also be nice to do this for all -L options, not just this one.
27981  if test -n "$x_libraries"; then
27982    X_LIBS="$X_LIBS -L$x_libraries"
27983    # For Solaris; some versions of Sun CC require a space after -R and
27984    # others require no space.  Words are not sufficient . . . .
27985    case `(uname -sr) 2>/dev/null` in
27986    "SunOS 5"*)
27987      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27988echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27989      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27990      cat >conftest.$ac_ext <<_ACEOF
27991#line $LINENO "configure"
27992#include "confdefs.h"
27993
27994#ifdef F77_DUMMY_MAIN
27995#  ifdef __cplusplus
27996     extern "C"
27997#  endif
27998   int F77_DUMMY_MAIN() { return 1; }
27999#endif
28000int
28001main ()
28002{
28003
28004  ;
28005  return 0;
28006}
28007_ACEOF
28008rm -f conftest.$ac_objext conftest$ac_exeext
28009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28010  (eval $ac_link) 2>&5
28011  ac_status=$?
28012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013  (exit $ac_status); } &&
28014         { ac_try='test -s conftest$ac_exeext'
28015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28016  (eval $ac_try) 2>&5
28017  ac_status=$?
28018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019  (exit $ac_status); }; }; then
28020  ac_R_nospace=yes
28021else
28022  echo "$as_me: failed program was:" >&5
28023cat conftest.$ac_ext >&5
28024ac_R_nospace=no
28025fi
28026rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28027      if test $ac_R_nospace = yes; then
28028	echo "$as_me:$LINENO: result: no" >&5
28029echo "${ECHO_T}no" >&6
28030	X_LIBS="$X_LIBS -R$x_libraries"
28031      else
28032	LIBS="$ac_xsave_LIBS -R $x_libraries"
28033	cat >conftest.$ac_ext <<_ACEOF
28034#line $LINENO "configure"
28035#include "confdefs.h"
28036
28037#ifdef F77_DUMMY_MAIN
28038#  ifdef __cplusplus
28039     extern "C"
28040#  endif
28041   int F77_DUMMY_MAIN() { return 1; }
28042#endif
28043int
28044main ()
28045{
28046
28047  ;
28048  return 0;
28049}
28050_ACEOF
28051rm -f conftest.$ac_objext conftest$ac_exeext
28052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28053  (eval $ac_link) 2>&5
28054  ac_status=$?
28055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056  (exit $ac_status); } &&
28057         { ac_try='test -s conftest$ac_exeext'
28058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28059  (eval $ac_try) 2>&5
28060  ac_status=$?
28061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062  (exit $ac_status); }; }; then
28063  ac_R_space=yes
28064else
28065  echo "$as_me: failed program was:" >&5
28066cat conftest.$ac_ext >&5
28067ac_R_space=no
28068fi
28069rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28070	if test $ac_R_space = yes; then
28071	  echo "$as_me:$LINENO: result: yes" >&5
28072echo "${ECHO_T}yes" >&6
28073	  X_LIBS="$X_LIBS -R $x_libraries"
28074	else
28075	  echo "$as_me:$LINENO: result: neither works" >&5
28076echo "${ECHO_T}neither works" >&6
28077	fi
28078      fi
28079      LIBS=$ac_xsave_LIBS
28080    esac
28081  fi
28082
28083  # Check for system-dependent libraries X programs must link with.
28084  # Do this before checking for the system-independent R6 libraries
28085  # (-lICE), since we may need -lsocket or whatever for X linking.
28086
28087  if test "$ISC" = yes; then
28088    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28089  else
28090    # Martyn Johnson says this is needed for Ultrix, if the X
28091    # libraries were built with DECnet support.  And Karl Berry says
28092    # the Alpha needs dnet_stub (dnet does not exist).
28093    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28094    cat >conftest.$ac_ext <<_ACEOF
28095#line $LINENO "configure"
28096#include "confdefs.h"
28097
28098/* Override any gcc2 internal prototype to avoid an error.  */
28099#ifdef __cplusplus
28100extern "C"
28101#endif
28102/* We use char because int might match the return type of a gcc2
28103   builtin and then its argument prototype would still apply.  */
28104char XOpenDisplay ();
28105#ifdef F77_DUMMY_MAIN
28106#  ifdef __cplusplus
28107     extern "C"
28108#  endif
28109   int F77_DUMMY_MAIN() { return 1; }
28110#endif
28111int
28112main ()
28113{
28114XOpenDisplay ();
28115  ;
28116  return 0;
28117}
28118_ACEOF
28119rm -f conftest.$ac_objext conftest$ac_exeext
28120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28121  (eval $ac_link) 2>&5
28122  ac_status=$?
28123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124  (exit $ac_status); } &&
28125         { ac_try='test -s conftest$ac_exeext'
28126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28127  (eval $ac_try) 2>&5
28128  ac_status=$?
28129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130  (exit $ac_status); }; }; then
28131  :
28132else
28133  echo "$as_me: failed program was:" >&5
28134cat conftest.$ac_ext >&5
28135echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28136echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28137if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28138  echo $ECHO_N "(cached) $ECHO_C" >&6
28139else
28140  ac_check_lib_save_LIBS=$LIBS
28141LIBS="-ldnet  $LIBS"
28142cat >conftest.$ac_ext <<_ACEOF
28143#line $LINENO "configure"
28144#include "confdefs.h"
28145
28146/* Override any gcc2 internal prototype to avoid an error.  */
28147#ifdef __cplusplus
28148extern "C"
28149#endif
28150/* We use char because int might match the return type of a gcc2
28151   builtin and then its argument prototype would still apply.  */
28152char dnet_ntoa ();
28153#ifdef F77_DUMMY_MAIN
28154#  ifdef __cplusplus
28155     extern "C"
28156#  endif
28157   int F77_DUMMY_MAIN() { return 1; }
28158#endif
28159int
28160main ()
28161{
28162dnet_ntoa ();
28163  ;
28164  return 0;
28165}
28166_ACEOF
28167rm -f conftest.$ac_objext conftest$ac_exeext
28168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28169  (eval $ac_link) 2>&5
28170  ac_status=$?
28171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172  (exit $ac_status); } &&
28173         { ac_try='test -s conftest$ac_exeext'
28174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28175  (eval $ac_try) 2>&5
28176  ac_status=$?
28177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178  (exit $ac_status); }; }; then
28179  ac_cv_lib_dnet_dnet_ntoa=yes
28180else
28181  echo "$as_me: failed program was:" >&5
28182cat conftest.$ac_ext >&5
28183ac_cv_lib_dnet_dnet_ntoa=no
28184fi
28185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28186LIBS=$ac_check_lib_save_LIBS
28187fi
28188echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28189echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28190if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28191  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28192fi
28193
28194    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28195      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28196echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28197if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28198  echo $ECHO_N "(cached) $ECHO_C" >&6
28199else
28200  ac_check_lib_save_LIBS=$LIBS
28201LIBS="-ldnet_stub  $LIBS"
28202cat >conftest.$ac_ext <<_ACEOF
28203#line $LINENO "configure"
28204#include "confdefs.h"
28205
28206/* Override any gcc2 internal prototype to avoid an error.  */
28207#ifdef __cplusplus
28208extern "C"
28209#endif
28210/* We use char because int might match the return type of a gcc2
28211   builtin and then its argument prototype would still apply.  */
28212char dnet_ntoa ();
28213#ifdef F77_DUMMY_MAIN
28214#  ifdef __cplusplus
28215     extern "C"
28216#  endif
28217   int F77_DUMMY_MAIN() { return 1; }
28218#endif
28219int
28220main ()
28221{
28222dnet_ntoa ();
28223  ;
28224  return 0;
28225}
28226_ACEOF
28227rm -f conftest.$ac_objext conftest$ac_exeext
28228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28229  (eval $ac_link) 2>&5
28230  ac_status=$?
28231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232  (exit $ac_status); } &&
28233         { ac_try='test -s conftest$ac_exeext'
28234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235  (eval $ac_try) 2>&5
28236  ac_status=$?
28237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238  (exit $ac_status); }; }; then
28239  ac_cv_lib_dnet_stub_dnet_ntoa=yes
28240else
28241  echo "$as_me: failed program was:" >&5
28242cat conftest.$ac_ext >&5
28243ac_cv_lib_dnet_stub_dnet_ntoa=no
28244fi
28245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28246LIBS=$ac_check_lib_save_LIBS
28247fi
28248echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28249echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28250if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28251  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28252fi
28253
28254    fi
28255fi
28256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28257    LIBS="$ac_xsave_LIBS"
28258
28259    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28260    # to get the SysV transport functions.
28261    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28262    # needs -lnsl.
28263    # The nsl library prevents programs from opening the X display
28264    # on Irix 5.2, according to T.E. Dickey.
28265    # The functions gethostbyname, getservbyname, and inet_addr are
28266    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
28267    echo "$as_me:$LINENO: checking for gethostbyname" >&5
28268echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
28269if test "${ac_cv_func_gethostbyname+set}" = set; then
28270  echo $ECHO_N "(cached) $ECHO_C" >&6
28271else
28272  cat >conftest.$ac_ext <<_ACEOF
28273#line $LINENO "configure"
28274#include "confdefs.h"
28275/* System header to define __stub macros and hopefully few prototypes,
28276    which can conflict with char gethostbyname (); below.  */
28277#include <assert.h>
28278/* Override any gcc2 internal prototype to avoid an error.  */
28279#ifdef __cplusplus
28280extern "C"
28281#endif
28282/* We use char because int might match the return type of a gcc2
28283   builtin and then its argument prototype would still apply.  */
28284char gethostbyname ();
28285char (*f) ();
28286
28287#ifdef F77_DUMMY_MAIN
28288#  ifdef __cplusplus
28289     extern "C"
28290#  endif
28291   int F77_DUMMY_MAIN() { return 1; }
28292#endif
28293int
28294main ()
28295{
28296/* The GNU C library defines this for functions which it implements
28297    to always fail with ENOSYS.  Some functions are actually named
28298    something starting with __ and the normal name is an alias.  */
28299#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28300choke me
28301#else
28302f = gethostbyname;
28303#endif
28304
28305  ;
28306  return 0;
28307}
28308_ACEOF
28309rm -f conftest.$ac_objext conftest$ac_exeext
28310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28311  (eval $ac_link) 2>&5
28312  ac_status=$?
28313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314  (exit $ac_status); } &&
28315         { ac_try='test -s conftest$ac_exeext'
28316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317  (eval $ac_try) 2>&5
28318  ac_status=$?
28319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320  (exit $ac_status); }; }; then
28321  ac_cv_func_gethostbyname=yes
28322else
28323  echo "$as_me: failed program was:" >&5
28324cat conftest.$ac_ext >&5
28325ac_cv_func_gethostbyname=no
28326fi
28327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28328fi
28329echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28330echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28331
28332    if test $ac_cv_func_gethostbyname = no; then
28333      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28334echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28335if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28336  echo $ECHO_N "(cached) $ECHO_C" >&6
28337else
28338  ac_check_lib_save_LIBS=$LIBS
28339LIBS="-lnsl  $LIBS"
28340cat >conftest.$ac_ext <<_ACEOF
28341#line $LINENO "configure"
28342#include "confdefs.h"
28343
28344/* Override any gcc2 internal prototype to avoid an error.  */
28345#ifdef __cplusplus
28346extern "C"
28347#endif
28348/* We use char because int might match the return type of a gcc2
28349   builtin and then its argument prototype would still apply.  */
28350char gethostbyname ();
28351#ifdef F77_DUMMY_MAIN
28352#  ifdef __cplusplus
28353     extern "C"
28354#  endif
28355   int F77_DUMMY_MAIN() { return 1; }
28356#endif
28357int
28358main ()
28359{
28360gethostbyname ();
28361  ;
28362  return 0;
28363}
28364_ACEOF
28365rm -f conftest.$ac_objext conftest$ac_exeext
28366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367  (eval $ac_link) 2>&5
28368  ac_status=$?
28369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370  (exit $ac_status); } &&
28371         { ac_try='test -s conftest$ac_exeext'
28372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373  (eval $ac_try) 2>&5
28374  ac_status=$?
28375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376  (exit $ac_status); }; }; then
28377  ac_cv_lib_nsl_gethostbyname=yes
28378else
28379  echo "$as_me: failed program was:" >&5
28380cat conftest.$ac_ext >&5
28381ac_cv_lib_nsl_gethostbyname=no
28382fi
28383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28384LIBS=$ac_check_lib_save_LIBS
28385fi
28386echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28387echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28388if test $ac_cv_lib_nsl_gethostbyname = yes; then
28389  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28390fi
28391
28392      if test $ac_cv_lib_nsl_gethostbyname = no; then
28393        echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28394echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28395if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28396  echo $ECHO_N "(cached) $ECHO_C" >&6
28397else
28398  ac_check_lib_save_LIBS=$LIBS
28399LIBS="-lbsd  $LIBS"
28400cat >conftest.$ac_ext <<_ACEOF
28401#line $LINENO "configure"
28402#include "confdefs.h"
28403
28404/* Override any gcc2 internal prototype to avoid an error.  */
28405#ifdef __cplusplus
28406extern "C"
28407#endif
28408/* We use char because int might match the return type of a gcc2
28409   builtin and then its argument prototype would still apply.  */
28410char gethostbyname ();
28411#ifdef F77_DUMMY_MAIN
28412#  ifdef __cplusplus
28413     extern "C"
28414#  endif
28415   int F77_DUMMY_MAIN() { return 1; }
28416#endif
28417int
28418main ()
28419{
28420gethostbyname ();
28421  ;
28422  return 0;
28423}
28424_ACEOF
28425rm -f conftest.$ac_objext conftest$ac_exeext
28426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28427  (eval $ac_link) 2>&5
28428  ac_status=$?
28429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430  (exit $ac_status); } &&
28431         { ac_try='test -s conftest$ac_exeext'
28432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433  (eval $ac_try) 2>&5
28434  ac_status=$?
28435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436  (exit $ac_status); }; }; then
28437  ac_cv_lib_bsd_gethostbyname=yes
28438else
28439  echo "$as_me: failed program was:" >&5
28440cat conftest.$ac_ext >&5
28441ac_cv_lib_bsd_gethostbyname=no
28442fi
28443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28444LIBS=$ac_check_lib_save_LIBS
28445fi
28446echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28447echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28448if test $ac_cv_lib_bsd_gethostbyname = yes; then
28449  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28450fi
28451
28452      fi
28453    fi
28454
28455    # lieder@skyler.mavd.honeywell.com says without -lsocket,
28456    # socket/setsockopt and other routines are undefined under SCO ODT
28457    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
28458    # on later versions), says Simon Leinen: it contains gethostby*
28459    # variants that don't use the nameserver (or something).  -lsocket
28460    # must be given before -lnsl if both are needed.  We assume that
28461    # if connect needs -lnsl, so does gethostbyname.
28462    echo "$as_me:$LINENO: checking for connect" >&5
28463echo $ECHO_N "checking for connect... $ECHO_C" >&6
28464if test "${ac_cv_func_connect+set}" = set; then
28465  echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467  cat >conftest.$ac_ext <<_ACEOF
28468#line $LINENO "configure"
28469#include "confdefs.h"
28470/* System header to define __stub macros and hopefully few prototypes,
28471    which can conflict with char connect (); below.  */
28472#include <assert.h>
28473/* Override any gcc2 internal prototype to avoid an error.  */
28474#ifdef __cplusplus
28475extern "C"
28476#endif
28477/* We use char because int might match the return type of a gcc2
28478   builtin and then its argument prototype would still apply.  */
28479char connect ();
28480char (*f) ();
28481
28482#ifdef F77_DUMMY_MAIN
28483#  ifdef __cplusplus
28484     extern "C"
28485#  endif
28486   int F77_DUMMY_MAIN() { return 1; }
28487#endif
28488int
28489main ()
28490{
28491/* The GNU C library defines this for functions which it implements
28492    to always fail with ENOSYS.  Some functions are actually named
28493    something starting with __ and the normal name is an alias.  */
28494#if defined (__stub_connect) || defined (__stub___connect)
28495choke me
28496#else
28497f = connect;
28498#endif
28499
28500  ;
28501  return 0;
28502}
28503_ACEOF
28504rm -f conftest.$ac_objext conftest$ac_exeext
28505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28506  (eval $ac_link) 2>&5
28507  ac_status=$?
28508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509  (exit $ac_status); } &&
28510         { ac_try='test -s conftest$ac_exeext'
28511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512  (eval $ac_try) 2>&5
28513  ac_status=$?
28514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515  (exit $ac_status); }; }; then
28516  ac_cv_func_connect=yes
28517else
28518  echo "$as_me: failed program was:" >&5
28519cat conftest.$ac_ext >&5
28520ac_cv_func_connect=no
28521fi
28522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28523fi
28524echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28525echo "${ECHO_T}$ac_cv_func_connect" >&6
28526
28527    if test $ac_cv_func_connect = no; then
28528      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28529echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28530if test "${ac_cv_lib_socket_connect+set}" = set; then
28531  echo $ECHO_N "(cached) $ECHO_C" >&6
28532else
28533  ac_check_lib_save_LIBS=$LIBS
28534LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28535cat >conftest.$ac_ext <<_ACEOF
28536#line $LINENO "configure"
28537#include "confdefs.h"
28538
28539/* Override any gcc2 internal prototype to avoid an error.  */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543/* We use char because int might match the return type of a gcc2
28544   builtin and then its argument prototype would still apply.  */
28545char connect ();
28546#ifdef F77_DUMMY_MAIN
28547#  ifdef __cplusplus
28548     extern "C"
28549#  endif
28550   int F77_DUMMY_MAIN() { return 1; }
28551#endif
28552int
28553main ()
28554{
28555connect ();
28556  ;
28557  return 0;
28558}
28559_ACEOF
28560rm -f conftest.$ac_objext conftest$ac_exeext
28561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28562  (eval $ac_link) 2>&5
28563  ac_status=$?
28564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565  (exit $ac_status); } &&
28566         { ac_try='test -s conftest$ac_exeext'
28567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28568  (eval $ac_try) 2>&5
28569  ac_status=$?
28570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571  (exit $ac_status); }; }; then
28572  ac_cv_lib_socket_connect=yes
28573else
28574  echo "$as_me: failed program was:" >&5
28575cat conftest.$ac_ext >&5
28576ac_cv_lib_socket_connect=no
28577fi
28578rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28579LIBS=$ac_check_lib_save_LIBS
28580fi
28581echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28582echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28583if test $ac_cv_lib_socket_connect = yes; then
28584  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28585fi
28586
28587    fi
28588
28589    # Guillermo Gomez says -lposix is necessary on A/UX.
28590    echo "$as_me:$LINENO: checking for remove" >&5
28591echo $ECHO_N "checking for remove... $ECHO_C" >&6
28592if test "${ac_cv_func_remove+set}" = set; then
28593  echo $ECHO_N "(cached) $ECHO_C" >&6
28594else
28595  cat >conftest.$ac_ext <<_ACEOF
28596#line $LINENO "configure"
28597#include "confdefs.h"
28598/* System header to define __stub macros and hopefully few prototypes,
28599    which can conflict with char remove (); below.  */
28600#include <assert.h>
28601/* Override any gcc2 internal prototype to avoid an error.  */
28602#ifdef __cplusplus
28603extern "C"
28604#endif
28605/* We use char because int might match the return type of a gcc2
28606   builtin and then its argument prototype would still apply.  */
28607char remove ();
28608char (*f) ();
28609
28610#ifdef F77_DUMMY_MAIN
28611#  ifdef __cplusplus
28612     extern "C"
28613#  endif
28614   int F77_DUMMY_MAIN() { return 1; }
28615#endif
28616int
28617main ()
28618{
28619/* The GNU C library defines this for functions which it implements
28620    to always fail with ENOSYS.  Some functions are actually named
28621    something starting with __ and the normal name is an alias.  */
28622#if defined (__stub_remove) || defined (__stub___remove)
28623choke me
28624#else
28625f = remove;
28626#endif
28627
28628  ;
28629  return 0;
28630}
28631_ACEOF
28632rm -f conftest.$ac_objext conftest$ac_exeext
28633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28634  (eval $ac_link) 2>&5
28635  ac_status=$?
28636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637  (exit $ac_status); } &&
28638         { ac_try='test -s conftest$ac_exeext'
28639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640  (eval $ac_try) 2>&5
28641  ac_status=$?
28642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643  (exit $ac_status); }; }; then
28644  ac_cv_func_remove=yes
28645else
28646  echo "$as_me: failed program was:" >&5
28647cat conftest.$ac_ext >&5
28648ac_cv_func_remove=no
28649fi
28650rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28651fi
28652echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28653echo "${ECHO_T}$ac_cv_func_remove" >&6
28654
28655    if test $ac_cv_func_remove = no; then
28656      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28657echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28658if test "${ac_cv_lib_posix_remove+set}" = set; then
28659  echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661  ac_check_lib_save_LIBS=$LIBS
28662LIBS="-lposix  $LIBS"
28663cat >conftest.$ac_ext <<_ACEOF
28664#line $LINENO "configure"
28665#include "confdefs.h"
28666
28667/* Override any gcc2 internal prototype to avoid an error.  */
28668#ifdef __cplusplus
28669extern "C"
28670#endif
28671/* We use char because int might match the return type of a gcc2
28672   builtin and then its argument prototype would still apply.  */
28673char remove ();
28674#ifdef F77_DUMMY_MAIN
28675#  ifdef __cplusplus
28676     extern "C"
28677#  endif
28678   int F77_DUMMY_MAIN() { return 1; }
28679#endif
28680int
28681main ()
28682{
28683remove ();
28684  ;
28685  return 0;
28686}
28687_ACEOF
28688rm -f conftest.$ac_objext conftest$ac_exeext
28689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28690  (eval $ac_link) 2>&5
28691  ac_status=$?
28692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693  (exit $ac_status); } &&
28694         { ac_try='test -s conftest$ac_exeext'
28695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696  (eval $ac_try) 2>&5
28697  ac_status=$?
28698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699  (exit $ac_status); }; }; then
28700  ac_cv_lib_posix_remove=yes
28701else
28702  echo "$as_me: failed program was:" >&5
28703cat conftest.$ac_ext >&5
28704ac_cv_lib_posix_remove=no
28705fi
28706rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28707LIBS=$ac_check_lib_save_LIBS
28708fi
28709echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28710echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28711if test $ac_cv_lib_posix_remove = yes; then
28712  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28713fi
28714
28715    fi
28716
28717    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28718    echo "$as_me:$LINENO: checking for shmat" >&5
28719echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28720if test "${ac_cv_func_shmat+set}" = set; then
28721  echo $ECHO_N "(cached) $ECHO_C" >&6
28722else
28723  cat >conftest.$ac_ext <<_ACEOF
28724#line $LINENO "configure"
28725#include "confdefs.h"
28726/* System header to define __stub macros and hopefully few prototypes,
28727    which can conflict with char shmat (); below.  */
28728#include <assert.h>
28729/* Override any gcc2 internal prototype to avoid an error.  */
28730#ifdef __cplusplus
28731extern "C"
28732#endif
28733/* We use char because int might match the return type of a gcc2
28734   builtin and then its argument prototype would still apply.  */
28735char shmat ();
28736char (*f) ();
28737
28738#ifdef F77_DUMMY_MAIN
28739#  ifdef __cplusplus
28740     extern "C"
28741#  endif
28742   int F77_DUMMY_MAIN() { return 1; }
28743#endif
28744int
28745main ()
28746{
28747/* The GNU C library defines this for functions which it implements
28748    to always fail with ENOSYS.  Some functions are actually named
28749    something starting with __ and the normal name is an alias.  */
28750#if defined (__stub_shmat) || defined (__stub___shmat)
28751choke me
28752#else
28753f = shmat;
28754#endif
28755
28756  ;
28757  return 0;
28758}
28759_ACEOF
28760rm -f conftest.$ac_objext conftest$ac_exeext
28761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28762  (eval $ac_link) 2>&5
28763  ac_status=$?
28764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765  (exit $ac_status); } &&
28766         { ac_try='test -s conftest$ac_exeext'
28767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768  (eval $ac_try) 2>&5
28769  ac_status=$?
28770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771  (exit $ac_status); }; }; then
28772  ac_cv_func_shmat=yes
28773else
28774  echo "$as_me: failed program was:" >&5
28775cat conftest.$ac_ext >&5
28776ac_cv_func_shmat=no
28777fi
28778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28779fi
28780echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28781echo "${ECHO_T}$ac_cv_func_shmat" >&6
28782
28783    if test $ac_cv_func_shmat = no; then
28784      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28785echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28786if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28787  echo $ECHO_N "(cached) $ECHO_C" >&6
28788else
28789  ac_check_lib_save_LIBS=$LIBS
28790LIBS="-lipc  $LIBS"
28791cat >conftest.$ac_ext <<_ACEOF
28792#line $LINENO "configure"
28793#include "confdefs.h"
28794
28795/* Override any gcc2 internal prototype to avoid an error.  */
28796#ifdef __cplusplus
28797extern "C"
28798#endif
28799/* We use char because int might match the return type of a gcc2
28800   builtin and then its argument prototype would still apply.  */
28801char shmat ();
28802#ifdef F77_DUMMY_MAIN
28803#  ifdef __cplusplus
28804     extern "C"
28805#  endif
28806   int F77_DUMMY_MAIN() { return 1; }
28807#endif
28808int
28809main ()
28810{
28811shmat ();
28812  ;
28813  return 0;
28814}
28815_ACEOF
28816rm -f conftest.$ac_objext conftest$ac_exeext
28817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28818  (eval $ac_link) 2>&5
28819  ac_status=$?
28820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821  (exit $ac_status); } &&
28822         { ac_try='test -s conftest$ac_exeext'
28823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824  (eval $ac_try) 2>&5
28825  ac_status=$?
28826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827  (exit $ac_status); }; }; then
28828  ac_cv_lib_ipc_shmat=yes
28829else
28830  echo "$as_me: failed program was:" >&5
28831cat conftest.$ac_ext >&5
28832ac_cv_lib_ipc_shmat=no
28833fi
28834rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28835LIBS=$ac_check_lib_save_LIBS
28836fi
28837echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28838echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28839if test $ac_cv_lib_ipc_shmat = yes; then
28840  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28841fi
28842
28843    fi
28844  fi
28845
28846  # Check for libraries that X11R6 Xt/Xaw programs need.
28847  ac_save_LDFLAGS=$LDFLAGS
28848  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28849  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28850  # check for ICE first), but we must link in the order -lSM -lICE or
28851  # we get undefined symbols.  So assume we have SM if we have ICE.
28852  # These have to be linked with before -lX11, unlike the other
28853  # libraries we check for below, so use a different variable.
28854  # John Interrante, Karl Berry
28855  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28856echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28857if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28858  echo $ECHO_N "(cached) $ECHO_C" >&6
28859else
28860  ac_check_lib_save_LIBS=$LIBS
28861LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28862cat >conftest.$ac_ext <<_ACEOF
28863#line $LINENO "configure"
28864#include "confdefs.h"
28865
28866/* Override any gcc2 internal prototype to avoid an error.  */
28867#ifdef __cplusplus
28868extern "C"
28869#endif
28870/* We use char because int might match the return type of a gcc2
28871   builtin and then its argument prototype would still apply.  */
28872char IceConnectionNumber ();
28873#ifdef F77_DUMMY_MAIN
28874#  ifdef __cplusplus
28875     extern "C"
28876#  endif
28877   int F77_DUMMY_MAIN() { return 1; }
28878#endif
28879int
28880main ()
28881{
28882IceConnectionNumber ();
28883  ;
28884  return 0;
28885}
28886_ACEOF
28887rm -f conftest.$ac_objext conftest$ac_exeext
28888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28889  (eval $ac_link) 2>&5
28890  ac_status=$?
28891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892  (exit $ac_status); } &&
28893         { ac_try='test -s conftest$ac_exeext'
28894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28895  (eval $ac_try) 2>&5
28896  ac_status=$?
28897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898  (exit $ac_status); }; }; then
28899  ac_cv_lib_ICE_IceConnectionNumber=yes
28900else
28901  echo "$as_me: failed program was:" >&5
28902cat conftest.$ac_ext >&5
28903ac_cv_lib_ICE_IceConnectionNumber=no
28904fi
28905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28906LIBS=$ac_check_lib_save_LIBS
28907fi
28908echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28909echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28910if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28911  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28912fi
28913
28914  LDFLAGS=$ac_save_LDFLAGS
28915
28916fi
28917
28918
28919# try to figure out if we need any additional ld flags, like -R
28920# and yes, the autoconf X test is utterly broken
28921if test "$no_x" != yes; then
28922	echo "$as_me:$LINENO: checking for special X linker flags" >&5
28923echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
28924if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
28925  echo $ECHO_N "(cached) $ECHO_C" >&6
28926else
28927
28928	ac_save_libs="$LIBS"
28929	ac_save_cflags="$CFLAGS"
28930	CFLAGS="$CFLAGS $X_CFLAGS"
28931	krb_cv_sys_x_libs_rpath=""
28932	krb_cv_sys_x_libs=""
28933	for rflag in "" "-R" "-R " "-rpath "; do
28934		if test "$rflag" = ""; then
28935			foo="$X_LIBS"
28936		else
28937			foo=""
28938			for flag in $X_LIBS; do
28939			case $flag in
28940			-L*)
28941				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
28942				;;
28943			*)
28944				foo="$foo $flag"
28945				;;
28946			esac
28947			done
28948		fi
28949		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28950		if test "$cross_compiling" = yes; then
28951  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
28952echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28953   { (exit 1); exit 1; }; }
28954else
28955  cat >conftest.$ac_ext <<_ACEOF
28956#line $LINENO "configure"
28957#include "confdefs.h"
28958
28959		#include <X11/Xlib.h>
28960		foo()
28961		{
28962		XOpenDisplay(NULL);
28963		}
28964		main()
28965		{
28966		return 0;
28967		}
28968
28969_ACEOF
28970rm -f conftest$ac_exeext
28971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28972  (eval $ac_link) 2>&5
28973  ac_status=$?
28974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977  (eval $ac_try) 2>&5
28978  ac_status=$?
28979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); }; }; then
28981  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
28982else
28983  echo "$as_me: program exited with status $ac_status" >&5
28984echo "$as_me: failed program was:" >&5
28985cat conftest.$ac_ext >&5
28986( exit $ac_status )
28987:
28988fi
28989rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28990fi
28991	done
28992	LIBS="$ac_save_libs"
28993	CFLAGS="$ac_save_cflags"
28994
28995fi
28996echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
28997echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
28998	X_LIBS="$krb_cv_sys_x_libs"
28999fi
29000
29001
29002
29003
29004if test "$no_x" != yes; then
29005  HAVE_X_TRUE=
29006  HAVE_X_FALSE='#'
29007else
29008  HAVE_X_TRUE='#'
29009  HAVE_X_FALSE=
29010fi
29011
29012
29013
29014save_CFLAGS="$CFLAGS"
29015CFLAGS="$X_CFLAGS $CFLAGS"
29016save_LIBS="$LIBS"
29017LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
29018save_LDFLAGS="$LDFLAGS"
29019LDFLAGS="$LDFLAGS $X_LIBS"
29020
29021
29022
29023
29024
29025echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
29026echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
29027if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
29028  echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030
29031if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
29032	ac_save_LIBS="$LIBS"
29033	for ac_lib in "" X11 Xau; do
29034		case "$ac_lib" in
29035		"") ;;
29036		yes) ac_lib="" ;;
29037		no) continue ;;
29038		-l*) ;;
29039		*) ac_lib="-l$ac_lib" ;;
29040		esac
29041		LIBS=" $ac_lib  $ac_save_LIBS"
29042		cat >conftest.$ac_ext <<_ACEOF
29043#line $LINENO "configure"
29044#include "confdefs.h"
29045
29046#ifdef F77_DUMMY_MAIN
29047#  ifdef __cplusplus
29048     extern "C"
29049#  endif
29050   int F77_DUMMY_MAIN() { return 1; }
29051#endif
29052int
29053main ()
29054{
29055XauWriteAuth()
29056  ;
29057  return 0;
29058}
29059_ACEOF
29060rm -f conftest.$ac_objext conftest$ac_exeext
29061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29062  (eval $ac_link) 2>&5
29063  ac_status=$?
29064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065  (exit $ac_status); } &&
29066         { ac_try='test -s conftest$ac_exeext'
29067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068  (eval $ac_try) 2>&5
29069  ac_status=$?
29070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071  (exit $ac_status); }; }; then
29072  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
29073else
29074  echo "$as_me: failed program was:" >&5
29075cat conftest.$ac_ext >&5
29076fi
29077rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29078	done
29079	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
29080	LIBS="$ac_save_LIBS"
29081fi
29082
29083fi
29084
29085
29086eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
29087
29088if false; then
29089
29090for ac_func in XauWriteAuth
29091do
29092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29093echo "$as_me:$LINENO: checking for $ac_func" >&5
29094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29095if eval "test \"\${$as_ac_var+set}\" = set"; then
29096  echo $ECHO_N "(cached) $ECHO_C" >&6
29097else
29098  cat >conftest.$ac_ext <<_ACEOF
29099#line $LINENO "configure"
29100#include "confdefs.h"
29101/* System header to define __stub macros and hopefully few prototypes,
29102    which can conflict with char $ac_func (); below.  */
29103#include <assert.h>
29104/* Override any gcc2 internal prototype to avoid an error.  */
29105#ifdef __cplusplus
29106extern "C"
29107#endif
29108/* We use char because int might match the return type of a gcc2
29109   builtin and then its argument prototype would still apply.  */
29110char $ac_func ();
29111char (*f) ();
29112
29113#ifdef F77_DUMMY_MAIN
29114#  ifdef __cplusplus
29115     extern "C"
29116#  endif
29117   int F77_DUMMY_MAIN() { return 1; }
29118#endif
29119int
29120main ()
29121{
29122/* The GNU C library defines this for functions which it implements
29123    to always fail with ENOSYS.  Some functions are actually named
29124    something starting with __ and the normal name is an alias.  */
29125#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29126choke me
29127#else
29128f = $ac_func;
29129#endif
29130
29131  ;
29132  return 0;
29133}
29134_ACEOF
29135rm -f conftest.$ac_objext conftest$ac_exeext
29136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29137  (eval $ac_link) 2>&5
29138  ac_status=$?
29139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140  (exit $ac_status); } &&
29141         { ac_try='test -s conftest$ac_exeext'
29142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143  (eval $ac_try) 2>&5
29144  ac_status=$?
29145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146  (exit $ac_status); }; }; then
29147  eval "$as_ac_var=yes"
29148else
29149  echo "$as_me: failed program was:" >&5
29150cat conftest.$ac_ext >&5
29151eval "$as_ac_var=no"
29152fi
29153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29154fi
29155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29156echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29157if test `eval echo '${'$as_ac_var'}'` = yes; then
29158  cat >>confdefs.h <<_ACEOF
29159#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29160_ACEOF
29161
29162fi
29163done
29164
29165fi
29166# XauWriteAuth
29167eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29168eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29169eval "LIB_XauWriteAuth=$ac_res"
29170
29171case "$ac_res" in
29172	yes)
29173	eval "ac_cv_func_XauWriteAuth=yes"
29174	eval "LIB_XauWriteAuth="
29175	cat >>confdefs.h <<_ACEOF
29176#define $ac_tr_func 1
29177_ACEOF
29178
29179	echo "$as_me:$LINENO: result: yes" >&5
29180echo "${ECHO_T}yes" >&6
29181	;;
29182	no)
29183	eval "ac_cv_func_XauWriteAuth=no"
29184	eval "LIB_XauWriteAuth="
29185	echo "$as_me:$LINENO: result: no" >&5
29186echo "${ECHO_T}no" >&6
29187	;;
29188	*)
29189	eval "ac_cv_func_XauWriteAuth=yes"
29190	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29191	cat >>confdefs.h <<_ACEOF
29192#define $ac_tr_func 1
29193_ACEOF
29194
29195	cat >>confdefs.h <<_ACEOF
29196#define $ac_tr_lib 1
29197_ACEOF
29198
29199	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29200echo "${ECHO_T}yes, in $ac_res" >&6
29201	;;
29202esac
29203
29204
29205ac_xxx="$LIBS"
29206LIBS="$LIB_XauWriteAuth $LIBS"
29207
29208
29209
29210echo "$as_me:$LINENO: checking for XauReadAuth" >&5
29211echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
29212if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
29213  echo $ECHO_N "(cached) $ECHO_C" >&6
29214else
29215
29216if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
29217	ac_save_LIBS="$LIBS"
29218	for ac_lib in "" X11 Xau; do
29219		case "$ac_lib" in
29220		"") ;;
29221		yes) ac_lib="" ;;
29222		no) continue ;;
29223		-l*) ;;
29224		*) ac_lib="-l$ac_lib" ;;
29225		esac
29226		LIBS=" $ac_lib  $ac_save_LIBS"
29227		cat >conftest.$ac_ext <<_ACEOF
29228#line $LINENO "configure"
29229#include "confdefs.h"
29230
29231#ifdef F77_DUMMY_MAIN
29232#  ifdef __cplusplus
29233     extern "C"
29234#  endif
29235   int F77_DUMMY_MAIN() { return 1; }
29236#endif
29237int
29238main ()
29239{
29240XauReadAuth()
29241  ;
29242  return 0;
29243}
29244_ACEOF
29245rm -f conftest.$ac_objext conftest$ac_exeext
29246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29247  (eval $ac_link) 2>&5
29248  ac_status=$?
29249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250  (exit $ac_status); } &&
29251         { ac_try='test -s conftest$ac_exeext'
29252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253  (eval $ac_try) 2>&5
29254  ac_status=$?
29255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256  (exit $ac_status); }; }; then
29257  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
29258else
29259  echo "$as_me: failed program was:" >&5
29260cat conftest.$ac_ext >&5
29261fi
29262rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29263	done
29264	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
29265	LIBS="$ac_save_LIBS"
29266fi
29267
29268fi
29269
29270
29271eval "ac_res=\$ac_cv_funclib_XauReadAuth"
29272
29273if false; then
29274
29275for ac_func in XauReadAuth
29276do
29277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29278echo "$as_me:$LINENO: checking for $ac_func" >&5
29279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29280if eval "test \"\${$as_ac_var+set}\" = set"; then
29281  echo $ECHO_N "(cached) $ECHO_C" >&6
29282else
29283  cat >conftest.$ac_ext <<_ACEOF
29284#line $LINENO "configure"
29285#include "confdefs.h"
29286/* System header to define __stub macros and hopefully few prototypes,
29287    which can conflict with char $ac_func (); below.  */
29288#include <assert.h>
29289/* Override any gcc2 internal prototype to avoid an error.  */
29290#ifdef __cplusplus
29291extern "C"
29292#endif
29293/* We use char because int might match the return type of a gcc2
29294   builtin and then its argument prototype would still apply.  */
29295char $ac_func ();
29296char (*f) ();
29297
29298#ifdef F77_DUMMY_MAIN
29299#  ifdef __cplusplus
29300     extern "C"
29301#  endif
29302   int F77_DUMMY_MAIN() { return 1; }
29303#endif
29304int
29305main ()
29306{
29307/* The GNU C library defines this for functions which it implements
29308    to always fail with ENOSYS.  Some functions are actually named
29309    something starting with __ and the normal name is an alias.  */
29310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29311choke me
29312#else
29313f = $ac_func;
29314#endif
29315
29316  ;
29317  return 0;
29318}
29319_ACEOF
29320rm -f conftest.$ac_objext conftest$ac_exeext
29321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29322  (eval $ac_link) 2>&5
29323  ac_status=$?
29324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325  (exit $ac_status); } &&
29326         { ac_try='test -s conftest$ac_exeext'
29327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328  (eval $ac_try) 2>&5
29329  ac_status=$?
29330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331  (exit $ac_status); }; }; then
29332  eval "$as_ac_var=yes"
29333else
29334  echo "$as_me: failed program was:" >&5
29335cat conftest.$ac_ext >&5
29336eval "$as_ac_var=no"
29337fi
29338rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29339fi
29340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29342if test `eval echo '${'$as_ac_var'}'` = yes; then
29343  cat >>confdefs.h <<_ACEOF
29344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29345_ACEOF
29346
29347fi
29348done
29349
29350fi
29351# XauReadAuth
29352eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29353eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29354eval "LIB_XauReadAuth=$ac_res"
29355
29356case "$ac_res" in
29357	yes)
29358	eval "ac_cv_func_XauReadAuth=yes"
29359	eval "LIB_XauReadAuth="
29360	cat >>confdefs.h <<_ACEOF
29361#define $ac_tr_func 1
29362_ACEOF
29363
29364	echo "$as_me:$LINENO: result: yes" >&5
29365echo "${ECHO_T}yes" >&6
29366	;;
29367	no)
29368	eval "ac_cv_func_XauReadAuth=no"
29369	eval "LIB_XauReadAuth="
29370	echo "$as_me:$LINENO: result: no" >&5
29371echo "${ECHO_T}no" >&6
29372	;;
29373	*)
29374	eval "ac_cv_func_XauReadAuth=yes"
29375	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29376	cat >>confdefs.h <<_ACEOF
29377#define $ac_tr_func 1
29378_ACEOF
29379
29380	cat >>confdefs.h <<_ACEOF
29381#define $ac_tr_lib 1
29382_ACEOF
29383
29384	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29385echo "${ECHO_T}yes, in $ac_res" >&6
29386	;;
29387esac
29388
29389
29390LIBS="$LIB_XauReadAauth $LIBS"
29391
29392
29393
29394echo "$as_me:$LINENO: checking for XauFileName" >&5
29395echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
29396if test "${ac_cv_funclib_XauFileName+set}" = set; then
29397  echo $ECHO_N "(cached) $ECHO_C" >&6
29398else
29399
29400if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
29401	ac_save_LIBS="$LIBS"
29402	for ac_lib in "" X11 Xau; do
29403		case "$ac_lib" in
29404		"") ;;
29405		yes) ac_lib="" ;;
29406		no) continue ;;
29407		-l*) ;;
29408		*) ac_lib="-l$ac_lib" ;;
29409		esac
29410		LIBS=" $ac_lib  $ac_save_LIBS"
29411		cat >conftest.$ac_ext <<_ACEOF
29412#line $LINENO "configure"
29413#include "confdefs.h"
29414
29415#ifdef F77_DUMMY_MAIN
29416#  ifdef __cplusplus
29417     extern "C"
29418#  endif
29419   int F77_DUMMY_MAIN() { return 1; }
29420#endif
29421int
29422main ()
29423{
29424XauFileName()
29425  ;
29426  return 0;
29427}
29428_ACEOF
29429rm -f conftest.$ac_objext conftest$ac_exeext
29430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29431  (eval $ac_link) 2>&5
29432  ac_status=$?
29433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434  (exit $ac_status); } &&
29435         { ac_try='test -s conftest$ac_exeext'
29436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29437  (eval $ac_try) 2>&5
29438  ac_status=$?
29439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440  (exit $ac_status); }; }; then
29441  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
29442else
29443  echo "$as_me: failed program was:" >&5
29444cat conftest.$ac_ext >&5
29445fi
29446rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29447	done
29448	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
29449	LIBS="$ac_save_LIBS"
29450fi
29451
29452fi
29453
29454
29455eval "ac_res=\$ac_cv_funclib_XauFileName"
29456
29457if false; then
29458
29459for ac_func in XauFileName
29460do
29461as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29462echo "$as_me:$LINENO: checking for $ac_func" >&5
29463echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29464if eval "test \"\${$as_ac_var+set}\" = set"; then
29465  echo $ECHO_N "(cached) $ECHO_C" >&6
29466else
29467  cat >conftest.$ac_ext <<_ACEOF
29468#line $LINENO "configure"
29469#include "confdefs.h"
29470/* System header to define __stub macros and hopefully few prototypes,
29471    which can conflict with char $ac_func (); below.  */
29472#include <assert.h>
29473/* Override any gcc2 internal prototype to avoid an error.  */
29474#ifdef __cplusplus
29475extern "C"
29476#endif
29477/* We use char because int might match the return type of a gcc2
29478   builtin and then its argument prototype would still apply.  */
29479char $ac_func ();
29480char (*f) ();
29481
29482#ifdef F77_DUMMY_MAIN
29483#  ifdef __cplusplus
29484     extern "C"
29485#  endif
29486   int F77_DUMMY_MAIN() { return 1; }
29487#endif
29488int
29489main ()
29490{
29491/* The GNU C library defines this for functions which it implements
29492    to always fail with ENOSYS.  Some functions are actually named
29493    something starting with __ and the normal name is an alias.  */
29494#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29495choke me
29496#else
29497f = $ac_func;
29498#endif
29499
29500  ;
29501  return 0;
29502}
29503_ACEOF
29504rm -f conftest.$ac_objext conftest$ac_exeext
29505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29506  (eval $ac_link) 2>&5
29507  ac_status=$?
29508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509  (exit $ac_status); } &&
29510         { ac_try='test -s conftest$ac_exeext'
29511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512  (eval $ac_try) 2>&5
29513  ac_status=$?
29514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515  (exit $ac_status); }; }; then
29516  eval "$as_ac_var=yes"
29517else
29518  echo "$as_me: failed program was:" >&5
29519cat conftest.$ac_ext >&5
29520eval "$as_ac_var=no"
29521fi
29522rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29523fi
29524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29526if test `eval echo '${'$as_ac_var'}'` = yes; then
29527  cat >>confdefs.h <<_ACEOF
29528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29529_ACEOF
29530
29531fi
29532done
29533
29534fi
29535# XauFileName
29536eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29537eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29538eval "LIB_XauFileName=$ac_res"
29539
29540case "$ac_res" in
29541	yes)
29542	eval "ac_cv_func_XauFileName=yes"
29543	eval "LIB_XauFileName="
29544	cat >>confdefs.h <<_ACEOF
29545#define $ac_tr_func 1
29546_ACEOF
29547
29548	echo "$as_me:$LINENO: result: yes" >&5
29549echo "${ECHO_T}yes" >&6
29550	;;
29551	no)
29552	eval "ac_cv_func_XauFileName=no"
29553	eval "LIB_XauFileName="
29554	echo "$as_me:$LINENO: result: no" >&5
29555echo "${ECHO_T}no" >&6
29556	;;
29557	*)
29558	eval "ac_cv_func_XauFileName=yes"
29559	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29560	cat >>confdefs.h <<_ACEOF
29561#define $ac_tr_func 1
29562_ACEOF
29563
29564	cat >>confdefs.h <<_ACEOF
29565#define $ac_tr_lib 1
29566_ACEOF
29567
29568	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29569echo "${ECHO_T}yes, in $ac_res" >&6
29570	;;
29571esac
29572
29573
29574LIBS="$ac_xxx"
29575
29576case "$ac_cv_funclib_XauWriteAuth" in
29577yes)	;;
29578no)	;;
29579*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
29580		if test "$ac_cv_funclib_XauFileName" = yes; then
29581			LIB_XauReadAuth="$LIB_XauWriteAuth"
29582		else
29583			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
29584		fi
29585	else
29586		if test "$ac_cv_funclib_XauFileName" = yes; then
29587			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
29588		else
29589			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
29590		fi
29591	fi
29592	;;
29593esac
29594
29595if test "$AUTOMAKE" != ""; then
29596
29597
29598if test "$ac_cv_func_XauWriteAuth" != "yes"; then
29599  NEED_WRITEAUTH_TRUE=
29600  NEED_WRITEAUTH_FALSE='#'
29601else
29602  NEED_WRITEAUTH_TRUE='#'
29603  NEED_WRITEAUTH_FALSE=
29604fi
29605
29606else
29607
29608
29609	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
29610		NEED_WRITEAUTH_TRUE=
29611		NEED_WRITEAUTH_FALSE='#'
29612	else
29613		NEED_WRITEAUTH_TRUE='#'
29614		NEED_WRITEAUTH_FALSE=
29615	fi
29616fi
29617CFLAGS=$save_CFLAGS
29618LIBS=$save_LIBS
29619LDFLAGS=$save_LDFLAGS
29620
29621
29622
29623echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
29624echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
29625if test "${ac_cv_c_const+set}" = set; then
29626  echo $ECHO_N "(cached) $ECHO_C" >&6
29627else
29628  cat >conftest.$ac_ext <<_ACEOF
29629#line $LINENO "configure"
29630#include "confdefs.h"
29631
29632#ifdef F77_DUMMY_MAIN
29633#  ifdef __cplusplus
29634     extern "C"
29635#  endif
29636   int F77_DUMMY_MAIN() { return 1; }
29637#endif
29638int
29639main ()
29640{
29641/* FIXME: Include the comments suggested by Paul. */
29642#ifndef __cplusplus
29643  /* Ultrix mips cc rejects this.  */
29644  typedef int charset[2];
29645  const charset x;
29646  /* SunOS 4.1.1 cc rejects this.  */
29647  char const *const *ccp;
29648  char **p;
29649  /* NEC SVR4.0.2 mips cc rejects this.  */
29650  struct point {int x, y;};
29651  static struct point const zero = {0,0};
29652  /* AIX XL C 1.02.0.0 rejects this.
29653     It does not let you subtract one const X* pointer from another in
29654     an arm of an if-expression whose if-part is not a constant
29655     expression */
29656  const char *g = "string";
29657  ccp = &g + (g ? g-g : 0);
29658  /* HPUX 7.0 cc rejects these. */
29659  ++ccp;
29660  p = (char**) ccp;
29661  ccp = (char const *const *) p;
29662  { /* SCO 3.2v4 cc rejects this.  */
29663    char *t;
29664    char const *s = 0 ? (char *) 0 : (char const *) 0;
29665
29666    *t++ = 0;
29667  }
29668  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
29669    int x[] = {25, 17};
29670    const int *foo = &x[0];
29671    ++foo;
29672  }
29673  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29674    typedef const int *iptr;
29675    iptr p = 0;
29676    ++p;
29677  }
29678  { /* AIX XL C 1.02.0.0 rejects this saying
29679       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29680    struct s { int j; const int *ap[3]; };
29681    struct s *b; b->j = 5;
29682  }
29683  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29684    const int foo = 10;
29685  }
29686#endif
29687
29688  ;
29689  return 0;
29690}
29691_ACEOF
29692rm -f conftest.$ac_objext
29693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29694  (eval $ac_compile) 2>&5
29695  ac_status=$?
29696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697  (exit $ac_status); } &&
29698         { ac_try='test -s conftest.$ac_objext'
29699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700  (eval $ac_try) 2>&5
29701  ac_status=$?
29702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703  (exit $ac_status); }; }; then
29704  ac_cv_c_const=yes
29705else
29706  echo "$as_me: failed program was:" >&5
29707cat conftest.$ac_ext >&5
29708ac_cv_c_const=no
29709fi
29710rm -f conftest.$ac_objext conftest.$ac_ext
29711fi
29712echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
29713echo "${ECHO_T}$ac_cv_c_const" >&6
29714if test $ac_cv_c_const = no; then
29715
29716cat >>confdefs.h <<\_ACEOF
29717#define const
29718_ACEOF
29719
29720fi
29721
29722echo "$as_me:$LINENO: checking for off_t" >&5
29723echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29724if test "${ac_cv_type_off_t+set}" = set; then
29725  echo $ECHO_N "(cached) $ECHO_C" >&6
29726else
29727  cat >conftest.$ac_ext <<_ACEOF
29728#line $LINENO "configure"
29729#include "confdefs.h"
29730$ac_includes_default
29731#ifdef F77_DUMMY_MAIN
29732#  ifdef __cplusplus
29733     extern "C"
29734#  endif
29735   int F77_DUMMY_MAIN() { return 1; }
29736#endif
29737int
29738main ()
29739{
29740if ((off_t *) 0)
29741  return 0;
29742if (sizeof (off_t))
29743  return 0;
29744  ;
29745  return 0;
29746}
29747_ACEOF
29748rm -f conftest.$ac_objext
29749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29750  (eval $ac_compile) 2>&5
29751  ac_status=$?
29752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753  (exit $ac_status); } &&
29754         { ac_try='test -s conftest.$ac_objext'
29755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756  (eval $ac_try) 2>&5
29757  ac_status=$?
29758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759  (exit $ac_status); }; }; then
29760  ac_cv_type_off_t=yes
29761else
29762  echo "$as_me: failed program was:" >&5
29763cat conftest.$ac_ext >&5
29764ac_cv_type_off_t=no
29765fi
29766rm -f conftest.$ac_objext conftest.$ac_ext
29767fi
29768echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29769echo "${ECHO_T}$ac_cv_type_off_t" >&6
29770if test $ac_cv_type_off_t = yes; then
29771  :
29772else
29773
29774cat >>confdefs.h <<_ACEOF
29775#define off_t long
29776_ACEOF
29777
29778fi
29779
29780echo "$as_me:$LINENO: checking for mode_t" >&5
29781echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29782if test "${ac_cv_type_mode_t+set}" = set; then
29783  echo $ECHO_N "(cached) $ECHO_C" >&6
29784else
29785  cat >conftest.$ac_ext <<_ACEOF
29786#line $LINENO "configure"
29787#include "confdefs.h"
29788#include <sys/types.h>
29789#if STDC_HEADERS
29790#include <stdlib.h>
29791#include <stddef.h>
29792#endif
29793
29794_ACEOF
29795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29796  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29797  ac_cv_type_mode_t=yes
29798else
29799  ac_cv_type_mode_t=no
29800fi
29801rm -f conftest*
29802
29803fi
29804echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29805echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29806if test $ac_cv_type_mode_t = no; then
29807
29808cat >>confdefs.h <<\_ACEOF
29809#define mode_t unsigned short
29810_ACEOF
29811
29812fi
29813
29814echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
29815echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
29816if test "${ac_cv_type_sig_atomic_t+set}" = set; then
29817  echo $ECHO_N "(cached) $ECHO_C" >&6
29818else
29819  cat >conftest.$ac_ext <<_ACEOF
29820#line $LINENO "configure"
29821#include "confdefs.h"
29822#include <sys/types.h>
29823#if STDC_HEADERS
29824#include <stdlib.h>
29825#include <stddef.h>
29826#endif
29827#include <signal.h>
29828_ACEOF
29829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29830  egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29831  ac_cv_type_sig_atomic_t=yes
29832else
29833  ac_cv_type_sig_atomic_t=no
29834fi
29835rm -f conftest*
29836
29837fi
29838echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
29839echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
29840if test $ac_cv_type_sig_atomic_t = no; then
29841
29842cat >>confdefs.h <<\_ACEOF
29843#define sig_atomic_t int
29844_ACEOF
29845
29846fi
29847
29848
29849
29850cv=`echo "long long" | sed 'y%./+- %__p__%'`
29851echo "$as_me:$LINENO: checking for long long" >&5
29852echo $ECHO_N "checking for long long... $ECHO_C" >&6
29853if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
29854  echo $ECHO_N "(cached) $ECHO_C" >&6
29855else
29856  cat >conftest.$ac_ext <<_ACEOF
29857#line $LINENO "configure"
29858#include "confdefs.h"
29859#include <sys/types.h>
29860#if STDC_HEADERS
29861#include <stdlib.h>
29862#include <stddef.h>
29863#endif
29864
29865#ifdef F77_DUMMY_MAIN
29866#  ifdef __cplusplus
29867     extern "C"
29868#  endif
29869   int F77_DUMMY_MAIN() { return 1; }
29870#endif
29871int
29872main ()
29873{
29874long long foo;
29875  ;
29876  return 0;
29877}
29878_ACEOF
29879rm -f conftest.$ac_objext
29880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29881  (eval $ac_compile) 2>&5
29882  ac_status=$?
29883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884  (exit $ac_status); } &&
29885         { ac_try='test -s conftest.$ac_objext'
29886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887  (eval $ac_try) 2>&5
29888  ac_status=$?
29889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890  (exit $ac_status); }; }; then
29891  eval "ac_cv_type_$cv=yes"
29892else
29893  echo "$as_me: failed program was:" >&5
29894cat conftest.$ac_ext >&5
29895eval "ac_cv_type_$cv=no"
29896fi
29897rm -f conftest.$ac_objext conftest.$ac_ext
29898fi
29899ac_foo=`eval echo \\$ac_cv_type_$cv`
29900echo "$as_me:$LINENO: result: $ac_foo" >&5
29901echo "${ECHO_T}$ac_foo" >&6
29902if test "$ac_foo" = yes; then
29903  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
29904if false; then
29905	echo "$as_me:$LINENO: checking for long long" >&5
29906echo $ECHO_N "checking for long long... $ECHO_C" >&6
29907if test "${ac_cv_type_long_long+set}" = set; then
29908  echo $ECHO_N "(cached) $ECHO_C" >&6
29909else
29910  cat >conftest.$ac_ext <<_ACEOF
29911#line $LINENO "configure"
29912#include "confdefs.h"
29913$ac_includes_default
29914#ifdef F77_DUMMY_MAIN
29915#  ifdef __cplusplus
29916     extern "C"
29917#  endif
29918   int F77_DUMMY_MAIN() { return 1; }
29919#endif
29920int
29921main ()
29922{
29923if ((long long *) 0)
29924  return 0;
29925if (sizeof (long long))
29926  return 0;
29927  ;
29928  return 0;
29929}
29930_ACEOF
29931rm -f conftest.$ac_objext
29932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29933  (eval $ac_compile) 2>&5
29934  ac_status=$?
29935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936  (exit $ac_status); } &&
29937         { ac_try='test -s conftest.$ac_objext'
29938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29939  (eval $ac_try) 2>&5
29940  ac_status=$?
29941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29942  (exit $ac_status); }; }; then
29943  ac_cv_type_long_long=yes
29944else
29945  echo "$as_me: failed program was:" >&5
29946cat conftest.$ac_ext >&5
29947ac_cv_type_long_long=no
29948fi
29949rm -f conftest.$ac_objext conftest.$ac_ext
29950fi
29951echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
29952echo "${ECHO_T}$ac_cv_type_long_long" >&6
29953if test $ac_cv_type_long_long = yes; then
29954
29955cat >>confdefs.h <<_ACEOF
29956#define HAVE_LONG_LONG 1
29957_ACEOF
29958
29959
29960fi
29961
29962fi
29963
29964cat >>confdefs.h <<_ACEOF
29965#define $ac_tr_hdr 1
29966_ACEOF
29967
29968fi
29969
29970echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29971echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
29972if test "${ac_cv_header_time+set}" = set; then
29973  echo $ECHO_N "(cached) $ECHO_C" >&6
29974else
29975  cat >conftest.$ac_ext <<_ACEOF
29976#line $LINENO "configure"
29977#include "confdefs.h"
29978#include <sys/types.h>
29979#include <sys/time.h>
29980#include <time.h>
29981
29982#ifdef F77_DUMMY_MAIN
29983#  ifdef __cplusplus
29984     extern "C"
29985#  endif
29986   int F77_DUMMY_MAIN() { return 1; }
29987#endif
29988int
29989main ()
29990{
29991if ((struct tm *) 0)
29992return 0;
29993  ;
29994  return 0;
29995}
29996_ACEOF
29997rm -f conftest.$ac_objext
29998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29999  (eval $ac_compile) 2>&5
30000  ac_status=$?
30001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002  (exit $ac_status); } &&
30003         { ac_try='test -s conftest.$ac_objext'
30004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005  (eval $ac_try) 2>&5
30006  ac_status=$?
30007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008  (exit $ac_status); }; }; then
30009  ac_cv_header_time=yes
30010else
30011  echo "$as_me: failed program was:" >&5
30012cat conftest.$ac_ext >&5
30013ac_cv_header_time=no
30014fi
30015rm -f conftest.$ac_objext conftest.$ac_ext
30016fi
30017echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30018echo "${ECHO_T}$ac_cv_header_time" >&6
30019if test $ac_cv_header_time = yes; then
30020
30021cat >>confdefs.h <<\_ACEOF
30022#define TIME_WITH_SYS_TIME 1
30023_ACEOF
30024
30025fi
30026
30027echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30028echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
30029if test "${ac_cv_struct_tm+set}" = set; then
30030  echo $ECHO_N "(cached) $ECHO_C" >&6
30031else
30032  cat >conftest.$ac_ext <<_ACEOF
30033#line $LINENO "configure"
30034#include "confdefs.h"
30035#include <sys/types.h>
30036#include <time.h>
30037
30038#ifdef F77_DUMMY_MAIN
30039#  ifdef __cplusplus
30040     extern "C"
30041#  endif
30042   int F77_DUMMY_MAIN() { return 1; }
30043#endif
30044int
30045main ()
30046{
30047struct tm *tp; tp->tm_sec;
30048  ;
30049  return 0;
30050}
30051_ACEOF
30052rm -f conftest.$ac_objext
30053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30054  (eval $ac_compile) 2>&5
30055  ac_status=$?
30056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057  (exit $ac_status); } &&
30058         { ac_try='test -s conftest.$ac_objext'
30059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060  (eval $ac_try) 2>&5
30061  ac_status=$?
30062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063  (exit $ac_status); }; }; then
30064  ac_cv_struct_tm=time.h
30065else
30066  echo "$as_me: failed program was:" >&5
30067cat conftest.$ac_ext >&5
30068ac_cv_struct_tm=sys/time.h
30069fi
30070rm -f conftest.$ac_objext conftest.$ac_ext
30071fi
30072echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30073echo "${ECHO_T}$ac_cv_struct_tm" >&6
30074if test $ac_cv_struct_tm = sys/time.h; then
30075
30076cat >>confdefs.h <<\_ACEOF
30077#define TM_IN_SYS_TIME 1
30078_ACEOF
30079
30080fi
30081
30082
30083echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30084echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
30085if test "${ac_cv_header_stdc+set}" = set; then
30086  echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
30088  cat >conftest.$ac_ext <<_ACEOF
30089#line $LINENO "configure"
30090#include "confdefs.h"
30091#include <stdlib.h>
30092#include <stdarg.h>
30093#include <string.h>
30094#include <float.h>
30095
30096_ACEOF
30097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30098  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30099  ac_status=$?
30100  egrep -v '^ *\+' conftest.er1 >conftest.err
30101  rm -f conftest.er1
30102  cat conftest.err >&5
30103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104  (exit $ac_status); } >/dev/null; then
30105  if test -s conftest.err; then
30106    ac_cpp_err=$ac_c_preproc_warn_flag
30107  else
30108    ac_cpp_err=
30109  fi
30110else
30111  ac_cpp_err=yes
30112fi
30113if test -z "$ac_cpp_err"; then
30114  ac_cv_header_stdc=yes
30115else
30116  echo "$as_me: failed program was:" >&5
30117  cat conftest.$ac_ext >&5
30118  ac_cv_header_stdc=no
30119fi
30120rm -f conftest.err conftest.$ac_ext
30121
30122if test $ac_cv_header_stdc = yes; then
30123  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30124  cat >conftest.$ac_ext <<_ACEOF
30125#line $LINENO "configure"
30126#include "confdefs.h"
30127#include <string.h>
30128
30129_ACEOF
30130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30131  egrep "memchr" >/dev/null 2>&1; then
30132  :
30133else
30134  ac_cv_header_stdc=no
30135fi
30136rm -f conftest*
30137
30138fi
30139
30140if test $ac_cv_header_stdc = yes; then
30141  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30142  cat >conftest.$ac_ext <<_ACEOF
30143#line $LINENO "configure"
30144#include "confdefs.h"
30145#include <stdlib.h>
30146
30147_ACEOF
30148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30149  egrep "free" >/dev/null 2>&1; then
30150  :
30151else
30152  ac_cv_header_stdc=no
30153fi
30154rm -f conftest*
30155
30156fi
30157
30158if test $ac_cv_header_stdc = yes; then
30159  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30160  if test "$cross_compiling" = yes; then
30161  :
30162else
30163  cat >conftest.$ac_ext <<_ACEOF
30164#line $LINENO "configure"
30165#include "confdefs.h"
30166#include <ctype.h>
30167#if ((' ' & 0x0FF) == 0x020)
30168# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30169# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30170#else
30171# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
30172                     || ('j' <= (c) && (c) <= 'r') \
30173                     || ('s' <= (c) && (c) <= 'z'))
30174# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30175#endif
30176
30177#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30178int
30179main ()
30180{
30181  int i;
30182  for (i = 0; i < 256; i++)
30183    if (XOR (islower (i), ISLOWER (i))
30184        || toupper (i) != TOUPPER (i))
30185      exit(2);
30186  exit (0);
30187}
30188_ACEOF
30189rm -f conftest$ac_exeext
30190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30191  (eval $ac_link) 2>&5
30192  ac_status=$?
30193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196  (eval $ac_try) 2>&5
30197  ac_status=$?
30198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199  (exit $ac_status); }; }; then
30200  :
30201else
30202  echo "$as_me: program exited with status $ac_status" >&5
30203echo "$as_me: failed program was:" >&5
30204cat conftest.$ac_ext >&5
30205( exit $ac_status )
30206ac_cv_header_stdc=no
30207fi
30208rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30209fi
30210fi
30211fi
30212echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
30213echo "${ECHO_T}$ac_cv_header_stdc" >&6
30214if test $ac_cv_header_stdc = yes; then
30215
30216cat >>confdefs.h <<\_ACEOF
30217#define STDC_HEADERS 1
30218_ACEOF
30219
30220fi
30221
30222
30223
30224
30225
30226
30227
30228
30229
30230
30231
30232
30233
30234
30235
30236
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271for ac_header in \
30272	arpa/ftp.h				\
30273	arpa/telnet.h				\
30274	bind/bitypes.h				\
30275	bsdsetjmp.h				\
30276	curses.h				\
30277	dlfcn.h					\
30278	fnmatch.h				\
30279	inttypes.h				\
30280	io.h					\
30281	libutil.h				\
30282	limits.h				\
30283	maillock.h				\
30284	netinet/in6_machtypes.h			\
30285	netinfo/ni.h				\
30286	pthread.h				\
30287	pty.h					\
30288	sac.h					\
30289	security/pam_modules.h			\
30290	sgtty.h					\
30291	siad.h					\
30292	signal.h				\
30293	stropts.h				\
30294	sys/bitypes.h				\
30295	sys/category.h				\
30296	sys/file.h				\
30297	sys/filio.h				\
30298	sys/ioccom.h				\
30299	sys/pty.h				\
30300	sys/ptyio.h				\
30301	sys/ptyvar.h				\
30302	sys/select.h				\
30303	sys/str_tty.h				\
30304	sys/stream.h				\
30305	sys/stropts.h				\
30306	sys/strtty.h				\
30307	sys/syscall.h				\
30308	sys/termio.h				\
30309	sys/timeb.h				\
30310	sys/times.h				\
30311	sys/un.h				\
30312	term.h					\
30313	termcap.h				\
30314	termio.h				\
30315	time.h					\
30316	tmpdir.h				\
30317	udb.h					\
30318	utmp.h					\
30319	utmpx.h					\
30320
30321do
30322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30323if eval "test \"\${$as_ac_Header+set}\" = set"; then
30324  echo "$as_me:$LINENO: checking for $ac_header" >&5
30325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30326if eval "test \"\${$as_ac_Header+set}\" = set"; then
30327  echo $ECHO_N "(cached) $ECHO_C" >&6
30328fi
30329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30331else
30332  # Is the header compilable?
30333echo "$as_me:$LINENO: checking $ac_header usability" >&5
30334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30335cat >conftest.$ac_ext <<_ACEOF
30336#line $LINENO "configure"
30337#include "confdefs.h"
30338$ac_includes_default
30339#include <$ac_header>
30340_ACEOF
30341rm -f conftest.$ac_objext
30342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30343  (eval $ac_compile) 2>&5
30344  ac_status=$?
30345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346  (exit $ac_status); } &&
30347         { ac_try='test -s conftest.$ac_objext'
30348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349  (eval $ac_try) 2>&5
30350  ac_status=$?
30351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352  (exit $ac_status); }; }; then
30353  ac_header_compiler=yes
30354else
30355  echo "$as_me: failed program was:" >&5
30356cat conftest.$ac_ext >&5
30357ac_header_compiler=no
30358fi
30359rm -f conftest.$ac_objext conftest.$ac_ext
30360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30361echo "${ECHO_T}$ac_header_compiler" >&6
30362
30363# Is the header present?
30364echo "$as_me:$LINENO: checking $ac_header presence" >&5
30365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30366cat >conftest.$ac_ext <<_ACEOF
30367#line $LINENO "configure"
30368#include "confdefs.h"
30369#include <$ac_header>
30370_ACEOF
30371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30373  ac_status=$?
30374  egrep -v '^ *\+' conftest.er1 >conftest.err
30375  rm -f conftest.er1
30376  cat conftest.err >&5
30377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378  (exit $ac_status); } >/dev/null; then
30379  if test -s conftest.err; then
30380    ac_cpp_err=$ac_c_preproc_warn_flag
30381  else
30382    ac_cpp_err=
30383  fi
30384else
30385  ac_cpp_err=yes
30386fi
30387if test -z "$ac_cpp_err"; then
30388  ac_header_preproc=yes
30389else
30390  echo "$as_me: failed program was:" >&5
30391  cat conftest.$ac_ext >&5
30392  ac_header_preproc=no
30393fi
30394rm -f conftest.err conftest.$ac_ext
30395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30396echo "${ECHO_T}$ac_header_preproc" >&6
30397
30398# So?  What about this header?
30399case $ac_header_compiler:$ac_header_preproc in
30400  yes:no )
30401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30405  no:yes )
30406    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30408    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
30412esac
30413echo "$as_me:$LINENO: checking for $ac_header" >&5
30414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30415if eval "test \"\${$as_ac_Header+set}\" = set"; then
30416  echo $ECHO_N "(cached) $ECHO_C" >&6
30417else
30418  eval "$as_ac_Header=$ac_header_preproc"
30419fi
30420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30422
30423fi
30424if test `eval echo '${'$as_ac_Header'}'` = yes; then
30425  cat >>confdefs.h <<_ACEOF
30426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30427_ACEOF
30428
30429fi
30430
30431done
30432
30433
30434# Check whether --enable-netinfo or --disable-netinfo was given.
30435if test "${enable_netinfo+set}" = set; then
30436  enableval="$enable_netinfo"
30437
30438fi;
30439
30440if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
30441
30442cat >>confdefs.h <<\_ACEOF
30443#define HAVE_NETINFO 1
30444_ACEOF
30445
30446fi
30447
30448
30449
30450
30451
30452echo "$as_me:$LINENO: checking for logwtmp" >&5
30453echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
30454if test "${ac_cv_funclib_logwtmp+set}" = set; then
30455  echo $ECHO_N "(cached) $ECHO_C" >&6
30456else
30457
30458if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
30459	ac_save_LIBS="$LIBS"
30460	for ac_lib in "" util; do
30461		case "$ac_lib" in
30462		"") ;;
30463		yes) ac_lib="" ;;
30464		no) continue ;;
30465		-l*) ;;
30466		*) ac_lib="-l$ac_lib" ;;
30467		esac
30468		LIBS=" $ac_lib  $ac_save_LIBS"
30469		cat >conftest.$ac_ext <<_ACEOF
30470#line $LINENO "configure"
30471#include "confdefs.h"
30472
30473#ifdef F77_DUMMY_MAIN
30474#  ifdef __cplusplus
30475     extern "C"
30476#  endif
30477   int F77_DUMMY_MAIN() { return 1; }
30478#endif
30479int
30480main ()
30481{
30482logwtmp()
30483  ;
30484  return 0;
30485}
30486_ACEOF
30487rm -f conftest.$ac_objext conftest$ac_exeext
30488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489  (eval $ac_link) 2>&5
30490  ac_status=$?
30491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492  (exit $ac_status); } &&
30493         { ac_try='test -s conftest$ac_exeext'
30494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495  (eval $ac_try) 2>&5
30496  ac_status=$?
30497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498  (exit $ac_status); }; }; then
30499  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
30500else
30501  echo "$as_me: failed program was:" >&5
30502cat conftest.$ac_ext >&5
30503fi
30504rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30505	done
30506	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
30507	LIBS="$ac_save_LIBS"
30508fi
30509
30510fi
30511
30512
30513eval "ac_res=\$ac_cv_funclib_logwtmp"
30514
30515if false; then
30516
30517for ac_func in logwtmp
30518do
30519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520echo "$as_me:$LINENO: checking for $ac_func" >&5
30521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30522if eval "test \"\${$as_ac_var+set}\" = set"; then
30523  echo $ECHO_N "(cached) $ECHO_C" >&6
30524else
30525  cat >conftest.$ac_ext <<_ACEOF
30526#line $LINENO "configure"
30527#include "confdefs.h"
30528/* System header to define __stub macros and hopefully few prototypes,
30529    which can conflict with char $ac_func (); below.  */
30530#include <assert.h>
30531/* Override any gcc2 internal prototype to avoid an error.  */
30532#ifdef __cplusplus
30533extern "C"
30534#endif
30535/* We use char because int might match the return type of a gcc2
30536   builtin and then its argument prototype would still apply.  */
30537char $ac_func ();
30538char (*f) ();
30539
30540#ifdef F77_DUMMY_MAIN
30541#  ifdef __cplusplus
30542     extern "C"
30543#  endif
30544   int F77_DUMMY_MAIN() { return 1; }
30545#endif
30546int
30547main ()
30548{
30549/* The GNU C library defines this for functions which it implements
30550    to always fail with ENOSYS.  Some functions are actually named
30551    something starting with __ and the normal name is an alias.  */
30552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30553choke me
30554#else
30555f = $ac_func;
30556#endif
30557
30558  ;
30559  return 0;
30560}
30561_ACEOF
30562rm -f conftest.$ac_objext conftest$ac_exeext
30563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30564  (eval $ac_link) 2>&5
30565  ac_status=$?
30566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567  (exit $ac_status); } &&
30568         { ac_try='test -s conftest$ac_exeext'
30569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570  (eval $ac_try) 2>&5
30571  ac_status=$?
30572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573  (exit $ac_status); }; }; then
30574  eval "$as_ac_var=yes"
30575else
30576  echo "$as_me: failed program was:" >&5
30577cat conftest.$ac_ext >&5
30578eval "$as_ac_var=no"
30579fi
30580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30581fi
30582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30583echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30584if test `eval echo '${'$as_ac_var'}'` = yes; then
30585  cat >>confdefs.h <<_ACEOF
30586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30587_ACEOF
30588
30589fi
30590done
30591
30592fi
30593# logwtmp
30594eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30595eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30596eval "LIB_logwtmp=$ac_res"
30597
30598case "$ac_res" in
30599	yes)
30600	eval "ac_cv_func_logwtmp=yes"
30601	eval "LIB_logwtmp="
30602	cat >>confdefs.h <<_ACEOF
30603#define $ac_tr_func 1
30604_ACEOF
30605
30606	echo "$as_me:$LINENO: result: yes" >&5
30607echo "${ECHO_T}yes" >&6
30608	;;
30609	no)
30610	eval "ac_cv_func_logwtmp=no"
30611	eval "LIB_logwtmp="
30612	echo "$as_me:$LINENO: result: no" >&5
30613echo "${ECHO_T}no" >&6
30614	;;
30615	*)
30616	eval "ac_cv_func_logwtmp=yes"
30617	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30618	cat >>confdefs.h <<_ACEOF
30619#define $ac_tr_func 1
30620_ACEOF
30621
30622	cat >>confdefs.h <<_ACEOF
30623#define $ac_tr_lib 1
30624_ACEOF
30625
30626	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30627echo "${ECHO_T}yes, in $ac_res" >&6
30628	;;
30629esac
30630
30631
30632
30633
30634
30635echo "$as_me:$LINENO: checking for logout" >&5
30636echo $ECHO_N "checking for logout... $ECHO_C" >&6
30637if test "${ac_cv_funclib_logout+set}" = set; then
30638  echo $ECHO_N "(cached) $ECHO_C" >&6
30639else
30640
30641if eval "test \"\$ac_cv_func_logout\" != yes" ; then
30642	ac_save_LIBS="$LIBS"
30643	for ac_lib in "" util; do
30644		case "$ac_lib" in
30645		"") ;;
30646		yes) ac_lib="" ;;
30647		no) continue ;;
30648		-l*) ;;
30649		*) ac_lib="-l$ac_lib" ;;
30650		esac
30651		LIBS=" $ac_lib  $ac_save_LIBS"
30652		cat >conftest.$ac_ext <<_ACEOF
30653#line $LINENO "configure"
30654#include "confdefs.h"
30655
30656#ifdef F77_DUMMY_MAIN
30657#  ifdef __cplusplus
30658     extern "C"
30659#  endif
30660   int F77_DUMMY_MAIN() { return 1; }
30661#endif
30662int
30663main ()
30664{
30665logout()
30666  ;
30667  return 0;
30668}
30669_ACEOF
30670rm -f conftest.$ac_objext conftest$ac_exeext
30671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30672  (eval $ac_link) 2>&5
30673  ac_status=$?
30674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675  (exit $ac_status); } &&
30676         { ac_try='test -s conftest$ac_exeext'
30677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30678  (eval $ac_try) 2>&5
30679  ac_status=$?
30680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681  (exit $ac_status); }; }; then
30682  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
30683else
30684  echo "$as_me: failed program was:" >&5
30685cat conftest.$ac_ext >&5
30686fi
30687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30688	done
30689	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
30690	LIBS="$ac_save_LIBS"
30691fi
30692
30693fi
30694
30695
30696eval "ac_res=\$ac_cv_funclib_logout"
30697
30698if false; then
30699
30700for ac_func in logout
30701do
30702as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30703echo "$as_me:$LINENO: checking for $ac_func" >&5
30704echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30705if eval "test \"\${$as_ac_var+set}\" = set"; then
30706  echo $ECHO_N "(cached) $ECHO_C" >&6
30707else
30708  cat >conftest.$ac_ext <<_ACEOF
30709#line $LINENO "configure"
30710#include "confdefs.h"
30711/* System header to define __stub macros and hopefully few prototypes,
30712    which can conflict with char $ac_func (); below.  */
30713#include <assert.h>
30714/* Override any gcc2 internal prototype to avoid an error.  */
30715#ifdef __cplusplus
30716extern "C"
30717#endif
30718/* We use char because int might match the return type of a gcc2
30719   builtin and then its argument prototype would still apply.  */
30720char $ac_func ();
30721char (*f) ();
30722
30723#ifdef F77_DUMMY_MAIN
30724#  ifdef __cplusplus
30725     extern "C"
30726#  endif
30727   int F77_DUMMY_MAIN() { return 1; }
30728#endif
30729int
30730main ()
30731{
30732/* The GNU C library defines this for functions which it implements
30733    to always fail with ENOSYS.  Some functions are actually named
30734    something starting with __ and the normal name is an alias.  */
30735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30736choke me
30737#else
30738f = $ac_func;
30739#endif
30740
30741  ;
30742  return 0;
30743}
30744_ACEOF
30745rm -f conftest.$ac_objext conftest$ac_exeext
30746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30747  (eval $ac_link) 2>&5
30748  ac_status=$?
30749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750  (exit $ac_status); } &&
30751         { ac_try='test -s conftest$ac_exeext'
30752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753  (eval $ac_try) 2>&5
30754  ac_status=$?
30755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756  (exit $ac_status); }; }; then
30757  eval "$as_ac_var=yes"
30758else
30759  echo "$as_me: failed program was:" >&5
30760cat conftest.$ac_ext >&5
30761eval "$as_ac_var=no"
30762fi
30763rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30764fi
30765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30766echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30767if test `eval echo '${'$as_ac_var'}'` = yes; then
30768  cat >>confdefs.h <<_ACEOF
30769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30770_ACEOF
30771
30772fi
30773done
30774
30775fi
30776# logout
30777eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30778eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30779eval "LIB_logout=$ac_res"
30780
30781case "$ac_res" in
30782	yes)
30783	eval "ac_cv_func_logout=yes"
30784	eval "LIB_logout="
30785	cat >>confdefs.h <<_ACEOF
30786#define $ac_tr_func 1
30787_ACEOF
30788
30789	echo "$as_me:$LINENO: result: yes" >&5
30790echo "${ECHO_T}yes" >&6
30791	;;
30792	no)
30793	eval "ac_cv_func_logout=no"
30794	eval "LIB_logout="
30795	echo "$as_me:$LINENO: result: no" >&5
30796echo "${ECHO_T}no" >&6
30797	;;
30798	*)
30799	eval "ac_cv_func_logout=yes"
30800	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30801	cat >>confdefs.h <<_ACEOF
30802#define $ac_tr_func 1
30803_ACEOF
30804
30805	cat >>confdefs.h <<_ACEOF
30806#define $ac_tr_lib 1
30807_ACEOF
30808
30809	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30810echo "${ECHO_T}yes, in $ac_res" >&6
30811	;;
30812esac
30813
30814
30815
30816
30817
30818echo "$as_me:$LINENO: checking for openpty" >&5
30819echo $ECHO_N "checking for openpty... $ECHO_C" >&6
30820if test "${ac_cv_funclib_openpty+set}" = set; then
30821  echo $ECHO_N "(cached) $ECHO_C" >&6
30822else
30823
30824if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
30825	ac_save_LIBS="$LIBS"
30826	for ac_lib in "" util; do
30827		case "$ac_lib" in
30828		"") ;;
30829		yes) ac_lib="" ;;
30830		no) continue ;;
30831		-l*) ;;
30832		*) ac_lib="-l$ac_lib" ;;
30833		esac
30834		LIBS=" $ac_lib  $ac_save_LIBS"
30835		cat >conftest.$ac_ext <<_ACEOF
30836#line $LINENO "configure"
30837#include "confdefs.h"
30838
30839#ifdef F77_DUMMY_MAIN
30840#  ifdef __cplusplus
30841     extern "C"
30842#  endif
30843   int F77_DUMMY_MAIN() { return 1; }
30844#endif
30845int
30846main ()
30847{
30848openpty()
30849  ;
30850  return 0;
30851}
30852_ACEOF
30853rm -f conftest.$ac_objext conftest$ac_exeext
30854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30855  (eval $ac_link) 2>&5
30856  ac_status=$?
30857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858  (exit $ac_status); } &&
30859         { ac_try='test -s conftest$ac_exeext'
30860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861  (eval $ac_try) 2>&5
30862  ac_status=$?
30863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864  (exit $ac_status); }; }; then
30865  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
30866else
30867  echo "$as_me: failed program was:" >&5
30868cat conftest.$ac_ext >&5
30869fi
30870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30871	done
30872	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
30873	LIBS="$ac_save_LIBS"
30874fi
30875
30876fi
30877
30878
30879eval "ac_res=\$ac_cv_funclib_openpty"
30880
30881if false; then
30882
30883for ac_func in openpty
30884do
30885as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30886echo "$as_me:$LINENO: checking for $ac_func" >&5
30887echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30888if eval "test \"\${$as_ac_var+set}\" = set"; then
30889  echo $ECHO_N "(cached) $ECHO_C" >&6
30890else
30891  cat >conftest.$ac_ext <<_ACEOF
30892#line $LINENO "configure"
30893#include "confdefs.h"
30894/* System header to define __stub macros and hopefully few prototypes,
30895    which can conflict with char $ac_func (); below.  */
30896#include <assert.h>
30897/* Override any gcc2 internal prototype to avoid an error.  */
30898#ifdef __cplusplus
30899extern "C"
30900#endif
30901/* We use char because int might match the return type of a gcc2
30902   builtin and then its argument prototype would still apply.  */
30903char $ac_func ();
30904char (*f) ();
30905
30906#ifdef F77_DUMMY_MAIN
30907#  ifdef __cplusplus
30908     extern "C"
30909#  endif
30910   int F77_DUMMY_MAIN() { return 1; }
30911#endif
30912int
30913main ()
30914{
30915/* The GNU C library defines this for functions which it implements
30916    to always fail with ENOSYS.  Some functions are actually named
30917    something starting with __ and the normal name is an alias.  */
30918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30919choke me
30920#else
30921f = $ac_func;
30922#endif
30923
30924  ;
30925  return 0;
30926}
30927_ACEOF
30928rm -f conftest.$ac_objext conftest$ac_exeext
30929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30930  (eval $ac_link) 2>&5
30931  ac_status=$?
30932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933  (exit $ac_status); } &&
30934         { ac_try='test -s conftest$ac_exeext'
30935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30936  (eval $ac_try) 2>&5
30937  ac_status=$?
30938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30939  (exit $ac_status); }; }; then
30940  eval "$as_ac_var=yes"
30941else
30942  echo "$as_me: failed program was:" >&5
30943cat conftest.$ac_ext >&5
30944eval "$as_ac_var=no"
30945fi
30946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30947fi
30948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30950if test `eval echo '${'$as_ac_var'}'` = yes; then
30951  cat >>confdefs.h <<_ACEOF
30952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30953_ACEOF
30954
30955fi
30956done
30957
30958fi
30959# openpty
30960eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30961eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30962eval "LIB_openpty=$ac_res"
30963
30964case "$ac_res" in
30965	yes)
30966	eval "ac_cv_func_openpty=yes"
30967	eval "LIB_openpty="
30968	cat >>confdefs.h <<_ACEOF
30969#define $ac_tr_func 1
30970_ACEOF
30971
30972	echo "$as_me:$LINENO: result: yes" >&5
30973echo "${ECHO_T}yes" >&6
30974	;;
30975	no)
30976	eval "ac_cv_func_openpty=no"
30977	eval "LIB_openpty="
30978	echo "$as_me:$LINENO: result: no" >&5
30979echo "${ECHO_T}no" >&6
30980	;;
30981	*)
30982	eval "ac_cv_func_openpty=yes"
30983	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30984	cat >>confdefs.h <<_ACEOF
30985#define $ac_tr_func 1
30986_ACEOF
30987
30988	cat >>confdefs.h <<_ACEOF
30989#define $ac_tr_lib 1
30990_ACEOF
30991
30992	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30993echo "${ECHO_T}yes, in $ac_res" >&6
30994	;;
30995esac
30996
30997
30998
30999
31000
31001echo "$as_me:$LINENO: checking for tgetent" >&5
31002echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
31003if test "${ac_cv_funclib_tgetent+set}" = set; then
31004  echo $ECHO_N "(cached) $ECHO_C" >&6
31005else
31006
31007if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
31008	ac_save_LIBS="$LIBS"
31009	for ac_lib in "" termcap ncurses curses; do
31010		case "$ac_lib" in
31011		"") ;;
31012		yes) ac_lib="" ;;
31013		no) continue ;;
31014		-l*) ;;
31015		*) ac_lib="-l$ac_lib" ;;
31016		esac
31017		LIBS=" $ac_lib  $ac_save_LIBS"
31018		cat >conftest.$ac_ext <<_ACEOF
31019#line $LINENO "configure"
31020#include "confdefs.h"
31021
31022#ifdef F77_DUMMY_MAIN
31023#  ifdef __cplusplus
31024     extern "C"
31025#  endif
31026   int F77_DUMMY_MAIN() { return 1; }
31027#endif
31028int
31029main ()
31030{
31031tgetent()
31032  ;
31033  return 0;
31034}
31035_ACEOF
31036rm -f conftest.$ac_objext conftest$ac_exeext
31037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038  (eval $ac_link) 2>&5
31039  ac_status=$?
31040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041  (exit $ac_status); } &&
31042         { ac_try='test -s conftest$ac_exeext'
31043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31044  (eval $ac_try) 2>&5
31045  ac_status=$?
31046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047  (exit $ac_status); }; }; then
31048  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
31049else
31050  echo "$as_me: failed program was:" >&5
31051cat conftest.$ac_ext >&5
31052fi
31053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31054	done
31055	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
31056	LIBS="$ac_save_LIBS"
31057fi
31058
31059fi
31060
31061
31062eval "ac_res=\$ac_cv_funclib_tgetent"
31063
31064if false; then
31065
31066for ac_func in tgetent
31067do
31068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31069echo "$as_me:$LINENO: checking for $ac_func" >&5
31070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31071if eval "test \"\${$as_ac_var+set}\" = set"; then
31072  echo $ECHO_N "(cached) $ECHO_C" >&6
31073else
31074  cat >conftest.$ac_ext <<_ACEOF
31075#line $LINENO "configure"
31076#include "confdefs.h"
31077/* System header to define __stub macros and hopefully few prototypes,
31078    which can conflict with char $ac_func (); below.  */
31079#include <assert.h>
31080/* Override any gcc2 internal prototype to avoid an error.  */
31081#ifdef __cplusplus
31082extern "C"
31083#endif
31084/* We use char because int might match the return type of a gcc2
31085   builtin and then its argument prototype would still apply.  */
31086char $ac_func ();
31087char (*f) ();
31088
31089#ifdef F77_DUMMY_MAIN
31090#  ifdef __cplusplus
31091     extern "C"
31092#  endif
31093   int F77_DUMMY_MAIN() { return 1; }
31094#endif
31095int
31096main ()
31097{
31098/* The GNU C library defines this for functions which it implements
31099    to always fail with ENOSYS.  Some functions are actually named
31100    something starting with __ and the normal name is an alias.  */
31101#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31102choke me
31103#else
31104f = $ac_func;
31105#endif
31106
31107  ;
31108  return 0;
31109}
31110_ACEOF
31111rm -f conftest.$ac_objext conftest$ac_exeext
31112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31113  (eval $ac_link) 2>&5
31114  ac_status=$?
31115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116  (exit $ac_status); } &&
31117         { ac_try='test -s conftest$ac_exeext'
31118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31119  (eval $ac_try) 2>&5
31120  ac_status=$?
31121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122  (exit $ac_status); }; }; then
31123  eval "$as_ac_var=yes"
31124else
31125  echo "$as_me: failed program was:" >&5
31126cat conftest.$ac_ext >&5
31127eval "$as_ac_var=no"
31128fi
31129rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31130fi
31131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31132echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31133if test `eval echo '${'$as_ac_var'}'` = yes; then
31134  cat >>confdefs.h <<_ACEOF
31135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31136_ACEOF
31137
31138fi
31139done
31140
31141fi
31142# tgetent
31143eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31144eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31145eval "LIB_tgetent=$ac_res"
31146
31147case "$ac_res" in
31148	yes)
31149	eval "ac_cv_func_tgetent=yes"
31150	eval "LIB_tgetent="
31151	cat >>confdefs.h <<_ACEOF
31152#define $ac_tr_func 1
31153_ACEOF
31154
31155	echo "$as_me:$LINENO: result: yes" >&5
31156echo "${ECHO_T}yes" >&6
31157	;;
31158	no)
31159	eval "ac_cv_func_tgetent=no"
31160	eval "LIB_tgetent="
31161	echo "$as_me:$LINENO: result: no" >&5
31162echo "${ECHO_T}no" >&6
31163	;;
31164	*)
31165	eval "ac_cv_func_tgetent=yes"
31166	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31167	cat >>confdefs.h <<_ACEOF
31168#define $ac_tr_func 1
31169_ACEOF
31170
31171	cat >>confdefs.h <<_ACEOF
31172#define $ac_tr_lib 1
31173_ACEOF
31174
31175	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31176echo "${ECHO_T}yes, in $ac_res" >&6
31177	;;
31178esac
31179
31180
31181
31182
31183
31184
31185
31186
31187
31188
31189
31190
31191
31192
31193
31194
31195
31196
31197
31198
31199
31200
31201
31202
31203
31204
31205
31206
31207
31208
31209
31210
31211for ac_func in 				\
31212	_getpty					\
31213	_scrsize				\
31214	fcntl					\
31215	grantpt					\
31216	mktime					\
31217	ptsname					\
31218	rand					\
31219	revoke					\
31220	select					\
31221	setitimer				\
31222	setpcred				\
31223	setpgid					\
31224	setproctitle				\
31225	setregid				\
31226	setresgid				\
31227	setresuid				\
31228	setreuid				\
31229	setsid					\
31230	setutent				\
31231	sigaction				\
31232	strstr					\
31233	timegm					\
31234	ttyname					\
31235	ttyslot					\
31236	umask					\
31237	unlockpt				\
31238	vhangup					\
31239	yp_get_default_domain			\
31240
31241do
31242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31243echo "$as_me:$LINENO: checking for $ac_func" >&5
31244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31245if eval "test \"\${$as_ac_var+set}\" = set"; then
31246  echo $ECHO_N "(cached) $ECHO_C" >&6
31247else
31248  cat >conftest.$ac_ext <<_ACEOF
31249#line $LINENO "configure"
31250#include "confdefs.h"
31251/* System header to define __stub macros and hopefully few prototypes,
31252    which can conflict with char $ac_func (); below.  */
31253#include <assert.h>
31254/* Override any gcc2 internal prototype to avoid an error.  */
31255#ifdef __cplusplus
31256extern "C"
31257#endif
31258/* We use char because int might match the return type of a gcc2
31259   builtin and then its argument prototype would still apply.  */
31260char $ac_func ();
31261char (*f) ();
31262
31263#ifdef F77_DUMMY_MAIN
31264#  ifdef __cplusplus
31265     extern "C"
31266#  endif
31267   int F77_DUMMY_MAIN() { return 1; }
31268#endif
31269int
31270main ()
31271{
31272/* The GNU C library defines this for functions which it implements
31273    to always fail with ENOSYS.  Some functions are actually named
31274    something starting with __ and the normal name is an alias.  */
31275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31276choke me
31277#else
31278f = $ac_func;
31279#endif
31280
31281  ;
31282  return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
31286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31287  (eval $ac_link) 2>&5
31288  ac_status=$?
31289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290  (exit $ac_status); } &&
31291         { ac_try='test -s conftest$ac_exeext'
31292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293  (eval $ac_try) 2>&5
31294  ac_status=$?
31295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296  (exit $ac_status); }; }; then
31297  eval "$as_ac_var=yes"
31298else
31299  echo "$as_me: failed program was:" >&5
31300cat conftest.$ac_ext >&5
31301eval "$as_ac_var=no"
31302fi
31303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31304fi
31305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31307if test `eval echo '${'$as_ac_var'}'` = yes; then
31308  cat >>confdefs.h <<_ACEOF
31309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31310_ACEOF
31311
31312fi
31313done
31314
31315
31316
31317
31318
31319
31320for ac_header in capability.h sys/capability.h
31321do
31322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31323if eval "test \"\${$as_ac_Header+set}\" = set"; then
31324  echo "$as_me:$LINENO: checking for $ac_header" >&5
31325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31326if eval "test \"\${$as_ac_Header+set}\" = set"; then
31327  echo $ECHO_N "(cached) $ECHO_C" >&6
31328fi
31329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31331else
31332  # Is the header compilable?
31333echo "$as_me:$LINENO: checking $ac_header usability" >&5
31334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31335cat >conftest.$ac_ext <<_ACEOF
31336#line $LINENO "configure"
31337#include "confdefs.h"
31338$ac_includes_default
31339#include <$ac_header>
31340_ACEOF
31341rm -f conftest.$ac_objext
31342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31343  (eval $ac_compile) 2>&5
31344  ac_status=$?
31345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346  (exit $ac_status); } &&
31347         { ac_try='test -s conftest.$ac_objext'
31348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349  (eval $ac_try) 2>&5
31350  ac_status=$?
31351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352  (exit $ac_status); }; }; then
31353  ac_header_compiler=yes
31354else
31355  echo "$as_me: failed program was:" >&5
31356cat conftest.$ac_ext >&5
31357ac_header_compiler=no
31358fi
31359rm -f conftest.$ac_objext conftest.$ac_ext
31360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31361echo "${ECHO_T}$ac_header_compiler" >&6
31362
31363# Is the header present?
31364echo "$as_me:$LINENO: checking $ac_header presence" >&5
31365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31366cat >conftest.$ac_ext <<_ACEOF
31367#line $LINENO "configure"
31368#include "confdefs.h"
31369#include <$ac_header>
31370_ACEOF
31371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31373  ac_status=$?
31374  egrep -v '^ *\+' conftest.er1 >conftest.err
31375  rm -f conftest.er1
31376  cat conftest.err >&5
31377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378  (exit $ac_status); } >/dev/null; then
31379  if test -s conftest.err; then
31380    ac_cpp_err=$ac_c_preproc_warn_flag
31381  else
31382    ac_cpp_err=
31383  fi
31384else
31385  ac_cpp_err=yes
31386fi
31387if test -z "$ac_cpp_err"; then
31388  ac_header_preproc=yes
31389else
31390  echo "$as_me: failed program was:" >&5
31391  cat conftest.$ac_ext >&5
31392  ac_header_preproc=no
31393fi
31394rm -f conftest.err conftest.$ac_ext
31395echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31396echo "${ECHO_T}$ac_header_preproc" >&6
31397
31398# So?  What about this header?
31399case $ac_header_compiler:$ac_header_preproc in
31400  yes:no )
31401    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31403    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31405  no:yes )
31406    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31408    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31409echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31410    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
31412esac
31413echo "$as_me:$LINENO: checking for $ac_header" >&5
31414echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31415if eval "test \"\${$as_ac_Header+set}\" = set"; then
31416  echo $ECHO_N "(cached) $ECHO_C" >&6
31417else
31418  eval "$as_ac_Header=$ac_header_preproc"
31419fi
31420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31422
31423fi
31424if test `eval echo '${'$as_ac_Header'}'` = yes; then
31425  cat >>confdefs.h <<_ACEOF
31426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31427_ACEOF
31428
31429fi
31430
31431done
31432
31433
31434
31435
31436for ac_func in sgi_getcapabilitybyname cap_set_proc
31437do
31438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31439echo "$as_me:$LINENO: checking for $ac_func" >&5
31440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31441if eval "test \"\${$as_ac_var+set}\" = set"; then
31442  echo $ECHO_N "(cached) $ECHO_C" >&6
31443else
31444  cat >conftest.$ac_ext <<_ACEOF
31445#line $LINENO "configure"
31446#include "confdefs.h"
31447/* System header to define __stub macros and hopefully few prototypes,
31448    which can conflict with char $ac_func (); below.  */
31449#include <assert.h>
31450/* Override any gcc2 internal prototype to avoid an error.  */
31451#ifdef __cplusplus
31452extern "C"
31453#endif
31454/* We use char because int might match the return type of a gcc2
31455   builtin and then its argument prototype would still apply.  */
31456char $ac_func ();
31457char (*f) ();
31458
31459#ifdef F77_DUMMY_MAIN
31460#  ifdef __cplusplus
31461     extern "C"
31462#  endif
31463   int F77_DUMMY_MAIN() { return 1; }
31464#endif
31465int
31466main ()
31467{
31468/* The GNU C library defines this for functions which it implements
31469    to always fail with ENOSYS.  Some functions are actually named
31470    something starting with __ and the normal name is an alias.  */
31471#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31472choke me
31473#else
31474f = $ac_func;
31475#endif
31476
31477  ;
31478  return 0;
31479}
31480_ACEOF
31481rm -f conftest.$ac_objext conftest$ac_exeext
31482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31483  (eval $ac_link) 2>&5
31484  ac_status=$?
31485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486  (exit $ac_status); } &&
31487         { ac_try='test -s conftest$ac_exeext'
31488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31489  (eval $ac_try) 2>&5
31490  ac_status=$?
31491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492  (exit $ac_status); }; }; then
31493  eval "$as_ac_var=yes"
31494else
31495  echo "$as_me: failed program was:" >&5
31496cat conftest.$ac_ext >&5
31497eval "$as_ac_var=no"
31498fi
31499rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31500fi
31501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31503if test `eval echo '${'$as_ac_var'}'` = yes; then
31504  cat >>confdefs.h <<_ACEOF
31505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31506_ACEOF
31507
31508fi
31509done
31510
31511
31512
31513
31514
31515
31516
31517echo "$as_me:$LINENO: checking for getpwnam_r" >&5
31518echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
31519if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
31520  echo $ECHO_N "(cached) $ECHO_C" >&6
31521else
31522
31523if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
31524	ac_save_LIBS="$LIBS"
31525	for ac_lib in "" c_r; do
31526		case "$ac_lib" in
31527		"") ;;
31528		yes) ac_lib="" ;;
31529		no) continue ;;
31530		-l*) ;;
31531		*) ac_lib="-l$ac_lib" ;;
31532		esac
31533		LIBS=" $ac_lib  $ac_save_LIBS"
31534		cat >conftest.$ac_ext <<_ACEOF
31535#line $LINENO "configure"
31536#include "confdefs.h"
31537
31538#ifdef F77_DUMMY_MAIN
31539#  ifdef __cplusplus
31540     extern "C"
31541#  endif
31542   int F77_DUMMY_MAIN() { return 1; }
31543#endif
31544int
31545main ()
31546{
31547getpwnam_r()
31548  ;
31549  return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext conftest$ac_exeext
31553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31554  (eval $ac_link) 2>&5
31555  ac_status=$?
31556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31557  (exit $ac_status); } &&
31558         { ac_try='test -s conftest$ac_exeext'
31559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31560  (eval $ac_try) 2>&5
31561  ac_status=$?
31562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563  (exit $ac_status); }; }; then
31564  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
31565else
31566  echo "$as_me: failed program was:" >&5
31567cat conftest.$ac_ext >&5
31568fi
31569rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31570	done
31571	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
31572	LIBS="$ac_save_LIBS"
31573fi
31574
31575fi
31576
31577
31578eval "ac_res=\$ac_cv_funclib_getpwnam_r"
31579
31580if false; then
31581
31582for ac_func in getpwnam_r
31583do
31584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31585echo "$as_me:$LINENO: checking for $ac_func" >&5
31586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31587if eval "test \"\${$as_ac_var+set}\" = set"; then
31588  echo $ECHO_N "(cached) $ECHO_C" >&6
31589else
31590  cat >conftest.$ac_ext <<_ACEOF
31591#line $LINENO "configure"
31592#include "confdefs.h"
31593/* System header to define __stub macros and hopefully few prototypes,
31594    which can conflict with char $ac_func (); below.  */
31595#include <assert.h>
31596/* Override any gcc2 internal prototype to avoid an error.  */
31597#ifdef __cplusplus
31598extern "C"
31599#endif
31600/* We use char because int might match the return type of a gcc2
31601   builtin and then its argument prototype would still apply.  */
31602char $ac_func ();
31603char (*f) ();
31604
31605#ifdef F77_DUMMY_MAIN
31606#  ifdef __cplusplus
31607     extern "C"
31608#  endif
31609   int F77_DUMMY_MAIN() { return 1; }
31610#endif
31611int
31612main ()
31613{
31614/* The GNU C library defines this for functions which it implements
31615    to always fail with ENOSYS.  Some functions are actually named
31616    something starting with __ and the normal name is an alias.  */
31617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31618choke me
31619#else
31620f = $ac_func;
31621#endif
31622
31623  ;
31624  return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext conftest$ac_exeext
31628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31629  (eval $ac_link) 2>&5
31630  ac_status=$?
31631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632  (exit $ac_status); } &&
31633         { ac_try='test -s conftest$ac_exeext'
31634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635  (eval $ac_try) 2>&5
31636  ac_status=$?
31637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638  (exit $ac_status); }; }; then
31639  eval "$as_ac_var=yes"
31640else
31641  echo "$as_me: failed program was:" >&5
31642cat conftest.$ac_ext >&5
31643eval "$as_ac_var=no"
31644fi
31645rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31646fi
31647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31649if test `eval echo '${'$as_ac_var'}'` = yes; then
31650  cat >>confdefs.h <<_ACEOF
31651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31652_ACEOF
31653
31654fi
31655done
31656
31657fi
31658# getpwnam_r
31659eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31660eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31661eval "LIB_getpwnam_r=$ac_res"
31662
31663case "$ac_res" in
31664	yes)
31665	eval "ac_cv_func_getpwnam_r=yes"
31666	eval "LIB_getpwnam_r="
31667	cat >>confdefs.h <<_ACEOF
31668#define $ac_tr_func 1
31669_ACEOF
31670
31671	echo "$as_me:$LINENO: result: yes" >&5
31672echo "${ECHO_T}yes" >&6
31673	;;
31674	no)
31675	eval "ac_cv_func_getpwnam_r=no"
31676	eval "LIB_getpwnam_r="
31677	echo "$as_me:$LINENO: result: no" >&5
31678echo "${ECHO_T}no" >&6
31679	;;
31680	*)
31681	eval "ac_cv_func_getpwnam_r=yes"
31682	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31683	cat >>confdefs.h <<_ACEOF
31684#define $ac_tr_func 1
31685_ACEOF
31686
31687	cat >>confdefs.h <<_ACEOF
31688#define $ac_tr_lib 1
31689_ACEOF
31690
31691	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31692echo "${ECHO_T}yes, in $ac_res" >&6
31693	;;
31694esac
31695
31696
31697if test "$ac_cv_func_getpwnam_r" = yes; then
31698	echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
31699echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
31700if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
31701  echo $ECHO_N "(cached) $ECHO_C" >&6
31702else
31703  ac_libs="$LIBS"
31704	LIBS="$LIBS $LIB_getpwnam_r"
31705	if test "$cross_compiling" = yes; then
31706  :
31707else
31708  cat >conftest.$ac_ext <<_ACEOF
31709#line $LINENO "configure"
31710#include "confdefs.h"
31711
31712#include <pwd.h>
31713int main()
31714{
31715	struct passwd pw, *pwd;
31716	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
31717}
31718
31719_ACEOF
31720rm -f conftest$ac_exeext
31721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31722  (eval $ac_link) 2>&5
31723  ac_status=$?
31724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727  (eval $ac_try) 2>&5
31728  ac_status=$?
31729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730  (exit $ac_status); }; }; then
31731  ac_cv_func_getpwnam_r_posix=yes
31732else
31733  echo "$as_me: program exited with status $ac_status" >&5
31734echo "$as_me: failed program was:" >&5
31735cat conftest.$ac_ext >&5
31736( exit $ac_status )
31737ac_cv_func_getpwnam_r_posix=no
31738fi
31739rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31740fi
31741LIBS="$ac_libs"
31742fi
31743echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
31744echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
31745if test "$ac_cv_func_getpwnam_r_posix" = yes; then
31746
31747cat >>confdefs.h <<\_ACEOF
31748#define POSIX_GETPWNAM_R 1
31749_ACEOF
31750
31751fi
31752fi
31753
31754
31755
31756
31757for ac_func in getudbnam setlim
31758do
31759as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31760echo "$as_me:$LINENO: checking for $ac_func" >&5
31761echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31762if eval "test \"\${$as_ac_var+set}\" = set"; then
31763  echo $ECHO_N "(cached) $ECHO_C" >&6
31764else
31765  cat >conftest.$ac_ext <<_ACEOF
31766#line $LINENO "configure"
31767#include "confdefs.h"
31768/* System header to define __stub macros and hopefully few prototypes,
31769    which can conflict with char $ac_func (); below.  */
31770#include <assert.h>
31771/* Override any gcc2 internal prototype to avoid an error.  */
31772#ifdef __cplusplus
31773extern "C"
31774#endif
31775/* We use char because int might match the return type of a gcc2
31776   builtin and then its argument prototype would still apply.  */
31777char $ac_func ();
31778char (*f) ();
31779
31780#ifdef F77_DUMMY_MAIN
31781#  ifdef __cplusplus
31782     extern "C"
31783#  endif
31784   int F77_DUMMY_MAIN() { return 1; }
31785#endif
31786int
31787main ()
31788{
31789/* The GNU C library defines this for functions which it implements
31790    to always fail with ENOSYS.  Some functions are actually named
31791    something starting with __ and the normal name is an alias.  */
31792#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31793choke me
31794#else
31795f = $ac_func;
31796#endif
31797
31798  ;
31799  return 0;
31800}
31801_ACEOF
31802rm -f conftest.$ac_objext conftest$ac_exeext
31803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31804  (eval $ac_link) 2>&5
31805  ac_status=$?
31806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807  (exit $ac_status); } &&
31808         { ac_try='test -s conftest$ac_exeext'
31809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31810  (eval $ac_try) 2>&5
31811  ac_status=$?
31812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813  (exit $ac_status); }; }; then
31814  eval "$as_ac_var=yes"
31815else
31816  echo "$as_me: failed program was:" >&5
31817cat conftest.$ac_ext >&5
31818eval "$as_ac_var=no"
31819fi
31820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31821fi
31822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31824if test `eval echo '${'$as_ac_var'}'` = yes; then
31825  cat >>confdefs.h <<_ACEOF
31826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31827_ACEOF
31828
31829fi
31830done
31831
31832
31833
31834
31835
31836
31837echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
31838echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
31839if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
31840  echo $ECHO_N "(cached) $ECHO_C" >&6
31841else
31842
31843cat >conftest.$ac_ext <<_ACEOF
31844#line $LINENO "configure"
31845#include "confdefs.h"
31846#include <utmp.h>
31847#ifdef F77_DUMMY_MAIN
31848#  ifdef __cplusplus
31849     extern "C"
31850#  endif
31851   int F77_DUMMY_MAIN() { return 1; }
31852#endif
31853int
31854main ()
31855{
31856struct utmp x; x.ut_addr;
31857  ;
31858  return 0;
31859}
31860_ACEOF
31861rm -f conftest.$ac_objext
31862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31863  (eval $ac_compile) 2>&5
31864  ac_status=$?
31865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866  (exit $ac_status); } &&
31867         { ac_try='test -s conftest.$ac_objext'
31868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31869  (eval $ac_try) 2>&5
31870  ac_status=$?
31871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872  (exit $ac_status); }; }; then
31873  ac_cv_type_struct_utmp_ut_addr=yes
31874else
31875  echo "$as_me: failed program was:" >&5
31876cat conftest.$ac_ext >&5
31877ac_cv_type_struct_utmp_ut_addr=no
31878fi
31879rm -f conftest.$ac_objext conftest.$ac_ext
31880fi
31881echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
31882echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
31883if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
31884
31885
31886cat >>confdefs.h <<\_ACEOF
31887#define HAVE_STRUCT_UTMP_UT_ADDR 1
31888_ACEOF
31889
31890
31891fi
31892
31893
31894
31895
31896echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
31897echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
31898if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
31899  echo $ECHO_N "(cached) $ECHO_C" >&6
31900else
31901
31902cat >conftest.$ac_ext <<_ACEOF
31903#line $LINENO "configure"
31904#include "confdefs.h"
31905#include <utmp.h>
31906#ifdef F77_DUMMY_MAIN
31907#  ifdef __cplusplus
31908     extern "C"
31909#  endif
31910   int F77_DUMMY_MAIN() { return 1; }
31911#endif
31912int
31913main ()
31914{
31915struct utmp x; x.ut_host;
31916  ;
31917  return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext
31921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31922  (eval $ac_compile) 2>&5
31923  ac_status=$?
31924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925  (exit $ac_status); } &&
31926         { ac_try='test -s conftest.$ac_objext'
31927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928  (eval $ac_try) 2>&5
31929  ac_status=$?
31930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931  (exit $ac_status); }; }; then
31932  ac_cv_type_struct_utmp_ut_host=yes
31933else
31934  echo "$as_me: failed program was:" >&5
31935cat conftest.$ac_ext >&5
31936ac_cv_type_struct_utmp_ut_host=no
31937fi
31938rm -f conftest.$ac_objext conftest.$ac_ext
31939fi
31940echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
31941echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
31942if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
31943
31944
31945cat >>confdefs.h <<\_ACEOF
31946#define HAVE_STRUCT_UTMP_UT_HOST 1
31947_ACEOF
31948
31949
31950fi
31951
31952
31953
31954
31955echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
31956echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
31957if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
31958  echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
31960
31961cat >conftest.$ac_ext <<_ACEOF
31962#line $LINENO "configure"
31963#include "confdefs.h"
31964#include <utmp.h>
31965#ifdef F77_DUMMY_MAIN
31966#  ifdef __cplusplus
31967     extern "C"
31968#  endif
31969   int F77_DUMMY_MAIN() { return 1; }
31970#endif
31971int
31972main ()
31973{
31974struct utmp x; x.ut_id;
31975  ;
31976  return 0;
31977}
31978_ACEOF
31979rm -f conftest.$ac_objext
31980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31981  (eval $ac_compile) 2>&5
31982  ac_status=$?
31983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984  (exit $ac_status); } &&
31985         { ac_try='test -s conftest.$ac_objext'
31986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987  (eval $ac_try) 2>&5
31988  ac_status=$?
31989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990  (exit $ac_status); }; }; then
31991  ac_cv_type_struct_utmp_ut_id=yes
31992else
31993  echo "$as_me: failed program was:" >&5
31994cat conftest.$ac_ext >&5
31995ac_cv_type_struct_utmp_ut_id=no
31996fi
31997rm -f conftest.$ac_objext conftest.$ac_ext
31998fi
31999echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
32000echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
32001if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
32002
32003
32004cat >>confdefs.h <<\_ACEOF
32005#define HAVE_STRUCT_UTMP_UT_ID 1
32006_ACEOF
32007
32008
32009fi
32010
32011
32012
32013
32014echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
32015echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
32016if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
32017  echo $ECHO_N "(cached) $ECHO_C" >&6
32018else
32019
32020cat >conftest.$ac_ext <<_ACEOF
32021#line $LINENO "configure"
32022#include "confdefs.h"
32023#include <utmp.h>
32024#ifdef F77_DUMMY_MAIN
32025#  ifdef __cplusplus
32026     extern "C"
32027#  endif
32028   int F77_DUMMY_MAIN() { return 1; }
32029#endif
32030int
32031main ()
32032{
32033struct utmp x; x.ut_pid;
32034  ;
32035  return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext
32039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32040  (eval $ac_compile) 2>&5
32041  ac_status=$?
32042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043  (exit $ac_status); } &&
32044         { ac_try='test -s conftest.$ac_objext'
32045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32046  (eval $ac_try) 2>&5
32047  ac_status=$?
32048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049  (exit $ac_status); }; }; then
32050  ac_cv_type_struct_utmp_ut_pid=yes
32051else
32052  echo "$as_me: failed program was:" >&5
32053cat conftest.$ac_ext >&5
32054ac_cv_type_struct_utmp_ut_pid=no
32055fi
32056rm -f conftest.$ac_objext conftest.$ac_ext
32057fi
32058echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
32059echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
32060if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
32061
32062
32063cat >>confdefs.h <<\_ACEOF
32064#define HAVE_STRUCT_UTMP_UT_PID 1
32065_ACEOF
32066
32067
32068fi
32069
32070
32071
32072
32073echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
32074echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
32075if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
32076  echo $ECHO_N "(cached) $ECHO_C" >&6
32077else
32078
32079cat >conftest.$ac_ext <<_ACEOF
32080#line $LINENO "configure"
32081#include "confdefs.h"
32082#include <utmp.h>
32083#ifdef F77_DUMMY_MAIN
32084#  ifdef __cplusplus
32085     extern "C"
32086#  endif
32087   int F77_DUMMY_MAIN() { return 1; }
32088#endif
32089int
32090main ()
32091{
32092struct utmp x; x.ut_type;
32093  ;
32094  return 0;
32095}
32096_ACEOF
32097rm -f conftest.$ac_objext
32098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32099  (eval $ac_compile) 2>&5
32100  ac_status=$?
32101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102  (exit $ac_status); } &&
32103         { ac_try='test -s conftest.$ac_objext'
32104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105  (eval $ac_try) 2>&5
32106  ac_status=$?
32107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108  (exit $ac_status); }; }; then
32109  ac_cv_type_struct_utmp_ut_type=yes
32110else
32111  echo "$as_me: failed program was:" >&5
32112cat conftest.$ac_ext >&5
32113ac_cv_type_struct_utmp_ut_type=no
32114fi
32115rm -f conftest.$ac_objext conftest.$ac_ext
32116fi
32117echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
32118echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
32119if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
32120
32121
32122cat >>confdefs.h <<\_ACEOF
32123#define HAVE_STRUCT_UTMP_UT_TYPE 1
32124_ACEOF
32125
32126
32127fi
32128
32129
32130
32131
32132echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
32133echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
32134if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
32135  echo $ECHO_N "(cached) $ECHO_C" >&6
32136else
32137
32138cat >conftest.$ac_ext <<_ACEOF
32139#line $LINENO "configure"
32140#include "confdefs.h"
32141#include <utmp.h>
32142#ifdef F77_DUMMY_MAIN
32143#  ifdef __cplusplus
32144     extern "C"
32145#  endif
32146   int F77_DUMMY_MAIN() { return 1; }
32147#endif
32148int
32149main ()
32150{
32151struct utmp x; x.ut_user;
32152  ;
32153  return 0;
32154}
32155_ACEOF
32156rm -f conftest.$ac_objext
32157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32158  (eval $ac_compile) 2>&5
32159  ac_status=$?
32160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161  (exit $ac_status); } &&
32162         { ac_try='test -s conftest.$ac_objext'
32163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32164  (eval $ac_try) 2>&5
32165  ac_status=$?
32166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167  (exit $ac_status); }; }; then
32168  ac_cv_type_struct_utmp_ut_user=yes
32169else
32170  echo "$as_me: failed program was:" >&5
32171cat conftest.$ac_ext >&5
32172ac_cv_type_struct_utmp_ut_user=no
32173fi
32174rm -f conftest.$ac_objext conftest.$ac_ext
32175fi
32176echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
32177echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
32178if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
32179
32180
32181cat >>confdefs.h <<\_ACEOF
32182#define HAVE_STRUCT_UTMP_UT_USER 1
32183_ACEOF
32184
32185
32186fi
32187
32188
32189
32190
32191echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
32192echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
32193if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
32194  echo $ECHO_N "(cached) $ECHO_C" >&6
32195else
32196
32197cat >conftest.$ac_ext <<_ACEOF
32198#line $LINENO "configure"
32199#include "confdefs.h"
32200#include <utmpx.h>
32201#ifdef F77_DUMMY_MAIN
32202#  ifdef __cplusplus
32203     extern "C"
32204#  endif
32205   int F77_DUMMY_MAIN() { return 1; }
32206#endif
32207int
32208main ()
32209{
32210struct utmpx x; x.ut_exit;
32211  ;
32212  return 0;
32213}
32214_ACEOF
32215rm -f conftest.$ac_objext
32216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32217  (eval $ac_compile) 2>&5
32218  ac_status=$?
32219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220  (exit $ac_status); } &&
32221         { ac_try='test -s conftest.$ac_objext'
32222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223  (eval $ac_try) 2>&5
32224  ac_status=$?
32225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226  (exit $ac_status); }; }; then
32227  ac_cv_type_struct_utmpx_ut_exit=yes
32228else
32229  echo "$as_me: failed program was:" >&5
32230cat conftest.$ac_ext >&5
32231ac_cv_type_struct_utmpx_ut_exit=no
32232fi
32233rm -f conftest.$ac_objext conftest.$ac_ext
32234fi
32235echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
32236echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
32237if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
32238
32239
32240cat >>confdefs.h <<\_ACEOF
32241#define HAVE_STRUCT_UTMPX_UT_EXIT 1
32242_ACEOF
32243
32244
32245fi
32246
32247
32248
32249
32250echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
32251echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
32252if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
32253  echo $ECHO_N "(cached) $ECHO_C" >&6
32254else
32255
32256cat >conftest.$ac_ext <<_ACEOF
32257#line $LINENO "configure"
32258#include "confdefs.h"
32259#include <utmpx.h>
32260#ifdef F77_DUMMY_MAIN
32261#  ifdef __cplusplus
32262     extern "C"
32263#  endif
32264   int F77_DUMMY_MAIN() { return 1; }
32265#endif
32266int
32267main ()
32268{
32269struct utmpx x; x.ut_syslen;
32270  ;
32271  return 0;
32272}
32273_ACEOF
32274rm -f conftest.$ac_objext
32275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32276  (eval $ac_compile) 2>&5
32277  ac_status=$?
32278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279  (exit $ac_status); } &&
32280         { ac_try='test -s conftest.$ac_objext'
32281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282  (eval $ac_try) 2>&5
32283  ac_status=$?
32284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285  (exit $ac_status); }; }; then
32286  ac_cv_type_struct_utmpx_ut_syslen=yes
32287else
32288  echo "$as_me: failed program was:" >&5
32289cat conftest.$ac_ext >&5
32290ac_cv_type_struct_utmpx_ut_syslen=no
32291fi
32292rm -f conftest.$ac_objext conftest.$ac_ext
32293fi
32294echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
32295echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
32296if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
32297
32298
32299cat >>confdefs.h <<\_ACEOF
32300#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
32301_ACEOF
32302
32303
32304fi
32305
32306
32307
32308echo "$as_me:$LINENO: checking for int8_t" >&5
32309echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
32310if test "${ac_cv_type_int8_t+set}" = set; then
32311  echo $ECHO_N "(cached) $ECHO_C" >&6
32312else
32313  cat >conftest.$ac_ext <<_ACEOF
32314#line $LINENO "configure"
32315#include "confdefs.h"
32316
32317#ifdef HAVE_INTTYPES_H
32318#include <inttypes.h>
32319#endif
32320#ifdef HAVE_SYS_TYPES_H
32321#include <sys/types.h>
32322#endif
32323#ifdef HAVE_SYS_BITYPES_H
32324#include <sys/bitypes.h>
32325#endif
32326#ifdef HAVE_BIND_BITYPES_H
32327#include <bind/bitypes.h>
32328#endif
32329#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32330#include <netinet/in6_machtypes.h>
32331#endif
32332
32333
32334#ifdef F77_DUMMY_MAIN
32335#  ifdef __cplusplus
32336     extern "C"
32337#  endif
32338   int F77_DUMMY_MAIN() { return 1; }
32339#endif
32340int
32341main ()
32342{
32343if ((int8_t *) 0)
32344  return 0;
32345if (sizeof (int8_t))
32346  return 0;
32347  ;
32348  return 0;
32349}
32350_ACEOF
32351rm -f conftest.$ac_objext
32352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32353  (eval $ac_compile) 2>&5
32354  ac_status=$?
32355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356  (exit $ac_status); } &&
32357         { ac_try='test -s conftest.$ac_objext'
32358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359  (eval $ac_try) 2>&5
32360  ac_status=$?
32361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362  (exit $ac_status); }; }; then
32363  ac_cv_type_int8_t=yes
32364else
32365  echo "$as_me: failed program was:" >&5
32366cat conftest.$ac_ext >&5
32367ac_cv_type_int8_t=no
32368fi
32369rm -f conftest.$ac_objext conftest.$ac_ext
32370fi
32371echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
32372echo "${ECHO_T}$ac_cv_type_int8_t" >&6
32373if test $ac_cv_type_int8_t = yes; then
32374
32375cat >>confdefs.h <<_ACEOF
32376#define HAVE_INT8_T 1
32377_ACEOF
32378
32379
32380fi
32381echo "$as_me:$LINENO: checking for int16_t" >&5
32382echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
32383if test "${ac_cv_type_int16_t+set}" = set; then
32384  echo $ECHO_N "(cached) $ECHO_C" >&6
32385else
32386  cat >conftest.$ac_ext <<_ACEOF
32387#line $LINENO "configure"
32388#include "confdefs.h"
32389
32390#ifdef HAVE_INTTYPES_H
32391#include <inttypes.h>
32392#endif
32393#ifdef HAVE_SYS_TYPES_H
32394#include <sys/types.h>
32395#endif
32396#ifdef HAVE_SYS_BITYPES_H
32397#include <sys/bitypes.h>
32398#endif
32399#ifdef HAVE_BIND_BITYPES_H
32400#include <bind/bitypes.h>
32401#endif
32402#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32403#include <netinet/in6_machtypes.h>
32404#endif
32405
32406
32407#ifdef F77_DUMMY_MAIN
32408#  ifdef __cplusplus
32409     extern "C"
32410#  endif
32411   int F77_DUMMY_MAIN() { return 1; }
32412#endif
32413int
32414main ()
32415{
32416if ((int16_t *) 0)
32417  return 0;
32418if (sizeof (int16_t))
32419  return 0;
32420  ;
32421  return 0;
32422}
32423_ACEOF
32424rm -f conftest.$ac_objext
32425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32426  (eval $ac_compile) 2>&5
32427  ac_status=$?
32428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429  (exit $ac_status); } &&
32430         { ac_try='test -s conftest.$ac_objext'
32431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32432  (eval $ac_try) 2>&5
32433  ac_status=$?
32434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435  (exit $ac_status); }; }; then
32436  ac_cv_type_int16_t=yes
32437else
32438  echo "$as_me: failed program was:" >&5
32439cat conftest.$ac_ext >&5
32440ac_cv_type_int16_t=no
32441fi
32442rm -f conftest.$ac_objext conftest.$ac_ext
32443fi
32444echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
32445echo "${ECHO_T}$ac_cv_type_int16_t" >&6
32446if test $ac_cv_type_int16_t = yes; then
32447
32448cat >>confdefs.h <<_ACEOF
32449#define HAVE_INT16_T 1
32450_ACEOF
32451
32452
32453fi
32454echo "$as_me:$LINENO: checking for int32_t" >&5
32455echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
32456if test "${ac_cv_type_int32_t+set}" = set; then
32457  echo $ECHO_N "(cached) $ECHO_C" >&6
32458else
32459  cat >conftest.$ac_ext <<_ACEOF
32460#line $LINENO "configure"
32461#include "confdefs.h"
32462
32463#ifdef HAVE_INTTYPES_H
32464#include <inttypes.h>
32465#endif
32466#ifdef HAVE_SYS_TYPES_H
32467#include <sys/types.h>
32468#endif
32469#ifdef HAVE_SYS_BITYPES_H
32470#include <sys/bitypes.h>
32471#endif
32472#ifdef HAVE_BIND_BITYPES_H
32473#include <bind/bitypes.h>
32474#endif
32475#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32476#include <netinet/in6_machtypes.h>
32477#endif
32478
32479
32480#ifdef F77_DUMMY_MAIN
32481#  ifdef __cplusplus
32482     extern "C"
32483#  endif
32484   int F77_DUMMY_MAIN() { return 1; }
32485#endif
32486int
32487main ()
32488{
32489if ((int32_t *) 0)
32490  return 0;
32491if (sizeof (int32_t))
32492  return 0;
32493  ;
32494  return 0;
32495}
32496_ACEOF
32497rm -f conftest.$ac_objext
32498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32499  (eval $ac_compile) 2>&5
32500  ac_status=$?
32501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502  (exit $ac_status); } &&
32503         { ac_try='test -s conftest.$ac_objext'
32504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505  (eval $ac_try) 2>&5
32506  ac_status=$?
32507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508  (exit $ac_status); }; }; then
32509  ac_cv_type_int32_t=yes
32510else
32511  echo "$as_me: failed program was:" >&5
32512cat conftest.$ac_ext >&5
32513ac_cv_type_int32_t=no
32514fi
32515rm -f conftest.$ac_objext conftest.$ac_ext
32516fi
32517echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
32518echo "${ECHO_T}$ac_cv_type_int32_t" >&6
32519if test $ac_cv_type_int32_t = yes; then
32520
32521cat >>confdefs.h <<_ACEOF
32522#define HAVE_INT32_T 1
32523_ACEOF
32524
32525
32526fi
32527echo "$as_me:$LINENO: checking for int64_t" >&5
32528echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
32529if test "${ac_cv_type_int64_t+set}" = set; then
32530  echo $ECHO_N "(cached) $ECHO_C" >&6
32531else
32532  cat >conftest.$ac_ext <<_ACEOF
32533#line $LINENO "configure"
32534#include "confdefs.h"
32535
32536#ifdef HAVE_INTTYPES_H
32537#include <inttypes.h>
32538#endif
32539#ifdef HAVE_SYS_TYPES_H
32540#include <sys/types.h>
32541#endif
32542#ifdef HAVE_SYS_BITYPES_H
32543#include <sys/bitypes.h>
32544#endif
32545#ifdef HAVE_BIND_BITYPES_H
32546#include <bind/bitypes.h>
32547#endif
32548#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32549#include <netinet/in6_machtypes.h>
32550#endif
32551
32552
32553#ifdef F77_DUMMY_MAIN
32554#  ifdef __cplusplus
32555     extern "C"
32556#  endif
32557   int F77_DUMMY_MAIN() { return 1; }
32558#endif
32559int
32560main ()
32561{
32562if ((int64_t *) 0)
32563  return 0;
32564if (sizeof (int64_t))
32565  return 0;
32566  ;
32567  return 0;
32568}
32569_ACEOF
32570rm -f conftest.$ac_objext
32571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32572  (eval $ac_compile) 2>&5
32573  ac_status=$?
32574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32575  (exit $ac_status); } &&
32576         { ac_try='test -s conftest.$ac_objext'
32577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32578  (eval $ac_try) 2>&5
32579  ac_status=$?
32580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581  (exit $ac_status); }; }; then
32582  ac_cv_type_int64_t=yes
32583else
32584  echo "$as_me: failed program was:" >&5
32585cat conftest.$ac_ext >&5
32586ac_cv_type_int64_t=no
32587fi
32588rm -f conftest.$ac_objext conftest.$ac_ext
32589fi
32590echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
32591echo "${ECHO_T}$ac_cv_type_int64_t" >&6
32592if test $ac_cv_type_int64_t = yes; then
32593
32594cat >>confdefs.h <<_ACEOF
32595#define HAVE_INT64_T 1
32596_ACEOF
32597
32598
32599fi
32600echo "$as_me:$LINENO: checking for u_int8_t" >&5
32601echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
32602if test "${ac_cv_type_u_int8_t+set}" = set; then
32603  echo $ECHO_N "(cached) $ECHO_C" >&6
32604else
32605  cat >conftest.$ac_ext <<_ACEOF
32606#line $LINENO "configure"
32607#include "confdefs.h"
32608
32609#ifdef HAVE_INTTYPES_H
32610#include <inttypes.h>
32611#endif
32612#ifdef HAVE_SYS_TYPES_H
32613#include <sys/types.h>
32614#endif
32615#ifdef HAVE_SYS_BITYPES_H
32616#include <sys/bitypes.h>
32617#endif
32618#ifdef HAVE_BIND_BITYPES_H
32619#include <bind/bitypes.h>
32620#endif
32621#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32622#include <netinet/in6_machtypes.h>
32623#endif
32624
32625
32626#ifdef F77_DUMMY_MAIN
32627#  ifdef __cplusplus
32628     extern "C"
32629#  endif
32630   int F77_DUMMY_MAIN() { return 1; }
32631#endif
32632int
32633main ()
32634{
32635if ((u_int8_t *) 0)
32636  return 0;
32637if (sizeof (u_int8_t))
32638  return 0;
32639  ;
32640  return 0;
32641}
32642_ACEOF
32643rm -f conftest.$ac_objext
32644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32645  (eval $ac_compile) 2>&5
32646  ac_status=$?
32647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648  (exit $ac_status); } &&
32649         { ac_try='test -s conftest.$ac_objext'
32650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32651  (eval $ac_try) 2>&5
32652  ac_status=$?
32653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654  (exit $ac_status); }; }; then
32655  ac_cv_type_u_int8_t=yes
32656else
32657  echo "$as_me: failed program was:" >&5
32658cat conftest.$ac_ext >&5
32659ac_cv_type_u_int8_t=no
32660fi
32661rm -f conftest.$ac_objext conftest.$ac_ext
32662fi
32663echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
32664echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
32665if test $ac_cv_type_u_int8_t = yes; then
32666
32667cat >>confdefs.h <<_ACEOF
32668#define HAVE_U_INT8_T 1
32669_ACEOF
32670
32671
32672fi
32673echo "$as_me:$LINENO: checking for u_int16_t" >&5
32674echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
32675if test "${ac_cv_type_u_int16_t+set}" = set; then
32676  echo $ECHO_N "(cached) $ECHO_C" >&6
32677else
32678  cat >conftest.$ac_ext <<_ACEOF
32679#line $LINENO "configure"
32680#include "confdefs.h"
32681
32682#ifdef HAVE_INTTYPES_H
32683#include <inttypes.h>
32684#endif
32685#ifdef HAVE_SYS_TYPES_H
32686#include <sys/types.h>
32687#endif
32688#ifdef HAVE_SYS_BITYPES_H
32689#include <sys/bitypes.h>
32690#endif
32691#ifdef HAVE_BIND_BITYPES_H
32692#include <bind/bitypes.h>
32693#endif
32694#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32695#include <netinet/in6_machtypes.h>
32696#endif
32697
32698
32699#ifdef F77_DUMMY_MAIN
32700#  ifdef __cplusplus
32701     extern "C"
32702#  endif
32703   int F77_DUMMY_MAIN() { return 1; }
32704#endif
32705int
32706main ()
32707{
32708if ((u_int16_t *) 0)
32709  return 0;
32710if (sizeof (u_int16_t))
32711  return 0;
32712  ;
32713  return 0;
32714}
32715_ACEOF
32716rm -f conftest.$ac_objext
32717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32718  (eval $ac_compile) 2>&5
32719  ac_status=$?
32720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32721  (exit $ac_status); } &&
32722         { ac_try='test -s conftest.$ac_objext'
32723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724  (eval $ac_try) 2>&5
32725  ac_status=$?
32726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727  (exit $ac_status); }; }; then
32728  ac_cv_type_u_int16_t=yes
32729else
32730  echo "$as_me: failed program was:" >&5
32731cat conftest.$ac_ext >&5
32732ac_cv_type_u_int16_t=no
32733fi
32734rm -f conftest.$ac_objext conftest.$ac_ext
32735fi
32736echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
32737echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
32738if test $ac_cv_type_u_int16_t = yes; then
32739
32740cat >>confdefs.h <<_ACEOF
32741#define HAVE_U_INT16_T 1
32742_ACEOF
32743
32744
32745fi
32746echo "$as_me:$LINENO: checking for u_int32_t" >&5
32747echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
32748if test "${ac_cv_type_u_int32_t+set}" = set; then
32749  echo $ECHO_N "(cached) $ECHO_C" >&6
32750else
32751  cat >conftest.$ac_ext <<_ACEOF
32752#line $LINENO "configure"
32753#include "confdefs.h"
32754
32755#ifdef HAVE_INTTYPES_H
32756#include <inttypes.h>
32757#endif
32758#ifdef HAVE_SYS_TYPES_H
32759#include <sys/types.h>
32760#endif
32761#ifdef HAVE_SYS_BITYPES_H
32762#include <sys/bitypes.h>
32763#endif
32764#ifdef HAVE_BIND_BITYPES_H
32765#include <bind/bitypes.h>
32766#endif
32767#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32768#include <netinet/in6_machtypes.h>
32769#endif
32770
32771
32772#ifdef F77_DUMMY_MAIN
32773#  ifdef __cplusplus
32774     extern "C"
32775#  endif
32776   int F77_DUMMY_MAIN() { return 1; }
32777#endif
32778int
32779main ()
32780{
32781if ((u_int32_t *) 0)
32782  return 0;
32783if (sizeof (u_int32_t))
32784  return 0;
32785  ;
32786  return 0;
32787}
32788_ACEOF
32789rm -f conftest.$ac_objext
32790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32791  (eval $ac_compile) 2>&5
32792  ac_status=$?
32793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794  (exit $ac_status); } &&
32795         { ac_try='test -s conftest.$ac_objext'
32796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797  (eval $ac_try) 2>&5
32798  ac_status=$?
32799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800  (exit $ac_status); }; }; then
32801  ac_cv_type_u_int32_t=yes
32802else
32803  echo "$as_me: failed program was:" >&5
32804cat conftest.$ac_ext >&5
32805ac_cv_type_u_int32_t=no
32806fi
32807rm -f conftest.$ac_objext conftest.$ac_ext
32808fi
32809echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
32810echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
32811if test $ac_cv_type_u_int32_t = yes; then
32812
32813cat >>confdefs.h <<_ACEOF
32814#define HAVE_U_INT32_T 1
32815_ACEOF
32816
32817
32818fi
32819echo "$as_me:$LINENO: checking for u_int64_t" >&5
32820echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
32821if test "${ac_cv_type_u_int64_t+set}" = set; then
32822  echo $ECHO_N "(cached) $ECHO_C" >&6
32823else
32824  cat >conftest.$ac_ext <<_ACEOF
32825#line $LINENO "configure"
32826#include "confdefs.h"
32827
32828#ifdef HAVE_INTTYPES_H
32829#include <inttypes.h>
32830#endif
32831#ifdef HAVE_SYS_TYPES_H
32832#include <sys/types.h>
32833#endif
32834#ifdef HAVE_SYS_BITYPES_H
32835#include <sys/bitypes.h>
32836#endif
32837#ifdef HAVE_BIND_BITYPES_H
32838#include <bind/bitypes.h>
32839#endif
32840#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32841#include <netinet/in6_machtypes.h>
32842#endif
32843
32844
32845#ifdef F77_DUMMY_MAIN
32846#  ifdef __cplusplus
32847     extern "C"
32848#  endif
32849   int F77_DUMMY_MAIN() { return 1; }
32850#endif
32851int
32852main ()
32853{
32854if ((u_int64_t *) 0)
32855  return 0;
32856if (sizeof (u_int64_t))
32857  return 0;
32858  ;
32859  return 0;
32860}
32861_ACEOF
32862rm -f conftest.$ac_objext
32863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32864  (eval $ac_compile) 2>&5
32865  ac_status=$?
32866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867  (exit $ac_status); } &&
32868         { ac_try='test -s conftest.$ac_objext'
32869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870  (eval $ac_try) 2>&5
32871  ac_status=$?
32872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873  (exit $ac_status); }; }; then
32874  ac_cv_type_u_int64_t=yes
32875else
32876  echo "$as_me: failed program was:" >&5
32877cat conftest.$ac_ext >&5
32878ac_cv_type_u_int64_t=no
32879fi
32880rm -f conftest.$ac_objext conftest.$ac_ext
32881fi
32882echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
32883echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
32884if test $ac_cv_type_u_int64_t = yes; then
32885
32886cat >>confdefs.h <<_ACEOF
32887#define HAVE_U_INT64_T 1
32888_ACEOF
32889
32890
32891fi
32892echo "$as_me:$LINENO: checking for uint8_t" >&5
32893echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
32894if test "${ac_cv_type_uint8_t+set}" = set; then
32895  echo $ECHO_N "(cached) $ECHO_C" >&6
32896else
32897  cat >conftest.$ac_ext <<_ACEOF
32898#line $LINENO "configure"
32899#include "confdefs.h"
32900
32901#ifdef HAVE_INTTYPES_H
32902#include <inttypes.h>
32903#endif
32904#ifdef HAVE_SYS_TYPES_H
32905#include <sys/types.h>
32906#endif
32907#ifdef HAVE_SYS_BITYPES_H
32908#include <sys/bitypes.h>
32909#endif
32910#ifdef HAVE_BIND_BITYPES_H
32911#include <bind/bitypes.h>
32912#endif
32913#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32914#include <netinet/in6_machtypes.h>
32915#endif
32916
32917
32918#ifdef F77_DUMMY_MAIN
32919#  ifdef __cplusplus
32920     extern "C"
32921#  endif
32922   int F77_DUMMY_MAIN() { return 1; }
32923#endif
32924int
32925main ()
32926{
32927if ((uint8_t *) 0)
32928  return 0;
32929if (sizeof (uint8_t))
32930  return 0;
32931  ;
32932  return 0;
32933}
32934_ACEOF
32935rm -f conftest.$ac_objext
32936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32937  (eval $ac_compile) 2>&5
32938  ac_status=$?
32939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32940  (exit $ac_status); } &&
32941         { ac_try='test -s conftest.$ac_objext'
32942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943  (eval $ac_try) 2>&5
32944  ac_status=$?
32945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946  (exit $ac_status); }; }; then
32947  ac_cv_type_uint8_t=yes
32948else
32949  echo "$as_me: failed program was:" >&5
32950cat conftest.$ac_ext >&5
32951ac_cv_type_uint8_t=no
32952fi
32953rm -f conftest.$ac_objext conftest.$ac_ext
32954fi
32955echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
32956echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
32957if test $ac_cv_type_uint8_t = yes; then
32958
32959cat >>confdefs.h <<_ACEOF
32960#define HAVE_UINT8_T 1
32961_ACEOF
32962
32963
32964fi
32965echo "$as_me:$LINENO: checking for uint16_t" >&5
32966echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
32967if test "${ac_cv_type_uint16_t+set}" = set; then
32968  echo $ECHO_N "(cached) $ECHO_C" >&6
32969else
32970  cat >conftest.$ac_ext <<_ACEOF
32971#line $LINENO "configure"
32972#include "confdefs.h"
32973
32974#ifdef HAVE_INTTYPES_H
32975#include <inttypes.h>
32976#endif
32977#ifdef HAVE_SYS_TYPES_H
32978#include <sys/types.h>
32979#endif
32980#ifdef HAVE_SYS_BITYPES_H
32981#include <sys/bitypes.h>
32982#endif
32983#ifdef HAVE_BIND_BITYPES_H
32984#include <bind/bitypes.h>
32985#endif
32986#ifdef HAVE_NETINET_IN6_MACHTYPES_H
32987#include <netinet/in6_machtypes.h>
32988#endif
32989
32990
32991#ifdef F77_DUMMY_MAIN
32992#  ifdef __cplusplus
32993     extern "C"
32994#  endif
32995   int F77_DUMMY_MAIN() { return 1; }
32996#endif
32997int
32998main ()
32999{
33000if ((uint16_t *) 0)
33001  return 0;
33002if (sizeof (uint16_t))
33003  return 0;
33004  ;
33005  return 0;
33006}
33007_ACEOF
33008rm -f conftest.$ac_objext
33009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33010  (eval $ac_compile) 2>&5
33011  ac_status=$?
33012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013  (exit $ac_status); } &&
33014         { ac_try='test -s conftest.$ac_objext'
33015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016  (eval $ac_try) 2>&5
33017  ac_status=$?
33018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019  (exit $ac_status); }; }; then
33020  ac_cv_type_uint16_t=yes
33021else
33022  echo "$as_me: failed program was:" >&5
33023cat conftest.$ac_ext >&5
33024ac_cv_type_uint16_t=no
33025fi
33026rm -f conftest.$ac_objext conftest.$ac_ext
33027fi
33028echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
33029echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
33030if test $ac_cv_type_uint16_t = yes; then
33031
33032cat >>confdefs.h <<_ACEOF
33033#define HAVE_UINT16_T 1
33034_ACEOF
33035
33036
33037fi
33038echo "$as_me:$LINENO: checking for uint32_t" >&5
33039echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
33040if test "${ac_cv_type_uint32_t+set}" = set; then
33041  echo $ECHO_N "(cached) $ECHO_C" >&6
33042else
33043  cat >conftest.$ac_ext <<_ACEOF
33044#line $LINENO "configure"
33045#include "confdefs.h"
33046
33047#ifdef HAVE_INTTYPES_H
33048#include <inttypes.h>
33049#endif
33050#ifdef HAVE_SYS_TYPES_H
33051#include <sys/types.h>
33052#endif
33053#ifdef HAVE_SYS_BITYPES_H
33054#include <sys/bitypes.h>
33055#endif
33056#ifdef HAVE_BIND_BITYPES_H
33057#include <bind/bitypes.h>
33058#endif
33059#ifdef HAVE_NETINET_IN6_MACHTYPES_H
33060#include <netinet/in6_machtypes.h>
33061#endif
33062
33063
33064#ifdef F77_DUMMY_MAIN
33065#  ifdef __cplusplus
33066     extern "C"
33067#  endif
33068   int F77_DUMMY_MAIN() { return 1; }
33069#endif
33070int
33071main ()
33072{
33073if ((uint32_t *) 0)
33074  return 0;
33075if (sizeof (uint32_t))
33076  return 0;
33077  ;
33078  return 0;
33079}
33080_ACEOF
33081rm -f conftest.$ac_objext
33082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33083  (eval $ac_compile) 2>&5
33084  ac_status=$?
33085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086  (exit $ac_status); } &&
33087         { ac_try='test -s conftest.$ac_objext'
33088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33089  (eval $ac_try) 2>&5
33090  ac_status=$?
33091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092  (exit $ac_status); }; }; then
33093  ac_cv_type_uint32_t=yes
33094else
33095  echo "$as_me: failed program was:" >&5
33096cat conftest.$ac_ext >&5
33097ac_cv_type_uint32_t=no
33098fi
33099rm -f conftest.$ac_objext conftest.$ac_ext
33100fi
33101echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
33102echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
33103if test $ac_cv_type_uint32_t = yes; then
33104
33105cat >>confdefs.h <<_ACEOF
33106#define HAVE_UINT32_T 1
33107_ACEOF
33108
33109
33110fi
33111echo "$as_me:$LINENO: checking for uint64_t" >&5
33112echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
33113if test "${ac_cv_type_uint64_t+set}" = set; then
33114  echo $ECHO_N "(cached) $ECHO_C" >&6
33115else
33116  cat >conftest.$ac_ext <<_ACEOF
33117#line $LINENO "configure"
33118#include "confdefs.h"
33119
33120#ifdef HAVE_INTTYPES_H
33121#include <inttypes.h>
33122#endif
33123#ifdef HAVE_SYS_TYPES_H
33124#include <sys/types.h>
33125#endif
33126#ifdef HAVE_SYS_BITYPES_H
33127#include <sys/bitypes.h>
33128#endif
33129#ifdef HAVE_BIND_BITYPES_H
33130#include <bind/bitypes.h>
33131#endif
33132#ifdef HAVE_NETINET_IN6_MACHTYPES_H
33133#include <netinet/in6_machtypes.h>
33134#endif
33135
33136
33137#ifdef F77_DUMMY_MAIN
33138#  ifdef __cplusplus
33139     extern "C"
33140#  endif
33141   int F77_DUMMY_MAIN() { return 1; }
33142#endif
33143int
33144main ()
33145{
33146if ((uint64_t *) 0)
33147  return 0;
33148if (sizeof (uint64_t))
33149  return 0;
33150  ;
33151  return 0;
33152}
33153_ACEOF
33154rm -f conftest.$ac_objext
33155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33156  (eval $ac_compile) 2>&5
33157  ac_status=$?
33158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159  (exit $ac_status); } &&
33160         { ac_try='test -s conftest.$ac_objext'
33161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162  (eval $ac_try) 2>&5
33163  ac_status=$?
33164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165  (exit $ac_status); }; }; then
33166  ac_cv_type_uint64_t=yes
33167else
33168  echo "$as_me: failed program was:" >&5
33169cat conftest.$ac_ext >&5
33170ac_cv_type_uint64_t=no
33171fi
33172rm -f conftest.$ac_objext conftest.$ac_ext
33173fi
33174echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
33175echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
33176if test $ac_cv_type_uint64_t = yes; then
33177
33178cat >>confdefs.h <<_ACEOF
33179#define HAVE_UINT64_T 1
33180_ACEOF
33181
33182
33183fi
33184
33185
33186
33187crypto_lib=unknown
33188
33189
33190# Check whether --with-openssl or --without-openssl was given.
33191if test "${with_openssl+set}" = set; then
33192  withval="$with_openssl"
33193
33194fi;
33195
33196
33197# Check whether --with-openssl-lib or --without-openssl-lib was given.
33198if test "${with_openssl_lib+set}" = set; then
33199  withval="$with_openssl_lib"
33200  if test "$withval" = "yes" -o "$withval" = "no"; then
33201  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
33202echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
33203   { (exit 1); exit 1; }; }
33204elif test "X$with_openssl" = "X"; then
33205  with_openssl=yes
33206fi
33207fi;
33208
33209
33210# Check whether --with-openssl-include or --without-openssl-include was given.
33211if test "${with_openssl_include+set}" = set; then
33212  withval="$with_openssl_include"
33213  if test "$withval" = "yes" -o "$withval" = "no"; then
33214  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
33215echo "$as_me: error: No argument for --with-openssl-include" >&2;}
33216   { (exit 1); exit 1; }; }
33217elif test "X$with_openssl" = "X"; then
33218  with_openssl=yes
33219fi
33220fi;
33221
33222case "$with_openssl" in
33223yes)	;;
33224no)	;;
33225"")	;;
33226*)	if test "$with_openssl_include" = ""; then
33227		with_openssl_include="$with_openssl/include"
33228	fi
33229	if test "$with_openssl_lib" = ""; then
33230		with_openssl_lib="$with_openssl/lib$abilibdirext"
33231	fi
33232	;;
33233esac
33234
33235
33236DIR_des=
33237
33238echo "$as_me:$LINENO: checking for crypto library" >&5
33239echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
33240
33241openssl=no
33242if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
33243
33244  save_CPPFLAGS="$CPPFLAGS"
33245  save_LIBS="$LIBS"
33246  INCLUDE_des=
33247  LIB_des=
33248  if test "$with_openssl_include" != ""; then
33249    INCLUDE_des="-I${with_openssl}/include"
33250  fi
33251  if test "$with_openssl_lib" != ""; then
33252    LIB_des="-L${with_openssl}/lib"
33253  fi
33254  CPPFLAGS="${INCLUDE_des} ${CPPFLAGS}"
33255  LIB_des="${LIB_des} -lcrypto"
33256  LIB_des_a="$LIB_des"
33257  LIB_des_so="$LIB_des"
33258  LIB_des_appl="$LIB_des"
33259  LIBS="${LIBS} ${LIB_des}"
33260  cat >conftest.$ac_ext <<_ACEOF
33261#line $LINENO "configure"
33262#include "confdefs.h"
33263
33264  #include <openssl/md4.h>
33265  #include <openssl/md5.h>
33266  #include <openssl/sha.h>
33267  #include <openssl/des.h>
33268  #include <openssl/rc4.h>
33269
33270#ifdef F77_DUMMY_MAIN
33271#  ifdef __cplusplus
33272     extern "C"
33273#  endif
33274   int F77_DUMMY_MAIN() { return 1; }
33275#endif
33276int
33277main ()
33278{
33279
33280    void *schedule = 0;
33281    MD4_CTX md4;
33282    MD5_CTX md5;
33283    SHA_CTX sha1;
33284
33285    MD4_Init(&md4);
33286    MD5_Init(&md5);
33287    SHA1_Init(&sha1);
33288
33289    des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
33290    RC4(0, 0, 0, 0);
33291
33292  ;
33293  return 0;
33294}
33295_ACEOF
33296rm -f conftest.$ac_objext conftest$ac_exeext
33297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33298  (eval $ac_link) 2>&5
33299  ac_status=$?
33300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301  (exit $ac_status); } &&
33302         { ac_try='test -s conftest$ac_exeext'
33303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304  (eval $ac_try) 2>&5
33305  ac_status=$?
33306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307  (exit $ac_status); }; }; then
33308
33309  crypto_lib=libcrypto openssl=yes
33310  echo "$as_me:$LINENO: result: libcrypto" >&5
33311echo "${ECHO_T}libcrypto" >&6
33312else
33313  echo "$as_me: failed program was:" >&5
33314cat conftest.$ac_ext >&5
33315fi
33316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33317  CPPFLAGS="$save_CPPFLAGS"
33318  LIBS="$save_LIBS"
33319fi
33320
33321if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
33322	save_CPPFLAGS="$CPPFLAGS"
33323	save_LIBS="$LIBS"
33324
33325	cdirs= clibs=
33326	for i in $LIB_krb4; do
33327		case "$i" in
33328		-L*) cdirs="$cdirs $i";;
33329		-l*) clibs="$clibs $i";;
33330		esac
33331	done
33332
33333	ires=
33334	for i in $INCLUDE_krb4; do
33335		CFLAGS="$i $save_CFLAGS"
33336		cat >conftest.$ac_ext <<_ACEOF
33337#line $LINENO "configure"
33338#include "confdefs.h"
33339
33340			#undef KRB5 /* makes md4.h et al unhappy */
33341			#define KRB4
33342			#include <openssl/md4.h>
33343			#include <openssl/md5.h>
33344			#include <openssl/sha.h>
33345			#include <openssl/des.h>
33346			#include <openssl/rc4.h>
33347
33348#ifdef F77_DUMMY_MAIN
33349#  ifdef __cplusplus
33350     extern "C"
33351#  endif
33352   int F77_DUMMY_MAIN() { return 1; }
33353#endif
33354int
33355main ()
33356{
33357
33358			MD4_CTX md4;
33359			MD5_CTX md5;
33360			SHA_CTX sha1;
33361
33362			MD4_Init(&md4);
33363			MD5_Init(&md5);
33364			SHA1_Init(&sha1);
33365
33366			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33367			RC4(0, 0, 0, 0);
33368  ;
33369  return 0;
33370}
33371_ACEOF
33372rm -f conftest.$ac_objext
33373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33374  (eval $ac_compile) 2>&5
33375  ac_status=$?
33376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377  (exit $ac_status); } &&
33378         { ac_try='test -s conftest.$ac_objext'
33379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380  (eval $ac_try) 2>&5
33381  ac_status=$?
33382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383  (exit $ac_status); }; }; then
33384  openssl=yes ires="$i"; break
33385else
33386  echo "$as_me: failed program was:" >&5
33387cat conftest.$ac_ext >&5
33388fi
33389rm -f conftest.$ac_objext conftest.$ac_ext
33390		cat >conftest.$ac_ext <<_ACEOF
33391#line $LINENO "configure"
33392#include "confdefs.h"
33393
33394			#undef KRB5 /* makes md4.h et al unhappy */
33395			#define KRB4
33396			#include <md4.h>
33397			#include <md5.h>
33398			#include <sha.h>
33399			#include <des.h>
33400			#include <rc4.h>
33401
33402#ifdef F77_DUMMY_MAIN
33403#  ifdef __cplusplus
33404     extern "C"
33405#  endif
33406   int F77_DUMMY_MAIN() { return 1; }
33407#endif
33408int
33409main ()
33410{
33411
33412			MD4_CTX md4;
33413			MD5_CTX md5;
33414			SHA_CTX sha1;
33415
33416			MD4_Init(&md4);
33417			MD5_Init(&md5);
33418			SHA1_Init(&sha1);
33419
33420			des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33421			RC4(0, 0, 0, 0);
33422  ;
33423  return 0;
33424}
33425_ACEOF
33426rm -f conftest.$ac_objext
33427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33428  (eval $ac_compile) 2>&5
33429  ac_status=$?
33430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431  (exit $ac_status); } &&
33432         { ac_try='test -s conftest.$ac_objext'
33433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434  (eval $ac_try) 2>&5
33435  ac_status=$?
33436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437  (exit $ac_status); }; }; then
33438  ires="$i"; break
33439else
33440  echo "$as_me: failed program was:" >&5
33441cat conftest.$ac_ext >&5
33442fi
33443rm -f conftest.$ac_objext conftest.$ac_ext
33444	done
33445	lres=
33446	for i in $cdirs; do
33447		for j in $clibs; do
33448			LIBS="$i $j $save_LIBS"
33449			if test "$openssl" = yes; then
33450			cat >conftest.$ac_ext <<_ACEOF
33451#line $LINENO "configure"
33452#include "confdefs.h"
33453
33454				#undef KRB5 /* makes md4.h et al unhappy */
33455				#define KRB4
33456				#include <openssl/md4.h>
33457				#include <openssl/md5.h>
33458				#include <openssl/sha.h>
33459				#include <openssl/des.h>
33460				#include <openssl/rc4.h>
33461
33462#ifdef F77_DUMMY_MAIN
33463#  ifdef __cplusplus
33464     extern "C"
33465#  endif
33466   int F77_DUMMY_MAIN() { return 1; }
33467#endif
33468int
33469main ()
33470{
33471
33472				MD4_CTX md4;
33473				MD5_CTX md5;
33474				SHA_CTX sha1;
33475
33476				MD4_Init(&md4);
33477				MD5_Init(&md5);
33478				SHA1_Init(&sha1);
33479
33480				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33481				RC4(0, 0, 0, 0);
33482  ;
33483  return 0;
33484}
33485_ACEOF
33486rm -f conftest.$ac_objext conftest$ac_exeext
33487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33488  (eval $ac_link) 2>&5
33489  ac_status=$?
33490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491  (exit $ac_status); } &&
33492         { ac_try='test -s conftest$ac_exeext'
33493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494  (eval $ac_try) 2>&5
33495  ac_status=$?
33496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497  (exit $ac_status); }; }; then
33498  lres="$i $j"; break 2
33499else
33500  echo "$as_me: failed program was:" >&5
33501cat conftest.$ac_ext >&5
33502fi
33503rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33504			else
33505			cat >conftest.$ac_ext <<_ACEOF
33506#line $LINENO "configure"
33507#include "confdefs.h"
33508
33509				#undef KRB5 /* makes md4.h et al unhappy */
33510				#define KRB4
33511				#include <md4.h>
33512				#include <md5.h>
33513				#include <sha.h>
33514				#include <des.h>
33515				#include <rc4.h>
33516
33517#ifdef F77_DUMMY_MAIN
33518#  ifdef __cplusplus
33519     extern "C"
33520#  endif
33521   int F77_DUMMY_MAIN() { return 1; }
33522#endif
33523int
33524main ()
33525{
33526
33527				MD4_CTX md4;
33528				MD5_CTX md5;
33529				SHA_CTX sha1;
33530
33531				MD4_Init(&md4);
33532				MD5_Init(&md5);
33533				SHA1_Init(&sha1);
33534
33535				des_cbc_encrypt(0, 0, 0, 0, 0, 0);
33536				RC4(0, 0, 0, 0);
33537  ;
33538  return 0;
33539}
33540_ACEOF
33541rm -f conftest.$ac_objext conftest$ac_exeext
33542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33543  (eval $ac_link) 2>&5
33544  ac_status=$?
33545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546  (exit $ac_status); } &&
33547         { ac_try='test -s conftest$ac_exeext'
33548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33549  (eval $ac_try) 2>&5
33550  ac_status=$?
33551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552  (exit $ac_status); }; }; then
33553  lres="$i $j"; break 2
33554else
33555  echo "$as_me: failed program was:" >&5
33556cat conftest.$ac_ext >&5
33557fi
33558rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33559			fi
33560		done
33561	done
33562	CFLAGS="$save_CFLAGS"
33563	LIBS="$save_LIBS"
33564	if test "$ires" -a "$lres"; then
33565		INCLUDE_des="$ires"
33566		LIB_des="$lres"
33567		crypto_lib=krb4
33568		echo "$as_me:$LINENO: result: same as krb4" >&5
33569echo "${ECHO_T}same as krb4" >&6
33570		LIB_des_a='$(LIB_des)'
33571		LIB_des_so='$(LIB_des)'
33572		LIB_des_appl='$(LIB_des)'
33573	fi
33574fi
33575
33576if test "$crypto_lib" = "unknown"; then
33577
33578  DIR_des='des'
33579  LIB_des='$(top_builddir)/lib/des/libdes.la'
33580  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
33581  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
33582  LIB_des_appl="-ldes"
33583
33584  echo "$as_me:$LINENO: result: included libdes" >&5
33585echo "${ECHO_T}included libdes" >&6
33586
33587fi
33588
33589if test "$openssl" = "yes"; then
33590
33591cat >>confdefs.h <<\_ACEOF
33592#define HAVE_OPENSSL 1
33593_ACEOF
33594
33595fi
33596
33597
33598if test "$openssl" = yes; then
33599  HAVE_OPENSSL_TRUE=
33600  HAVE_OPENSSL_FALSE='#'
33601else
33602  HAVE_OPENSSL_TRUE='#'
33603  HAVE_OPENSSL_FALSE=
33604fi
33605
33606
33607
33608
33609
33610
33611
33612
33613
33614
33615
33616
33617
33618echo "$as_me:$LINENO: checking for el_init" >&5
33619echo $ECHO_N "checking for el_init... $ECHO_C" >&6
33620if test "${ac_cv_funclib_el_init+set}" = set; then
33621  echo $ECHO_N "(cached) $ECHO_C" >&6
33622else
33623
33624if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
33625	ac_save_LIBS="$LIBS"
33626	for ac_lib in "" edit; do
33627		case "$ac_lib" in
33628		"") ;;
33629		yes) ac_lib="" ;;
33630		no) continue ;;
33631		-l*) ;;
33632		*) ac_lib="-l$ac_lib" ;;
33633		esac
33634		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
33635		cat >conftest.$ac_ext <<_ACEOF
33636#line $LINENO "configure"
33637#include "confdefs.h"
33638
33639#ifdef F77_DUMMY_MAIN
33640#  ifdef __cplusplus
33641     extern "C"
33642#  endif
33643   int F77_DUMMY_MAIN() { return 1; }
33644#endif
33645int
33646main ()
33647{
33648el_init()
33649  ;
33650  return 0;
33651}
33652_ACEOF
33653rm -f conftest.$ac_objext conftest$ac_exeext
33654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33655  (eval $ac_link) 2>&5
33656  ac_status=$?
33657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658  (exit $ac_status); } &&
33659         { ac_try='test -s conftest$ac_exeext'
33660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661  (eval $ac_try) 2>&5
33662  ac_status=$?
33663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664  (exit $ac_status); }; }; then
33665  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
33666else
33667  echo "$as_me: failed program was:" >&5
33668cat conftest.$ac_ext >&5
33669fi
33670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33671	done
33672	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
33673	LIBS="$ac_save_LIBS"
33674fi
33675
33676fi
33677
33678
33679eval "ac_res=\$ac_cv_funclib_el_init"
33680
33681if false; then
33682
33683for ac_func in el_init
33684do
33685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33686echo "$as_me:$LINENO: checking for $ac_func" >&5
33687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33688if eval "test \"\${$as_ac_var+set}\" = set"; then
33689  echo $ECHO_N "(cached) $ECHO_C" >&6
33690else
33691  cat >conftest.$ac_ext <<_ACEOF
33692#line $LINENO "configure"
33693#include "confdefs.h"
33694/* System header to define __stub macros and hopefully few prototypes,
33695    which can conflict with char $ac_func (); below.  */
33696#include <assert.h>
33697/* Override any gcc2 internal prototype to avoid an error.  */
33698#ifdef __cplusplus
33699extern "C"
33700#endif
33701/* We use char because int might match the return type of a gcc2
33702   builtin and then its argument prototype would still apply.  */
33703char $ac_func ();
33704char (*f) ();
33705
33706#ifdef F77_DUMMY_MAIN
33707#  ifdef __cplusplus
33708     extern "C"
33709#  endif
33710   int F77_DUMMY_MAIN() { return 1; }
33711#endif
33712int
33713main ()
33714{
33715/* The GNU C library defines this for functions which it implements
33716    to always fail with ENOSYS.  Some functions are actually named
33717    something starting with __ and the normal name is an alias.  */
33718#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33719choke me
33720#else
33721f = $ac_func;
33722#endif
33723
33724  ;
33725  return 0;
33726}
33727_ACEOF
33728rm -f conftest.$ac_objext conftest$ac_exeext
33729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33730  (eval $ac_link) 2>&5
33731  ac_status=$?
33732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733  (exit $ac_status); } &&
33734         { ac_try='test -s conftest$ac_exeext'
33735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736  (eval $ac_try) 2>&5
33737  ac_status=$?
33738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739  (exit $ac_status); }; }; then
33740  eval "$as_ac_var=yes"
33741else
33742  echo "$as_me: failed program was:" >&5
33743cat conftest.$ac_ext >&5
33744eval "$as_ac_var=no"
33745fi
33746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33747fi
33748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33749echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33750if test `eval echo '${'$as_ac_var'}'` = yes; then
33751  cat >>confdefs.h <<_ACEOF
33752#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33753_ACEOF
33754
33755fi
33756done
33757
33758fi
33759# el_init
33760eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33761eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
33762eval "LIB_el_init=$ac_res"
33763
33764case "$ac_res" in
33765	yes)
33766	eval "ac_cv_func_el_init=yes"
33767	eval "LIB_el_init="
33768	cat >>confdefs.h <<_ACEOF
33769#define $ac_tr_func 1
33770_ACEOF
33771
33772	echo "$as_me:$LINENO: result: yes" >&5
33773echo "${ECHO_T}yes" >&6
33774	;;
33775	no)
33776	eval "ac_cv_func_el_init=no"
33777	eval "LIB_el_init="
33778	echo "$as_me:$LINENO: result: no" >&5
33779echo "${ECHO_T}no" >&6
33780	;;
33781	*)
33782	eval "ac_cv_func_el_init=yes"
33783	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
33784	cat >>confdefs.h <<_ACEOF
33785#define $ac_tr_func 1
33786_ACEOF
33787
33788	cat >>confdefs.h <<_ACEOF
33789#define $ac_tr_lib 1
33790_ACEOF
33791
33792	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
33793echo "${ECHO_T}yes, in $ac_res" >&6
33794	;;
33795esac
33796
33797
33798if test "$ac_cv_func_el_init" = yes ; then
33799	echo "$as_me:$LINENO: checking for four argument el_init" >&5
33800echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
33801if test "${ac_cv_func_el_init_four+set}" = set; then
33802  echo $ECHO_N "(cached) $ECHO_C" >&6
33803else
33804
33805		cat >conftest.$ac_ext <<_ACEOF
33806#line $LINENO "configure"
33807#include "confdefs.h"
33808#include <stdio.h>
33809			#include <histedit.h>
33810#ifdef F77_DUMMY_MAIN
33811#  ifdef __cplusplus
33812     extern "C"
33813#  endif
33814   int F77_DUMMY_MAIN() { return 1; }
33815#endif
33816int
33817main ()
33818{
33819el_init("", NULL, NULL, NULL);
33820  ;
33821  return 0;
33822}
33823_ACEOF
33824rm -f conftest.$ac_objext
33825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33826  (eval $ac_compile) 2>&5
33827  ac_status=$?
33828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829  (exit $ac_status); } &&
33830         { ac_try='test -s conftest.$ac_objext'
33831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33832  (eval $ac_try) 2>&5
33833  ac_status=$?
33834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835  (exit $ac_status); }; }; then
33836  ac_cv_func_el_init_four=yes
33837else
33838  echo "$as_me: failed program was:" >&5
33839cat conftest.$ac_ext >&5
33840ac_cv_func_el_init_four=no
33841fi
33842rm -f conftest.$ac_objext conftest.$ac_ext
33843fi
33844echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
33845echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
33846	if test "$ac_cv_func_el_init_four" = yes; then
33847
33848cat >>confdefs.h <<\_ACEOF
33849#define HAVE_FOUR_VALUED_EL_INIT 1
33850_ACEOF
33851
33852	fi
33853fi
33854
33855
33856ac_foo=no
33857if test "$with_readline" = yes; then
33858	:
33859elif test "$ac_cv_func_readline" = yes; then
33860	:
33861elif test "$ac_cv_func_el_init" = yes; then
33862	ac_foo=yes
33863	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
33864else
33865	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
33866fi
33867
33868
33869if test "$ac_foo" = yes; then
33870  el_compat_TRUE=
33871  el_compat_FALSE='#'
33872else
33873  el_compat_TRUE='#'
33874  el_compat_FALSE=
33875fi
33876
33877
33878cat >>confdefs.h <<\_ACEOF
33879#define HAVE_READLINE 1
33880_ACEOF
33881
33882
33883
33884
33885
33886cat >>confdefs.h <<\_ACEOF
33887#define AUTHENTICATION 1
33888_ACEOF
33889
33890cat >>confdefs.h <<\_ACEOF
33891#define ENCRYPTION 1
33892_ACEOF
33893
33894cat >>confdefs.h <<\_ACEOF
33895#define DES_ENCRYPTION 1
33896_ACEOF
33897
33898cat >>confdefs.h <<\_ACEOF
33899#define DIAGNOSTICS 1
33900_ACEOF
33901
33902cat >>confdefs.h <<\_ACEOF
33903#define OLD_ENVIRON 1
33904_ACEOF
33905if false; then
33906
33907cat >>confdefs.h <<\_ACEOF
33908#define ENV_HACK 1
33909_ACEOF
33910
33911fi
33912
33913# Simple test for streamspty, based on the existance of getmsg(), alas
33914# this breaks on SunOS4 which have streams but BSD-like ptys
33915#
33916# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
33917
33918case "$host" in
33919*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
33920	;;
33921*)
33922	echo "$as_me:$LINENO: checking for getmsg" >&5
33923echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
33924if test "${ac_cv_func_getmsg+set}" = set; then
33925  echo $ECHO_N "(cached) $ECHO_C" >&6
33926else
33927  cat >conftest.$ac_ext <<_ACEOF
33928#line $LINENO "configure"
33929#include "confdefs.h"
33930/* System header to define __stub macros and hopefully few prototypes,
33931    which can conflict with char getmsg (); below.  */
33932#include <assert.h>
33933/* Override any gcc2 internal prototype to avoid an error.  */
33934#ifdef __cplusplus
33935extern "C"
33936#endif
33937/* We use char because int might match the return type of a gcc2
33938   builtin and then its argument prototype would still apply.  */
33939char getmsg ();
33940char (*f) ();
33941
33942#ifdef F77_DUMMY_MAIN
33943#  ifdef __cplusplus
33944     extern "C"
33945#  endif
33946   int F77_DUMMY_MAIN() { return 1; }
33947#endif
33948int
33949main ()
33950{
33951/* The GNU C library defines this for functions which it implements
33952    to always fail with ENOSYS.  Some functions are actually named
33953    something starting with __ and the normal name is an alias.  */
33954#if defined (__stub_getmsg) || defined (__stub___getmsg)
33955choke me
33956#else
33957f = getmsg;
33958#endif
33959
33960  ;
33961  return 0;
33962}
33963_ACEOF
33964rm -f conftest.$ac_objext conftest$ac_exeext
33965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33966  (eval $ac_link) 2>&5
33967  ac_status=$?
33968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969  (exit $ac_status); } &&
33970         { ac_try='test -s conftest$ac_exeext'
33971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33972  (eval $ac_try) 2>&5
33973  ac_status=$?
33974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975  (exit $ac_status); }; }; then
33976  ac_cv_func_getmsg=yes
33977else
33978  echo "$as_me: failed program was:" >&5
33979cat conftest.$ac_ext >&5
33980ac_cv_func_getmsg=no
33981fi
33982rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33983fi
33984echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
33985echo "${ECHO_T}$ac_cv_func_getmsg" >&6
33986
33987	if test "$ac_cv_func_getmsg" = "yes"; then
33988		echo "$as_me:$LINENO: checking if getmsg works" >&5
33989echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
33990if test "${ac_cv_func_getmsg_works+set}" = set; then
33991  echo $ECHO_N "(cached) $ECHO_C" >&6
33992else
33993  if test "$cross_compiling" = yes; then
33994  ac_cv_func_getmsg_works=no
33995else
33996  cat >conftest.$ac_ext <<_ACEOF
33997#line $LINENO "configure"
33998#include "confdefs.h"
33999
34000			#include <stdio.h>
34001			#include <errno.h>
34002
34003			int main()
34004			{
34005			  int ret;
34006			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
34007			  if(ret < 0 && errno == ENOSYS)
34008			    return 1;
34009			  return 0;
34010			}
34011
34012_ACEOF
34013rm -f conftest$ac_exeext
34014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34015  (eval $ac_link) 2>&5
34016  ac_status=$?
34017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020  (eval $ac_try) 2>&5
34021  ac_status=$?
34022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023  (exit $ac_status); }; }; then
34024  ac_cv_func_getmsg_works=yes
34025else
34026  echo "$as_me: program exited with status $ac_status" >&5
34027echo "$as_me: failed program was:" >&5
34028cat conftest.$ac_ext >&5
34029( exit $ac_status )
34030ac_cv_func_getmsg_works=no
34031fi
34032rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34033fi
34034fi
34035echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
34036echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
34037		if test "$ac_cv_func_getmsg_works" = "yes"; then
34038
34039cat >>confdefs.h <<\_ACEOF
34040#define HAVE_GETMSG 1
34041_ACEOF
34042
34043
34044cat >>confdefs.h <<\_ACEOF
34045#define STREAMSPTY 1
34046_ACEOF
34047
34048		fi
34049	fi
34050	;;
34051esac
34052
34053
34054
34055
34056
34057
34058
34059# Extract the first word of "compile_et", so it can be a program name with args.
34060set dummy compile_et; ac_word=$2
34061echo "$as_me:$LINENO: checking for $ac_word" >&5
34062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34063if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
34064  echo $ECHO_N "(cached) $ECHO_C" >&6
34065else
34066  if test -n "$COMPILE_ET"; then
34067  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
34068else
34069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34070for as_dir in $PATH
34071do
34072  IFS=$as_save_IFS
34073  test -z "$as_dir" && as_dir=.
34074  for ac_exec_ext in '' $ac_executable_extensions; do
34075  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34076    ac_cv_prog_COMPILE_ET="compile_et"
34077    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34078    break 2
34079  fi
34080done
34081done
34082
34083fi
34084fi
34085COMPILE_ET=$ac_cv_prog_COMPILE_ET
34086if test -n "$COMPILE_ET"; then
34087  echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
34088echo "${ECHO_T}$COMPILE_ET" >&6
34089else
34090  echo "$as_me:$LINENO: result: no" >&5
34091echo "${ECHO_T}no" >&6
34092fi
34093
34094
34095krb_cv_compile_et="no"
34096if test "${COMPILE_ET}" = "compile_et"; then
34097
34098echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
34099echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
34100cat > conftest_et.et <<'EOF'
34101error_table conf
34102prefix CONFTEST
34103index 1
34104error_code CODE1, "CODE1"
34105index 128
34106error_code CODE2, "CODE2"
34107end
34108EOF
34109if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
34110    save_CPPFLAGS="${save_CPPFLAGS}"
34111  if test -d "/usr/include/et"; then
34112    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
34113  fi
34114    if test "$cross_compiling" = yes; then
34115  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
34116echo "$as_me: error: cannot run test program while cross compiling" >&2;}
34117   { (exit 1); exit 1; }; }
34118else
34119  cat >conftest.$ac_ext <<_ACEOF
34120#line $LINENO "configure"
34121#include "confdefs.h"
34122
34123#include <com_err.h>
34124#include <string.h>
34125#include "conftest_et.h"
34126int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
34127
34128_ACEOF
34129rm -f conftest$ac_exeext
34130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34131  (eval $ac_link) 2>&5
34132  ac_status=$?
34133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34134  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34136  (eval $ac_try) 2>&5
34137  ac_status=$?
34138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139  (exit $ac_status); }; }; then
34140  krb_cv_compile_et="yes"
34141else
34142  echo "$as_me: program exited with status $ac_status" >&5
34143echo "$as_me: failed program was:" >&5
34144cat conftest.$ac_ext >&5
34145( exit $ac_status )
34146CPPFLAGS="${save_CPPFLAGS}"
34147fi
34148rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34149fi
34150fi
34151echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
34152echo "${ECHO_T}${krb_cv_compile_et}" >&6
34153rm -fr conftest*
34154fi
34155
34156if test "${krb_cv_compile_et}" = "yes"; then
34157    krb_cv_save_LIBS="${LIBS}"
34158  LIBS="${LIBS} -lcom_err"
34159  echo "$as_me:$LINENO: checking for com_err" >&5
34160echo $ECHO_N "checking for com_err... $ECHO_C" >&6
34161  cat >conftest.$ac_ext <<_ACEOF
34162#line $LINENO "configure"
34163#include "confdefs.h"
34164#include <com_err.h>
34165#ifdef F77_DUMMY_MAIN
34166#  ifdef __cplusplus
34167     extern "C"
34168#  endif
34169   int F77_DUMMY_MAIN() { return 1; }
34170#endif
34171int
34172main ()
34173{
34174
34175    const char *p;
34176    p = error_message(0);
34177
34178  ;
34179  return 0;
34180}
34181_ACEOF
34182rm -f conftest.$ac_objext conftest$ac_exeext
34183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34184  (eval $ac_link) 2>&5
34185  ac_status=$?
34186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34187  (exit $ac_status); } &&
34188         { ac_try='test -s conftest$ac_exeext'
34189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34190  (eval $ac_try) 2>&5
34191  ac_status=$?
34192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193  (exit $ac_status); }; }; then
34194  krb_cv_com_err="yes"
34195else
34196  echo "$as_me: failed program was:" >&5
34197cat conftest.$ac_ext >&5
34198krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
34199fi
34200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34201  echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
34202echo "${ECHO_T}${krb_cv_com_err}" >&6
34203  LIBS="${krb_cv_save_LIBS}"
34204else
34205    krb_cv_com_err="no"
34206fi
34207
34208if test "${krb_cv_com_err}" = "yes"; then
34209    DIR_com_err=""
34210    LIB_com_err="-lcom_err"
34211    LIB_com_err_a=""
34212    LIB_com_err_so=""
34213    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
34214echo "$as_me: Using the already-installed com_err" >&6;}
34215else
34216    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
34217    DIR_com_err="com_err"
34218    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
34219    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
34220    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
34221    { echo "$as_me:$LINENO: Using our own com_err" >&5
34222echo "$as_me: Using our own com_err" >&6;}
34223fi
34224
34225
34226
34227
34228
34229
34230
34231
34232echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
34233echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
34234
34235LIB_AUTH_SUBDIRS=
34236
34237if test "$ac_cv_header_siad_h" = yes; then
34238	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
34239fi
34240
34241case "${host}" in
34242*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
34243*)		ac_cv_want_pam_krb4=yes ;;
34244esac
34245
34246if test "$ac_cv_want_pam_krb4" = yes -a \
34247    "$ac_cv_header_security_pam_modules_h" = yes -a \
34248    "$enable_shared" = yes; then
34249	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
34250fi
34251
34252case "${host}" in
34253*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
34254esac
34255
34256echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
34257echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
34258
34259
34260
34261
34262# This is done by AC_OUTPUT but we need the result here.
34263test "x$prefix" = xNONE && prefix=$ac_default_prefix
34264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34265
34266
34267	x="${bindir}"
34268	eval y="$x"
34269	while test "x$y" != "x$x"; do
34270		x="$y"
34271		eval y="$x"
34272	done
34273
34274cat >>confdefs.h <<_ACEOF
34275#define BINDIR "$x"
34276_ACEOF
34277
34278	x="${libdir}"
34279	eval y="$x"
34280	while test "x$y" != "x$x"; do
34281		x="$y"
34282		eval y="$x"
34283	done
34284
34285cat >>confdefs.h <<_ACEOF
34286#define LIBDIR "$x"
34287_ACEOF
34288
34289	x="${libexecdir}"
34290	eval y="$x"
34291	while test "x$y" != "x$x"; do
34292		x="$y"
34293		eval y="$x"
34294	done
34295
34296cat >>confdefs.h <<_ACEOF
34297#define LIBEXECDIR "$x"
34298_ACEOF
34299
34300	x="${localstatedir}"
34301	eval y="$x"
34302	while test "x$y" != "x$x"; do
34303		x="$y"
34304		eval y="$x"
34305	done
34306
34307cat >>confdefs.h <<_ACEOF
34308#define LOCALSTATEDIR "$x"
34309_ACEOF
34310
34311	x="${sbindir}"
34312	eval y="$x"
34313	while test "x$y" != "x$x"; do
34314		x="$y"
34315		eval y="$x"
34316	done
34317
34318cat >>confdefs.h <<_ACEOF
34319#define SBINDIR "$x"
34320_ACEOF
34321
34322	x="${sysconfdir}"
34323	eval y="$x"
34324	while test "x$y" != "x$x"; do
34325		x="$y"
34326		eval y="$x"
34327	done
34328
34329cat >>confdefs.h <<_ACEOF
34330#define SYSCONFDIR "$x"
34331_ACEOF
34332
34333
34334
34335LTLIBOBJS=`echo "$LIBOBJS" |
34336	sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
34337
34338
34339
34340
34341
34342ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile"
34343
34344
34345cat >confcache <<\_ACEOF
34346# This file is a shell script that caches the results of configure
34347# tests run on this system so they can be shared between configure
34348# scripts and configure runs, see configure's option --config-cache.
34349# It is not useful on other systems.  If it contains results you don't
34350# want to keep, you may remove or edit it.
34351#
34352# config.status only pays attention to the cache file if you give it
34353# the --recheck option to rerun configure.
34354#
34355# `ac_cv_env_foo' variables (set or unset) will be overriden when
34356# loading this file, other *unset* `ac_cv_foo' will be assigned the
34357# following values.
34358
34359_ACEOF
34360
34361# The following way of writing the cache mishandles newlines in values,
34362# but we know of no workaround that is simple, portable, and efficient.
34363# So, don't put newlines in cache variables' values.
34364# Ultrix sh set writes to stderr and can't be redirected directly,
34365# and sets the high bit in the cache file unless we assign to the vars.
34366{
34367  (set) 2>&1 |
34368    case `(ac_space=' '; set | grep ac_space) 2>&1` in
34369    *ac_space=\ *)
34370      # `set' does not quote correctly, so add quotes (double-quote
34371      # substitution turns \\\\ into \\, and sed turns \\ into \).
34372      sed -n \
34373        "s/'/'\\\\''/g;
34374    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34375      ;;
34376    *)
34377      # `set' quotes correctly as required by POSIX, so do not add quotes.
34378      sed -n \
34379        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
34380      ;;
34381    esac;
34382} |
34383  sed '
34384     t clear
34385     : clear
34386     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34387     t end
34388     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34389     : end' >>confcache
34390if cmp -s $cache_file confcache; then :; else
34391  if test -w $cache_file; then
34392    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34393    cat confcache >$cache_file
34394  else
34395    echo "not updating unwritable cache $cache_file"
34396  fi
34397fi
34398rm -f confcache
34399
34400test "x$prefix" = xNONE && prefix=$ac_default_prefix
34401# Let make expand exec_prefix.
34402test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34403
34404# VPATH may cause trouble with some makes, so we remove $(srcdir),
34405# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34406# trailing colons and then remove the whole line if VPATH becomes empty
34407# (actually we leave an empty line to preserve line numbers).
34408if test "x$srcdir" = x.; then
34409  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
34410s/:*\$(srcdir):*/:/;
34411s/:*\${srcdir}:*/:/;
34412s/:*@srcdir@:*/:/;
34413s/^\([^=]*=[ 	]*\):*/\1/;
34414s/:*$//;
34415s/^[^=]*=[ 	]*$//;
34416}'
34417fi
34418
34419DEFS=-DHAVE_CONFIG_H
34420
34421if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34422  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34423Usually this means the macro was only invoked conditionally." >&5
34424echo "$as_me: error: conditional \"AMDEP\" was never defined.
34425Usually this means the macro was only invoked conditionally." >&2;}
34426   { (exit 1); exit 1; }; }
34427fi
34428if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
34429  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
34430Usually this means the macro was only invoked conditionally." >&5
34431echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
34432Usually this means the macro was only invoked conditionally." >&2;}
34433   { (exit 1); exit 1; }; }
34434fi
34435if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
34436  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
34437Usually this means the macro was only invoked conditionally." >&5
34438echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
34439Usually this means the macro was only invoked conditionally." >&2;}
34440   { (exit 1); exit 1; }; }
34441fi
34442if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
34443  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
34444Usually this means the macro was only invoked conditionally." >&5
34445echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
34446Usually this means the macro was only invoked conditionally." >&2;}
34447   { (exit 1); exit 1; }; }
34448fi
34449if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
34450  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
34451Usually this means the macro was only invoked conditionally." >&5
34452echo "$as_me: error: conditional \"have_err_h\" was never defined.
34453Usually this means the macro was only invoked conditionally." >&2;}
34454   { (exit 1); exit 1; }; }
34455fi
34456if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
34457  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
34458Usually this means the macro was only invoked conditionally." >&5
34459echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
34460Usually this means the macro was only invoked conditionally." >&2;}
34461   { (exit 1); exit 1; }; }
34462fi
34463if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
34464  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
34465Usually this means the macro was only invoked conditionally." >&5
34466echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
34467Usually this means the macro was only invoked conditionally." >&2;}
34468   { (exit 1); exit 1; }; }
34469fi
34470if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
34471  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
34472Usually this means the macro was only invoked conditionally." >&5
34473echo "$as_me: error: conditional \"have_vis_h\" was never defined.
34474Usually this means the macro was only invoked conditionally." >&2;}
34475   { (exit 1); exit 1; }; }
34476fi
34477if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
34478  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
34479Usually this means the macro was only invoked conditionally." >&5
34480echo "$as_me: error: conditional \"have_glob_h\" was never defined.
34481Usually this means the macro was only invoked conditionally." >&2;}
34482   { (exit 1); exit 1; }; }
34483fi
34484if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
34485  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
34486Usually this means the macro was only invoked conditionally." >&5
34487echo "$as_me: error: conditional \"KRB4\" was never defined.
34488Usually this means the macro was only invoked conditionally." >&2;}
34489   { (exit 1); exit 1; }; }
34490fi
34491if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
34492  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
34493Usually this means the macro was only invoked conditionally." >&5
34494echo "$as_me: error: conditional \"KRB5\" was never defined.
34495Usually this means the macro was only invoked conditionally." >&2;}
34496   { (exit 1); exit 1; }; }
34497fi
34498if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
34499  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
34500Usually this means the macro was only invoked conditionally." >&5
34501echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
34502Usually this means the macro was only invoked conditionally." >&2;}
34503   { (exit 1); exit 1; }; }
34504fi
34505if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
34506  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
34507Usually this means the macro was only invoked conditionally." >&5
34508echo "$as_me: error: conditional \"DCE\" was never defined.
34509Usually this means the macro was only invoked conditionally." >&2;}
34510   { (exit 1); exit 1; }; }
34511fi
34512if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
34513  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
34514Usually this means the macro was only invoked conditionally." >&5
34515echo "$as_me: error: conditional \"OTP\" was never defined.
34516Usually this means the macro was only invoked conditionally." >&2;}
34517   { (exit 1); exit 1; }; }
34518fi
34519if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
34520  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
34521Usually this means the macro was only invoked conditionally." >&5
34522echo "$as_me: error: conditional \"CATMAN\" was never defined.
34523Usually this means the macro was only invoked conditionally." >&2;}
34524   { (exit 1); exit 1; }; }
34525fi
34526if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
34527  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
34528Usually this means the macro was only invoked conditionally." >&5
34529echo "$as_me: error: conditional \"AIX\" was never defined.
34530Usually this means the macro was only invoked conditionally." >&2;}
34531   { (exit 1); exit 1; }; }
34532fi
34533if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
34534  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
34535Usually this means the macro was only invoked conditionally." >&5
34536echo "$as_me: error: conditional \"AIX4\" was never defined.
34537Usually this means the macro was only invoked conditionally." >&2;}
34538   { (exit 1); exit 1; }; }
34539fi
34540if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
34541  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
34542Usually this means the macro was only invoked conditionally." >&5
34543echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
34544Usually this means the macro was only invoked conditionally." >&2;}
34545   { (exit 1); exit 1; }; }
34546fi
34547if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
34548  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
34549Usually this means the macro was only invoked conditionally." >&5
34550echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
34551Usually this means the macro was only invoked conditionally." >&2;}
34552   { (exit 1); exit 1; }; }
34553fi
34554if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
34555  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
34556Usually this means the macro was only invoked conditionally." >&5
34557echo "$as_me: error: conditional \"IRIX\" was never defined.
34558Usually this means the macro was only invoked conditionally." >&2;}
34559   { (exit 1); exit 1; }; }
34560fi
34561if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
34562  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
34563Usually this means the macro was only invoked conditionally." >&5
34564echo "$as_me: error: conditional \"HAVE_X\" was never defined.
34565Usually this means the macro was only invoked conditionally." >&2;}
34566   { (exit 1); exit 1; }; }
34567fi
34568if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
34569  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
34570Usually this means the macro was only invoked conditionally." >&5
34571echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
34572Usually this means the macro was only invoked conditionally." >&2;}
34573   { (exit 1); exit 1; }; }
34574fi
34575if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
34576  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
34577Usually this means the macro was only invoked conditionally." >&5
34578echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
34579Usually this means the macro was only invoked conditionally." >&2;}
34580   { (exit 1); exit 1; }; }
34581fi
34582if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
34583  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
34584Usually this means the macro was only invoked conditionally." >&5
34585echo "$as_me: error: conditional \"el_compat\" was never defined.
34586Usually this means the macro was only invoked conditionally." >&2;}
34587   { (exit 1); exit 1; }; }
34588fi
34589
34590: ${CONFIG_STATUS=./config.status}
34591ac_clean_files_save=$ac_clean_files
34592ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34593{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34594echo "$as_me: creating $CONFIG_STATUS" >&6;}
34595cat >$CONFIG_STATUS <<_ACEOF
34596#! $SHELL
34597# Generated by $as_me.
34598# Run this file to recreate the current configuration.
34599# Compiler output produced by configure, useful for debugging
34600# configure, is in config.log if it exists.
34601
34602debug=false
34603SHELL=\${CONFIG_SHELL-$SHELL}
34604_ACEOF
34605
34606cat >>$CONFIG_STATUS <<\_ACEOF
34607
34608## --------------------- ##
34609## M4sh Initialization.  ##
34610## --------------------- ##
34611
34612# Be Bourne compatible
34613if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34614  emulate sh
34615  NULLCMD=:
34616elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
34617  set -o posix
34618fi
34619
34620# NLS nuisances.
34621# Support unset when possible.
34622if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34623  as_unset=unset
34624else
34625  as_unset=false
34626fi
34627
34628(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
34629    { $as_unset LANG || test "${LANG+set}" != set; } ||
34630      { LANG=C; export LANG; }
34631(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
34632    { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
34633      { LC_ALL=C; export LC_ALL; }
34634(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
34635    { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
34636      { LC_TIME=C; export LC_TIME; }
34637(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
34638    { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
34639      { LC_CTYPE=C; export LC_CTYPE; }
34640(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
34641    { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
34642      { LANGUAGE=C; export LANGUAGE; }
34643(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
34644    { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
34645      { LC_COLLATE=C; export LC_COLLATE; }
34646(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
34647    { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
34648      { LC_NUMERIC=C; export LC_NUMERIC; }
34649(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
34650    { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
34651      { LC_MESSAGES=C; export LC_MESSAGES; }
34652
34653
34654# Name of the executable.
34655as_me=`(basename "$0") 2>/dev/null ||
34656$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34657	 X"$0" : 'X\(//\)$' \| \
34658	 X"$0" : 'X\(/\)$' \| \
34659	 .     : '\(.\)' 2>/dev/null ||
34660echo X/"$0" |
34661    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
34662  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
34663  	  /^X\/\(\/\).*/{ s//\1/; q; }
34664  	  s/.*/./; q'`
34665
34666# PATH needs CR, and LINENO needs CR and PATH.
34667# Avoid depending upon Character Ranges.
34668as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34669as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34670as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34671as_cr_digits='0123456789'
34672as_cr_alnum=$as_cr_Letters$as_cr_digits
34673
34674# The user is always right.
34675if test "${PATH_SEPARATOR+set}" != set; then
34676  echo "#! /bin/sh" >conftest.sh
34677  echo  "exit 0"   >>conftest.sh
34678  chmod +x conftest.sh
34679  if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
34680    PATH_SEPARATOR=';'
34681  else
34682    PATH_SEPARATOR=:
34683  fi
34684  rm -f conftest.sh
34685fi
34686
34687
34688  as_lineno_1=$LINENO
34689  as_lineno_2=$LINENO
34690  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34691  test "x$as_lineno_1" != "x$as_lineno_2" &&
34692  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
34693  # Find who we are.  Look in the path if we contain no path at all
34694  # relative or not.
34695  case $0 in
34696    *[\\/]* ) as_myself=$0 ;;
34697    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34698for as_dir in $PATH
34699do
34700  IFS=$as_save_IFS
34701  test -z "$as_dir" && as_dir=.
34702  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34703done
34704
34705       ;;
34706  esac
34707  # We did not find ourselves, most probably we were run as `sh COMMAND'
34708  # in which case we are not to be found in the path.
34709  if test "x$as_myself" = x; then
34710    as_myself=$0
34711  fi
34712  if test ! -f "$as_myself"; then
34713    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
34714echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
34715   { (exit 1); exit 1; }; }
34716  fi
34717  case $CONFIG_SHELL in
34718  '')
34719    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34720for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
34721do
34722  IFS=$as_save_IFS
34723  test -z "$as_dir" && as_dir=.
34724  for as_base in sh bash ksh sh5; do
34725	 case $as_dir in
34726	 /*)
34727	   if ("$as_dir/$as_base" -c '
34728  as_lineno_1=$LINENO
34729  as_lineno_2=$LINENO
34730  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
34731  test "x$as_lineno_1" != "x$as_lineno_2" &&
34732  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
34733	     CONFIG_SHELL=$as_dir/$as_base
34734	     export CONFIG_SHELL
34735	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
34736	   fi;;
34737	 esac
34738       done
34739done
34740;;
34741  esac
34742
34743  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34744  # uniformly replaced by the line number.  The first 'sed' inserts a
34745  # line-number line before each line; the second 'sed' does the real
34746  # work.  The second script uses 'N' to pair each line-number line
34747  # with the numbered line, and appends trailing '-' during
34748  # substitution so that $LINENO is not a special case at line end.
34749  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34750  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
34751  sed '=' <$as_myself |
34752    sed '
34753      N
34754      s,$,-,
34755      : loop
34756      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
34757      t loop
34758      s,-$,,
34759      s,^['$as_cr_digits']*\n,,
34760    ' >$as_me.lineno &&
34761  chmod +x $as_me.lineno ||
34762    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
34763echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
34764   { (exit 1); exit 1; }; }
34765
34766  # Don't try to exec as it changes $[0], causing all sort of problems
34767  # (the dirname of $[0] is not the place where we might find the
34768  # original and so on.  Autoconf is especially sensible to this).
34769  . ./$as_me.lineno
34770  # Exit status is that of the last command.
34771  exit
34772}
34773
34774
34775case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
34776  *c*,-n*) ECHO_N= ECHO_C='
34777' ECHO_T='	' ;;
34778  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
34779  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
34780esac
34781
34782if expr a : '\(a\)' >/dev/null 2>&1; then
34783  as_expr=expr
34784else
34785  as_expr=false
34786fi
34787
34788rm -f conf$$ conf$$.exe conf$$.file
34789echo >conf$$.file
34790if ln -s conf$$.file conf$$ 2>/dev/null; then
34791  # We could just check for DJGPP; but this test a) works b) is more generic
34792  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
34793  if test -f conf$$.exe; then
34794    # Don't use ln at all; we don't have any links
34795    as_ln_s='cp -p'
34796  else
34797    as_ln_s='ln -s'
34798  fi
34799elif ln conf$$.file conf$$ 2>/dev/null; then
34800  as_ln_s=ln
34801else
34802  as_ln_s='cp -p'
34803fi
34804rm -f conf$$ conf$$.exe conf$$.file
34805
34806as_executable_p="test -f"
34807
34808# Sed expression to map a string onto a valid CPP name.
34809as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
34810
34811# Sed expression to map a string onto a valid variable name.
34812as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
34813
34814
34815# IFS
34816# We need space, tab and new line, in precisely that order.
34817as_nl='
34818'
34819IFS=" 	$as_nl"
34820
34821# CDPATH.
34822$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
34823
34824exec 6>&1
34825
34826# Open the log real soon, to keep \$[0] and so on meaningful, and to
34827# report actual input values of CONFIG_FILES etc. instead of their
34828# values after options handling.  Logging --version etc. is OK.
34829exec 5>>config.log
34830{
34831  echo
34832  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34833## Running $as_me. ##
34834_ASBOX
34835} >&5
34836cat >&5 <<_CSEOF
34837
34838This file was extended by Heimdal $as_me 0.4f, which was
34839generated by GNU Autoconf 2.53.  Invocation command line was
34840
34841  CONFIG_FILES    = $CONFIG_FILES
34842  CONFIG_HEADERS  = $CONFIG_HEADERS
34843  CONFIG_LINKS    = $CONFIG_LINKS
34844  CONFIG_COMMANDS = $CONFIG_COMMANDS
34845  $ $0 $@
34846
34847_CSEOF
34848echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
34849echo >&5
34850_ACEOF
34851
34852# Files that config.status was made for.
34853if test -n "$ac_config_files"; then
34854  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
34855fi
34856
34857if test -n "$ac_config_headers"; then
34858  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
34859fi
34860
34861if test -n "$ac_config_links"; then
34862  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
34863fi
34864
34865if test -n "$ac_config_commands"; then
34866  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
34867fi
34868
34869cat >>$CONFIG_STATUS <<\_ACEOF
34870
34871ac_cs_usage="\
34872\`$as_me' instantiates files from templates according to the
34873current configuration.
34874
34875Usage: $0 [OPTIONS] [FILE]...
34876
34877  -h, --help       print this help, then exit
34878  -V, --version    print version number, then exit
34879  -d, --debug      don't remove temporary files
34880      --recheck    update $as_me by reconfiguring in the same conditions
34881  --file=FILE[:TEMPLATE]
34882                   instantiate the configuration file FILE
34883  --header=FILE[:TEMPLATE]
34884                   instantiate the configuration header FILE
34885
34886Configuration files:
34887$config_files
34888
34889Configuration headers:
34890$config_headers
34891
34892Configuration commands:
34893$config_commands
34894
34895Report bugs to <bug-autoconf@gnu.org>."
34896_ACEOF
34897
34898cat >>$CONFIG_STATUS <<_ACEOF
34899ac_cs_version="\\
34900Heimdal config.status 0.4f
34901configured by $0, generated by GNU Autoconf 2.53,
34902  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
34903
34904Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
34905Free Software Foundation, Inc.
34906This config.status script is free software; the Free Software Foundation
34907gives unlimited permission to copy, distribute and modify it."
34908srcdir=$srcdir
34909INSTALL="$INSTALL"
34910_ACEOF
34911
34912cat >>$CONFIG_STATUS <<\_ACEOF
34913# If no file are specified by the user, then we need to provide default
34914# value.  By we need to know if files were specified by the user.
34915ac_need_defaults=:
34916while test $# != 0
34917do
34918  case $1 in
34919  --*=*)
34920    ac_option=`expr "x$1" : 'x\([^=]*\)='`
34921    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
34922    shift
34923    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
34924    shift
34925    ;;
34926  -*);;
34927  *) # This is not an option, so the user has probably given explicit
34928     # arguments.
34929     ac_need_defaults=false;;
34930  esac
34931
34932  case $1 in
34933  # Handling of the options.
34934_ACEOF
34935cat >>$CONFIG_STATUS <<_ACEOF
34936  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34937    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
34938    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
34939_ACEOF
34940cat >>$CONFIG_STATUS <<\_ACEOF
34941  --version | --vers* | -V )
34942    echo "$ac_cs_version"; exit 0 ;;
34943  --he | --h)
34944    # Conflict between --help and --header
34945    { { echo "$as_me:$LINENO: error: ambiguous option: $1
34946Try \`$0 --help' for more information." >&5
34947echo "$as_me: error: ambiguous option: $1
34948Try \`$0 --help' for more information." >&2;}
34949   { (exit 1); exit 1; }; };;
34950  --help | --hel | -h )
34951    echo "$ac_cs_usage"; exit 0 ;;
34952  --debug | --d* | -d )
34953    debug=: ;;
34954  --file | --fil | --fi | --f )
34955    shift
34956    CONFIG_FILES="$CONFIG_FILES $1"
34957    ac_need_defaults=false;;
34958  --header | --heade | --head | --hea )
34959    shift
34960    CONFIG_HEADERS="$CONFIG_HEADERS $1"
34961    ac_need_defaults=false;;
34962
34963  # This is an error.
34964  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
34965Try \`$0 --help' for more information." >&5
34966echo "$as_me: error: unrecognized option: $1
34967Try \`$0 --help' for more information." >&2;}
34968   { (exit 1); exit 1; }; } ;;
34969
34970  *) ac_config_targets="$ac_config_targets $1" ;;
34971
34972  esac
34973  shift
34974done
34975
34976_ACEOF
34977
34978cat >>$CONFIG_STATUS <<_ACEOF
34979#
34980# INIT-COMMANDS section.
34981#
34982
34983AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34984
34985_ACEOF
34986
34987
34988
34989cat >>$CONFIG_STATUS <<\_ACEOF
34990for ac_config_target in $ac_config_targets
34991do
34992  case "$ac_config_target" in
34993  # Handling of arguments.
34994  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34995  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
34996  "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
34997  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
34998  "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
34999  "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
35000  "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
35001  "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
35002  "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
35003  "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
35004  "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
35005  "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
35006  "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
35007  "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
35008  "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
35009  "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
35010  "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
35011  "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
35012  "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
35013  "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
35014  "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
35015  "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
35016  "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
35017  "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
35018  "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
35019  "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
35020  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
35021  "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
35022  "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
35023  "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
35024  "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
35025  "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
35026  "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
35027  "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
35028  "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
35029  "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
35030  "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
35031  "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
35032  "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
35033  "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
35034  "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
35035  "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
35036  "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
35037  "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
35038  "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
35039  "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
35040  "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
35041  "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
35042  "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
35043  "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
35044  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35045  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
35046  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35047  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
35048  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35049echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35050   { (exit 1); exit 1; }; };;
35051  esac
35052done
35053
35054# If the user did not use the arguments to specify the items to instantiate,
35055# then the envvar interface is used.  Set only those that are not.
35056# We use the long form for the default assignment because of an extremely
35057# bizarre bug on SunOS 4.1.3.
35058if $ac_need_defaults; then
35059  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35060  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35061  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35062fi
35063
35064# Create a temporary directory, and hook for its removal unless debugging.
35065$debug ||
35066{
35067  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
35068  trap '{ (exit 1); exit 1; }' 1 2 13 15
35069}
35070
35071# Create a (secure) tmp directory for tmp files.
35072: ${TMPDIR=/tmp}
35073{
35074  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
35075  test -n "$tmp" && test -d "$tmp"
35076}  ||
35077{
35078  tmp=$TMPDIR/cs$$-$RANDOM
35079  (umask 077 && mkdir $tmp)
35080} ||
35081{
35082   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
35083   { (exit 1); exit 1; }
35084}
35085
35086_ACEOF
35087
35088cat >>$CONFIG_STATUS <<_ACEOF
35089
35090#
35091# CONFIG_FILES section.
35092#
35093
35094# No need to generate the scripts if there are no CONFIG_FILES.
35095# This happens for instance when ./config.status config.h
35096if test -n "\$CONFIG_FILES"; then
35097  # Protect against being on the right side of a sed subst in config.status.
35098  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
35099   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
35100s,@SHELL@,$SHELL,;t t
35101s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
35102s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
35103s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
35104s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
35105s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
35106s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
35107s,@exec_prefix@,$exec_prefix,;t t
35108s,@prefix@,$prefix,;t t
35109s,@program_transform_name@,$program_transform_name,;t t
35110s,@bindir@,$bindir,;t t
35111s,@sbindir@,$sbindir,;t t
35112s,@libexecdir@,$libexecdir,;t t
35113s,@datadir@,$datadir,;t t
35114s,@sysconfdir@,$sysconfdir,;t t
35115s,@sharedstatedir@,$sharedstatedir,;t t
35116s,@localstatedir@,$localstatedir,;t t
35117s,@libdir@,$libdir,;t t
35118s,@includedir@,$includedir,;t t
35119s,@oldincludedir@,$oldincludedir,;t t
35120s,@infodir@,$infodir,;t t
35121s,@mandir@,$mandir,;t t
35122s,@build_alias@,$build_alias,;t t
35123s,@host_alias@,$host_alias,;t t
35124s,@target_alias@,$target_alias,;t t
35125s,@DEFS@,$DEFS,;t t
35126s,@ECHO_C@,$ECHO_C,;t t
35127s,@ECHO_N@,$ECHO_N,;t t
35128s,@ECHO_T@,$ECHO_T,;t t
35129s,@LIBS@,$LIBS,;t t
35130s,@CC@,$CC,;t t
35131s,@CFLAGS@,$CFLAGS,;t t
35132s,@LDFLAGS@,$LDFLAGS,;t t
35133s,@CPPFLAGS@,$CPPFLAGS,;t t
35134s,@ac_ct_CC@,$ac_ct_CC,;t t
35135s,@EXEEXT@,$EXEEXT,;t t
35136s,@OBJEXT@,$OBJEXT,;t t
35137s,@CPP@,$CPP,;t t
35138s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
35139s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
35140s,@INSTALL_DATA@,$INSTALL_DATA,;t t
35141s,@PACKAGE@,$PACKAGE,;t t
35142s,@VERSION@,$VERSION,;t t
35143s,@ACLOCAL@,$ACLOCAL,;t t
35144s,@AUTOCONF@,$AUTOCONF,;t t
35145s,@AUTOMAKE@,$AUTOMAKE,;t t
35146s,@AUTOHEADER@,$AUTOHEADER,;t t
35147s,@MAKEINFO@,$MAKEINFO,;t t
35148s,@AMTAR@,$AMTAR,;t t
35149s,@install_sh@,$install_sh,;t t
35150s,@STRIP@,$STRIP,;t t
35151s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
35152s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
35153s,@AWK@,$AWK,;t t
35154s,@SET_MAKE@,$SET_MAKE,;t t
35155s,@DEPDIR@,$DEPDIR,;t t
35156s,@am__include@,$am__include,;t t
35157s,@am__quote@,$am__quote,;t t
35158s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
35159s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
35160s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
35161s,@CCDEPMODE@,$CCDEPMODE,;t t
35162s,@build@,$build,;t t
35163s,@build_cpu@,$build_cpu,;t t
35164s,@build_vendor@,$build_vendor,;t t
35165s,@build_os@,$build_os,;t t
35166s,@host@,$host,;t t
35167s,@host_cpu@,$host_cpu,;t t
35168s,@host_vendor@,$host_vendor,;t t
35169s,@host_os@,$host_os,;t t
35170s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
35171s,@YACC@,$YACC,;t t
35172s,@LEX@,$LEX,;t t
35173s,@LEXLIB@,$LEXLIB,;t t
35174s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
35175s,@LN_S@,$LN_S,;t t
35176s,@ECHO@,$ECHO,;t t
35177s,@RANLIB@,$RANLIB,;t t
35178s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
35179s,@LIBTOOL@,$LIBTOOL,;t t
35180s,@WFLAGS@,$WFLAGS,;t t
35181s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
35182s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
35183s,@LIB_db_create@,$LIB_db_create,;t t
35184s,@LIB_dbopen@,$LIB_dbopen,;t t
35185s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
35186s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
35187s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
35188s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
35189s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
35190s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
35191s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
35192s,@DBLIB@,$DBLIB,;t t
35193s,@LIB_NDBM@,$LIB_NDBM,;t t
35194s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
35195s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
35196s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
35197s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
35198s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
35199s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
35200s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
35201s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
35202s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
35203s,@LIB_socket@,$LIB_socket,;t t
35204s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
35205s,@LIB_syslog@,$LIB_syslog,;t t
35206s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
35207s,@LIB_res_search@,$LIB_res_search,;t t
35208s,@LIB_dn_expand@,$LIB_dn_expand,;t t
35209s,@LIBOBJS@,$LIBOBJS,;t t
35210s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
35211s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
35212s,@LIB_getsockopt@,$LIB_getsockopt,;t t
35213s,@LIB_setsockopt@,$LIB_setsockopt,;t t
35214s,@LIB_hstrerror@,$LIB_hstrerror,;t t
35215s,@LIB_bswap16@,$LIB_bswap16,;t t
35216s,@LIB_bswap32@,$LIB_bswap32,;t t
35217s,@LIB_pidfile@,$LIB_pidfile,;t t
35218s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
35219s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
35220s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
35221s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
35222s,@LIB_crypt@,$LIB_crypt,;t t
35223s,@DIR_roken@,$DIR_roken,;t t
35224s,@LIB_roken@,$LIB_roken,;t t
35225s,@INCLUDES_roken@,$INCLUDES_roken,;t t
35226s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
35227s,@LIB_openldap@,$LIB_openldap,;t t
35228s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
35229s,@LIB_krb4@,$LIB_krb4,;t t
35230s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
35231s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
35232s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
35233s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
35234s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
35235s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
35236s,@KRB4_TRUE@,$KRB4_TRUE,;t t
35237s,@KRB4_FALSE@,$KRB4_FALSE,;t t
35238s,@KRB5_TRUE@,$KRB5_TRUE,;t t
35239s,@KRB5_FALSE@,$KRB5_FALSE,;t t
35240s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
35241s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
35242s,@LIB_kdb@,$LIB_kdb,;t t
35243s,@DCE_TRUE@,$DCE_TRUE,;t t
35244s,@DCE_FALSE@,$DCE_FALSE,;t t
35245s,@dpagaix_cflags@,$dpagaix_cflags,;t t
35246s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
35247s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
35248s,@LIB_otp@,$LIB_otp,;t t
35249s,@OTP_TRUE@,$OTP_TRUE,;t t
35250s,@OTP_FALSE@,$OTP_FALSE,;t t
35251s,@LIB_security@,$LIB_security,;t t
35252s,@NROFF@,$NROFF,;t t
35253s,@GROFF@,$GROFF,;t t
35254s,@CATMAN@,$CATMAN,;t t
35255s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
35256s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
35257s,@CATMANEXT@,$CATMANEXT,;t t
35258s,@INCLUDE_readline@,$INCLUDE_readline,;t t
35259s,@LIB_readline@,$LIB_readline,;t t
35260s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
35261s,@LIB_hesiod@,$LIB_hesiod,;t t
35262s,@AIX_TRUE@,$AIX_TRUE,;t t
35263s,@AIX_FALSE@,$AIX_FALSE,;t t
35264s,@AIX4_TRUE@,$AIX4_TRUE,;t t
35265s,@AIX4_FALSE@,$AIX4_FALSE,;t t
35266s,@LIB_dlopen@,$LIB_dlopen,;t t
35267s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
35268s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
35269s,@LIB_loadquery@,$LIB_loadquery,;t t
35270s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
35271s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
35272s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
35273s,@IRIX_TRUE@,$IRIX_TRUE,;t t
35274s,@IRIX_FALSE@,$IRIX_FALSE,;t t
35275s,@X_CFLAGS@,$X_CFLAGS,;t t
35276s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
35277s,@X_LIBS@,$X_LIBS,;t t
35278s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
35279s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
35280s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
35281s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
35282s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
35283s,@LIB_XauFileName@,$LIB_XauFileName,;t t
35284s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
35285s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
35286s,@LIB_logwtmp@,$LIB_logwtmp,;t t
35287s,@LIB_logout@,$LIB_logout,;t t
35288s,@LIB_openpty@,$LIB_openpty,;t t
35289s,@LIB_tgetent@,$LIB_tgetent,;t t
35290s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
35291s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
35292s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
35293s,@DIR_des@,$DIR_des,;t t
35294s,@INCLUDE_des@,$INCLUDE_des,;t t
35295s,@LIB_des@,$LIB_des,;t t
35296s,@LIB_des_a@,$LIB_des_a,;t t
35297s,@LIB_des_so@,$LIB_des_so,;t t
35298s,@LIB_des_appl@,$LIB_des_appl,;t t
35299s,@LIB_el_init@,$LIB_el_init,;t t
35300s,@el_compat_TRUE@,$el_compat_TRUE,;t t
35301s,@el_compat_FALSE@,$el_compat_FALSE,;t t
35302s,@COMPILE_ET@,$COMPILE_ET,;t t
35303s,@DIR_com_err@,$DIR_com_err,;t t
35304s,@LIB_com_err@,$LIB_com_err,;t t
35305s,@LIB_com_err_a@,$LIB_com_err_a,;t t
35306s,@LIB_com_err_so@,$LIB_com_err_so,;t t
35307s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
35308s,@LTLIBOBJS@,$LTLIBOBJS,;t t
35309CEOF
35310
35311_ACEOF
35312
35313  cat >>$CONFIG_STATUS <<\_ACEOF
35314  # Split the substitutions into bite-sized pieces for seds with
35315  # small command number limits, like on Digital OSF/1 and HP-UX.
35316  ac_max_sed_lines=48
35317  ac_sed_frag=1 # Number of current file.
35318  ac_beg=1 # First line for current file.
35319  ac_end=$ac_max_sed_lines # Line after last line for current file.
35320  ac_more_lines=:
35321  ac_sed_cmds=
35322  while $ac_more_lines; do
35323    if test $ac_beg -gt 1; then
35324      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35325    else
35326      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
35327    fi
35328    if test ! -s $tmp/subs.frag; then
35329      ac_more_lines=false
35330    else
35331      # The purpose of the label and of the branching condition is to
35332      # speed up the sed processing (if there are no `@' at all, there
35333      # is no need to browse any of the substitutions).
35334      # These are the two extra sed commands mentioned above.
35335      (echo ':t
35336  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
35337      if test -z "$ac_sed_cmds"; then
35338  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
35339      else
35340  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
35341      fi
35342      ac_sed_frag=`expr $ac_sed_frag + 1`
35343      ac_beg=$ac_end
35344      ac_end=`expr $ac_end + $ac_max_sed_lines`
35345    fi
35346  done
35347  if test -z "$ac_sed_cmds"; then
35348    ac_sed_cmds=cat
35349  fi
35350fi # test -n "$CONFIG_FILES"
35351
35352_ACEOF
35353cat >>$CONFIG_STATUS <<\_ACEOF
35354for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
35355  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35356  case $ac_file in
35357  - | *:- | *:-:* ) # input from stdin
35358        cat >$tmp/stdin
35359        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35360        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35361  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35362        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35363  * )   ac_file_in=$ac_file.in ;;
35364  esac
35365
35366  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
35367  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35369         X"$ac_file" : 'X\(//\)[^/]' \| \
35370         X"$ac_file" : 'X\(//\)$' \| \
35371         X"$ac_file" : 'X\(/\)' \| \
35372         .     : '\(.\)' 2>/dev/null ||
35373echo X"$ac_file" |
35374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35375  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35376  	  /^X\(\/\/\)$/{ s//\1/; q; }
35377  	  /^X\(\/\).*/{ s//\1/; q; }
35378  	  s/.*/./; q'`
35379  { case "$ac_dir" in
35380  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35381  *)                      as_incr_dir=.;;
35382esac
35383as_dummy="$ac_dir"
35384for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35385  case $as_mkdir_dir in
35386    # Skip DOS drivespec
35387    ?:) as_incr_dir=$as_mkdir_dir ;;
35388    *)
35389      as_incr_dir=$as_incr_dir/$as_mkdir_dir
35390      test -d "$as_incr_dir" ||
35391        mkdir "$as_incr_dir" ||
35392	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
35393echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
35394   { (exit 1); exit 1; }; }
35395    ;;
35396  esac
35397done; }
35398
35399  ac_builddir=.
35400
35401if test "$ac_dir" != .; then
35402  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35403  # A "../" for each directory in $ac_dir_suffix.
35404  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35405else
35406  ac_dir_suffix= ac_top_builddir=
35407fi
35408
35409case $srcdir in
35410  .)  # No --srcdir option.  We are building in place.
35411    ac_srcdir=.
35412    if test -z "$ac_top_builddir"; then
35413       ac_top_srcdir=.
35414    else
35415       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35416    fi ;;
35417  [\\/]* | ?:[\\/]* )  # Absolute path.
35418    ac_srcdir=$srcdir$ac_dir_suffix;
35419    ac_top_srcdir=$srcdir ;;
35420  *) # Relative path.
35421    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35422    ac_top_srcdir=$ac_top_builddir$srcdir ;;
35423esac
35424# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35425# absolute.
35426ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35427ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
35428ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35429ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35430
35431
35432  case $INSTALL in
35433  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35434  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
35435  esac
35436
35437  if test x"$ac_file" != x-; then
35438    { echo "$as_me:$LINENO: creating $ac_file" >&5
35439echo "$as_me: creating $ac_file" >&6;}
35440    rm -f "$ac_file"
35441  fi
35442  # Let's still pretend it is `configure' which instantiates (i.e., don't
35443  # use $as_me), people would be surprised to read:
35444  #    /* config.h.  Generated by config.status.  */
35445  if test x"$ac_file" = x-; then
35446    configure_input=
35447  else
35448    configure_input="$ac_file.  "
35449  fi
35450  configure_input=$configure_input"Generated from `echo $ac_file_in |
35451                                     sed 's,.*/,,'` by configure."
35452
35453  # First look for the input files in the build tree, otherwise in the
35454  # src tree.
35455  ac_file_inputs=`IFS=:
35456    for f in $ac_file_in; do
35457      case $f in
35458      -) echo $tmp/stdin ;;
35459      [\\/$]*)
35460         # Absolute (can't be DOS-style, as IFS=:)
35461         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35462echo "$as_me: error: cannot find input file: $f" >&2;}
35463   { (exit 1); exit 1; }; }
35464         echo $f;;
35465      *) # Relative
35466         if test -f "$f"; then
35467           # Build tree
35468           echo $f
35469         elif test -f "$srcdir/$f"; then
35470           # Source tree
35471           echo $srcdir/$f
35472         else
35473           # /dev/null tree
35474           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35475echo "$as_me: error: cannot find input file: $f" >&2;}
35476   { (exit 1); exit 1; }; }
35477         fi;;
35478      esac
35479    done` || { (exit 1); exit 1; }
35480_ACEOF
35481cat >>$CONFIG_STATUS <<_ACEOF
35482  sed "$ac_vpsub
35483$extrasub
35484_ACEOF
35485cat >>$CONFIG_STATUS <<\_ACEOF
35486:t
35487/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35488s,@configure_input@,$configure_input,;t t
35489s,@srcdir@,$ac_srcdir,;t t
35490s,@abs_srcdir@,$ac_abs_srcdir,;t t
35491s,@top_srcdir@,$ac_top_srcdir,;t t
35492s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
35493s,@builddir@,$ac_builddir,;t t
35494s,@abs_builddir@,$ac_abs_builddir,;t t
35495s,@top_builddir@,$ac_top_builddir,;t t
35496s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
35497s,@INSTALL@,$ac_INSTALL,;t t
35498" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
35499  rm -f $tmp/stdin
35500  if test x"$ac_file" != x-; then
35501    mv $tmp/out $ac_file
35502  else
35503    cat $tmp/out
35504    rm -f $tmp/out
35505  fi
35506
35507done
35508_ACEOF
35509cat >>$CONFIG_STATUS <<\_ACEOF
35510
35511#
35512# CONFIG_HEADER section.
35513#
35514
35515# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
35516# NAME is the cpp macro being defined and VALUE is the value it is being given.
35517#
35518# ac_d sets the value in "#define NAME VALUE" lines.
35519ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
35520ac_dB='[ 	].*$,\1#\2'
35521ac_dC=' '
35522ac_dD=',;t'
35523# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
35524ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
35525ac_uB='$,\1#\2define\3'
35526ac_uC=' '
35527ac_uD=',;t'
35528
35529for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
35530  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
35531  case $ac_file in
35532  - | *:- | *:-:* ) # input from stdin
35533        cat >$tmp/stdin
35534        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35535        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35536  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
35537        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
35538  * )   ac_file_in=$ac_file.in ;;
35539  esac
35540
35541  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
35542echo "$as_me: creating $ac_file" >&6;}
35543
35544  # First look for the input files in the build tree, otherwise in the
35545  # src tree.
35546  ac_file_inputs=`IFS=:
35547    for f in $ac_file_in; do
35548      case $f in
35549      -) echo $tmp/stdin ;;
35550      [\\/$]*)
35551         # Absolute (can't be DOS-style, as IFS=:)
35552         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35553echo "$as_me: error: cannot find input file: $f" >&2;}
35554   { (exit 1); exit 1; }; }
35555         echo $f;;
35556      *) # Relative
35557         if test -f "$f"; then
35558           # Build tree
35559           echo $f
35560         elif test -f "$srcdir/$f"; then
35561           # Source tree
35562           echo $srcdir/$f
35563         else
35564           # /dev/null tree
35565           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
35566echo "$as_me: error: cannot find input file: $f" >&2;}
35567   { (exit 1); exit 1; }; }
35568         fi;;
35569      esac
35570    done` || { (exit 1); exit 1; }
35571  # Remove the trailing spaces.
35572  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
35573
35574_ACEOF
35575
35576# Transform confdefs.h into two sed scripts, `conftest.defines' and
35577# `conftest.undefs', that substitutes the proper values into
35578# config.h.in to produce config.h.  The first handles `#define'
35579# templates, and the second `#undef' templates.
35580# And first: Protect against being on the right side of a sed subst in
35581# config.status.  Protect against being in an unquoted here document
35582# in config.status.
35583rm -f conftest.defines conftest.undefs
35584# Using a here document instead of a string reduces the quoting nightmare.
35585# Putting comments in sed scripts is not portable.
35586#
35587# `end' is used to avoid that the second main sed command (meant for
35588# 0-ary CPP macros) applies to n-ary macro definitions.
35589# See the Autoconf documentation for `clear'.
35590cat >confdef2sed.sed <<\_ACEOF
35591s/[\\&,]/\\&/g
35592s,[\\$`],\\&,g
35593t clear
35594: clear
35595s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
35596t end
35597s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
35598: end
35599_ACEOF
35600# If some macros were called several times there might be several times
35601# the same #defines, which is useless.  Nevertheless, we may not want to
35602# sort them, since we want the *last* AC-DEFINE to be honored.
35603uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
35604sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
35605rm -f confdef2sed.sed
35606
35607# This sed command replaces #undef with comments.  This is necessary, for
35608# example, in the case of _POSIX_SOURCE, which is predefined and required
35609# on some systems where configure will not decide to define it.
35610cat >>conftest.undefs <<\_ACEOF
35611s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
35612_ACEOF
35613
35614# Break up conftest.defines because some shells have a limit on the size
35615# of here documents, and old seds have small limits too (100 cmds).
35616echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
35617echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
35618echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
35619echo '  :' >>$CONFIG_STATUS
35620rm -f conftest.tail
35621while grep . conftest.defines >/dev/null
35622do
35623  # Write a limited-size here document to $tmp/defines.sed.
35624  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
35625  # Speed up: don't consider the non `#define' lines.
35626  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
35627  # Work around the forget-to-reset-the-flag bug.
35628  echo 't clr' >>$CONFIG_STATUS
35629  echo ': clr' >>$CONFIG_STATUS
35630  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
35631  echo 'CEOF
35632  sed -f $tmp/defines.sed $tmp/in >$tmp/out
35633  rm -f $tmp/in
35634  mv $tmp/out $tmp/in
35635' >>$CONFIG_STATUS
35636  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
35637  rm -f conftest.defines
35638  mv conftest.tail conftest.defines
35639done
35640rm -f conftest.defines
35641echo '  fi # egrep' >>$CONFIG_STATUS
35642echo >>$CONFIG_STATUS
35643
35644# Break up conftest.undefs because some shells have a limit on the size
35645# of here documents, and old seds have small limits too (100 cmds).
35646echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
35647rm -f conftest.tail
35648while grep . conftest.undefs >/dev/null
35649do
35650  # Write a limited-size here document to $tmp/undefs.sed.
35651  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
35652  # Speed up: don't consider the non `#undef'
35653  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
35654  # Work around the forget-to-reset-the-flag bug.
35655  echo 't clr' >>$CONFIG_STATUS
35656  echo ': clr' >>$CONFIG_STATUS
35657  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
35658  echo 'CEOF
35659  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
35660  rm -f $tmp/in
35661  mv $tmp/out $tmp/in
35662' >>$CONFIG_STATUS
35663  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
35664  rm -f conftest.undefs
35665  mv conftest.tail conftest.undefs
35666done
35667rm -f conftest.undefs
35668
35669cat >>$CONFIG_STATUS <<\_ACEOF
35670  # Let's still pretend it is `configure' which instantiates (i.e., don't
35671  # use $as_me), people would be surprised to read:
35672  #    /* config.h.  Generated by config.status.  */
35673  if test x"$ac_file" = x-; then
35674    echo "/* Generated by configure.  */" >$tmp/config.h
35675  else
35676    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
35677  fi
35678  cat $tmp/in >>$tmp/config.h
35679  rm -f $tmp/in
35680  if test x"$ac_file" != x-; then
35681    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
35682      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35683echo "$as_me: $ac_file is unchanged" >&6;}
35684    else
35685      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
35686$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35687         X"$ac_file" : 'X\(//\)[^/]' \| \
35688         X"$ac_file" : 'X\(//\)$' \| \
35689         X"$ac_file" : 'X\(/\)' \| \
35690         .     : '\(.\)' 2>/dev/null ||
35691echo X"$ac_file" |
35692    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35693  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35694  	  /^X\(\/\/\)$/{ s//\1/; q; }
35695  	  /^X\(\/\).*/{ s//\1/; q; }
35696  	  s/.*/./; q'`
35697      { case "$ac_dir" in
35698  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35699  *)                      as_incr_dir=.;;
35700esac
35701as_dummy="$ac_dir"
35702for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35703  case $as_mkdir_dir in
35704    # Skip DOS drivespec
35705    ?:) as_incr_dir=$as_mkdir_dir ;;
35706    *)
35707      as_incr_dir=$as_incr_dir/$as_mkdir_dir
35708      test -d "$as_incr_dir" ||
35709        mkdir "$as_incr_dir" ||
35710	{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
35711echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
35712   { (exit 1); exit 1; }; }
35713    ;;
35714  esac
35715done; }
35716
35717      rm -f $ac_file
35718      mv $tmp/config.h $ac_file
35719    fi
35720  else
35721    cat $tmp/config.h
35722    rm -f $tmp/config.h
35723  fi
35724  # Run the commands associated with the file.
35725  case $ac_file in
35726    include/config.h ) # update the timestamp
35727echo 'timestamp for include/config.h' >"include/stamp-h1"
35728 ;;
35729  esac
35730done
35731_ACEOF
35732cat >>$CONFIG_STATUS <<\_ACEOF
35733
35734#
35735# CONFIG_COMMANDS section.
35736#
35737for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
35738  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
35739  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
35740  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
35741$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35742         X"$ac_dest" : 'X\(//\)[^/]' \| \
35743         X"$ac_dest" : 'X\(//\)$' \| \
35744         X"$ac_dest" : 'X\(/\)' \| \
35745         .     : '\(.\)' 2>/dev/null ||
35746echo X"$ac_dest" |
35747    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35748  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35749  	  /^X\(\/\/\)$/{ s//\1/; q; }
35750  	  /^X\(\/\).*/{ s//\1/; q; }
35751  	  s/.*/./; q'`
35752  ac_builddir=.
35753
35754if test "$ac_dir" != .; then
35755  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35756  # A "../" for each directory in $ac_dir_suffix.
35757  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
35758else
35759  ac_dir_suffix= ac_top_builddir=
35760fi
35761
35762case $srcdir in
35763  .)  # No --srcdir option.  We are building in place.
35764    ac_srcdir=.
35765    if test -z "$ac_top_builddir"; then
35766       ac_top_srcdir=.
35767    else
35768       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
35769    fi ;;
35770  [\\/]* | ?:[\\/]* )  # Absolute path.
35771    ac_srcdir=$srcdir$ac_dir_suffix;
35772    ac_top_srcdir=$srcdir ;;
35773  *) # Relative path.
35774    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
35775    ac_top_srcdir=$ac_top_builddir$srcdir ;;
35776esac
35777# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
35778# absolute.
35779ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
35780ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
35781ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
35782ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
35783
35784
35785  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
35786echo "$as_me: executing $ac_dest commands" >&6;}
35787  case $ac_dest in
35788    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35789  # Strip MF so we end up with the name of the file.
35790  mf=`echo "$mf" | sed -e 's/:.*$//'`
35791  # Check whether this is an Automake generated Makefile or not.
35792  # We used to match only the files named `Makefile.in', but
35793  # some people rename them; so instead we look at the file content.
35794  # Grep'ing the first line is not enough: some people post-process
35795  # each Makefile.in and add a new line on top of each file to say so.
35796  # So let's grep whole file.
35797  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35798    dirpart=`(dirname "$mf") 2>/dev/null ||
35799$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35800         X"$mf" : 'X\(//\)[^/]' \| \
35801         X"$mf" : 'X\(//\)$' \| \
35802         X"$mf" : 'X\(/\)' \| \
35803         .     : '\(.\)' 2>/dev/null ||
35804echo X"$mf" |
35805    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35806  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35807  	  /^X\(\/\/\)$/{ s//\1/; q; }
35808  	  /^X\(\/\).*/{ s//\1/; q; }
35809  	  s/.*/./; q'`
35810  else
35811    continue
35812  fi
35813  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
35814  # Extract the definition of DEP_FILES from the Makefile without
35815  # running `make'.
35816  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
35817  test -z "$DEPDIR" && continue
35818  # When using ansi2knr, U may be empty or an underscore; expand it
35819  U=`sed -n -e '/^U = / s///p' < "$mf"`
35820  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
35821  # We invoke sed twice because it is the simplest approach to
35822  # changing $(DEPDIR) to its actual value in the expansion.
35823  for file in `sed -n -e '
35824    /^DEP_FILES = .*\\\\$/ {
35825      s/^DEP_FILES = //
35826      :loop
35827	s/\\\\$//
35828	p
35829	n
35830	/\\\\$/ b loop
35831      p
35832    }
35833    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
35834       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35835    # Make sure the directory exists.
35836    test -f "$dirpart/$file" && continue
35837    fdir=`(dirname "$file") 2>/dev/null ||
35838$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35839         X"$file" : 'X\(//\)[^/]' \| \
35840         X"$file" : 'X\(//\)$' \| \
35841         X"$file" : 'X\(/\)' \| \
35842         .     : '\(.\)' 2>/dev/null ||
35843echo X"$file" |
35844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
35845  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
35846  	  /^X\(\/\/\)$/{ s//\1/; q; }
35847  	  /^X\(\/\).*/{ s//\1/; q; }
35848  	  s/.*/./; q'`
35849    { case $dirpart/$fdir in
35850  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
35851  *)                      as_incr_dir=.;;
35852esac
35853as_dummy=$dirpart/$fdir
35854for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
35855  case $as_mkdir_dir in
35856    # Skip DOS drivespec
35857    ?:) as_incr_dir=$as_mkdir_dir ;;
35858    *)
35859      as_incr_dir=$as_incr_dir/$as_mkdir_dir
35860      test -d "$as_incr_dir" ||
35861        mkdir "$as_incr_dir" ||
35862	{ { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
35863echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
35864   { (exit 1); exit 1; }; }
35865    ;;
35866  esac
35867done; }
35868
35869    # echo "creating $dirpart/$file"
35870    echo '# dummy' > "$dirpart/$file"
35871  done
35872done
35873 ;;
35874  esac
35875done
35876_ACEOF
35877
35878cat >>$CONFIG_STATUS <<\_ACEOF
35879
35880{ (exit 0); exit 0; }
35881_ACEOF
35882chmod +x $CONFIG_STATUS
35883ac_clean_files=$ac_clean_files_save
35884
35885
35886# configure is writing to config.log, and then calls config.status.
35887# config.status does its own redirection, appending to config.log.
35888# Unfortunately, on DOS this fails, as config.log is still kept open
35889# by configure, so config.status won't be able to write to it; its
35890# output is simply discarded.  So we exec the FD to /dev/null,
35891# effectively closing config.log, so it can be properly (re)opened and
35892# appended to by config.status.  When coming back to configure, we
35893# need to make the FD available again.
35894if test "$no_create" != yes; then
35895  ac_cs_success=:
35896  exec 5>/dev/null
35897  $SHELL $CONFIG_STATUS || ac_cs_success=false
35898  exec 5>>config.log
35899  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35900  # would make configure fail if this is the last instruction.
35901  $ac_cs_success || { (exit 1); exit 1; }
35902fi
35903
35904
35905
35906cat > include/newversion.h.in <<EOF
35907const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
35908const char *heimdal_version = "Heimdal 0.4f";
35909EOF
35910
35911if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
35912	echo "include/version.h is unchanged"
35913	rm -f include/newversion.h.in
35914else
35915 	echo "creating include/version.h"
35916 	User=${USER-${LOGNAME}}
35917 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
35918 	Date=`date`
35919	mv -f include/newversion.h.in include/version.h.in
35920	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
35921fi
35922