configure revision 127808
1#! /bin/sh
2# From configure.in Revision: 1.331.2.6 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Heimdal 0.6.1.
5#
6# Report bugs to <heimdal-bugs@pdc.kth.se>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17  emulate sh
18  NULLCMD=:
19  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20  # is contrary to our usage.  Disable this feature.
21  alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23  set -o posix
24fi
25DUALCASE=1; export DUALCASE # for MKS sh
26
27# Support unset when possible.
28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29  as_unset=unset
30else
31  as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45  LC_TELEPHONE LC_TIME
46do
47  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48    eval $as_var=C; export $as_var
49  else
50    $as_unset $as_var
51  fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56  as_expr=expr
57else
58  as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62  as_basename=basename
63else
64  as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71	 X"$0" : 'X\(//\)$' \| \
72	 X"$0" : 'X\(/\)$' \| \
73	 .     : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77  	  /^X\/\(\/\).*/{ s//\1/; q; }
78  	  s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91  echo "#! /bin/sh" >conf$$.sh
92  echo  "exit 0"   >>conf$$.sh
93  chmod +x conf$$.sh
94  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95    PATH_SEPARATOR=';'
96  else
97    PATH_SEPARATOR=:
98  fi
99  rm -f conf$$.sh
100fi
101
102
103  as_lineno_1=$LINENO
104  as_lineno_2=$LINENO
105  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106  test "x$as_lineno_1" != "x$as_lineno_2" &&
107  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108  # Find who we are.  Look in the path if we contain no path at all
109  # relative or not.
110  case $0 in
111    *[\\/]* ) as_myself=$0 ;;
112    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115  IFS=$as_save_IFS
116  test -z "$as_dir" && as_dir=.
117  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120       ;;
121  esac
122  # We did not find ourselves, most probably we were run as `sh COMMAND'
123  # in which case we are not to be found in the path.
124  if test "x$as_myself" = x; then
125    as_myself=$0
126  fi
127  if test ! -f "$as_myself"; then
128    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129   { (exit 1); exit 1; }; }
130  fi
131  case $CONFIG_SHELL in
132  '')
133    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136  IFS=$as_save_IFS
137  test -z "$as_dir" && as_dir=.
138  for as_base in sh bash ksh sh5; do
139	 case $as_dir in
140	 /*)
141	   if ("$as_dir/$as_base" -c '
142  as_lineno_1=$LINENO
143  as_lineno_2=$LINENO
144  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145  test "x$as_lineno_1" != "x$as_lineno_2" &&
146  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149	     CONFIG_SHELL=$as_dir/$as_base
150	     export CONFIG_SHELL
151	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152	   fi;;
153	 esac
154       done
155done
156;;
157  esac
158
159  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160  # uniformly replaced by the line number.  The first 'sed' inserts a
161  # line-number line before each line; the second 'sed' does the real
162  # work.  The second script uses 'N' to pair each line-number line
163  # with the numbered line, and appends trailing '-' during
164  # substitution so that $LINENO is not a special case at line end.
165  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167  sed '=' <$as_myself |
168    sed '
169      N
170      s,$,-,
171      : loop
172      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173      t loop
174      s,-$,,
175      s,^['$as_cr_digits']*\n,,
176    ' >$as_me.lineno &&
177  chmod +x $as_me.lineno ||
178    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179   { (exit 1); exit 1; }; }
180
181  # Don't try to exec as it changes $[0], causing all sort of problems
182  # (the dirname of $[0] is not the place where we might find the
183  # original and so on.  Autoconf is especially sensible to this).
184  . ./$as_me.lineno
185  # Exit status is that of the last command.
186  exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191  *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T='	' ;;
193  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198  as_expr=expr
199else
200  as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206  # We could just check for DJGPP; but this test a) works b) is more generic
207  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208  if test -f conf$$.exe; then
209    # Don't use ln at all; we don't have any links
210    as_ln_s='cp -p'
211  else
212    as_ln_s='ln -s'
213  fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215  as_ln_s=ln
216else
217  as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222  as_mkdir_p=:
223else
224  test -d ./-p && rmdir ./-p
225  as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233# Sed expression to map a string onto a valid variable name.
234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" 	$as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247
248# Check that we are running under the correct shell.
249SHELL=${CONFIG_SHELL-/bin/sh}
250
251case X$ECHO in
252X*--fallback-echo)
253  # Remove one level of quotation (which was required for Make).
254  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
255  ;;
256esac
257
258echo=${ECHO-echo}
259if test "X$1" = X--no-reexec; then
260  # Discard the --no-reexec flag, and continue.
261  shift
262elif test "X$1" = X--fallback-echo; then
263  # Avoid inline document here, it may be left over
264  :
265elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266  # Yippee, $echo works!
267  :
268else
269  # Restart under the correct shell.
270  exec $SHELL "$0" --no-reexec ${1+"$@"}
271fi
272
273if test "X$1" = X--fallback-echo; then
274  # used as fallback echo
275  shift
276  cat <<EOF
277$*
278EOF
279  exit 0
280fi
281
282# The HP-UX ksh and POSIX shell print the target directory to stdout
283# if CDPATH is set.
284if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
285
286if test -z "$ECHO"; then
287if test "X${echo_test_string+set}" != Xset; then
288# find a string as large as possible, as long as the shell can cope with it
289  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292       echo_test_string="`eval $cmd`" &&
293       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
294    then
295      break
296    fi
297  done
298fi
299
300if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302   test "X$echo_testing_string" = "X$echo_test_string"; then
303  :
304else
305  # The Solaris, AIX, and Digital Unix default echo programs unquote
306  # backslashes.  This makes it impossible to quote backslashes using
307  #   echo "$something" | sed 's/\\/\\\\/g'
308  #
309  # So, first we look for a working echo in the user's PATH.
310
311  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312  for dir in $PATH /usr/ucb; do
313    IFS="$lt_save_ifs"
314    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317       test "X$echo_testing_string" = "X$echo_test_string"; then
318      echo="$dir/echo"
319      break
320    fi
321  done
322  IFS="$lt_save_ifs"
323
324  if test "X$echo" = Xecho; then
325    # We didn't find a better echo, so look for alternatives.
326    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328       test "X$echo_testing_string" = "X$echo_test_string"; then
329      # This shell has a builtin print -r that does the trick.
330      echo='print -r'
331    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332	 test "X$CONFIG_SHELL" != X/bin/ksh; then
333      # If we have ksh, try running configure again with it.
334      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335      export ORIGINAL_CONFIG_SHELL
336      CONFIG_SHELL=/bin/ksh
337      export CONFIG_SHELL
338      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339    else
340      # Try using printf.
341      echo='printf %s\n'
342      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344	 test "X$echo_testing_string" = "X$echo_test_string"; then
345	# Cool, printf works
346	:
347      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348	   test "X$echo_testing_string" = 'X\t' &&
349	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350	   test "X$echo_testing_string" = "X$echo_test_string"; then
351	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352	export CONFIG_SHELL
353	SHELL="$CONFIG_SHELL"
354	export SHELL
355	echo="$CONFIG_SHELL $0 --fallback-echo"
356      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357	   test "X$echo_testing_string" = 'X\t' &&
358	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359	   test "X$echo_testing_string" = "X$echo_test_string"; then
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      else
362	# maybe with a smaller string...
363	prev=:
364
365	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
367	  then
368	    break
369	  fi
370	  prev="$cmd"
371	done
372
373	if test "$prev" != 'sed 50q "$0"'; then
374	  echo_test_string=`eval $prev`
375	  export echo_test_string
376	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377	else
378	  # Oops.  We lost completely, so just stick with echo.
379	  echo=echo
380	fi
381      fi
382    fi
383  fi
384fi
385fi
386
387# Copy echo and quote the copy suitably for passing to libtool from
388# the Makefile, instead of quoting the original, which is used later.
389ECHO=$echo
390if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
392fi
393
394
395
396
397tagnames=${tagnames+${tagnames},}CXX
398
399tagnames=${tagnames+${tagnames},}F77
400
401# Name of the host.
402# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403# so uname gets run too.
404ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
405
406exec 6>&1
407
408#
409# Initializations.
410#
411ac_default_prefix=/usr/local
412ac_config_libobj_dir=.
413cross_compiling=no
414subdirs=
415MFLAGS=
416MAKEFLAGS=
417SHELL=${CONFIG_SHELL-/bin/sh}
418
419# Maximum number of lines to put in a shell here document.
420# This variable seems obsolete.  It should probably be removed, and
421# only ac_max_sed_lines should be used.
422: ${ac_max_here_lines=38}
423
424# Identity of this package.
425PACKAGE_NAME='Heimdal'
426PACKAGE_TARNAME='heimdal'
427PACKAGE_VERSION='0.6.1'
428PACKAGE_STRING='Heimdal 0.6.1'
429PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se'
430
431ac_unique_file="kuser/kinit.c"
432ac_default_prefix=/usr/heimdal
433# Factoring default headers for most tests.
434ac_includes_default="\
435#include <stdio.h>
436#if HAVE_SYS_TYPES_H
437# include <sys/types.h>
438#endif
439#if HAVE_SYS_STAT_H
440# include <sys/stat.h>
441#endif
442#if STDC_HEADERS
443# include <stdlib.h>
444# include <stddef.h>
445#else
446# if HAVE_STDLIB_H
447#  include <stdlib.h>
448# endif
449#endif
450#if HAVE_STRING_H
451# if !STDC_HEADERS && HAVE_MEMORY_H
452#  include <memory.h>
453# endif
454# include <string.h>
455#endif
456#if HAVE_STRINGS_H
457# include <strings.h>
458#endif
459#if HAVE_INTTYPES_H
460# include <inttypes.h>
461#else
462# if HAVE_STDINT_H
463#  include <stdint.h>
464# endif
465#endif
466#if HAVE_UNISTD_H
467# include <unistd.h>
468#endif"
469
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CANONICAL_HOST YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL WFLAGS WFLAGS_NOUNUSED WFLAGS_NOIMPLICITINT INCLUDE_openldap LIB_openldap INCLUDE_krb4 LIB_krb4 EXTRA_LIB45 LIB_krb_enable_debug LIB_krb_disable_debug LIB_krb_get_our_ip_for_realm LIB_krb_kdctimeofday LIB_krb_get_kdc_time_diff KRB4_TRUE KRB4_FALSE KRB5_TRUE KRB5_FALSE do_roken_rename_TRUE do_roken_rename_FALSE LIB_kdb HAVE_OPENSSL_TRUE HAVE_OPENSSL_FALSE DIR_des INCLUDE_des LIB_des LIB_des_a LIB_des_so LIB_des_appl DCE_TRUE DCE_FALSE dpagaix_cflags dpagaix_ldadd dpagaix_ldflags LIB_db_create LIB_dbopen LIB_dbm_firstkey HAVE_DB1_TRUE HAVE_DB1_FALSE HAVE_DB3_TRUE HAVE_DB3_FALSE HAVE_NDBM_TRUE HAVE_NDBM_FALSE DBLIB LIB_NDBM VOID_RETSIGTYPE have_err_h_TRUE have_err_h_FALSE have_fnmatch_h_TRUE have_fnmatch_h_FALSE have_ifaddrs_h_TRUE have_ifaddrs_h_FALSE have_vis_h_TRUE have_vis_h_FALSE LIB_socket LIB_gethostbyname LIB_syslog LIB_gethostbyname2 LIB_res_search LIB_res_nsearch LIB_dn_expand LIBOBJS have_glob_h_TRUE have_glob_h_FALSE LIB_getsockopt LIB_setsockopt LIB_hstrerror LIB_bswap16 LIB_bswap32 LIB_pidfile LIB_getaddrinfo LIB_getnameinfo LIB_freeaddrinfo LIB_gai_strerror LIB_crypt DIR_roken LIB_roken INCLUDES_roken LIB_otp OTP_TRUE OTP_FALSE LIB_security NROFF GROFF CATMAN CATMAN_TRUE CATMAN_FALSE CATMANEXT INCLUDE_readline LIB_readline INCLUDE_hesiod LIB_hesiod AIX_TRUE AIX_FALSE AIX4_TRUE AIX4_FALSE LIB_dlopen HAVE_DLOPEN_TRUE HAVE_DLOPEN_FALSE LIB_loadquery AIX_DYNAMIC_AFS_TRUE AIX_DYNAMIC_AFS_FALSE AIX_EXTRA_KAFS IRIX_TRUE IRIX_FALSE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_X_TRUE HAVE_X_FALSE LIB_XauWriteAuth LIB_XauReadAuth LIB_XauFileName NEED_WRITEAUTH_TRUE NEED_WRITEAUTH_FALSE LIB_logwtmp LIB_logout LIB_openpty LIB_tgetent LIB_getpwnam_r LIB_el_init el_compat_TRUE el_compat_FALSE COMPILE_ET DIR_com_err LIB_com_err LIB_com_err_a LIB_com_err_so LIB_AUTH_SUBDIRS LTLIBOBJS'
471ac_subst_files=''
472
473# Initialize some variables set by options.
474ac_init_help=
475ac_init_version=false
476# The variables have the same names as the options, with
477# dashes changed to underlines.
478cache_file=/dev/null
479exec_prefix=NONE
480no_create=
481no_recursion=
482prefix=NONE
483program_prefix=NONE
484program_suffix=NONE
485program_transform_name=s,x,x,
486silent=
487site=
488srcdir=
489verbose=
490x_includes=NONE
491x_libraries=NONE
492
493# Installation directory options.
494# These are left unexpanded so users can "make install exec_prefix=/foo"
495# and all the variables that are supposed to be based on exec_prefix
496# by default will actually change.
497# Use braces instead of parens because sh, perl, etc. also accept them.
498bindir='${exec_prefix}/bin'
499sbindir='${exec_prefix}/sbin'
500libexecdir='${exec_prefix}/libexec'
501datadir='${prefix}/share'
502sysconfdir='${prefix}/etc'
503sharedstatedir='${prefix}/com'
504localstatedir='${prefix}/var'
505libdir='${exec_prefix}/lib'
506includedir='${prefix}/include'
507oldincludedir='/usr/include'
508infodir='${prefix}/info'
509mandir='${prefix}/man'
510
511ac_prev=
512for ac_option
513do
514  # If the previous option needs an argument, assign it.
515  if test -n "$ac_prev"; then
516    eval "$ac_prev=\$ac_option"
517    ac_prev=
518    continue
519  fi
520
521  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522
523  # Accept the important Cygnus configure options, so we can diagnose typos.
524
525  case $ac_option in
526
527  -bindir | --bindir | --bindi | --bind | --bin | --bi)
528    ac_prev=bindir ;;
529  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530    bindir=$ac_optarg ;;
531
532  -build | --build | --buil | --bui | --bu)
533    ac_prev=build_alias ;;
534  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535    build_alias=$ac_optarg ;;
536
537  -cache-file | --cache-file | --cache-fil | --cache-fi \
538  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539    ac_prev=cache_file ;;
540  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542    cache_file=$ac_optarg ;;
543
544  --config-cache | -C)
545    cache_file=config.cache ;;
546
547  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548    ac_prev=datadir ;;
549  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550  | --da=*)
551    datadir=$ac_optarg ;;
552
553  -disable-* | --disable-*)
554    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555    # Reject names that are not valid shell variable names.
556    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558   { (exit 1); exit 1; }; }
559    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560    eval "enable_$ac_feature=no" ;;
561
562  -enable-* | --enable-*)
563    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564    # Reject names that are not valid shell variable names.
565    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567   { (exit 1); exit 1; }; }
568    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569    case $ac_option in
570      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571      *) ac_optarg=yes ;;
572    esac
573    eval "enable_$ac_feature='$ac_optarg'" ;;
574
575  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577  | --exec | --exe | --ex)
578    ac_prev=exec_prefix ;;
579  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581  | --exec=* | --exe=* | --ex=*)
582    exec_prefix=$ac_optarg ;;
583
584  -gas | --gas | --ga | --g)
585    # Obsolete; use --with-gas.
586    with_gas=yes ;;
587
588  -help | --help | --hel | --he | -h)
589    ac_init_help=long ;;
590  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591    ac_init_help=recursive ;;
592  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593    ac_init_help=short ;;
594
595  -host | --host | --hos | --ho)
596    ac_prev=host_alias ;;
597  -host=* | --host=* | --hos=* | --ho=*)
598    host_alias=$ac_optarg ;;
599
600  -includedir | --includedir | --includedi | --included | --include \
601  | --includ | --inclu | --incl | --inc)
602    ac_prev=includedir ;;
603  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604  | --includ=* | --inclu=* | --incl=* | --inc=*)
605    includedir=$ac_optarg ;;
606
607  -infodir | --infodir | --infodi | --infod | --info | --inf)
608    ac_prev=infodir ;;
609  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610    infodir=$ac_optarg ;;
611
612  -libdir | --libdir | --libdi | --libd)
613    ac_prev=libdir ;;
614  -libdir=* | --libdir=* | --libdi=* | --libd=*)
615    libdir=$ac_optarg ;;
616
617  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618  | --libexe | --libex | --libe)
619    ac_prev=libexecdir ;;
620  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621  | --libexe=* | --libex=* | --libe=*)
622    libexecdir=$ac_optarg ;;
623
624  -localstatedir | --localstatedir | --localstatedi | --localstated \
625  | --localstate | --localstat | --localsta | --localst \
626  | --locals | --local | --loca | --loc | --lo)
627    ac_prev=localstatedir ;;
628  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631    localstatedir=$ac_optarg ;;
632
633  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634    ac_prev=mandir ;;
635  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636    mandir=$ac_optarg ;;
637
638  -nfp | --nfp | --nf)
639    # Obsolete; use --without-fp.
640    with_fp=no ;;
641
642  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643  | --no-cr | --no-c | -n)
644    no_create=yes ;;
645
646  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648    no_recursion=yes ;;
649
650  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652  | --oldin | --oldi | --old | --ol | --o)
653    ac_prev=oldincludedir ;;
654  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657    oldincludedir=$ac_optarg ;;
658
659  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660    ac_prev=prefix ;;
661  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662    prefix=$ac_optarg ;;
663
664  -program-prefix | --program-prefix | --program-prefi | --program-pref \
665  | --program-pre | --program-pr | --program-p)
666    ac_prev=program_prefix ;;
667  -program-prefix=* | --program-prefix=* | --program-prefi=* \
668  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669    program_prefix=$ac_optarg ;;
670
671  -program-suffix | --program-suffix | --program-suffi | --program-suff \
672  | --program-suf | --program-su | --program-s)
673    ac_prev=program_suffix ;;
674  -program-suffix=* | --program-suffix=* | --program-suffi=* \
675  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676    program_suffix=$ac_optarg ;;
677
678  -program-transform-name | --program-transform-name \
679  | --program-transform-nam | --program-transform-na \
680  | --program-transform-n | --program-transform- \
681  | --program-transform | --program-transfor \
682  | --program-transfo | --program-transf \
683  | --program-trans | --program-tran \
684  | --progr-tra | --program-tr | --program-t)
685    ac_prev=program_transform_name ;;
686  -program-transform-name=* | --program-transform-name=* \
687  | --program-transform-nam=* | --program-transform-na=* \
688  | --program-transform-n=* | --program-transform-=* \
689  | --program-transform=* | --program-transfor=* \
690  | --program-transfo=* | --program-transf=* \
691  | --program-trans=* | --program-tran=* \
692  | --progr-tra=* | --program-tr=* | --program-t=*)
693    program_transform_name=$ac_optarg ;;
694
695  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696  | -silent | --silent | --silen | --sile | --sil)
697    silent=yes ;;
698
699  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700    ac_prev=sbindir ;;
701  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702  | --sbi=* | --sb=*)
703    sbindir=$ac_optarg ;;
704
705  -sharedstatedir | --sharedstatedir | --sharedstatedi \
706  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707  | --sharedst | --shareds | --shared | --share | --shar \
708  | --sha | --sh)
709    ac_prev=sharedstatedir ;;
710  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713  | --sha=* | --sh=*)
714    sharedstatedir=$ac_optarg ;;
715
716  -site | --site | --sit)
717    ac_prev=site ;;
718  -site=* | --site=* | --sit=*)
719    site=$ac_optarg ;;
720
721  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722    ac_prev=srcdir ;;
723  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724    srcdir=$ac_optarg ;;
725
726  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727  | --syscon | --sysco | --sysc | --sys | --sy)
728    ac_prev=sysconfdir ;;
729  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731    sysconfdir=$ac_optarg ;;
732
733  -target | --target | --targe | --targ | --tar | --ta | --t)
734    ac_prev=target_alias ;;
735  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736    target_alias=$ac_optarg ;;
737
738  -v | -verbose | --verbose | --verbos | --verbo | --verb)
739    verbose=yes ;;
740
741  -version | --version | --versio | --versi | --vers | -V)
742    ac_init_version=: ;;
743
744  -with-* | --with-*)
745    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746    # Reject names that are not valid shell variable names.
747    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748      { echo "$as_me: error: invalid package name: $ac_package" >&2
749   { (exit 1); exit 1; }; }
750    ac_package=`echo $ac_package| sed 's/-/_/g'`
751    case $ac_option in
752      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753      *) ac_optarg=yes ;;
754    esac
755    eval "with_$ac_package='$ac_optarg'" ;;
756
757  -without-* | --without-*)
758    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package | sed 's/-/_/g'`
764    eval "with_$ac_package=no" ;;
765
766  --x)
767    # Obsolete; use --with-x.
768    with_x=yes ;;
769
770  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771  | --x-incl | --x-inc | --x-in | --x-i)
772    ac_prev=x_includes ;;
773  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775    x_includes=$ac_optarg ;;
776
777  -x-libraries | --x-libraries | --x-librarie | --x-librari \
778  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779    ac_prev=x_libraries ;;
780  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782    x_libraries=$ac_optarg ;;
783
784  -*) { echo "$as_me: error: unrecognized option: $ac_option
785Try \`$0 --help' for more information." >&2
786   { (exit 1); exit 1; }; }
787    ;;
788
789  *=*)
790    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791    # Reject names that are not valid shell variable names.
792    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794   { (exit 1); exit 1; }; }
795    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796    eval "$ac_envvar='$ac_optarg'"
797    export $ac_envvar ;;
798
799  *)
800    # FIXME: should be removed in autoconf 3.0.
801    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
805    ;;
806
807  esac
808done
809
810if test -n "$ac_prev"; then
811  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812  { echo "$as_me: error: missing argument to $ac_option" >&2
813   { (exit 1); exit 1; }; }
814fi
815
816# Be sure to have absolute paths.
817for ac_var in exec_prefix prefix
818do
819  eval ac_val=$`echo $ac_var`
820  case $ac_val in
821    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823   { (exit 1); exit 1; }; };;
824  esac
825done
826
827# Be sure to have absolute paths.
828for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829	      localstatedir libdir includedir oldincludedir infodir mandir
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# There might be people who depend on the old broken behavior: `$host'
840# used to hold the argument of --host etc.
841# FIXME: To remove some day.
842build=$build_alias
843host=$host_alias
844target=$target_alias
845
846# FIXME: To remove some day.
847if test "x$host_alias" != x; then
848  if test "x$build_alias" = x; then
849    cross_compiling=maybe
850    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851    If a cross compiler is detected then cross compile mode will be used." >&2
852  elif test "x$build_alias" != "x$host_alias"; then
853    cross_compiling=yes
854  fi
855fi
856
857ac_tool_prefix=
858test -n "$host_alias" && ac_tool_prefix=$host_alias-
859
860test "$silent" = yes && exec 6>/dev/null
861
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865  ac_srcdir_defaulted=yes
866  # Try the directory containing this script, then its parent.
867  ac_confdir=`(dirname "$0") 2>/dev/null ||
868$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869	 X"$0" : 'X\(//\)[^/]' \| \
870	 X"$0" : 'X\(//\)$' \| \
871	 X"$0" : 'X\(/\)' \| \
872	 .     : '\(.\)' 2>/dev/null ||
873echo X"$0" |
874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876  	  /^X\(\/\/\)$/{ s//\1/; q; }
877  	  /^X\(\/\).*/{ s//\1/; q; }
878  	  s/.*/./; q'`
879  srcdir=$ac_confdir
880  if test ! -r $srcdir/$ac_unique_file; then
881    srcdir=..
882  fi
883else
884  ac_srcdir_defaulted=no
885fi
886if test ! -r $srcdir/$ac_unique_file; then
887  if test "$ac_srcdir_defaulted" = yes; then
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889   { (exit 1); exit 1; }; }
890  else
891    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892   { (exit 1); exit 1; }; }
893  fi
894fi
895(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897   { (exit 1); exit 1; }; }
898srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899ac_env_build_alias_set=${build_alias+set}
900ac_env_build_alias_value=$build_alias
901ac_cv_env_build_alias_set=${build_alias+set}
902ac_cv_env_build_alias_value=$build_alias
903ac_env_host_alias_set=${host_alias+set}
904ac_env_host_alias_value=$host_alias
905ac_cv_env_host_alias_set=${host_alias+set}
906ac_cv_env_host_alias_value=$host_alias
907ac_env_target_alias_set=${target_alias+set}
908ac_env_target_alias_value=$target_alias
909ac_cv_env_target_alias_set=${target_alias+set}
910ac_cv_env_target_alias_value=$target_alias
911ac_env_CC_set=${CC+set}
912ac_env_CC_value=$CC
913ac_cv_env_CC_set=${CC+set}
914ac_cv_env_CC_value=$CC
915ac_env_CFLAGS_set=${CFLAGS+set}
916ac_env_CFLAGS_value=$CFLAGS
917ac_cv_env_CFLAGS_set=${CFLAGS+set}
918ac_cv_env_CFLAGS_value=$CFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_env_CPPFLAGS_value=$CPPFLAGS
925ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927ac_env_CPP_set=${CPP+set}
928ac_env_CPP_value=$CPP
929ac_cv_env_CPP_set=${CPP+set}
930ac_cv_env_CPP_value=$CPP
931ac_env_CXX_set=${CXX+set}
932ac_env_CXX_value=$CXX
933ac_cv_env_CXX_set=${CXX+set}
934ac_cv_env_CXX_value=$CXX
935ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_env_CXXFLAGS_value=$CXXFLAGS
937ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939ac_env_CXXCPP_set=${CXXCPP+set}
940ac_env_CXXCPP_value=$CXXCPP
941ac_cv_env_CXXCPP_set=${CXXCPP+set}
942ac_cv_env_CXXCPP_value=$CXXCPP
943ac_env_F77_set=${F77+set}
944ac_env_F77_value=$F77
945ac_cv_env_F77_set=${F77+set}
946ac_cv_env_F77_value=$F77
947ac_env_FFLAGS_set=${FFLAGS+set}
948ac_env_FFLAGS_value=$FFLAGS
949ac_cv_env_FFLAGS_set=${FFLAGS+set}
950ac_cv_env_FFLAGS_value=$FFLAGS
951
952#
953# Report the --help message.
954#
955if test "$ac_init_help" = "long"; then
956  # Omit some internal or obsolete options to make the list less imposing.
957  # This message is too long to be a string in the A/UX 3.1 sh.
958  cat <<_ACEOF
959\`configure' configures Heimdal 0.6.1 to adapt to many kinds of systems.
960
961Usage: $0 [OPTION]... [VAR=VALUE]...
962
963To assign environment variables (e.g., CC, CFLAGS...), specify them as
964VAR=VALUE.  See below for descriptions of some of the useful variables.
965
966Defaults for the options are specified in brackets.
967
968Configuration:
969  -h, --help              display this help and exit
970      --help=short        display options specific to this package
971      --help=recursive    display the short help of all the included packages
972  -V, --version           display version information and exit
973  -q, --quiet, --silent   do not print \`checking...' messages
974      --cache-file=FILE   cache test results in FILE [disabled]
975  -C, --config-cache      alias for \`--cache-file=config.cache'
976  -n, --no-create         do not create output files
977      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
978
979_ACEOF
980
981  cat <<_ACEOF
982Installation directories:
983  --prefix=PREFIX         install architecture-independent files in PREFIX
984			  [$ac_default_prefix]
985  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
986			  [PREFIX]
987
988By default, \`make install' will install all the files in
989\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
990an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991for instance \`--prefix=\$HOME'.
992
993For better control, use the options below.
994
995Fine tuning of the installation directories:
996  --bindir=DIR           user executables [EPREFIX/bin]
997  --sbindir=DIR          system admin executables [EPREFIX/sbin]
998  --libexecdir=DIR       program executables [EPREFIX/libexec]
999  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1000  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1001  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1002  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1003  --libdir=DIR           object code libraries [EPREFIX/lib]
1004  --includedir=DIR       C header files [PREFIX/include]
1005  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1006  --infodir=DIR          info documentation [PREFIX/info]
1007  --mandir=DIR           man documentation [PREFIX/man]
1008_ACEOF
1009
1010  cat <<\_ACEOF
1011
1012Program names:
1013  --program-prefix=PREFIX            prepend PREFIX to installed program names
1014  --program-suffix=SUFFIX            append SUFFIX to installed program names
1015  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1016
1017X features:
1018  --x-includes=DIR    X include files are in DIR
1019  --x-libraries=DIR   X library files are in DIR
1020
1021System types:
1022  --build=BUILD     configure for building on BUILD [guessed]
1023  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1024_ACEOF
1025fi
1026
1027if test -n "$ac_init_help"; then
1028  case $ac_init_help in
1029     short | recursive ) echo "Configuration of Heimdal 0.6.1:";;
1030   esac
1031  cat <<\_ACEOF
1032
1033Optional Features:
1034  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1035  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1036  --enable-maintainer-mode enable make rules and dependencies not useful
1037                          (and sometimes confusing) to the casual installer
1038  --disable-largefile     omit support for large files
1039  --enable-shared[=PKGS]
1040                          build shared libraries [default=no]
1041  --enable-static[=PKGS]
1042                          build static libraries [default=yes]
1043  --enable-fast-install[=PKGS]
1044                          optimize for fast installation [default=yes]
1045  --disable-libtool-lock  avoid locking (might break parallel builds)
1046  --enable-dce            if you want support for DCE/DFS PAG's
1047  --disable-berkeley-db   if you don't want berkeley db
1048  --disable-otp           if you don't want OTP support
1049  --enable-osfc2          enable some OSF C2 support
1050  --disable-mmap          disable use of mmap
1051  --enable-bigendian      the target is big endian
1052  --enable-littleendian   the target is little endian
1053  --disable-dynamic-afs   do not use loaded AFS library with AIX
1054  --enable-netinfo        enable netinfo for configuration lookup
1055
1056Optional Packages:
1057  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1058  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1059  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)
1060  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1061  --with-pic              try to use only PIC/non-PIC objects [default=use
1062                          both]
1063  --with-tags[=TAGS]
1064                          include additional configurations [automatic]
1065  --with-openldap=dir     use openldap in dir
1066  --with-openldap-lib=dir use openldap libraries in dir
1067  --with-openldap-include=dir
1068                          use openldap headers in dir
1069  --with-openldap-config=path
1070                          config program for openldap
1071  --with-krb4=dir         use krb4 in dir
1072  --with-krb4-lib=dir     use krb4 libraries in dir
1073  --with-krb4-include=dir use krb4 headers in dir
1074  --with-krb4-config=path config program for krb4
1075  --with-openssl=dir      use openssl in dir
1076  --with-openssl-lib=dir  use openssl libraries in dir
1077  --with-openssl-include=dir
1078                          use openssl headers in dir
1079  --without-ipv6          do not enable IPv6 support
1080  --with-readline=dir     use readline in dir
1081  --with-readline-lib=dir use readline libraries in dir
1082  --with-readline-include=dir
1083                          use readline headers in dir
1084  --with-readline-config=path
1085                          config program for readline
1086  --with-hesiod=dir       use hesiod in dir
1087  --with-hesiod-lib=dir   use hesiod libraries in dir
1088  --with-hesiod-include=dir
1089                          use hesiod headers in dir
1090  --with-hesiod-config=path
1091                          config program for hesiod
1092  --with-x                use the X Window System
1093
1094Some influential environment variables:
1095  CC          C compiler command
1096  CFLAGS      C compiler flags
1097  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1098              nonstandard directory <lib dir>
1099  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100              headers in a nonstandard directory <include dir>
1101  CPP         C preprocessor
1102  CXX         C++ compiler command
1103  CXXFLAGS    C++ compiler flags
1104  CXXCPP      C++ preprocessor
1105  F77         Fortran 77 compiler command
1106  FFLAGS      Fortran 77 compiler flags
1107
1108Use these variables to override the choices made by `configure' or to help
1109it to find libraries and programs with nonstandard names/locations.
1110
1111Report bugs to <heimdal-bugs@pdc.kth.se>.
1112_ACEOF
1113fi
1114
1115if test "$ac_init_help" = "recursive"; then
1116  # If there are subdirs, report their specific --help.
1117  ac_popdir=`pwd`
1118  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119    test -d $ac_dir || continue
1120    ac_builddir=.
1121
1122if test "$ac_dir" != .; then
1123  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124  # A "../" for each directory in $ac_dir_suffix.
1125  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126else
1127  ac_dir_suffix= ac_top_builddir=
1128fi
1129
1130case $srcdir in
1131  .)  # No --srcdir option.  We are building in place.
1132    ac_srcdir=.
1133    if test -z "$ac_top_builddir"; then
1134       ac_top_srcdir=.
1135    else
1136       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137    fi ;;
1138  [\\/]* | ?:[\\/]* )  # Absolute path.
1139    ac_srcdir=$srcdir$ac_dir_suffix;
1140    ac_top_srcdir=$srcdir ;;
1141  *) # Relative path.
1142    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144esac
1145
1146# Do not use `cd foo && pwd` to compute absolute paths, because
1147# the directories may not exist.
1148case `pwd` in
1149.) ac_abs_builddir="$ac_dir";;
1150*)
1151  case "$ac_dir" in
1152  .) ac_abs_builddir=`pwd`;;
1153  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155  esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_builddir=${ac_top_builddir}.;;
1159*)
1160  case ${ac_top_builddir}. in
1161  .) ac_abs_top_builddir=$ac_abs_builddir;;
1162  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164  esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_srcdir=$ac_srcdir;;
1168*)
1169  case $ac_srcdir in
1170  .) ac_abs_srcdir=$ac_abs_builddir;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_srcdir=$ac_top_srcdir;;
1177*)
1178  case $ac_top_srcdir in
1179  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182  esac;;
1183esac
1184
1185    cd $ac_dir
1186    # Check for guested configure; otherwise get Cygnus style configure.
1187    if test -f $ac_srcdir/configure.gnu; then
1188      echo
1189      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190    elif test -f $ac_srcdir/configure; then
1191      echo
1192      $SHELL $ac_srcdir/configure  --help=recursive
1193    elif test -f $ac_srcdir/configure.ac ||
1194	   test -f $ac_srcdir/configure.in; then
1195      echo
1196      $ac_configure --help
1197    else
1198      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199    fi
1200    cd $ac_popdir
1201  done
1202fi
1203
1204test -n "$ac_init_help" && exit 0
1205if $ac_init_version; then
1206  cat <<\_ACEOF
1207Heimdal configure 0.6.1
1208generated by GNU Autoconf 2.59
1209
1210Copyright (C) 2003 Free Software Foundation, Inc.
1211This configure script is free software; the Free Software Foundation
1212gives unlimited permission to copy, distribute and modify it.
1213_ACEOF
1214  exit 0
1215fi
1216exec 5>config.log
1217cat >&5 <<_ACEOF
1218This file contains any messages produced by compilers while
1219running configure, to aid debugging if configure makes a mistake.
1220
1221It was created by Heimdal $as_me 0.6.1, which was
1222generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224  $ $0 $@
1225
1226_ACEOF
1227{
1228cat <<_ASUNAME
1229## --------- ##
1230## Platform. ##
1231## --------- ##
1232
1233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250_ASUNAME
1251
1252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253for as_dir in $PATH
1254do
1255  IFS=$as_save_IFS
1256  test -z "$as_dir" && as_dir=.
1257  echo "PATH: $as_dir"
1258done
1259
1260} >&5
1261
1262cat >&5 <<_ACEOF
1263
1264
1265## ----------- ##
1266## Core tests. ##
1267## ----------- ##
1268
1269_ACEOF
1270
1271
1272# Keep a trace of the command line.
1273# Strip out --no-create and --no-recursion so they do not pile up.
1274# Strip out --silent because we don't want to record it for future runs.
1275# Also quote any args containing shell meta-characters.
1276# Make two passes to allow for proper duplicate-argument suppression.
1277ac_configure_args=
1278ac_configure_args0=
1279ac_configure_args1=
1280ac_sep=
1281ac_must_keep_next=false
1282for ac_pass in 1 2
1283do
1284  for ac_arg
1285  do
1286    case $ac_arg in
1287    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289    | -silent | --silent | --silen | --sile | --sil)
1290      continue ;;
1291    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293    esac
1294    case $ac_pass in
1295    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296    2)
1297      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298      if test $ac_must_keep_next = true; then
1299	ac_must_keep_next=false # Got value, back to normal.
1300      else
1301	case $ac_arg in
1302	  *=* | --config-cache | -C | -disable-* | --disable-* \
1303	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305	  | -with-* | --with-* | -without-* | --without-* | --x)
1306	    case "$ac_configure_args0 " in
1307	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308	    esac
1309	    ;;
1310	  -* ) ac_must_keep_next=true ;;
1311	esac
1312      fi
1313      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314      # Get rid of the leading space.
1315      ac_sep=" "
1316      ;;
1317    esac
1318  done
1319done
1320$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323# When interrupted or exit'd, cleanup temporary files, and complete
1324# config.log.  We remove comments because anyway the quotes in there
1325# would cause problems or look ugly.
1326# WARNING: Be sure not to use single quotes in there, as some shells,
1327# such as our DU 5.0 friend, will then `close' the trap.
1328trap 'exit_status=$?
1329  # Save into config.log some information that might help in debugging.
1330  {
1331    echo
1332
1333    cat <<\_ASBOX
1334## ---------------- ##
1335## Cache variables. ##
1336## ---------------- ##
1337_ASBOX
1338    echo
1339    # The following way of writing the cache mishandles newlines in values,
1340{
1341  (set) 2>&1 |
1342    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343    *ac_space=\ *)
1344      sed -n \
1345	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347      ;;
1348    *)
1349      sed -n \
1350	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351      ;;
1352    esac;
1353}
1354    echo
1355
1356    cat <<\_ASBOX
1357## ----------------- ##
1358## Output variables. ##
1359## ----------------- ##
1360_ASBOX
1361    echo
1362    for ac_var in $ac_subst_vars
1363    do
1364      eval ac_val=$`echo $ac_var`
1365      echo "$ac_var='"'"'$ac_val'"'"'"
1366    done | sort
1367    echo
1368
1369    if test -n "$ac_subst_files"; then
1370      cat <<\_ASBOX
1371## ------------- ##
1372## Output files. ##
1373## ------------- ##
1374_ASBOX
1375      echo
1376      for ac_var in $ac_subst_files
1377      do
1378	eval ac_val=$`echo $ac_var`
1379	echo "$ac_var='"'"'$ac_val'"'"'"
1380      done | sort
1381      echo
1382    fi
1383
1384    if test -s confdefs.h; then
1385      cat <<\_ASBOX
1386## ----------- ##
1387## confdefs.h. ##
1388## ----------- ##
1389_ASBOX
1390      echo
1391      sed "/^$/d" confdefs.h | sort
1392      echo
1393    fi
1394    test "$ac_signal" != 0 &&
1395      echo "$as_me: caught signal $ac_signal"
1396    echo "$as_me: exit $exit_status"
1397  } >&5
1398  rm -f core *.core &&
1399  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400    exit $exit_status
1401     ' 0
1402for ac_signal in 1 2 13 15; do
1403  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404done
1405ac_signal=0
1406
1407# confdefs.h avoids OS command line length limits that DEFS can exceed.
1408rm -rf conftest* confdefs.h
1409# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410echo >confdefs.h
1411
1412# Predefined preprocessor variables.
1413
1414cat >>confdefs.h <<_ACEOF
1415#define PACKAGE_NAME "$PACKAGE_NAME"
1416_ACEOF
1417
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_VERSION "$PACKAGE_VERSION"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_STRING "$PACKAGE_STRING"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436_ACEOF
1437
1438
1439# Let the site file select an alternate cache file if it wants to.
1440# Prefer explicitly selected file to automatically selected ones.
1441if test -z "$CONFIG_SITE"; then
1442  if test "x$prefix" != xNONE; then
1443    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444  else
1445    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446  fi
1447fi
1448for ac_site_file in $CONFIG_SITE; do
1449  if test -r "$ac_site_file"; then
1450    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451echo "$as_me: loading site script $ac_site_file" >&6;}
1452    sed 's/^/| /' "$ac_site_file" >&5
1453    . "$ac_site_file"
1454  fi
1455done
1456
1457if test -r "$cache_file"; then
1458  # Some versions of bash will fail to source /dev/null (special
1459  # files actually), so we avoid doing that.
1460  if test -f "$cache_file"; then
1461    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1462echo "$as_me: loading cache $cache_file" >&6;}
1463    case $cache_file in
1464      [\\/]* | ?:[\\/]* ) . $cache_file;;
1465      *)                      . ./$cache_file;;
1466    esac
1467  fi
1468else
1469  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470echo "$as_me: creating cache $cache_file" >&6;}
1471  >$cache_file
1472fi
1473
1474# Check that the precious variables saved in the cache have kept the same
1475# value.
1476ac_cache_corrupted=false
1477for ac_var in `(set) 2>&1 |
1478	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1479  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480  eval ac_new_set=\$ac_env_${ac_var}_set
1481  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482  eval ac_new_val="\$ac_env_${ac_var}_value"
1483  case $ac_old_set,$ac_new_set in
1484    set,)
1485      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1486echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487      ac_cache_corrupted=: ;;
1488    ,set)
1489      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1490echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491      ac_cache_corrupted=: ;;
1492    ,);;
1493    *)
1494      if test "x$ac_old_val" != "x$ac_new_val"; then
1495	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1496echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1497	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1498echo "$as_me:   former value:  $ac_old_val" >&2;}
1499	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1500echo "$as_me:   current value: $ac_new_val" >&2;}
1501	ac_cache_corrupted=:
1502      fi;;
1503  esac
1504  # Pass precious variables to config.status.
1505  if test "$ac_new_set" = set; then
1506    case $ac_new_val in
1507    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1508      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1509    *) ac_arg=$ac_var=$ac_new_val ;;
1510    esac
1511    case " $ac_configure_args " in
1512      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1513      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1514    esac
1515  fi
1516done
1517if $ac_cache_corrupted; then
1518  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1519echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1520  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1521echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1522   { (exit 1); exit 1; }; }
1523fi
1524
1525ac_ext=c
1526ac_cpp='$CPP $CPPFLAGS'
1527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1529ac_compiler_gnu=$ac_cv_c_compiler_gnu
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558          ac_config_headers="$ac_config_headers include/config.h"
1559
1560
1561ac_ext=c
1562ac_cpp='$CPP $CPPFLAGS'
1563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566if test -n "$ac_tool_prefix"; then
1567  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1568set dummy ${ac_tool_prefix}gcc; ac_word=$2
1569echo "$as_me:$LINENO: checking for $ac_word" >&5
1570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571if test "${ac_cv_prog_CC+set}" = set; then
1572  echo $ECHO_N "(cached) $ECHO_C" >&6
1573else
1574  if test -n "$CC"; then
1575  ac_cv_prog_CC="$CC" # Let the user override the test.
1576else
1577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578for as_dir in $PATH
1579do
1580  IFS=$as_save_IFS
1581  test -z "$as_dir" && as_dir=.
1582  for ac_exec_ext in '' $ac_executable_extensions; do
1583  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1585    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586    break 2
1587  fi
1588done
1589done
1590
1591fi
1592fi
1593CC=$ac_cv_prog_CC
1594if test -n "$CC"; then
1595  echo "$as_me:$LINENO: result: $CC" >&5
1596echo "${ECHO_T}$CC" >&6
1597else
1598  echo "$as_me:$LINENO: result: no" >&5
1599echo "${ECHO_T}no" >&6
1600fi
1601
1602fi
1603if test -z "$ac_cv_prog_CC"; then
1604  ac_ct_CC=$CC
1605  # Extract the first word of "gcc", so it can be a program name with args.
1606set dummy gcc; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610  echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612  if test -n "$ac_ct_CC"; then
1613  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614else
1615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618  IFS=$as_save_IFS
1619  test -z "$as_dir" && as_dir=.
1620  for ac_exec_ext in '' $ac_executable_extensions; do
1621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622    ac_cv_prog_ac_ct_CC="gcc"
1623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624    break 2
1625  fi
1626done
1627done
1628
1629fi
1630fi
1631ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632if test -n "$ac_ct_CC"; then
1633  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1634echo "${ECHO_T}$ac_ct_CC" >&6
1635else
1636  echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
1638fi
1639
1640  CC=$ac_ct_CC
1641else
1642  CC="$ac_cv_prog_CC"
1643fi
1644
1645if test -z "$CC"; then
1646  if test -n "$ac_tool_prefix"; then
1647  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1648set dummy ${ac_tool_prefix}cc; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652  echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654  if test -n "$CC"; then
1655  ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660  IFS=$as_save_IFS
1661  test -z "$as_dir" && as_dir=.
1662  for ac_exec_ext in '' $ac_executable_extensions; do
1663  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664    ac_cv_prog_CC="${ac_tool_prefix}cc"
1665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666    break 2
1667  fi
1668done
1669done
1670
1671fi
1672fi
1673CC=$ac_cv_prog_CC
1674if test -n "$CC"; then
1675  echo "$as_me:$LINENO: result: $CC" >&5
1676echo "${ECHO_T}$CC" >&6
1677else
1678  echo "$as_me:$LINENO: result: no" >&5
1679echo "${ECHO_T}no" >&6
1680fi
1681
1682fi
1683if test -z "$ac_cv_prog_CC"; then
1684  ac_ct_CC=$CC
1685  # Extract the first word of "cc", so it can be a program name with args.
1686set dummy cc; ac_word=$2
1687echo "$as_me:$LINENO: checking for $ac_word" >&5
1688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1690  echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692  if test -n "$ac_ct_CC"; then
1693  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1694else
1695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696for as_dir in $PATH
1697do
1698  IFS=$as_save_IFS
1699  test -z "$as_dir" && as_dir=.
1700  for ac_exec_ext in '' $ac_executable_extensions; do
1701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702    ac_cv_prog_ac_ct_CC="cc"
1703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1704    break 2
1705  fi
1706done
1707done
1708
1709fi
1710fi
1711ac_ct_CC=$ac_cv_prog_ac_ct_CC
1712if test -n "$ac_ct_CC"; then
1713  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1714echo "${ECHO_T}$ac_ct_CC" >&6
1715else
1716  echo "$as_me:$LINENO: result: no" >&5
1717echo "${ECHO_T}no" >&6
1718fi
1719
1720  CC=$ac_ct_CC
1721else
1722  CC="$ac_cv_prog_CC"
1723fi
1724
1725fi
1726if test -z "$CC"; then
1727  # Extract the first word of "cc", so it can be a program name with args.
1728set dummy cc; ac_word=$2
1729echo "$as_me:$LINENO: checking for $ac_word" >&5
1730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1731if test "${ac_cv_prog_CC+set}" = set; then
1732  echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734  if test -n "$CC"; then
1735  ac_cv_prog_CC="$CC" # Let the user override the test.
1736else
1737  ac_prog_rejected=no
1738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1739for as_dir in $PATH
1740do
1741  IFS=$as_save_IFS
1742  test -z "$as_dir" && as_dir=.
1743  for ac_exec_ext in '' $ac_executable_extensions; do
1744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1745    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1746       ac_prog_rejected=yes
1747       continue
1748     fi
1749    ac_cv_prog_CC="cc"
1750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751    break 2
1752  fi
1753done
1754done
1755
1756if test $ac_prog_rejected = yes; then
1757  # We found a bogon in the path, so make sure we never use it.
1758  set dummy $ac_cv_prog_CC
1759  shift
1760  if test $# != 0; then
1761    # We chose a different compiler from the bogus one.
1762    # However, it has the same basename, so the bogon will be chosen
1763    # first if we set CC to just the basename; use the full file name.
1764    shift
1765    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1766  fi
1767fi
1768fi
1769fi
1770CC=$ac_cv_prog_CC
1771if test -n "$CC"; then
1772  echo "$as_me:$LINENO: result: $CC" >&5
1773echo "${ECHO_T}$CC" >&6
1774else
1775  echo "$as_me:$LINENO: result: no" >&5
1776echo "${ECHO_T}no" >&6
1777fi
1778
1779fi
1780if test -z "$CC"; then
1781  if test -n "$ac_tool_prefix"; then
1782  for ac_prog in cl
1783  do
1784    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1786echo "$as_me:$LINENO: checking for $ac_word" >&5
1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788if test "${ac_cv_prog_CC+set}" = set; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  if test -n "$CC"; then
1792  ac_cv_prog_CC="$CC" # Let the user override the test.
1793else
1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795for as_dir in $PATH
1796do
1797  IFS=$as_save_IFS
1798  test -z "$as_dir" && as_dir=.
1799  for ac_exec_ext in '' $ac_executable_extensions; do
1800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803    break 2
1804  fi
1805done
1806done
1807
1808fi
1809fi
1810CC=$ac_cv_prog_CC
1811if test -n "$CC"; then
1812  echo "$as_me:$LINENO: result: $CC" >&5
1813echo "${ECHO_T}$CC" >&6
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819    test -n "$CC" && break
1820  done
1821fi
1822if test -z "$CC"; then
1823  ac_ct_CC=$CC
1824  for ac_prog in cl
1825do
1826  # Extract the first word of "$ac_prog", so it can be a program name with args.
1827set dummy $ac_prog; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  if test -n "$ac_ct_CC"; then
1834  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835else
1836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1837for as_dir in $PATH
1838do
1839  IFS=$as_save_IFS
1840  test -z "$as_dir" && as_dir=.
1841  for ac_exec_ext in '' $ac_executable_extensions; do
1842  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843    ac_cv_prog_ac_ct_CC="$ac_prog"
1844    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1845    break 2
1846  fi
1847done
1848done
1849
1850fi
1851fi
1852ac_ct_CC=$ac_cv_prog_ac_ct_CC
1853if test -n "$ac_ct_CC"; then
1854  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1855echo "${ECHO_T}$ac_ct_CC" >&6
1856else
1857  echo "$as_me:$LINENO: result: no" >&5
1858echo "${ECHO_T}no" >&6
1859fi
1860
1861  test -n "$ac_ct_CC" && break
1862done
1863
1864  CC=$ac_ct_CC
1865fi
1866
1867fi
1868
1869
1870test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1871See \`config.log' for more details." >&5
1872echo "$as_me: error: no acceptable C compiler found in \$PATH
1873See \`config.log' for more details." >&2;}
1874   { (exit 1); exit 1; }; }
1875
1876# Provide some information about the compiler.
1877echo "$as_me:$LINENO:" \
1878     "checking for C compiler version" >&5
1879ac_compiler=`set X $ac_compile; echo $2`
1880{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1881  (eval $ac_compiler --version </dev/null >&5) 2>&5
1882  ac_status=$?
1883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884  (exit $ac_status); }
1885{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1886  (eval $ac_compiler -v </dev/null >&5) 2>&5
1887  ac_status=$?
1888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889  (exit $ac_status); }
1890{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1891  (eval $ac_compiler -V </dev/null >&5) 2>&5
1892  ac_status=$?
1893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894  (exit $ac_status); }
1895
1896cat >conftest.$ac_ext <<_ACEOF
1897/* confdefs.h.  */
1898_ACEOF
1899cat confdefs.h >>conftest.$ac_ext
1900cat >>conftest.$ac_ext <<_ACEOF
1901/* end confdefs.h.  */
1902
1903int
1904main ()
1905{
1906
1907  ;
1908  return 0;
1909}
1910_ACEOF
1911ac_clean_files_save=$ac_clean_files
1912ac_clean_files="$ac_clean_files a.out a.exe b.out"
1913# Try to create an executable without -o first, disregard a.out.
1914# It will help us diagnose broken compilers, and finding out an intuition
1915# of exeext.
1916echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1917echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1918ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1919if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1920  (eval $ac_link_default) 2>&5
1921  ac_status=$?
1922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923  (exit $ac_status); }; then
1924  # Find the output, starting from the most likely.  This scheme is
1925# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1926# resort.
1927
1928# Be careful to initialize this variable, since it used to be cached.
1929# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1930ac_cv_exeext=
1931# b.out is created by i960 compilers.
1932for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1933do
1934  test -f "$ac_file" || continue
1935  case $ac_file in
1936    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1937	;;
1938    conftest.$ac_ext )
1939	# This is the source file.
1940	;;
1941    [ab].out )
1942	# We found the default executable, but exeext='' is most
1943	# certainly right.
1944	break;;
1945    *.* )
1946	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1947	# FIXME: I believe we export ac_cv_exeext for Libtool,
1948	# but it would be cool to find out if it's true.  Does anybody
1949	# maintain Libtool? --akim.
1950	export ac_cv_exeext
1951	break;;
1952    * )
1953	break;;
1954  esac
1955done
1956else
1957  echo "$as_me: failed program was:" >&5
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
1960{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1961See \`config.log' for more details." >&5
1962echo "$as_me: error: C compiler cannot create executables
1963See \`config.log' for more details." >&2;}
1964   { (exit 77); exit 77; }; }
1965fi
1966
1967ac_exeext=$ac_cv_exeext
1968echo "$as_me:$LINENO: result: $ac_file" >&5
1969echo "${ECHO_T}$ac_file" >&6
1970
1971# Check the compiler produces executables we can run.  If not, either
1972# the compiler is broken, or we cross compile.
1973echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1974echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1975# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1976# If not cross compiling, check that we can run a simple program.
1977if test "$cross_compiling" != yes; then
1978  if { ac_try='./$ac_file'
1979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1980  (eval $ac_try) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; }; then
1984    cross_compiling=no
1985  else
1986    if test "$cross_compiling" = maybe; then
1987	cross_compiling=yes
1988    else
1989	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1990If you meant to cross compile, use \`--host'.
1991See \`config.log' for more details." >&5
1992echo "$as_me: error: cannot run C compiled programs.
1993If you meant to cross compile, use \`--host'.
1994See \`config.log' for more details." >&2;}
1995   { (exit 1); exit 1; }; }
1996    fi
1997  fi
1998fi
1999echo "$as_me:$LINENO: result: yes" >&5
2000echo "${ECHO_T}yes" >&6
2001
2002rm -f a.out a.exe conftest$ac_cv_exeext b.out
2003ac_clean_files=$ac_clean_files_save
2004# Check the compiler produces executables we can run.  If not, either
2005# the compiler is broken, or we cross compile.
2006echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2007echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2008echo "$as_me:$LINENO: result: $cross_compiling" >&5
2009echo "${ECHO_T}$cross_compiling" >&6
2010
2011echo "$as_me:$LINENO: checking for suffix of executables" >&5
2012echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2014  (eval $ac_link) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }; then
2018  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2019# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2020# work properly (i.e., refer to `conftest.exe'), while it won't with
2021# `rm'.
2022for ac_file in conftest.exe conftest conftest.*; do
2023  test -f "$ac_file" || continue
2024  case $ac_file in
2025    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2026    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2027	  export ac_cv_exeext
2028	  break;;
2029    * ) break;;
2030  esac
2031done
2032else
2033  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2034See \`config.log' for more details." >&5
2035echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2036See \`config.log' for more details." >&2;}
2037   { (exit 1); exit 1; }; }
2038fi
2039
2040rm -f conftest$ac_cv_exeext
2041echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2042echo "${ECHO_T}$ac_cv_exeext" >&6
2043
2044rm -f conftest.$ac_ext
2045EXEEXT=$ac_cv_exeext
2046ac_exeext=$EXEEXT
2047echo "$as_me:$LINENO: checking for suffix of object files" >&5
2048echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2049if test "${ac_cv_objext+set}" = set; then
2050  echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052  cat >conftest.$ac_ext <<_ACEOF
2053/* confdefs.h.  */
2054_ACEOF
2055cat confdefs.h >>conftest.$ac_ext
2056cat >>conftest.$ac_ext <<_ACEOF
2057/* end confdefs.h.  */
2058
2059int
2060main ()
2061{
2062
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067rm -f conftest.o conftest.obj
2068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069  (eval $ac_compile) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }; then
2073  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2074  case $ac_file in
2075    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2076    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2077       break;;
2078  esac
2079done
2080else
2081  echo "$as_me: failed program was:" >&5
2082sed 's/^/| /' conftest.$ac_ext >&5
2083
2084{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: cannot compute suffix of object files: cannot compile
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089fi
2090
2091rm -f conftest.$ac_cv_objext conftest.$ac_ext
2092fi
2093echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2094echo "${ECHO_T}$ac_cv_objext" >&6
2095OBJEXT=$ac_cv_objext
2096ac_objext=$OBJEXT
2097echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2098echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2099if test "${ac_cv_c_compiler_gnu+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  cat >conftest.$ac_ext <<_ACEOF
2103/* confdefs.h.  */
2104_ACEOF
2105cat confdefs.h >>conftest.$ac_ext
2106cat >>conftest.$ac_ext <<_ACEOF
2107/* end confdefs.h.  */
2108
2109int
2110main ()
2111{
2112#ifndef __GNUC__
2113       choke me
2114#endif
2115
2116  ;
2117  return 0;
2118}
2119_ACEOF
2120rm -f conftest.$ac_objext
2121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122  (eval $ac_compile) 2>conftest.er1
2123  ac_status=$?
2124  grep -v '^ *+' conftest.er1 >conftest.err
2125  rm -f conftest.er1
2126  cat conftest.err >&5
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); } &&
2129	 { ac_try='test -z "$ac_c_werror_flag"
2130			 || test ! -s conftest.err'
2131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132  (eval $ac_try) 2>&5
2133  ac_status=$?
2134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135  (exit $ac_status); }; } &&
2136	 { ac_try='test -s conftest.$ac_objext'
2137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138  (eval $ac_try) 2>&5
2139  ac_status=$?
2140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141  (exit $ac_status); }; }; then
2142  ac_compiler_gnu=yes
2143else
2144  echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147ac_compiler_gnu=no
2148fi
2149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2150ac_cv_c_compiler_gnu=$ac_compiler_gnu
2151
2152fi
2153echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2154echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2155GCC=`test $ac_compiler_gnu = yes && echo yes`
2156ac_test_CFLAGS=${CFLAGS+set}
2157ac_save_CFLAGS=$CFLAGS
2158CFLAGS="-g"
2159echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2160echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2161if test "${ac_cv_prog_cc_g+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.$ac_objext
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>conftest.er1
2182  ac_status=$?
2183  grep -v '^ *+' conftest.er1 >conftest.err
2184  rm -f conftest.er1
2185  cat conftest.err >&5
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); } &&
2188	 { ac_try='test -z "$ac_c_werror_flag"
2189			 || test ! -s conftest.err'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; } &&
2195	 { ac_try='test -s conftest.$ac_objext'
2196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197  (eval $ac_try) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; }; then
2201  ac_cv_prog_cc_g=yes
2202else
2203  echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206ac_cv_prog_cc_g=no
2207fi
2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2211echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2212if test "$ac_test_CFLAGS" = set; then
2213  CFLAGS=$ac_save_CFLAGS
2214elif test $ac_cv_prog_cc_g = yes; then
2215  if test "$GCC" = yes; then
2216    CFLAGS="-g -O2"
2217  else
2218    CFLAGS="-g"
2219  fi
2220else
2221  if test "$GCC" = yes; then
2222    CFLAGS="-O2"
2223  else
2224    CFLAGS=
2225  fi
2226fi
2227echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2228echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2229if test "${ac_cv_prog_cc_stdc+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  ac_cv_prog_cc_stdc=no
2233ac_save_CC=$CC
2234cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240#include <stdarg.h>
2241#include <stdio.h>
2242#include <sys/types.h>
2243#include <sys/stat.h>
2244/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2245struct buf { int x; };
2246FILE * (*rcsopen) (struct buf *, struct stat *, int);
2247static char *e (p, i)
2248     char **p;
2249     int i;
2250{
2251  return p[i];
2252}
2253static char *f (char * (*g) (char **, int), char **p, ...)
2254{
2255  char *s;
2256  va_list v;
2257  va_start (v,p);
2258  s = g (p, va_arg (v,int));
2259  va_end (v);
2260  return s;
2261}
2262
2263/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2264   function prototypes and stuff, but not '\xHH' hex character constants.
2265   These don't provoke an error unfortunately, instead are silently treated
2266   as 'x'.  The following induces an error, until -std1 is added to get
2267   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2268   array size at least.  It's necessary to write '\x00'==0 to get something
2269   that's true only with -std1.  */
2270int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2271
2272int test (int i, double x);
2273struct s1 {int (*f) (int a);};
2274struct s2 {int (*f) (double a);};
2275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2276int argc;
2277char **argv;
2278int
2279main ()
2280{
2281return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2282  ;
2283  return 0;
2284}
2285_ACEOF
2286# Don't try gcc -ansi; that turns off useful extensions and
2287# breaks some systems' header files.
2288# AIX			-qlanglvl=ansi
2289# Ultrix and OSF/1	-std1
2290# HP-UX 10.20 and later	-Ae
2291# HP-UX older versions	-Aa -D_HPUX_SOURCE
2292# SVR4			-Xc -D__EXTENSIONS__
2293for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2294do
2295  CC="$ac_save_CC $ac_arg"
2296  rm -f conftest.$ac_objext
2297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298  (eval $ac_compile) 2>conftest.er1
2299  ac_status=$?
2300  grep -v '^ *+' conftest.er1 >conftest.err
2301  rm -f conftest.er1
2302  cat conftest.err >&5
2303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304  (exit $ac_status); } &&
2305	 { ac_try='test -z "$ac_c_werror_flag"
2306			 || test ! -s conftest.err'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; } &&
2312	 { ac_try='test -s conftest.$ac_objext'
2313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314  (eval $ac_try) 2>&5
2315  ac_status=$?
2316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317  (exit $ac_status); }; }; then
2318  ac_cv_prog_cc_stdc=$ac_arg
2319break
2320else
2321  echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324fi
2325rm -f conftest.err conftest.$ac_objext
2326done
2327rm -f conftest.$ac_ext conftest.$ac_objext
2328CC=$ac_save_CC
2329
2330fi
2331
2332case "x$ac_cv_prog_cc_stdc" in
2333  x|xno)
2334    echo "$as_me:$LINENO: result: none needed" >&5
2335echo "${ECHO_T}none needed" >&6 ;;
2336  *)
2337    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2338echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2339    CC="$CC $ac_cv_prog_cc_stdc" ;;
2340esac
2341
2342# Some people use a C++ compiler to compile C.  Since we use `exit',
2343# in C++ we need to declare it.  In case someone uses the same compiler
2344# for both compiling C and C++ we need to have the C++ compiler decide
2345# the declaration of exit, since it's the most demanding environment.
2346cat >conftest.$ac_ext <<_ACEOF
2347#ifndef __cplusplus
2348  choke me
2349#endif
2350_ACEOF
2351rm -f conftest.$ac_objext
2352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353  (eval $ac_compile) 2>conftest.er1
2354  ac_status=$?
2355  grep -v '^ *+' conftest.er1 >conftest.err
2356  rm -f conftest.er1
2357  cat conftest.err >&5
2358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359  (exit $ac_status); } &&
2360	 { ac_try='test -z "$ac_c_werror_flag"
2361			 || test ! -s conftest.err'
2362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363  (eval $ac_try) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; } &&
2367	 { ac_try='test -s conftest.$ac_objext'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; }; then
2373  for ac_declaration in \
2374   '' \
2375   'extern "C" void std::exit (int) throw (); using std::exit;' \
2376   'extern "C" void std::exit (int); using std::exit;' \
2377   'extern "C" void exit (int) throw ();' \
2378   'extern "C" void exit (int);' \
2379   'void exit (int);'
2380do
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387$ac_declaration
2388#include <stdlib.h>
2389int
2390main ()
2391{
2392exit (42);
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.$ac_objext
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>conftest.er1
2400  ac_status=$?
2401  grep -v '^ *+' conftest.er1 >conftest.err
2402  rm -f conftest.er1
2403  cat conftest.err >&5
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); } &&
2406	 { ac_try='test -z "$ac_c_werror_flag"
2407			 || test ! -s conftest.err'
2408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409  (eval $ac_try) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; } &&
2413	 { ac_try='test -s conftest.$ac_objext'
2414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415  (eval $ac_try) 2>&5
2416  ac_status=$?
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); }; }; then
2419  :
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424continue
2425fi
2426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433$ac_declaration
2434int
2435main ()
2436{
2437exit (42);
2438  ;
2439  return 0;
2440}
2441_ACEOF
2442rm -f conftest.$ac_objext
2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2444  (eval $ac_compile) 2>conftest.er1
2445  ac_status=$?
2446  grep -v '^ *+' conftest.er1 >conftest.err
2447  rm -f conftest.er1
2448  cat conftest.err >&5
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); } &&
2451	 { ac_try='test -z "$ac_c_werror_flag"
2452			 || test ! -s conftest.err'
2453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454  (eval $ac_try) 2>&5
2455  ac_status=$?
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); }; } &&
2458	 { ac_try='test -s conftest.$ac_objext'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; }; then
2464  break
2465else
2466  echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469fi
2470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471done
2472rm -f conftest*
2473if test -n "$ac_declaration"; then
2474  echo '#ifdef __cplusplus' >>confdefs.h
2475  echo $ac_declaration      >>confdefs.h
2476  echo '#endif'             >>confdefs.h
2477fi
2478
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483fi
2484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491ac_ext=c
2492ac_cpp='$CPP $CPPFLAGS'
2493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2497echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2498# On Suns, sometimes $CPP names a directory.
2499if test -n "$CPP" && test -d "$CPP"; then
2500  CPP=
2501fi
2502if test -z "$CPP"; then
2503  if test "${ac_cv_prog_CPP+set}" = set; then
2504  echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506      # Double quotes because CPP needs to be expanded
2507    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2508    do
2509      ac_preproc_ok=false
2510for ac_c_preproc_warn_flag in '' yes
2511do
2512  # Use a header file that comes with gcc, so configuring glibc
2513  # with a fresh cross-compiler works.
2514  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2515  # <limits.h> exists even on freestanding compilers.
2516  # On the NeXT, cc -E runs the code through the compiler's parser,
2517  # not just through cpp. "Syntax error" is here to catch this case.
2518  cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h.  */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h.  */
2524#ifdef __STDC__
2525# include <limits.h>
2526#else
2527# include <assert.h>
2528#endif
2529		     Syntax error
2530_ACEOF
2531if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2532  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533  ac_status=$?
2534  grep -v '^ *+' conftest.er1 >conftest.err
2535  rm -f conftest.er1
2536  cat conftest.err >&5
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); } >/dev/null; then
2539  if test -s conftest.err; then
2540    ac_cpp_err=$ac_c_preproc_warn_flag
2541    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2542  else
2543    ac_cpp_err=
2544  fi
2545else
2546  ac_cpp_err=yes
2547fi
2548if test -z "$ac_cpp_err"; then
2549  :
2550else
2551  echo "$as_me: failed program was:" >&5
2552sed 's/^/| /' conftest.$ac_ext >&5
2553
2554  # Broken: fails on valid input.
2555continue
2556fi
2557rm -f conftest.err conftest.$ac_ext
2558
2559  # OK, works on sane cases.  Now check whether non-existent headers
2560  # can be detected and how.
2561  cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h.  */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h.  */
2567#include <ac_nonexistent.h>
2568_ACEOF
2569if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2570  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2571  ac_status=$?
2572  grep -v '^ *+' conftest.er1 >conftest.err
2573  rm -f conftest.er1
2574  cat conftest.err >&5
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); } >/dev/null; then
2577  if test -s conftest.err; then
2578    ac_cpp_err=$ac_c_preproc_warn_flag
2579    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2580  else
2581    ac_cpp_err=
2582  fi
2583else
2584  ac_cpp_err=yes
2585fi
2586if test -z "$ac_cpp_err"; then
2587  # Broken: success on invalid input.
2588continue
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593  # Passes both tests.
2594ac_preproc_ok=:
2595break
2596fi
2597rm -f conftest.err conftest.$ac_ext
2598
2599done
2600# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2601rm -f conftest.err conftest.$ac_ext
2602if $ac_preproc_ok; then
2603  break
2604fi
2605
2606    done
2607    ac_cv_prog_CPP=$CPP
2608
2609fi
2610  CPP=$ac_cv_prog_CPP
2611else
2612  ac_cv_prog_CPP=$CPP
2613fi
2614echo "$as_me:$LINENO: result: $CPP" >&5
2615echo "${ECHO_T}$CPP" >&6
2616ac_preproc_ok=false
2617for ac_c_preproc_warn_flag in '' yes
2618do
2619  # Use a header file that comes with gcc, so configuring glibc
2620  # with a fresh cross-compiler works.
2621  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2622  # <limits.h> exists even on freestanding compilers.
2623  # On the NeXT, cc -E runs the code through the compiler's parser,
2624  # not just through cpp. "Syntax error" is here to catch this case.
2625  cat >conftest.$ac_ext <<_ACEOF
2626/* confdefs.h.  */
2627_ACEOF
2628cat confdefs.h >>conftest.$ac_ext
2629cat >>conftest.$ac_ext <<_ACEOF
2630/* end confdefs.h.  */
2631#ifdef __STDC__
2632# include <limits.h>
2633#else
2634# include <assert.h>
2635#endif
2636		     Syntax error
2637_ACEOF
2638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2639  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2640  ac_status=$?
2641  grep -v '^ *+' conftest.er1 >conftest.err
2642  rm -f conftest.er1
2643  cat conftest.err >&5
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); } >/dev/null; then
2646  if test -s conftest.err; then
2647    ac_cpp_err=$ac_c_preproc_warn_flag
2648    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2649  else
2650    ac_cpp_err=
2651  fi
2652else
2653  ac_cpp_err=yes
2654fi
2655if test -z "$ac_cpp_err"; then
2656  :
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661  # Broken: fails on valid input.
2662continue
2663fi
2664rm -f conftest.err conftest.$ac_ext
2665
2666  # OK, works on sane cases.  Now check whether non-existent headers
2667  # can be detected and how.
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674#include <ac_nonexistent.h>
2675_ACEOF
2676if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2677  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } >/dev/null; then
2684  if test -s conftest.err; then
2685    ac_cpp_err=$ac_c_preproc_warn_flag
2686    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2687  else
2688    ac_cpp_err=
2689  fi
2690else
2691  ac_cpp_err=yes
2692fi
2693if test -z "$ac_cpp_err"; then
2694  # Broken: success on invalid input.
2695continue
2696else
2697  echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700  # Passes both tests.
2701ac_preproc_ok=:
2702break
2703fi
2704rm -f conftest.err conftest.$ac_ext
2705
2706done
2707# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2708rm -f conftest.err conftest.$ac_ext
2709if $ac_preproc_ok; then
2710  :
2711else
2712  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2713See \`config.log' for more details." >&5
2714echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2715See \`config.log' for more details." >&2;}
2716   { (exit 1); exit 1; }; }
2717fi
2718
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725
2726
2727am__api_version="1.7"
2728ac_aux_dir=
2729for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2730  if test -f $ac_dir/install-sh; then
2731    ac_aux_dir=$ac_dir
2732    ac_install_sh="$ac_aux_dir/install-sh -c"
2733    break
2734  elif test -f $ac_dir/install.sh; then
2735    ac_aux_dir=$ac_dir
2736    ac_install_sh="$ac_aux_dir/install.sh -c"
2737    break
2738  elif test -f $ac_dir/shtool; then
2739    ac_aux_dir=$ac_dir
2740    ac_install_sh="$ac_aux_dir/shtool install -c"
2741    break
2742  fi
2743done
2744if test -z "$ac_aux_dir"; then
2745  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2746echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2747   { (exit 1); exit 1; }; }
2748fi
2749ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2750ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2751ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2752
2753# Find a good install program.  We prefer a C program (faster),
2754# so one script is as good as another.  But avoid the broken or
2755# incompatible versions:
2756# SysV /etc/install, /usr/sbin/install
2757# SunOS /usr/etc/install
2758# IRIX /sbin/install
2759# AIX /bin/install
2760# AmigaOS /C/install, which installs bootblocks on floppy discs
2761# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2762# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2763# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2764# OS/2's system install, which has a completely different semantic
2765# ./install, which can be erroneously created by make from ./install.sh.
2766echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2767echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2768if test -z "$INSTALL"; then
2769if test "${ac_cv_path_install+set}" = set; then
2770  echo $ECHO_N "(cached) $ECHO_C" >&6
2771else
2772  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777  # Account for people who put trailing slashes in PATH elements.
2778case $as_dir/ in
2779  ./ | .// | /cC/* | \
2780  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2781  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2782  /usr/ucb/* ) ;;
2783  *)
2784    # OSF1 and SCO ODT 3.0 have their own names for install.
2785    # Don't use installbsd from OSF since it installs stuff as root
2786    # by default.
2787    for ac_prog in ginstall scoinst install; do
2788      for ac_exec_ext in '' $ac_executable_extensions; do
2789	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2790	  if test $ac_prog = install &&
2791	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792	    # AIX install.  It has an incompatible calling convention.
2793	    :
2794	  elif test $ac_prog = install &&
2795	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2796	    # program-specific install script used by HP pwplus--don't use.
2797	    :
2798	  else
2799	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2800	    break 3
2801	  fi
2802	fi
2803      done
2804    done
2805    ;;
2806esac
2807done
2808
2809
2810fi
2811  if test "${ac_cv_path_install+set}" = set; then
2812    INSTALL=$ac_cv_path_install
2813  else
2814    # As a last resort, use the slow shell script.  We don't cache a
2815    # path for INSTALL within a source directory, because that will
2816    # break other packages using the cache if that directory is
2817    # removed, or if the path is relative.
2818    INSTALL=$ac_install_sh
2819  fi
2820fi
2821echo "$as_me:$LINENO: result: $INSTALL" >&5
2822echo "${ECHO_T}$INSTALL" >&6
2823
2824# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2825# It thinks the first close brace ends the variable substitution.
2826test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2827
2828test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2829
2830test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2831
2832echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2833echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2834# Just in case
2835sleep 1
2836echo timestamp > conftest.file
2837# Do `set' in a subshell so we don't clobber the current shell's
2838# arguments.  Must try -L first in case configure is actually a
2839# symlink; some systems play weird games with the mod time of symlinks
2840# (eg FreeBSD returns the mod time of the symlink's containing
2841# directory).
2842if (
2843   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2844   if test "$*" = "X"; then
2845      # -L didn't work.
2846      set X `ls -t $srcdir/configure conftest.file`
2847   fi
2848   rm -f conftest.file
2849   if test "$*" != "X $srcdir/configure conftest.file" \
2850      && test "$*" != "X conftest.file $srcdir/configure"; then
2851
2852      # If neither matched, then we have a broken ls.  This can happen
2853      # if, for instance, CONFIG_SHELL is bash and it inherits a
2854      # broken ls alias from the environment.  This has actually
2855      # happened.  Such a system could not be considered "sane".
2856      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2857alias in your environment" >&5
2858echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2859alias in your environment" >&2;}
2860   { (exit 1); exit 1; }; }
2861   fi
2862
2863   test "$2" = conftest.file
2864   )
2865then
2866   # Ok.
2867   :
2868else
2869   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2870Check your system clock" >&5
2871echo "$as_me: error: newly created file is older than distributed files!
2872Check your system clock" >&2;}
2873   { (exit 1); exit 1; }; }
2874fi
2875echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6
2877test "$program_prefix" != NONE &&
2878  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2879# Use a double $ so make ignores it.
2880test "$program_suffix" != NONE &&
2881  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2882# Double any \ or $.  echo might interpret backslashes.
2883# By default was `s,x,x', remove it if useless.
2884cat <<\_ACEOF >conftest.sed
2885s/[\\$]/&&/g;s/;s,x,x,$//
2886_ACEOF
2887program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2888rm conftest.sed
2889
2890
2891# expand $ac_aux_dir to an absolute path
2892am_aux_dir=`cd $ac_aux_dir && pwd`
2893
2894test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2895# Use eval to expand $SHELL
2896if eval "$MISSING --run true"; then
2897  am_missing_run="$MISSING --run "
2898else
2899  am_missing_run=
2900  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2901echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2902fi
2903
2904for ac_prog in gawk mawk nawk awk
2905do
2906  # Extract the first word of "$ac_prog", so it can be a program name with args.
2907set dummy $ac_prog; ac_word=$2
2908echo "$as_me:$LINENO: checking for $ac_word" >&5
2909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2910if test "${ac_cv_prog_AWK+set}" = set; then
2911  echo $ECHO_N "(cached) $ECHO_C" >&6
2912else
2913  if test -n "$AWK"; then
2914  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2915else
2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917for as_dir in $PATH
2918do
2919  IFS=$as_save_IFS
2920  test -z "$as_dir" && as_dir=.
2921  for ac_exec_ext in '' $ac_executable_extensions; do
2922  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923    ac_cv_prog_AWK="$ac_prog"
2924    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925    break 2
2926  fi
2927done
2928done
2929
2930fi
2931fi
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934  echo "$as_me:$LINENO: result: $AWK" >&5
2935echo "${ECHO_T}$AWK" >&6
2936else
2937  echo "$as_me:$LINENO: result: no" >&5
2938echo "${ECHO_T}no" >&6
2939fi
2940
2941  test -n "$AWK" && break
2942done
2943
2944echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2946set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2947if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2948  echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950  cat >conftest.make <<\_ACEOF
2951all:
2952	@echo 'ac_maketemp="$(MAKE)"'
2953_ACEOF
2954# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2955eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2956if test -n "$ac_maketemp"; then
2957  eval ac_cv_prog_make_${ac_make}_set=yes
2958else
2959  eval ac_cv_prog_make_${ac_make}_set=no
2960fi
2961rm -f conftest.make
2962fi
2963if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2964  echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
2966  SET_MAKE=
2967else
2968  echo "$as_me:$LINENO: result: no" >&5
2969echo "${ECHO_T}no" >&6
2970  SET_MAKE="MAKE=${MAKE-make}"
2971fi
2972
2973rm -rf .tst 2>/dev/null
2974mkdir .tst 2>/dev/null
2975if test -d .tst; then
2976  am__leading_dot=.
2977else
2978  am__leading_dot=_
2979fi
2980rmdir .tst 2>/dev/null
2981
2982 # test to see if srcdir already configured
2983if test "`cd $srcdir && pwd`" != "`pwd`" &&
2984   test -f $srcdir/config.status; then
2985  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2986echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2987   { (exit 1); exit 1; }; }
2988fi
2989
2990# test whether we have cygpath
2991if test -z "$CYGPATH_W"; then
2992  if (cygpath --version) >/dev/null 2>/dev/null; then
2993    CYGPATH_W='cygpath -w'
2994  else
2995    CYGPATH_W=echo
2996  fi
2997fi
2998
2999
3000# Define the identity of the package.
3001 PACKAGE='heimdal'
3002 VERSION='0.6.1'
3003
3004
3005cat >>confdefs.h <<_ACEOF
3006#define PACKAGE "$PACKAGE"
3007_ACEOF
3008
3009
3010cat >>confdefs.h <<_ACEOF
3011#define VERSION "$VERSION"
3012_ACEOF
3013
3014# Some tools Automake needs.
3015
3016ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3017
3018
3019AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3020
3021
3022AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3023
3024
3025AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3026
3027
3028MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3029
3030
3031AMTAR=${AMTAR-"${am_missing_run}tar"}
3032
3033install_sh=${install_sh-"$am_aux_dir/install-sh"}
3034
3035# Installed binaries are usually stripped using `strip' when the user
3036# run `make install-strip'.  However `strip' might not be the right
3037# tool to use in cross-compilation environments, therefore Automake
3038# will honor the `STRIP' environment variable to overrule this program.
3039if test "$cross_compiling" != no; then
3040  if test -n "$ac_tool_prefix"; then
3041  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}strip; ac_word=$2
3043echo "$as_me:$LINENO: checking for $ac_word" >&5
3044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3045if test "${ac_cv_prog_STRIP+set}" = set; then
3046  echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048  if test -n "$STRIP"; then
3049  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056  for ac_exec_ext in '' $ac_executable_extensions; do
3057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063done
3064
3065fi
3066fi
3067STRIP=$ac_cv_prog_STRIP
3068if test -n "$STRIP"; then
3069  echo "$as_me:$LINENO: result: $STRIP" >&5
3070echo "${ECHO_T}$STRIP" >&6
3071else
3072  echo "$as_me:$LINENO: result: no" >&5
3073echo "${ECHO_T}no" >&6
3074fi
3075
3076fi
3077if test -z "$ac_cv_prog_STRIP"; then
3078  ac_ct_STRIP=$STRIP
3079  # Extract the first word of "strip", so it can be a program name with args.
3080set dummy strip; ac_word=$2
3081echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3083if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3084  echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086  if test -n "$ac_ct_STRIP"; then
3087  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  test -z "$as_dir" && as_dir=.
3094  for ac_exec_ext in '' $ac_executable_extensions; do
3095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096    ac_cv_prog_ac_ct_STRIP="strip"
3097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101done
3102
3103  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3104fi
3105fi
3106ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3107if test -n "$ac_ct_STRIP"; then
3108  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3109echo "${ECHO_T}$ac_ct_STRIP" >&6
3110else
3111  echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115  STRIP=$ac_ct_STRIP
3116else
3117  STRIP="$ac_cv_prog_STRIP"
3118fi
3119
3120fi
3121INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3122
3123# We need awk for the "check" target.  The system "awk" is bad on
3124# some platforms.
3125
3126
3127
3128echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3129echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3130    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3131if test "${enable_maintainer_mode+set}" = set; then
3132  enableval="$enable_maintainer_mode"
3133  USE_MAINTAINER_MODE=$enableval
3134else
3135  USE_MAINTAINER_MODE=no
3136fi;
3137  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3138echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3139
3140
3141if test $USE_MAINTAINER_MODE = yes; then
3142  MAINTAINER_MODE_TRUE=
3143  MAINTAINER_MODE_FALSE='#'
3144else
3145  MAINTAINER_MODE_TRUE='#'
3146  MAINTAINER_MODE_FALSE=
3147fi
3148
3149  MAINT=$MAINTAINER_MODE_TRUE
3150
3151
3152
3153
3154
3155test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc'
3156test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal'
3157
3158# Make sure we can run config.sub.
3159$ac_config_sub sun4 >/dev/null 2>&1 ||
3160  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3161echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3162   { (exit 1); exit 1; }; }
3163
3164echo "$as_me:$LINENO: checking build system type" >&5
3165echo $ECHO_N "checking build system type... $ECHO_C" >&6
3166if test "${ac_cv_build+set}" = set; then
3167  echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
3169  ac_cv_build_alias=$build_alias
3170test -z "$ac_cv_build_alias" &&
3171  ac_cv_build_alias=`$ac_config_guess`
3172test -z "$ac_cv_build_alias" &&
3173  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3174echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3175   { (exit 1); exit 1; }; }
3176ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3177  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3178echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3179   { (exit 1); exit 1; }; }
3180
3181fi
3182echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3183echo "${ECHO_T}$ac_cv_build" >&6
3184build=$ac_cv_build
3185build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3186build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3187build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3188
3189
3190echo "$as_me:$LINENO: checking host system type" >&5
3191echo $ECHO_N "checking host system type... $ECHO_C" >&6
3192if test "${ac_cv_host+set}" = set; then
3193  echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195  ac_cv_host_alias=$host_alias
3196test -z "$ac_cv_host_alias" &&
3197  ac_cv_host_alias=$ac_cv_build_alias
3198ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3199  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3200echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3201   { (exit 1); exit 1; }; }
3202
3203fi
3204echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3205echo "${ECHO_T}$ac_cv_host" >&6
3206host=$ac_cv_host
3207host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3208host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3209host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3210
3211
3212CANONICAL_HOST=$host
3213
3214
3215
3216# Check whether --enable-largefile or --disable-largefile was given.
3217if test "${enable_largefile+set}" = set; then
3218  enableval="$enable_largefile"
3219
3220fi;
3221if test "$enable_largefile" != no; then
3222
3223  echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3224echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3225if test "${ac_cv_sys_largefile_CC+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  ac_cv_sys_largefile_CC=no
3229     if test "$GCC" != yes; then
3230       ac_save_CC=$CC
3231       while :; do
3232     	 # IRIX 6.2 and later do not support large files by default,
3233     	 # so use the C compiler's -n32 option if that helps.
3234	 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h.  */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h.  */
3240#include <sys/types.h>
3241 /* Check that off_t can represent 2**63 - 1 correctly.
3242    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3243    since some C++ compilers masquerading as C compilers
3244    incorrectly reject 9223372036854775807.  */
3245#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3246  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3247		       && LARGE_OFF_T % 2147483647 == 1)
3248		      ? 1 : -1];
3249int
3250main ()
3251{
3252
3253  ;
3254  return 0;
3255}
3256_ACEOF
3257     	 rm -f conftest.$ac_objext
3258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259  (eval $ac_compile) 2>conftest.er1
3260  ac_status=$?
3261  grep -v '^ *+' conftest.er1 >conftest.err
3262  rm -f conftest.er1
3263  cat conftest.err >&5
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); } &&
3266	 { ac_try='test -z "$ac_c_werror_flag"
3267			 || test ! -s conftest.err'
3268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269  (eval $ac_try) 2>&5
3270  ac_status=$?
3271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272  (exit $ac_status); }; } &&
3273	 { ac_try='test -s conftest.$ac_objext'
3274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275  (eval $ac_try) 2>&5
3276  ac_status=$?
3277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278  (exit $ac_status); }; }; then
3279  break
3280else
3281  echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284fi
3285rm -f conftest.err conftest.$ac_objext
3286     	 CC="$CC -n32"
3287     	 rm -f conftest.$ac_objext
3288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3289  (eval $ac_compile) 2>conftest.er1
3290  ac_status=$?
3291  grep -v '^ *+' conftest.er1 >conftest.err
3292  rm -f conftest.er1
3293  cat conftest.err >&5
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); } &&
3296	 { ac_try='test -z "$ac_c_werror_flag"
3297			 || test ! -s conftest.err'
3298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299  (eval $ac_try) 2>&5
3300  ac_status=$?
3301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302  (exit $ac_status); }; } &&
3303	 { ac_try='test -s conftest.$ac_objext'
3304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305  (eval $ac_try) 2>&5
3306  ac_status=$?
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); }; }; then
3309  ac_cv_sys_largefile_CC=' -n32'; break
3310else
3311  echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
3314fi
3315rm -f conftest.err conftest.$ac_objext
3316	 break
3317       done
3318       CC=$ac_save_CC
3319       rm -f conftest.$ac_ext
3320    fi
3321fi
3322echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3323echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3324  if test "$ac_cv_sys_largefile_CC" != no; then
3325    CC=$CC$ac_cv_sys_largefile_CC
3326  fi
3327
3328  echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3329echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3330if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  while :; do
3334  ac_cv_sys_file_offset_bits=no
3335  cat >conftest.$ac_ext <<_ACEOF
3336/* confdefs.h.  */
3337_ACEOF
3338cat confdefs.h >>conftest.$ac_ext
3339cat >>conftest.$ac_ext <<_ACEOF
3340/* end confdefs.h.  */
3341#include <sys/types.h>
3342 /* Check that off_t can represent 2**63 - 1 correctly.
3343    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3344    since some C++ compilers masquerading as C compilers
3345    incorrectly reject 9223372036854775807.  */
3346#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3347  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3348		       && LARGE_OFF_T % 2147483647 == 1)
3349		      ? 1 : -1];
3350int
3351main ()
3352{
3353
3354  ;
3355  return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360  (eval $ac_compile) 2>conftest.er1
3361  ac_status=$?
3362  grep -v '^ *+' conftest.er1 >conftest.err
3363  rm -f conftest.er1
3364  cat conftest.err >&5
3365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366  (exit $ac_status); } &&
3367	 { ac_try='test -z "$ac_c_werror_flag"
3368			 || test ! -s conftest.err'
3369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370  (eval $ac_try) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }; } &&
3374	 { ac_try='test -s conftest.$ac_objext'
3375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376  (eval $ac_try) 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); }; }; then
3380  break
3381else
3382  echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393#define _FILE_OFFSET_BITS 64
3394#include <sys/types.h>
3395 /* Check that off_t can represent 2**63 - 1 correctly.
3396    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3397    since some C++ compilers masquerading as C compilers
3398    incorrectly reject 9223372036854775807.  */
3399#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3400  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3401		       && LARGE_OFF_T % 2147483647 == 1)
3402		      ? 1 : -1];
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413  (eval $ac_compile) 2>conftest.er1
3414  ac_status=$?
3415  grep -v '^ *+' conftest.er1 >conftest.err
3416  rm -f conftest.er1
3417  cat conftest.err >&5
3418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419  (exit $ac_status); } &&
3420	 { ac_try='test -z "$ac_c_werror_flag"
3421			 || test ! -s conftest.err'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; } &&
3427	 { ac_try='test -s conftest.$ac_objext'
3428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429  (eval $ac_try) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }; }; then
3433  ac_cv_sys_file_offset_bits=64; break
3434else
3435  echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438fi
3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440  break
3441done
3442fi
3443echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3444echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3445if test "$ac_cv_sys_file_offset_bits" != no; then
3446
3447cat >>confdefs.h <<_ACEOF
3448#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3449_ACEOF
3450
3451fi
3452rm -f conftest*
3453  echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3454echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3455if test "${ac_cv_sys_large_files+set}" = set; then
3456  echo $ECHO_N "(cached) $ECHO_C" >&6
3457else
3458  while :; do
3459  ac_cv_sys_large_files=no
3460  cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h.  */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h.  */
3466#include <sys/types.h>
3467 /* Check that off_t can represent 2**63 - 1 correctly.
3468    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3469    since some C++ compilers masquerading as C compilers
3470    incorrectly reject 9223372036854775807.  */
3471#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3472  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3473		       && LARGE_OFF_T % 2147483647 == 1)
3474		      ? 1 : -1];
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485  (eval $ac_compile) 2>conftest.er1
3486  ac_status=$?
3487  grep -v '^ *+' conftest.er1 >conftest.err
3488  rm -f conftest.er1
3489  cat conftest.err >&5
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); } &&
3492	 { ac_try='test -z "$ac_c_werror_flag"
3493			 || test ! -s conftest.err'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; } &&
3499	 { ac_try='test -s conftest.$ac_objext'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; }; then
3505  break
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510fi
3511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512  cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h.  */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h.  */
3518#define _LARGE_FILES 1
3519#include <sys/types.h>
3520 /* Check that off_t can represent 2**63 - 1 correctly.
3521    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3522    since some C++ compilers masquerading as C compilers
3523    incorrectly reject 9223372036854775807.  */
3524#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3525  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3526		       && LARGE_OFF_T % 2147483647 == 1)
3527		      ? 1 : -1];
3528int
3529main ()
3530{
3531
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538  (eval $ac_compile) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545	 { ac_try='test -z "$ac_c_werror_flag"
3546			 || test ! -s conftest.err'
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); }; } &&
3552	 { ac_try='test -s conftest.$ac_objext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  ac_cv_sys_large_files=1; break
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563fi
3564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3565  break
3566done
3567fi
3568echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3569echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3570if test "$ac_cv_sys_large_files" != no; then
3571
3572cat >>confdefs.h <<_ACEOF
3573#define _LARGE_FILES $ac_cv_sys_large_files
3574_ACEOF
3575
3576fi
3577rm -f conftest*
3578fi
3579
3580if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then
3581	CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files"
3582fi
3583
3584
3585cat >>confdefs.h <<\_ACEOF
3586#define _GNU_SOURCE 1
3587_ACEOF
3588
3589
3590
3591
3592
3593for ac_prog in 'bison -y' byacc
3594do
3595  # Extract the first word of "$ac_prog", so it can be a program name with args.
3596set dummy $ac_prog; ac_word=$2
3597echo "$as_me:$LINENO: checking for $ac_word" >&5
3598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3599if test "${ac_cv_prog_YACC+set}" = set; then
3600  echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602  if test -n "$YACC"; then
3603  ac_cv_prog_YACC="$YACC" # Let the user override the test.
3604else
3605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606for as_dir in $PATH
3607do
3608  IFS=$as_save_IFS
3609  test -z "$as_dir" && as_dir=.
3610  for ac_exec_ext in '' $ac_executable_extensions; do
3611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3612    ac_cv_prog_YACC="$ac_prog"
3613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614    break 2
3615  fi
3616done
3617done
3618
3619fi
3620fi
3621YACC=$ac_cv_prog_YACC
3622if test -n "$YACC"; then
3623  echo "$as_me:$LINENO: result: $YACC" >&5
3624echo "${ECHO_T}$YACC" >&6
3625else
3626  echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628fi
3629
3630  test -n "$YACC" && break
3631done
3632test -n "$YACC" || YACC="yacc"
3633
3634for ac_prog in flex lex
3635do
3636  # Extract the first word of "$ac_prog", so it can be a program name with args.
3637set dummy $ac_prog; ac_word=$2
3638echo "$as_me:$LINENO: checking for $ac_word" >&5
3639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640if test "${ac_cv_prog_LEX+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  if test -n "$LEX"; then
3644  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3645else
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651  for ac_exec_ext in '' $ac_executable_extensions; do
3652  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653    ac_cv_prog_LEX="$ac_prog"
3654    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655    break 2
3656  fi
3657done
3658done
3659
3660fi
3661fi
3662LEX=$ac_cv_prog_LEX
3663if test -n "$LEX"; then
3664  echo "$as_me:$LINENO: result: $LEX" >&5
3665echo "${ECHO_T}$LEX" >&6
3666else
3667  echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669fi
3670
3671  test -n "$LEX" && break
3672done
3673test -n "$LEX" || LEX=":"
3674
3675if test -z "$LEXLIB"
3676then
3677  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3678echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3679if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3680  echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
3682  ac_check_lib_save_LIBS=$LIBS
3683LIBS="-lfl  $LIBS"
3684cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690
3691/* Override any gcc2 internal prototype to avoid an error.  */
3692#ifdef __cplusplus
3693extern "C"
3694#endif
3695/* We use char because int might match the return type of a gcc2
3696   builtin and then its argument prototype would still apply.  */
3697char yywrap ();
3698int
3699main ()
3700{
3701yywrap ();
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext conftest$ac_exeext
3707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3708  (eval $ac_link) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715	 { ac_try='test -z "$ac_c_werror_flag"
3716			 || test ! -s conftest.err'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; } &&
3722	 { ac_try='test -s conftest$ac_exeext'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; }; then
3728  ac_cv_lib_fl_yywrap=yes
3729else
3730  echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733ac_cv_lib_fl_yywrap=no
3734fi
3735rm -f conftest.err conftest.$ac_objext \
3736      conftest$ac_exeext conftest.$ac_ext
3737LIBS=$ac_check_lib_save_LIBS
3738fi
3739echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3740echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3741if test $ac_cv_lib_fl_yywrap = yes; then
3742  LEXLIB="-lfl"
3743else
3744  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3745echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3746if test "${ac_cv_lib_l_yywrap+set}" = set; then
3747  echo $ECHO_N "(cached) $ECHO_C" >&6
3748else
3749  ac_check_lib_save_LIBS=$LIBS
3750LIBS="-ll  $LIBS"
3751cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757
3758/* Override any gcc2 internal prototype to avoid an error.  */
3759#ifdef __cplusplus
3760extern "C"
3761#endif
3762/* We use char because int might match the return type of a gcc2
3763   builtin and then its argument prototype would still apply.  */
3764char yywrap ();
3765int
3766main ()
3767{
3768yywrap ();
3769  ;
3770  return 0;
3771}
3772_ACEOF
3773rm -f conftest.$ac_objext conftest$ac_exeext
3774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3775  (eval $ac_link) 2>conftest.er1
3776  ac_status=$?
3777  grep -v '^ *+' conftest.er1 >conftest.err
3778  rm -f conftest.er1
3779  cat conftest.err >&5
3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781  (exit $ac_status); } &&
3782	 { ac_try='test -z "$ac_c_werror_flag"
3783			 || test ! -s conftest.err'
3784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785  (eval $ac_try) 2>&5
3786  ac_status=$?
3787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788  (exit $ac_status); }; } &&
3789	 { ac_try='test -s conftest$ac_exeext'
3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791  (eval $ac_try) 2>&5
3792  ac_status=$?
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); }; }; then
3795  ac_cv_lib_l_yywrap=yes
3796else
3797  echo "$as_me: failed program was:" >&5
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
3800ac_cv_lib_l_yywrap=no
3801fi
3802rm -f conftest.err conftest.$ac_objext \
3803      conftest$ac_exeext conftest.$ac_ext
3804LIBS=$ac_check_lib_save_LIBS
3805fi
3806echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3807echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3808if test $ac_cv_lib_l_yywrap = yes; then
3809  LEXLIB="-ll"
3810fi
3811
3812fi
3813
3814fi
3815
3816if test "x$LEX" != "x:"; then
3817  echo "$as_me:$LINENO: checking lex output file root" >&5
3818echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3819if test "${ac_cv_prog_lex_root+set}" = set; then
3820  echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822  # The minimal lex program is just a single line: %%.  But some broken lexes
3823# (Solaris, I think it was) want two %% lines, so accommodate them.
3824cat >conftest.l <<_ACEOF
3825%%
3826%%
3827_ACEOF
3828{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3829  (eval $LEX conftest.l) 2>&5
3830  ac_status=$?
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); }
3833if test -f lex.yy.c; then
3834  ac_cv_prog_lex_root=lex.yy
3835elif test -f lexyy.c; then
3836  ac_cv_prog_lex_root=lexyy
3837else
3838  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3839echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3840   { (exit 1); exit 1; }; }
3841fi
3842fi
3843echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3844echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3845rm -f conftest.l
3846LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3847
3848echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3849echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3850if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3851  echo $ECHO_N "(cached) $ECHO_C" >&6
3852else
3853  # POSIX says lex can declare yytext either as a pointer or an array; the
3854# default is implementation-dependent. Figure out which it is, since
3855# not all implementations provide the %pointer and %array declarations.
3856ac_cv_prog_lex_yytext_pointer=no
3857echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3858ac_save_LIBS=$LIBS
3859LIBS="$LIBS $LEXLIB"
3860cat >conftest.$ac_ext <<_ACEOF
3861`cat $LEX_OUTPUT_ROOT.c`
3862_ACEOF
3863rm -f conftest.$ac_objext conftest$ac_exeext
3864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865  (eval $ac_link) 2>conftest.er1
3866  ac_status=$?
3867  grep -v '^ *+' conftest.er1 >conftest.err
3868  rm -f conftest.er1
3869  cat conftest.err >&5
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); } &&
3872	 { ac_try='test -z "$ac_c_werror_flag"
3873			 || test ! -s conftest.err'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; } &&
3879	 { ac_try='test -s conftest$ac_exeext'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; }; then
3885  ac_cv_prog_lex_yytext_pointer=yes
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890fi
3891rm -f conftest.err conftest.$ac_objext \
3892      conftest$ac_exeext conftest.$ac_ext
3893LIBS=$ac_save_LIBS
3894rm -f "${LEX_OUTPUT_ROOT}.c"
3895
3896fi
3897echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3898echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3899if test $ac_cv_prog_lex_yytext_pointer = yes; then
3900
3901cat >>confdefs.h <<\_ACEOF
3902#define YYTEXT_POINTER 1
3903_ACEOF
3904
3905fi
3906
3907fi
3908if test "$LEX" = :; then
3909  LEX=${am_missing_run}flex
3910fi
3911for ac_prog in gawk mawk nawk awk
3912do
3913  # Extract the first word of "$ac_prog", so it can be a program name with args.
3914set dummy $ac_prog; ac_word=$2
3915echo "$as_me:$LINENO: checking for $ac_word" >&5
3916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3917if test "${ac_cv_prog_AWK+set}" = set; then
3918  echo $ECHO_N "(cached) $ECHO_C" >&6
3919else
3920  if test -n "$AWK"; then
3921  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926  IFS=$as_save_IFS
3927  test -z "$as_dir" && as_dir=.
3928  for ac_exec_ext in '' $ac_executable_extensions; do
3929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3930    ac_cv_prog_AWK="$ac_prog"
3931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3932    break 2
3933  fi
3934done
3935done
3936
3937fi
3938fi
3939AWK=$ac_cv_prog_AWK
3940if test -n "$AWK"; then
3941  echo "$as_me:$LINENO: result: $AWK" >&5
3942echo "${ECHO_T}$AWK" >&6
3943else
3944  echo "$as_me:$LINENO: result: no" >&5
3945echo "${ECHO_T}no" >&6
3946fi
3947
3948  test -n "$AWK" && break
3949done
3950
3951echo "$as_me:$LINENO: checking for ln -s or something else" >&5
3952echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6
3953if test "${ac_cv_prog_LN_S+set}" = set; then
3954  echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956  rm -f conftestdata
3957if ln -s X conftestdata 2>/dev/null
3958then
3959  rm -f conftestdata
3960  ac_cv_prog_LN_S="ln -s"
3961else
3962  touch conftestdata1
3963  if ln conftestdata1 conftestdata2; then
3964    rm -f conftestdata*
3965    ac_cv_prog_LN_S=ln
3966  else
3967    ac_cv_prog_LN_S=cp
3968  fi
3969fi
3970fi
3971LN_S="$ac_cv_prog_LN_S"
3972echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5
3973echo "${ECHO_T}$ac_cv_prog_LN_S" >&6
3974
3975
3976
3977
3978# Check whether --with-mips_abi or --without-mips_abi was given.
3979if test "${with_mips_abi+set}" = set; then
3980  withval="$with_mips_abi"
3981
3982fi;
3983
3984case "$host_os" in
3985irix*)
3986with_mips_abi="${with_mips_abi:-yes}"
3987if test -n "$GCC"; then
3988
3989# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select
3990# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs.
3991#
3992# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old
3993# GCC and revert back to O32. The same goes if O32 is asked for - old
3994# GCCs doesn't like the -mabi option, and new GCCs can't output O32.
3995#
3996# Don't you just love *all* the different SGI ABIs?
3997
3998case "${with_mips_abi}" in
3999        32|o32) abi='-mabi=32';  abilibdirext=''     ;;
4000       n32|yes) abi='-mabi=n32'; abilibdirext='32'  ;;
4001        64) abi='-mabi=64';  abilibdirext='64'   ;;
4002	no) abi=''; abilibdirext='';;
4003         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4004echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4005   { (exit 1); exit 1; }; } ;;
4006esac
4007if test -n "$abi" ; then
4008ac_foo=krb_cv_gcc_`echo $abi | tr =- __`
4009echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5
4010echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6
4011if eval "test \"\${$ac_foo+set}\" = set"; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014
4015save_CFLAGS="$CFLAGS"
4016CFLAGS="$CFLAGS $abi"
4017cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h.  */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h.  */
4023
4024int
4025main ()
4026{
4027int x;
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032rm -f conftest.$ac_objext
4033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4034  (eval $ac_compile) 2>conftest.er1
4035  ac_status=$?
4036  grep -v '^ *+' conftest.er1 >conftest.err
4037  rm -f conftest.er1
4038  cat conftest.err >&5
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); } &&
4041	 { ac_try='test -z "$ac_c_werror_flag"
4042			 || test ! -s conftest.err'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; } &&
4048	 { ac_try='test -s conftest.$ac_objext'
4049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050  (eval $ac_try) 2>&5
4051  ac_status=$?
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); }; }; then
4054  eval $ac_foo=yes
4055else
4056  echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059eval $ac_foo=no
4060fi
4061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4062CFLAGS="$save_CFLAGS"
4063
4064fi
4065
4066ac_res=`eval echo \\\$$ac_foo`
4067echo "$as_me:$LINENO: result: $ac_res" >&5
4068echo "${ECHO_T}$ac_res" >&6
4069if test $ac_res = no; then
4070# Try to figure out why that failed...
4071case $abi in
4072	-mabi=32)
4073	save_CFLAGS="$CFLAGS"
4074	CFLAGS="$CFLAGS -mabi=n32"
4075	cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h.  */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h.  */
4081
4082int
4083main ()
4084{
4085int x;
4086  ;
4087  return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4092  (eval $ac_compile) 2>conftest.er1
4093  ac_status=$?
4094  grep -v '^ *+' conftest.er1 >conftest.err
4095  rm -f conftest.er1
4096  cat conftest.err >&5
4097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098  (exit $ac_status); } &&
4099	 { ac_try='test -z "$ac_c_werror_flag"
4100			 || test ! -s conftest.err'
4101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102  (eval $ac_try) 2>&5
4103  ac_status=$?
4104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105  (exit $ac_status); }; } &&
4106	 { ac_try='test -s conftest.$ac_objext'
4107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108  (eval $ac_try) 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); }; }; then
4112  ac_res=yes
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117ac_res=no
4118fi
4119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4120	CLAGS="$save_CFLAGS"
4121	if test $ac_res = yes; then
4122		# New GCC
4123		{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4124echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4125   { (exit 1); exit 1; }; }
4126	fi
4127	# Old GCC
4128	abi=''
4129	abilibdirext=''
4130	;;
4131	-mabi=n32|-mabi=64)
4132		if test $with_mips_abi = yes; then
4133			# Old GCC, default to O32
4134			abi=''
4135			abilibdirext=''
4136		else
4137			# Some broken GCC
4138			{ { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5
4139echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;}
4140   { (exit 1); exit 1; }; }
4141		fi
4142	;;
4143esac
4144fi #if test $ac_res = no; then
4145fi #if test -n "$abi" ; then
4146else
4147case "${with_mips_abi}" in
4148        32|o32) abi='-32'; abilibdirext=''     ;;
4149       n32|yes) abi='-n32'; abilibdirext='32'  ;;
4150        64) abi='-64'; abilibdirext='64'   ;;
4151	no) abi=''; abilibdirext='';;
4152         *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5
4153echo "$as_me: error: \"Invalid ABI specified\"" >&2;}
4154   { (exit 1); exit 1; }; } ;;
4155esac
4156fi #if test -n "$GCC"; then
4157;;
4158esac
4159
4160CC="$CC $abi"
4161libdir="$libdir$abilibdirext"
4162
4163
4164echo "$as_me:$LINENO: checking for __attribute__" >&5
4165echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
4166if test "${ac_cv___attribute__+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169
4170cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h.  */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h.  */
4176
4177#include <stdlib.h>
4178
4179int
4180main ()
4181{
4182
4183static void foo(void) __attribute__ ((noreturn));
4184
4185static void
4186foo(void)
4187{
4188  exit(1);
4189}
4190
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197  (eval $ac_compile) 2>conftest.er1
4198  ac_status=$?
4199  grep -v '^ *+' conftest.er1 >conftest.err
4200  rm -f conftest.er1
4201  cat conftest.err >&5
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); } &&
4204	 { ac_try='test -z "$ac_c_werror_flag"
4205			 || test ! -s conftest.err'
4206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207  (eval $ac_try) 2>&5
4208  ac_status=$?
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); }; } &&
4211	 { ac_try='test -s conftest.$ac_objext'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; }; then
4217  ac_cv___attribute__=yes
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222ac_cv___attribute__=no
4223fi
4224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225fi
4226
4227if test "$ac_cv___attribute__" = "yes"; then
4228
4229cat >>confdefs.h <<\_ACEOF
4230#define HAVE___ATTRIBUTE__ 1
4231_ACEOF
4232
4233fi
4234echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
4235echo "${ECHO_T}$ac_cv___attribute__" >&6
4236
4237
4238# Check whether --enable-shared or --disable-shared was given.
4239if test "${enable_shared+set}" = set; then
4240  enableval="$enable_shared"
4241  p=${PACKAGE-default}
4242    case $enableval in
4243    yes) enable_shared=yes ;;
4244    no) enable_shared=no ;;
4245    *)
4246      enable_shared=no
4247      # Look at the argument we got.  We use all the common list separators.
4248      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4249      for pkg in $enableval; do
4250	IFS="$lt_save_ifs"
4251	if test "X$pkg" = "X$p"; then
4252	  enable_shared=yes
4253	fi
4254      done
4255      IFS="$lt_save_ifs"
4256      ;;
4257    esac
4258else
4259  enable_shared=no
4260fi;
4261
4262# Check whether --enable-static or --disable-static was given.
4263if test "${enable_static+set}" = set; then
4264  enableval="$enable_static"
4265  p=${PACKAGE-default}
4266    case $enableval in
4267    yes) enable_static=yes ;;
4268    no) enable_static=no ;;
4269    *)
4270     enable_static=no
4271      # Look at the argument we got.  We use all the common list separators.
4272      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4273      for pkg in $enableval; do
4274	IFS="$lt_save_ifs"
4275	if test "X$pkg" = "X$p"; then
4276	  enable_static=yes
4277	fi
4278      done
4279      IFS="$lt_save_ifs"
4280      ;;
4281    esac
4282else
4283  enable_static=yes
4284fi;
4285
4286# Check whether --enable-fast-install or --disable-fast-install was given.
4287if test "${enable_fast_install+set}" = set; then
4288  enableval="$enable_fast_install"
4289  p=${PACKAGE-default}
4290    case $enableval in
4291    yes) enable_fast_install=yes ;;
4292    no) enable_fast_install=no ;;
4293    *)
4294      enable_fast_install=no
4295      # Look at the argument we got.  We use all the common list separators.
4296      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4297      for pkg in $enableval; do
4298	IFS="$lt_save_ifs"
4299	if test "X$pkg" = "X$p"; then
4300	  enable_fast_install=yes
4301	fi
4302      done
4303      IFS="$lt_save_ifs"
4304      ;;
4305    esac
4306else
4307  enable_fast_install=yes
4308fi;
4309
4310echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4311echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4312if test "${lt_cv_path_SED+set}" = set; then
4313  echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315  # Loop through the user's path and test for sed and gsed.
4316# Then use that list of sed's as ones to test for truncation.
4317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318for as_dir in $PATH
4319do
4320  IFS=$as_save_IFS
4321  test -z "$as_dir" && as_dir=.
4322  for lt_ac_prog in sed gsed; do
4323    for ac_exec_ext in '' $ac_executable_extensions; do
4324      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4325        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4326      fi
4327    done
4328  done
4329done
4330lt_ac_max=0
4331lt_ac_count=0
4332# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4333# along with /bin/sed that truncates output.
4334for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4335  test ! -f $lt_ac_sed && break
4336  cat /dev/null > conftest.in
4337  lt_ac_count=0
4338  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4339  # Check for GNU sed and select it if it is found.
4340  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4341    lt_cv_path_SED=$lt_ac_sed
4342    break
4343  fi
4344  while true; do
4345    cat conftest.in conftest.in >conftest.tmp
4346    mv conftest.tmp conftest.in
4347    cp conftest.in conftest.nl
4348    echo >>conftest.nl
4349    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4350    cmp -s conftest.out conftest.nl || break
4351    # 10000 chars as input seems more than enough
4352    test $lt_ac_count -gt 10 && break
4353    lt_ac_count=`expr $lt_ac_count + 1`
4354    if test $lt_ac_count -gt $lt_ac_max; then
4355      lt_ac_max=$lt_ac_count
4356      lt_cv_path_SED=$lt_ac_sed
4357    fi
4358  done
4359done
4360SED=$lt_cv_path_SED
4361
4362fi
4363
4364echo "$as_me:$LINENO: result: $SED" >&5
4365echo "${ECHO_T}$SED" >&6
4366
4367echo "$as_me:$LINENO: checking for egrep" >&5
4368echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4369if test "${ac_cv_prog_egrep+set}" = set; then
4370  echo $ECHO_N "(cached) $ECHO_C" >&6
4371else
4372  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4373    then ac_cv_prog_egrep='grep -E'
4374    else ac_cv_prog_egrep='egrep'
4375    fi
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4378echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4379 EGREP=$ac_cv_prog_egrep
4380
4381
4382
4383# Check whether --with-gnu-ld or --without-gnu-ld was given.
4384if test "${with_gnu_ld+set}" = set; then
4385  withval="$with_gnu_ld"
4386  test "$withval" = no || with_gnu_ld=yes
4387else
4388  with_gnu_ld=no
4389fi;
4390ac_prog=ld
4391if test "$GCC" = yes; then
4392  # Check if gcc -print-prog-name=ld gives a path.
4393  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4394echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4395  case $host in
4396  *-*-mingw*)
4397    # gcc leaves a trailing carriage return which upsets mingw
4398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4399  *)
4400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4401  esac
4402  case $ac_prog in
4403    # Accept absolute paths.
4404    [\\/]* | ?:[\\/]*)
4405      re_direlt='/[^/][^/]*/\.\./'
4406      # Canonicalize the pathname of ld
4407      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4408      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4409	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4410      done
4411      test -z "$LD" && LD="$ac_prog"
4412      ;;
4413  "")
4414    # If it fails, then pretend we aren't using GCC.
4415    ac_prog=ld
4416    ;;
4417  *)
4418    # If it is relative, then search for the first ld in PATH.
4419    with_gnu_ld=unknown
4420    ;;
4421  esac
4422elif test "$with_gnu_ld" = yes; then
4423  echo "$as_me:$LINENO: checking for GNU ld" >&5
4424echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4425else
4426  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4427echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4428fi
4429if test "${lt_cv_path_LD+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  if test -z "$LD"; then
4433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4434  for ac_dir in $PATH; do
4435    IFS="$lt_save_ifs"
4436    test -z "$ac_dir" && ac_dir=.
4437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4438      lt_cv_path_LD="$ac_dir/$ac_prog"
4439      # Check to see if the program is GNU ld.  I'd rather use --version,
4440      # but apparently some GNU ld's only accept -v.
4441      # Break only if it was the GNU/non-GNU ld that we prefer.
4442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4443      *GNU* | *'with BFD'*)
4444	test "$with_gnu_ld" != no && break
4445	;;
4446      *)
4447	test "$with_gnu_ld" != yes && break
4448	;;
4449      esac
4450    fi
4451  done
4452  IFS="$lt_save_ifs"
4453else
4454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4455fi
4456fi
4457
4458LD="$lt_cv_path_LD"
4459if test -n "$LD"; then
4460  echo "$as_me:$LINENO: result: $LD" >&5
4461echo "${ECHO_T}$LD" >&6
4462else
4463  echo "$as_me:$LINENO: result: no" >&5
4464echo "${ECHO_T}no" >&6
4465fi
4466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4468   { (exit 1); exit 1; }; }
4469echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4471if test "${lt_cv_prog_gnu_ld+set}" = set; then
4472  echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4475case `$LD -v 2>&1 </dev/null` in
4476*GNU* | *'with BFD'*)
4477  lt_cv_prog_gnu_ld=yes
4478  ;;
4479*)
4480  lt_cv_prog_gnu_ld=no
4481  ;;
4482esac
4483fi
4484echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4485echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4486with_gnu_ld=$lt_cv_prog_gnu_ld
4487
4488
4489echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4490echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4491if test "${lt_cv_ld_reload_flag+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  lt_cv_ld_reload_flag='-r'
4495fi
4496echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4497echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4498reload_flag=$lt_cv_ld_reload_flag
4499case $reload_flag in
4500"" | " "*) ;;
4501*) reload_flag=" $reload_flag" ;;
4502esac
4503reload_cmds='$LD$reload_flag -o $output$reload_objs'
4504
4505echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4506echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4507if test "${lt_cv_path_NM+set}" = set; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  if test -n "$NM"; then
4511  # Let the user override the test.
4512  lt_cv_path_NM="$NM"
4513else
4514  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4515  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4516    IFS="$lt_save_ifs"
4517    test -z "$ac_dir" && ac_dir=.
4518    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4519    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4520      # Check to see if the nm accepts a BSD-compat flag.
4521      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4522      #   nm: unknown option "B" ignored
4523      # Tru64's nm complains that /dev/null is an invalid object file
4524      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4525      */dev/null* | *'Invalid file or object type'*)
4526	lt_cv_path_NM="$tmp_nm -B"
4527	break
4528        ;;
4529      *)
4530	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4531	*/dev/null*)
4532	  lt_cv_path_NM="$tmp_nm -p"
4533	  break
4534	  ;;
4535	*)
4536	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4537	  continue # so that we can try to find one that supports BSD flags
4538	  ;;
4539	esac
4540      esac
4541    fi
4542  done
4543  IFS="$lt_save_ifs"
4544  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4545fi
4546fi
4547echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4548echo "${ECHO_T}$lt_cv_path_NM" >&6
4549NM="$lt_cv_path_NM"
4550
4551echo "$as_me:$LINENO: checking whether ln -s works" >&5
4552echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4553LN_S=$as_ln_s
4554if test "$LN_S" = "ln -s"; then
4555  echo "$as_me:$LINENO: result: yes" >&5
4556echo "${ECHO_T}yes" >&6
4557else
4558  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4559echo "${ECHO_T}no, using $LN_S" >&6
4560fi
4561
4562echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4563echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4564if test "${lt_cv_deplibs_check_method+set}" = set; then
4565  echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567  lt_cv_file_magic_cmd='$MAGIC_CMD'
4568lt_cv_file_magic_test_file=
4569lt_cv_deplibs_check_method='unknown'
4570# Need to set the preceding variable on all platforms that support
4571# interlibrary dependencies.
4572# 'none' -- dependencies not supported.
4573# `unknown' -- same as none, but documents that we really don't know.
4574# 'pass_all' -- all dependencies passed with no checks.
4575# 'test_compile' -- check by making test program.
4576# 'file_magic [[regex]]' -- check by looking for files in library path
4577# which responds to the $file_magic_cmd with a given extended regex.
4578# If you have `file' or equivalent on your system and you're not sure
4579# whether `pass_all' will *always* work, you probably want this one.
4580
4581case $host_os in
4582aix4* | aix5*)
4583  lt_cv_deplibs_check_method=pass_all
4584  ;;
4585
4586beos*)
4587  lt_cv_deplibs_check_method=pass_all
4588  ;;
4589
4590bsdi4*)
4591  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4592  lt_cv_file_magic_cmd='/usr/bin/file -L'
4593  lt_cv_file_magic_test_file=/shlib/libc.so
4594  ;;
4595
4596cygwin*)
4597  # win32_libid is a shell function defined in ltmain.sh
4598  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4599  lt_cv_file_magic_cmd='win32_libid'
4600  ;;
4601
4602mingw* | pw32*)
4603  # Base MSYS/MinGW do not provide the 'file' command needed by
4604  # win32_libid shell function, so use a weaker test based on 'objdump'.
4605  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4606  lt_cv_file_magic_cmd='$OBJDUMP -f'
4607  ;;
4608
4609darwin* | rhapsody*)
4610  lt_cv_deplibs_check_method=pass_all
4611  ;;
4612
4613freebsd* | kfreebsd*-gnu)
4614  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4615    case $host_cpu in
4616    i*86 )
4617      # Not sure whether the presence of OpenBSD here was a mistake.
4618      # Let's accept both of them until this is cleared up.
4619      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4620      lt_cv_file_magic_cmd=/usr/bin/file
4621      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4622      ;;
4623    esac
4624  else
4625    lt_cv_deplibs_check_method=pass_all
4626  fi
4627  ;;
4628
4629gnu*)
4630  lt_cv_deplibs_check_method=pass_all
4631  ;;
4632
4633hpux10.20* | hpux11*)
4634  lt_cv_file_magic_cmd=/usr/bin/file
4635  case "$host_cpu" in
4636  ia64*)
4637    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4638    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4639    ;;
4640  hppa*64*)
4641    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4642    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4643    ;;
4644  *)
4645    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4646    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4647    ;;
4648  esac
4649  ;;
4650
4651irix5* | irix6* | nonstopux*)
4652  case $LD in
4653  *-32|*"-32 ") libmagic=32-bit;;
4654  *-n32|*"-n32 ") libmagic=N32;;
4655  *-64|*"-64 ") libmagic=64-bit;;
4656  *) libmagic=never-match;;
4657  esac
4658  lt_cv_deplibs_check_method=pass_all
4659  ;;
4660
4661# This must be Linux ELF.
4662linux*)
4663  case $host_cpu in
4664  alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
4665    lt_cv_deplibs_check_method=pass_all ;;
4666  *)
4667    # glibc up to 2.1.1 does not perform some relocations on ARM
4668    # this will be overridden with pass_all, but let us keep it just in case
4669    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4670  esac
4671  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4672  lt_cv_deplibs_check_method=pass_all
4673  ;;
4674
4675netbsd*)
4676  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4677    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4678  else
4679    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4680  fi
4681  ;;
4682
4683newos6*)
4684  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4685  lt_cv_file_magic_cmd=/usr/bin/file
4686  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4687  ;;
4688
4689nto-qnx*)
4690  lt_cv_deplibs_check_method=unknown
4691  ;;
4692
4693openbsd*)
4694  lt_cv_file_magic_cmd=/usr/bin/file
4695  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4696  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4697    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4698  else
4699    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4700  fi
4701  ;;
4702
4703osf3* | osf4* | osf5*)
4704  lt_cv_deplibs_check_method=pass_all
4705  ;;
4706
4707sco3.2v5*)
4708  lt_cv_deplibs_check_method=pass_all
4709  ;;
4710
4711solaris*)
4712  lt_cv_deplibs_check_method=pass_all
4713  ;;
4714
4715sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4716  case $host_vendor in
4717  motorola)
4718    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]'
4719    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4720    ;;
4721  ncr)
4722    lt_cv_deplibs_check_method=pass_all
4723    ;;
4724  sequent)
4725    lt_cv_file_magic_cmd='/bin/file'
4726    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4727    ;;
4728  sni)
4729    lt_cv_file_magic_cmd='/bin/file'
4730    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4731    lt_cv_file_magic_test_file=/lib/libc.so
4732    ;;
4733  siemens)
4734    lt_cv_deplibs_check_method=pass_all
4735    ;;
4736  esac
4737  ;;
4738
4739sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4740  lt_cv_deplibs_check_method=pass_all
4741  ;;
4742esac
4743
4744fi
4745echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4746echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4747file_magic_cmd=$lt_cv_file_magic_cmd
4748deplibs_check_method=$lt_cv_deplibs_check_method
4749test -z "$deplibs_check_method" && deplibs_check_method=unknown
4750
4751
4752# If no C compiler was specified, use CC.
4753LTCC=${LTCC-"$CC"}
4754
4755# Allow CC to be a program name with arguments.
4756compiler=$CC
4757
4758# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4759if test "${enable_libtool_lock+set}" = set; then
4760  enableval="$enable_libtool_lock"
4761
4762fi;
4763test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4764
4765# Some flags need to be propagated to the compiler or linker for good
4766# libtool support.
4767case $host in
4768ia64-*-hpux*)
4769  # Find out which ABI we are using.
4770  echo 'int i;' > conftest.$ac_ext
4771  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4772  (eval $ac_compile) 2>&5
4773  ac_status=$?
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); }; then
4776    case `/usr/bin/file conftest.$ac_objext` in
4777    *ELF-32*)
4778      HPUX_IA64_MODE="32"
4779      ;;
4780    *ELF-64*)
4781      HPUX_IA64_MODE="64"
4782      ;;
4783    esac
4784  fi
4785  rm -rf conftest*
4786  ;;
4787*-*-irix6*)
4788  # Find out which ABI we are using.
4789  echo '#line 4789 "configure"' > conftest.$ac_ext
4790  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4791  (eval $ac_compile) 2>&5
4792  ac_status=$?
4793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794  (exit $ac_status); }; then
4795   if test "$lt_cv_prog_gnu_ld" = yes; then
4796    case `/usr/bin/file conftest.$ac_objext` in
4797    *32-bit*)
4798      LD="${LD-ld} -melf32bsmip"
4799      ;;
4800    *N32*)
4801      LD="${LD-ld} -melf32bmipn32"
4802      ;;
4803    *64-bit*)
4804      LD="${LD-ld} -melf64bmip"
4805      ;;
4806    esac
4807   else
4808    case `/usr/bin/file conftest.$ac_objext` in
4809    *32-bit*)
4810      LD="${LD-ld} -32"
4811      ;;
4812    *N32*)
4813      LD="${LD-ld} -n32"
4814      ;;
4815    *64-bit*)
4816      LD="${LD-ld} -64"
4817      ;;
4818    esac
4819   fi
4820  fi
4821  rm -rf conftest*
4822  ;;
4823
4824x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4825  # Find out which ABI we are using.
4826  echo 'int i;' > conftest.$ac_ext
4827  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828  (eval $ac_compile) 2>&5
4829  ac_status=$?
4830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831  (exit $ac_status); }; then
4832    case "`/usr/bin/file conftest.o`" in
4833    *32-bit*)
4834      case $host in
4835        x86_64-*linux*)
4836          LD="${LD-ld} -m elf_i386"
4837          ;;
4838        ppc64-*linux*|powerpc64-*linux*)
4839          LD="${LD-ld} -m elf32ppclinux"
4840          ;;
4841        s390x-*linux*)
4842          LD="${LD-ld} -m elf_s390"
4843          ;;
4844        sparc64-*linux*)
4845          LD="${LD-ld} -m elf32_sparc"
4846          ;;
4847      esac
4848      ;;
4849    *64-bit*)
4850      case $host in
4851        x86_64-*linux*)
4852          LD="${LD-ld} -m elf_x86_64"
4853          ;;
4854        ppc*-*linux*|powerpc*-*linux*)
4855          LD="${LD-ld} -m elf64ppc"
4856          ;;
4857        s390*-*linux*)
4858          LD="${LD-ld} -m elf64_s390"
4859          ;;
4860        sparc*-*linux*)
4861          LD="${LD-ld} -m elf64_sparc"
4862          ;;
4863      esac
4864      ;;
4865    esac
4866  fi
4867  rm -rf conftest*
4868  ;;
4869
4870*-*-sco3.2v5*)
4871  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4872  SAVE_CFLAGS="$CFLAGS"
4873  CFLAGS="$CFLAGS -belf"
4874  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4875echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4876if test "${lt_cv_cc_needs_belf+set}" = set; then
4877  echo $ECHO_N "(cached) $ECHO_C" >&6
4878else
4879  ac_ext=c
4880ac_cpp='$CPP $CPPFLAGS'
4881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884
4885     cat >conftest.$ac_ext <<_ACEOF
4886/* confdefs.h.  */
4887_ACEOF
4888cat confdefs.h >>conftest.$ac_ext
4889cat >>conftest.$ac_ext <<_ACEOF
4890/* end confdefs.h.  */
4891
4892int
4893main ()
4894{
4895
4896  ;
4897  return 0;
4898}
4899_ACEOF
4900rm -f conftest.$ac_objext conftest$ac_exeext
4901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902  (eval $ac_link) 2>conftest.er1
4903  ac_status=$?
4904  grep -v '^ *+' conftest.er1 >conftest.err
4905  rm -f conftest.er1
4906  cat conftest.err >&5
4907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908  (exit $ac_status); } &&
4909	 { ac_try='test -z "$ac_c_werror_flag"
4910			 || test ! -s conftest.err'
4911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912  (eval $ac_try) 2>&5
4913  ac_status=$?
4914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915  (exit $ac_status); }; } &&
4916	 { ac_try='test -s conftest$ac_exeext'
4917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918  (eval $ac_try) 2>&5
4919  ac_status=$?
4920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921  (exit $ac_status); }; }; then
4922  lt_cv_cc_needs_belf=yes
4923else
4924  echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
4926
4927lt_cv_cc_needs_belf=no
4928fi
4929rm -f conftest.err conftest.$ac_objext \
4930      conftest$ac_exeext conftest.$ac_ext
4931     ac_ext=c
4932ac_cpp='$CPP $CPPFLAGS'
4933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4935ac_compiler_gnu=$ac_cv_c_compiler_gnu
4936
4937fi
4938echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4939echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4940  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4941    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4942    CFLAGS="$SAVE_CFLAGS"
4943  fi
4944  ;;
4945
4946esac
4947
4948need_locks="$enable_libtool_lock"
4949
4950
4951
4952echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4953echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4954if test "${ac_cv_header_stdc+set}" = set; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957  cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h.  */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h.  */
4963#include <stdlib.h>
4964#include <stdarg.h>
4965#include <string.h>
4966#include <float.h>
4967
4968int
4969main ()
4970{
4971
4972  ;
4973  return 0;
4974}
4975_ACEOF
4976rm -f conftest.$ac_objext
4977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978  (eval $ac_compile) 2>conftest.er1
4979  ac_status=$?
4980  grep -v '^ *+' conftest.er1 >conftest.err
4981  rm -f conftest.er1
4982  cat conftest.err >&5
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); } &&
4985	 { ac_try='test -z "$ac_c_werror_flag"
4986			 || test ! -s conftest.err'
4987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988  (eval $ac_try) 2>&5
4989  ac_status=$?
4990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991  (exit $ac_status); }; } &&
4992	 { ac_try='test -s conftest.$ac_objext'
4993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994  (eval $ac_try) 2>&5
4995  ac_status=$?
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); }; }; then
4998  ac_cv_header_stdc=yes
4999else
5000  echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002
5003ac_cv_header_stdc=no
5004fi
5005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5006
5007if test $ac_cv_header_stdc = yes; then
5008  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009  cat >conftest.$ac_ext <<_ACEOF
5010/* confdefs.h.  */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h.  */
5015#include <string.h>
5016
5017_ACEOF
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019  $EGREP "memchr" >/dev/null 2>&1; then
5020  :
5021else
5022  ac_cv_header_stdc=no
5023fi
5024rm -f conftest*
5025
5026fi
5027
5028if test $ac_cv_header_stdc = yes; then
5029  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030  cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h.  */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h.  */
5036#include <stdlib.h>
5037
5038_ACEOF
5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040  $EGREP "free" >/dev/null 2>&1; then
5041  :
5042else
5043  ac_cv_header_stdc=no
5044fi
5045rm -f conftest*
5046
5047fi
5048
5049if test $ac_cv_header_stdc = yes; then
5050  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5051  if test "$cross_compiling" = yes; then
5052  :
5053else
5054  cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h.  */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h.  */
5060#include <ctype.h>
5061#if ((' ' & 0x0FF) == 0x020)
5062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064#else
5065# define ISLOWER(c) \
5066		   (('a' <= (c) && (c) <= 'i') \
5067		     || ('j' <= (c) && (c) <= 'r') \
5068		     || ('s' <= (c) && (c) <= 'z'))
5069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070#endif
5071
5072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5073int
5074main ()
5075{
5076  int i;
5077  for (i = 0; i < 256; i++)
5078    if (XOR (islower (i), ISLOWER (i))
5079	|| toupper (i) != TOUPPER (i))
5080      exit(2);
5081  exit (0);
5082}
5083_ACEOF
5084rm -f conftest$ac_exeext
5085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5086  (eval $ac_link) 2>&5
5087  ac_status=$?
5088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5091  (eval $ac_try) 2>&5
5092  ac_status=$?
5093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094  (exit $ac_status); }; }; then
5095  :
5096else
5097  echo "$as_me: program exited with status $ac_status" >&5
5098echo "$as_me: failed program was:" >&5
5099sed 's/^/| /' conftest.$ac_ext >&5
5100
5101( exit $ac_status )
5102ac_cv_header_stdc=no
5103fi
5104rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5105fi
5106fi
5107fi
5108echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5109echo "${ECHO_T}$ac_cv_header_stdc" >&6
5110if test $ac_cv_header_stdc = yes; then
5111
5112cat >>confdefs.h <<\_ACEOF
5113#define STDC_HEADERS 1
5114_ACEOF
5115
5116fi
5117
5118# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5129		  inttypes.h stdint.h unistd.h
5130do
5131as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5132echo "$as_me:$LINENO: checking for $ac_header" >&5
5133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5134if eval "test \"\${$as_ac_Header+set}\" = set"; then
5135  echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137  cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h.  */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h.  */
5143$ac_includes_default
5144
5145#include <$ac_header>
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5149  (eval $ac_compile) 2>conftest.er1
5150  ac_status=$?
5151  grep -v '^ *+' conftest.er1 >conftest.err
5152  rm -f conftest.er1
5153  cat conftest.err >&5
5154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155  (exit $ac_status); } &&
5156	 { ac_try='test -z "$ac_c_werror_flag"
5157			 || test ! -s conftest.err'
5158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159  (eval $ac_try) 2>&5
5160  ac_status=$?
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); }; } &&
5163	 { ac_try='test -s conftest.$ac_objext'
5164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165  (eval $ac_try) 2>&5
5166  ac_status=$?
5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168  (exit $ac_status); }; }; then
5169  eval "$as_ac_Header=yes"
5170else
5171  echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174eval "$as_ac_Header=no"
5175fi
5176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181  cat >>confdefs.h <<_ACEOF
5182#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5183_ACEOF
5184
5185fi
5186
5187done
5188
5189
5190
5191for ac_header in dlfcn.h
5192do
5193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5194if eval "test \"\${$as_ac_Header+set}\" = set"; then
5195  echo "$as_me:$LINENO: checking for $ac_header" >&5
5196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198  echo $ECHO_N "(cached) $ECHO_C" >&6
5199fi
5200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202else
5203  # Is the header compilable?
5204echo "$as_me:$LINENO: checking $ac_header usability" >&5
5205echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5206cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h.  */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h.  */
5212$ac_includes_default
5213#include <$ac_header>
5214_ACEOF
5215rm -f conftest.$ac_objext
5216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5217  (eval $ac_compile) 2>conftest.er1
5218  ac_status=$?
5219  grep -v '^ *+' conftest.er1 >conftest.err
5220  rm -f conftest.er1
5221  cat conftest.err >&5
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); } &&
5224	 { ac_try='test -z "$ac_c_werror_flag"
5225			 || test ! -s conftest.err'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; } &&
5231	 { ac_try='test -s conftest.$ac_objext'
5232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5233  (eval $ac_try) 2>&5
5234  ac_status=$?
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); }; }; then
5237  ac_header_compiler=yes
5238else
5239  echo "$as_me: failed program was:" >&5
5240sed 's/^/| /' conftest.$ac_ext >&5
5241
5242ac_header_compiler=no
5243fi
5244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5246echo "${ECHO_T}$ac_header_compiler" >&6
5247
5248# Is the header present?
5249echo "$as_me:$LINENO: checking $ac_header presence" >&5
5250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5251cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h.  */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h.  */
5257#include <$ac_header>
5258_ACEOF
5259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5260  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5261  ac_status=$?
5262  grep -v '^ *+' conftest.er1 >conftest.err
5263  rm -f conftest.er1
5264  cat conftest.err >&5
5265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266  (exit $ac_status); } >/dev/null; then
5267  if test -s conftest.err; then
5268    ac_cpp_err=$ac_c_preproc_warn_flag
5269    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270  else
5271    ac_cpp_err=
5272  fi
5273else
5274  ac_cpp_err=yes
5275fi
5276if test -z "$ac_cpp_err"; then
5277  ac_header_preproc=yes
5278else
5279  echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282  ac_header_preproc=no
5283fi
5284rm -f conftest.err conftest.$ac_ext
5285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5286echo "${ECHO_T}$ac_header_preproc" >&6
5287
5288# So?  What about this header?
5289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5290  yes:no: )
5291    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5293    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5295    ac_header_preproc=yes
5296    ;;
5297  no:yes:* )
5298    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5300    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5301echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5302    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5304    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5305echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5306    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5308    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5310    (
5311      cat <<\_ASBOX
5312## -------------------------------------- ##
5313## Report this to heimdal-bugs@pdc.kth.se ##
5314## -------------------------------------- ##
5315_ASBOX
5316    ) |
5317      sed "s/^/$as_me: WARNING:     /" >&2
5318    ;;
5319esac
5320echo "$as_me:$LINENO: checking for $ac_header" >&5
5321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5322if eval "test \"\${$as_ac_Header+set}\" = set"; then
5323  echo $ECHO_N "(cached) $ECHO_C" >&6
5324else
5325  eval "$as_ac_Header=\$ac_header_preproc"
5326fi
5327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5329
5330fi
5331if test `eval echo '${'$as_ac_Header'}'` = yes; then
5332  cat >>confdefs.h <<_ACEOF
5333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5334_ACEOF
5335
5336fi
5337
5338done
5339
5340ac_ext=cc
5341ac_cpp='$CXXCPP $CPPFLAGS'
5342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5345if test -n "$ac_tool_prefix"; then
5346  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5347  do
5348    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_prog_CXX+set}" = set; then
5353  echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355  if test -n "$CXX"; then
5356  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361  IFS=$as_save_IFS
5362  test -z "$as_dir" && as_dir=.
5363  for ac_exec_ext in '' $ac_executable_extensions; do
5364  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5366    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367    break 2
5368  fi
5369done
5370done
5371
5372fi
5373fi
5374CXX=$ac_cv_prog_CXX
5375if test -n "$CXX"; then
5376  echo "$as_me:$LINENO: result: $CXX" >&5
5377echo "${ECHO_T}$CXX" >&6
5378else
5379  echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5382
5383    test -n "$CXX" && break
5384  done
5385fi
5386if test -z "$CXX"; then
5387  ac_ct_CXX=$CXX
5388  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5389do
5390  # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  if test -n "$ac_ct_CXX"; then
5398  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_ac_ct_CXX="$ac_prog"
5408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413
5414fi
5415fi
5416ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5417if test -n "$ac_ct_CXX"; then
5418  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5419echo "${ECHO_T}$ac_ct_CXX" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425  test -n "$ac_ct_CXX" && break
5426done
5427test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5428
5429  CXX=$ac_ct_CXX
5430fi
5431
5432
5433# Provide some information about the compiler.
5434echo "$as_me:$LINENO:" \
5435     "checking for C++ compiler version" >&5
5436ac_compiler=`set X $ac_compile; echo $2`
5437{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5438  (eval $ac_compiler --version </dev/null >&5) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }
5442{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5443  (eval $ac_compiler -v </dev/null >&5) 2>&5
5444  ac_status=$?
5445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446  (exit $ac_status); }
5447{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5448  (eval $ac_compiler -V </dev/null >&5) 2>&5
5449  ac_status=$?
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); }
5452
5453echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5454echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5455if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5456  echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458  cat >conftest.$ac_ext <<_ACEOF
5459/* confdefs.h.  */
5460_ACEOF
5461cat confdefs.h >>conftest.$ac_ext
5462cat >>conftest.$ac_ext <<_ACEOF
5463/* end confdefs.h.  */
5464
5465int
5466main ()
5467{
5468#ifndef __GNUC__
5469       choke me
5470#endif
5471
5472  ;
5473  return 0;
5474}
5475_ACEOF
5476rm -f conftest.$ac_objext
5477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478  (eval $ac_compile) 2>conftest.er1
5479  ac_status=$?
5480  grep -v '^ *+' conftest.er1 >conftest.err
5481  rm -f conftest.er1
5482  cat conftest.err >&5
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); } &&
5485	 { ac_try='test -z "$ac_cxx_werror_flag"
5486			 || test ! -s conftest.err'
5487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488  (eval $ac_try) 2>&5
5489  ac_status=$?
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); }; } &&
5492	 { ac_try='test -s conftest.$ac_objext'
5493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494  (eval $ac_try) 2>&5
5495  ac_status=$?
5496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497  (exit $ac_status); }; }; then
5498  ac_compiler_gnu=yes
5499else
5500  echo "$as_me: failed program was:" >&5
5501sed 's/^/| /' conftest.$ac_ext >&5
5502
5503ac_compiler_gnu=no
5504fi
5505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5506ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5507
5508fi
5509echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5510echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5511GXX=`test $ac_compiler_gnu = yes && echo yes`
5512ac_test_CXXFLAGS=${CXXFLAGS+set}
5513ac_save_CXXFLAGS=$CXXFLAGS
5514CXXFLAGS="-g"
5515echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5516echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5517if test "${ac_cv_prog_cxx_g+set}" = set; then
5518  echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520  cat >conftest.$ac_ext <<_ACEOF
5521/* confdefs.h.  */
5522_ACEOF
5523cat confdefs.h >>conftest.$ac_ext
5524cat >>conftest.$ac_ext <<_ACEOF
5525/* end confdefs.h.  */
5526
5527int
5528main ()
5529{
5530
5531  ;
5532  return 0;
5533}
5534_ACEOF
5535rm -f conftest.$ac_objext
5536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5537  (eval $ac_compile) 2>conftest.er1
5538  ac_status=$?
5539  grep -v '^ *+' conftest.er1 >conftest.err
5540  rm -f conftest.er1
5541  cat conftest.err >&5
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); } &&
5544	 { ac_try='test -z "$ac_cxx_werror_flag"
5545			 || test ! -s conftest.err'
5546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547  (eval $ac_try) 2>&5
5548  ac_status=$?
5549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550  (exit $ac_status); }; } &&
5551	 { ac_try='test -s conftest.$ac_objext'
5552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553  (eval $ac_try) 2>&5
5554  ac_status=$?
5555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556  (exit $ac_status); }; }; then
5557  ac_cv_prog_cxx_g=yes
5558else
5559  echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562ac_cv_prog_cxx_g=no
5563fi
5564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5565fi
5566echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5567echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5568if test "$ac_test_CXXFLAGS" = set; then
5569  CXXFLAGS=$ac_save_CXXFLAGS
5570elif test $ac_cv_prog_cxx_g = yes; then
5571  if test "$GXX" = yes; then
5572    CXXFLAGS="-g -O2"
5573  else
5574    CXXFLAGS="-g"
5575  fi
5576else
5577  if test "$GXX" = yes; then
5578    CXXFLAGS="-O2"
5579  else
5580    CXXFLAGS=
5581  fi
5582fi
5583for ac_declaration in \
5584   '' \
5585   'extern "C" void std::exit (int) throw (); using std::exit;' \
5586   'extern "C" void std::exit (int); using std::exit;' \
5587   'extern "C" void exit (int) throw ();' \
5588   'extern "C" void exit (int);' \
5589   'void exit (int);'
5590do
5591  cat >conftest.$ac_ext <<_ACEOF
5592/* confdefs.h.  */
5593_ACEOF
5594cat confdefs.h >>conftest.$ac_ext
5595cat >>conftest.$ac_ext <<_ACEOF
5596/* end confdefs.h.  */
5597$ac_declaration
5598#include <stdlib.h>
5599int
5600main ()
5601{
5602exit (42);
5603  ;
5604  return 0;
5605}
5606_ACEOF
5607rm -f conftest.$ac_objext
5608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5609  (eval $ac_compile) 2>conftest.er1
5610  ac_status=$?
5611  grep -v '^ *+' conftest.er1 >conftest.err
5612  rm -f conftest.er1
5613  cat conftest.err >&5
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); } &&
5616	 { ac_try='test -z "$ac_cxx_werror_flag"
5617			 || test ! -s conftest.err'
5618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619  (eval $ac_try) 2>&5
5620  ac_status=$?
5621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622  (exit $ac_status); }; } &&
5623	 { ac_try='test -s conftest.$ac_objext'
5624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625  (eval $ac_try) 2>&5
5626  ac_status=$?
5627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628  (exit $ac_status); }; }; then
5629  :
5630else
5631  echo "$as_me: failed program was:" >&5
5632sed 's/^/| /' conftest.$ac_ext >&5
5633
5634continue
5635fi
5636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5637  cat >conftest.$ac_ext <<_ACEOF
5638/* confdefs.h.  */
5639_ACEOF
5640cat confdefs.h >>conftest.$ac_ext
5641cat >>conftest.$ac_ext <<_ACEOF
5642/* end confdefs.h.  */
5643$ac_declaration
5644int
5645main ()
5646{
5647exit (42);
5648  ;
5649  return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext
5653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654  (eval $ac_compile) 2>conftest.er1
5655  ac_status=$?
5656  grep -v '^ *+' conftest.er1 >conftest.err
5657  rm -f conftest.er1
5658  cat conftest.err >&5
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); } &&
5661	 { ac_try='test -z "$ac_cxx_werror_flag"
5662			 || test ! -s conftest.err'
5663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664  (eval $ac_try) 2>&5
5665  ac_status=$?
5666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667  (exit $ac_status); }; } &&
5668	 { ac_try='test -s conftest.$ac_objext'
5669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670  (eval $ac_try) 2>&5
5671  ac_status=$?
5672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673  (exit $ac_status); }; }; then
5674  break
5675else
5676  echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679fi
5680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681done
5682rm -f conftest*
5683if test -n "$ac_declaration"; then
5684  echo '#ifdef __cplusplus' >>confdefs.h
5685  echo $ac_declaration      >>confdefs.h
5686  echo '#endif'             >>confdefs.h
5687fi
5688
5689ac_ext=cc
5690ac_cpp='$CXXCPP $CPPFLAGS'
5691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5694
5695ac_ext=cc
5696ac_cpp='$CXXCPP $CPPFLAGS'
5697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5700echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5701echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5702if test -z "$CXXCPP"; then
5703  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706      # Double quotes because CXXCPP needs to be expanded
5707    for CXXCPP in "$CXX -E" "/lib/cpp"
5708    do
5709      ac_preproc_ok=false
5710for ac_cxx_preproc_warn_flag in '' yes
5711do
5712  # Use a header file that comes with gcc, so configuring glibc
5713  # with a fresh cross-compiler works.
5714  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5715  # <limits.h> exists even on freestanding compilers.
5716  # On the NeXT, cc -E runs the code through the compiler's parser,
5717  # not just through cpp. "Syntax error" is here to catch this case.
5718  cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h.  */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h.  */
5724#ifdef __STDC__
5725# include <limits.h>
5726#else
5727# include <assert.h>
5728#endif
5729		     Syntax error
5730_ACEOF
5731if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5732  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5733  ac_status=$?
5734  grep -v '^ *+' conftest.er1 >conftest.err
5735  rm -f conftest.er1
5736  cat conftest.err >&5
5737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738  (exit $ac_status); } >/dev/null; then
5739  if test -s conftest.err; then
5740    ac_cpp_err=$ac_cxx_preproc_warn_flag
5741    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5742  else
5743    ac_cpp_err=
5744  fi
5745else
5746  ac_cpp_err=yes
5747fi
5748if test -z "$ac_cpp_err"; then
5749  :
5750else
5751  echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754  # Broken: fails on valid input.
5755continue
5756fi
5757rm -f conftest.err conftest.$ac_ext
5758
5759  # OK, works on sane cases.  Now check whether non-existent headers
5760  # can be detected and how.
5761  cat >conftest.$ac_ext <<_ACEOF
5762/* confdefs.h.  */
5763_ACEOF
5764cat confdefs.h >>conftest.$ac_ext
5765cat >>conftest.$ac_ext <<_ACEOF
5766/* end confdefs.h.  */
5767#include <ac_nonexistent.h>
5768_ACEOF
5769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5771  ac_status=$?
5772  grep -v '^ *+' conftest.er1 >conftest.err
5773  rm -f conftest.er1
5774  cat conftest.err >&5
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); } >/dev/null; then
5777  if test -s conftest.err; then
5778    ac_cpp_err=$ac_cxx_preproc_warn_flag
5779    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5780  else
5781    ac_cpp_err=
5782  fi
5783else
5784  ac_cpp_err=yes
5785fi
5786if test -z "$ac_cpp_err"; then
5787  # Broken: success on invalid input.
5788continue
5789else
5790  echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793  # Passes both tests.
5794ac_preproc_ok=:
5795break
5796fi
5797rm -f conftest.err conftest.$ac_ext
5798
5799done
5800# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5801rm -f conftest.err conftest.$ac_ext
5802if $ac_preproc_ok; then
5803  break
5804fi
5805
5806    done
5807    ac_cv_prog_CXXCPP=$CXXCPP
5808
5809fi
5810  CXXCPP=$ac_cv_prog_CXXCPP
5811else
5812  ac_cv_prog_CXXCPP=$CXXCPP
5813fi
5814echo "$as_me:$LINENO: result: $CXXCPP" >&5
5815echo "${ECHO_T}$CXXCPP" >&6
5816ac_preproc_ok=false
5817for ac_cxx_preproc_warn_flag in '' yes
5818do
5819  # Use a header file that comes with gcc, so configuring glibc
5820  # with a fresh cross-compiler works.
5821  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5822  # <limits.h> exists even on freestanding compilers.
5823  # On the NeXT, cc -E runs the code through the compiler's parser,
5824  # not just through cpp. "Syntax error" is here to catch this case.
5825  cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h.  */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h.  */
5831#ifdef __STDC__
5832# include <limits.h>
5833#else
5834# include <assert.h>
5835#endif
5836		     Syntax error
5837_ACEOF
5838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5840  ac_status=$?
5841  grep -v '^ *+' conftest.er1 >conftest.err
5842  rm -f conftest.er1
5843  cat conftest.err >&5
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); } >/dev/null; then
5846  if test -s conftest.err; then
5847    ac_cpp_err=$ac_cxx_preproc_warn_flag
5848    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5849  else
5850    ac_cpp_err=
5851  fi
5852else
5853  ac_cpp_err=yes
5854fi
5855if test -z "$ac_cpp_err"; then
5856  :
5857else
5858  echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861  # Broken: fails on valid input.
5862continue
5863fi
5864rm -f conftest.err conftest.$ac_ext
5865
5866  # OK, works on sane cases.  Now check whether non-existent headers
5867  # can be detected and how.
5868  cat >conftest.$ac_ext <<_ACEOF
5869/* confdefs.h.  */
5870_ACEOF
5871cat confdefs.h >>conftest.$ac_ext
5872cat >>conftest.$ac_ext <<_ACEOF
5873/* end confdefs.h.  */
5874#include <ac_nonexistent.h>
5875_ACEOF
5876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5877  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5878  ac_status=$?
5879  grep -v '^ *+' conftest.er1 >conftest.err
5880  rm -f conftest.er1
5881  cat conftest.err >&5
5882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883  (exit $ac_status); } >/dev/null; then
5884  if test -s conftest.err; then
5885    ac_cpp_err=$ac_cxx_preproc_warn_flag
5886    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5887  else
5888    ac_cpp_err=
5889  fi
5890else
5891  ac_cpp_err=yes
5892fi
5893if test -z "$ac_cpp_err"; then
5894  # Broken: success on invalid input.
5895continue
5896else
5897  echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900  # Passes both tests.
5901ac_preproc_ok=:
5902break
5903fi
5904rm -f conftest.err conftest.$ac_ext
5905
5906done
5907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5908rm -f conftest.err conftest.$ac_ext
5909if $ac_preproc_ok; then
5910  :
5911else
5912  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5913See \`config.log' for more details." >&5
5914echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5915See \`config.log' for more details." >&2;}
5916   { (exit 1); exit 1; }; }
5917fi
5918
5919ac_ext=cc
5920ac_cpp='$CXXCPP $CPPFLAGS'
5921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924
5925
5926ac_ext=f
5927ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5928ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5929ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5930if test -n "$ac_tool_prefix"; then
5931  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5932  do
5933    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5934set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5935echo "$as_me:$LINENO: checking for $ac_word" >&5
5936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5937if test "${ac_cv_prog_F77+set}" = set; then
5938  echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940  if test -n "$F77"; then
5941  ac_cv_prog_F77="$F77" # Let the user override the test.
5942else
5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944for as_dir in $PATH
5945do
5946  IFS=$as_save_IFS
5947  test -z "$as_dir" && as_dir=.
5948  for ac_exec_ext in '' $ac_executable_extensions; do
5949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5950    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952    break 2
5953  fi
5954done
5955done
5956
5957fi
5958fi
5959F77=$ac_cv_prog_F77
5960if test -n "$F77"; then
5961  echo "$as_me:$LINENO: result: $F77" >&5
5962echo "${ECHO_T}$F77" >&6
5963else
5964  echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966fi
5967
5968    test -n "$F77" && break
5969  done
5970fi
5971if test -z "$F77"; then
5972  ac_ct_F77=$F77
5973  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5974do
5975  # Extract the first word of "$ac_prog", so it can be a program name with args.
5976set dummy $ac_prog; ac_word=$2
5977echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5979if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  if test -n "$ac_ct_F77"; then
5983  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988  IFS=$as_save_IFS
5989  test -z "$as_dir" && as_dir=.
5990  for ac_exec_ext in '' $ac_executable_extensions; do
5991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992    ac_cv_prog_ac_ct_F77="$ac_prog"
5993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994    break 2
5995  fi
5996done
5997done
5998
5999fi
6000fi
6001ac_ct_F77=$ac_cv_prog_ac_ct_F77
6002if test -n "$ac_ct_F77"; then
6003  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6004echo "${ECHO_T}$ac_ct_F77" >&6
6005else
6006  echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6
6008fi
6009
6010  test -n "$ac_ct_F77" && break
6011done
6012
6013  F77=$ac_ct_F77
6014fi
6015
6016
6017# Provide some information about the compiler.
6018echo "$as_me:6018:" \
6019     "checking for Fortran 77 compiler version" >&5
6020ac_compiler=`set X $ac_compile; echo $2`
6021{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6022  (eval $ac_compiler --version </dev/null >&5) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }
6026{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6027  (eval $ac_compiler -v </dev/null >&5) 2>&5
6028  ac_status=$?
6029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030  (exit $ac_status); }
6031{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6032  (eval $ac_compiler -V </dev/null >&5) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }
6036rm -f a.out
6037
6038# If we don't use `.F' as extension, the preprocessor is not run on the
6039# input file.  (Note that this only needs to work for GNU compilers.)
6040ac_save_ext=$ac_ext
6041ac_ext=F
6042echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6043echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6044if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  cat >conftest.$ac_ext <<_ACEOF
6048      program main
6049#ifndef __GNUC__
6050       choke me
6051#endif
6052
6053      end
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6057  (eval $ac_compile) 2>conftest.er1
6058  ac_status=$?
6059  grep -v '^ *+' conftest.er1 >conftest.err
6060  rm -f conftest.er1
6061  cat conftest.err >&5
6062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063  (exit $ac_status); } &&
6064	 { ac_try='test -z "$ac_f77_werror_flag"
6065			 || test ! -s conftest.err'
6066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067  (eval $ac_try) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; } &&
6071	 { ac_try='test -s conftest.$ac_objext'
6072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073  (eval $ac_try) 2>&5
6074  ac_status=$?
6075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076  (exit $ac_status); }; }; then
6077  ac_compiler_gnu=yes
6078else
6079  echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
6082ac_compiler_gnu=no
6083fi
6084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6085ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6086
6087fi
6088echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6089echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6090ac_ext=$ac_save_ext
6091ac_test_FFLAGS=${FFLAGS+set}
6092ac_save_FFLAGS=$FFLAGS
6093FFLAGS=
6094echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6095echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6096if test "${ac_cv_prog_f77_g+set}" = set; then
6097  echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
6099  FFLAGS=-g
6100cat >conftest.$ac_ext <<_ACEOF
6101      program main
6102
6103      end
6104_ACEOF
6105rm -f conftest.$ac_objext
6106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107  (eval $ac_compile) 2>conftest.er1
6108  ac_status=$?
6109  grep -v '^ *+' conftest.er1 >conftest.err
6110  rm -f conftest.er1
6111  cat conftest.err >&5
6112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113  (exit $ac_status); } &&
6114	 { ac_try='test -z "$ac_f77_werror_flag"
6115			 || test ! -s conftest.err'
6116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); }; } &&
6121	 { ac_try='test -s conftest.$ac_objext'
6122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123  (eval $ac_try) 2>&5
6124  ac_status=$?
6125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126  (exit $ac_status); }; }; then
6127  ac_cv_prog_f77_g=yes
6128else
6129  echo "$as_me: failed program was:" >&5
6130sed 's/^/| /' conftest.$ac_ext >&5
6131
6132ac_cv_prog_f77_g=no
6133fi
6134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6135
6136fi
6137echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6138echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6139if test "$ac_test_FFLAGS" = set; then
6140  FFLAGS=$ac_save_FFLAGS
6141elif test $ac_cv_prog_f77_g = yes; then
6142  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6143    FFLAGS="-g -O2"
6144  else
6145    FFLAGS="-g"
6146  fi
6147else
6148  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6149    FFLAGS="-O2"
6150  else
6151    FFLAGS=
6152  fi
6153fi
6154
6155G77=`test $ac_compiler_gnu = yes && echo yes`
6156ac_ext=c
6157ac_cpp='$CPP $CPPFLAGS'
6158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163
6164# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6165
6166# find the maximum length of command line arguments
6167echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6168echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6169if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6170  echo $ECHO_N "(cached) $ECHO_C" >&6
6171else
6172    i=0
6173  testring="ABCD"
6174
6175  case $build_os in
6176  msdosdjgpp*)
6177    # On DJGPP, this test can blow up pretty badly due to problems in libc
6178    # (any single argument exceeding 2000 bytes causes a buffer overrun
6179    # during glob expansion).  Even if it were fixed, the result of this
6180    # check would be larger than it should be.
6181    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6182    ;;
6183
6184  gnu*)
6185    # Under GNU Hurd, this test is not required because there is
6186    # no limit to the length of command line arguments.
6187    # Libtool will interpret -1 as no limit whatsoever
6188    lt_cv_sys_max_cmd_len=-1;
6189    ;;
6190
6191  cygwin* | mingw*)
6192    # On Win9x/ME, this test blows up -- it succeeds, but takes
6193    # about 5 minutes as the teststring grows exponentially.
6194    # Worse, since 9x/ME are not pre-emptively multitasking,
6195    # you end up with a "frozen" computer, even though with patience
6196    # the test eventually succeeds (with a max line length of 256k).
6197    # Instead, let's just punt: use the minimum linelength reported by
6198    # all of the supported platforms: 8192 (on NT/2K/XP).
6199    lt_cv_sys_max_cmd_len=8192;
6200    ;;
6201
6202  amigaos*)
6203    # On AmigaOS with pdksh, this test takes hours, literally.
6204    # So we just punt and use a minimum line length of 8192.
6205    lt_cv_sys_max_cmd_len=8192;
6206    ;;
6207
6208 *)
6209    # If test is not a shell built-in, we'll probably end up computing a
6210    # maximum length that is only half of the actual maximum length, but
6211    # we can't tell.
6212    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
6213	       = "XX$testring") >/dev/null 2>&1 &&
6214	    new_result=`expr "X$testring" : ".*" 2>&1` &&
6215	    lt_cv_sys_max_cmd_len=$new_result &&
6216	    test $i != 17 # 1/2 MB should be enough
6217    do
6218      i=`expr $i + 1`
6219      testring=$testring$testring
6220    done
6221    testring=
6222    # Add a significant safety factor because C++ compilers can tack on massive
6223    # amounts of additional arguments before passing them to the linker.
6224    # It appears as though 1/2 is a usable value.
6225    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6226    ;;
6227  esac
6228
6229fi
6230
6231if test -n $lt_cv_sys_max_cmd_len ; then
6232  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6233echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6234else
6235  echo "$as_me:$LINENO: result: none" >&5
6236echo "${ECHO_T}none" >&6
6237fi
6238
6239
6240
6241
6242# Check for command to grab the raw symbol name followed by C symbol from nm.
6243echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6244echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6245if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6246  echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248
6249# These are sane defaults that work on at least a few old systems.
6250# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6251
6252# Character class describing NM global symbol codes.
6253symcode='[BCDEGRST]'
6254
6255# Regexp to match symbols that can be accessed directly from C.
6256sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6257
6258# Transform the above into a raw symbol and a C symbol.
6259symxfrm='\1 \2\3 \3'
6260
6261# Transform an extracted symbol line into a proper C declaration
6262lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6263
6264# Transform an extracted symbol line into symbol name and symbol address
6265lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6266
6267# Define system-specific variables.
6268case $host_os in
6269aix*)
6270  symcode='[BCDT]'
6271  ;;
6272cygwin* | mingw* | pw32*)
6273  symcode='[ABCDGISTW]'
6274  ;;
6275hpux*) # Its linker distinguishes data from code symbols
6276  if test "$host_cpu" = ia64; then
6277    symcode='[ABCDEGRST]'
6278  fi
6279  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6280  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6281  ;;
6282irix* | nonstopux*)
6283  symcode='[BCDEGRST]'
6284  ;;
6285osf*)
6286  symcode='[BCDEGQRST]'
6287  ;;
6288solaris* | sysv5*)
6289  symcode='[BDRT]'
6290  ;;
6291sysv4)
6292  symcode='[DFNSTU]'
6293  ;;
6294esac
6295
6296# Handle CRLF in mingw tool chain
6297opt_cr=
6298case $build_os in
6299mingw*)
6300  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6301  ;;
6302esac
6303
6304# If we're using GNU nm, then use its standard symbol codes.
6305case `$NM -V 2>&1` in
6306*GNU* | *'with BFD'*)
6307  symcode='[ABCDGIRSTW]' ;;
6308esac
6309
6310# Try without a prefix undercore, then with it.
6311for ac_symprfx in "" "_"; do
6312
6313  # Write the raw and C identifiers.
6314  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6315
6316  # Check to see that the pipe works correctly.
6317  pipe_works=no
6318
6319  rm -f conftest*
6320  cat > conftest.$ac_ext <<EOF
6321#ifdef __cplusplus
6322extern "C" {
6323#endif
6324char nm_test_var;
6325void nm_test_func(){}
6326#ifdef __cplusplus
6327}
6328#endif
6329int main(){nm_test_var='a';nm_test_func();return(0);}
6330EOF
6331
6332  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6333  (eval $ac_compile) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; then
6337    # Now try to grab the symbols.
6338    nlist=conftest.nm
6339    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6340  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6341  ac_status=$?
6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343  (exit $ac_status); } && test -s "$nlist"; then
6344      # Try sorting and uniquifying the output.
6345      if sort "$nlist" | uniq > "$nlist"T; then
6346	mv -f "$nlist"T "$nlist"
6347      else
6348	rm -f "$nlist"T
6349      fi
6350
6351      # Make sure that we snagged all the symbols we need.
6352      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6353	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6354	  cat <<EOF > conftest.$ac_ext
6355#ifdef __cplusplus
6356extern "C" {
6357#endif
6358
6359EOF
6360	  # Now generate the symbol file.
6361	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6362
6363	  cat <<EOF >> conftest.$ac_ext
6364#if defined (__STDC__) && __STDC__
6365# define lt_ptr_t void *
6366#else
6367# define lt_ptr_t char *
6368# define const
6369#endif
6370
6371/* The mapping between symbol names and symbols. */
6372const struct {
6373  const char *name;
6374  lt_ptr_t address;
6375}
6376lt_preloaded_symbols[] =
6377{
6378EOF
6379	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6380	  cat <<\EOF >> conftest.$ac_ext
6381  {0, (lt_ptr_t) 0}
6382};
6383
6384#ifdef __cplusplus
6385}
6386#endif
6387EOF
6388	  # Now try linking the two files.
6389	  mv conftest.$ac_objext conftstm.$ac_objext
6390	  lt_save_LIBS="$LIBS"
6391	  lt_save_CFLAGS="$CFLAGS"
6392	  LIBS="conftstm.$ac_objext"
6393	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6394	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395  (eval $ac_link) 2>&5
6396  ac_status=$?
6397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6399	    pipe_works=yes
6400	  fi
6401	  LIBS="$lt_save_LIBS"
6402	  CFLAGS="$lt_save_CFLAGS"
6403	else
6404	  echo "cannot find nm_test_func in $nlist" >&5
6405	fi
6406      else
6407	echo "cannot find nm_test_var in $nlist" >&5
6408      fi
6409    else
6410      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6411    fi
6412  else
6413    echo "$progname: failed program was:" >&5
6414    cat conftest.$ac_ext >&5
6415  fi
6416  rm -f conftest* conftst*
6417
6418  # Do not use the global_symbol_pipe unless it works.
6419  if test "$pipe_works" = yes; then
6420    break
6421  else
6422    lt_cv_sys_global_symbol_pipe=
6423  fi
6424done
6425
6426fi
6427
6428if test -z "$lt_cv_sys_global_symbol_pipe"; then
6429  lt_cv_sys_global_symbol_to_cdecl=
6430fi
6431if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6432  echo "$as_me:$LINENO: result: failed" >&5
6433echo "${ECHO_T}failed" >&6
6434else
6435  echo "$as_me:$LINENO: result: ok" >&5
6436echo "${ECHO_T}ok" >&6
6437fi
6438
6439echo "$as_me:$LINENO: checking for objdir" >&5
6440echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6441if test "${lt_cv_objdir+set}" = set; then
6442  echo $ECHO_N "(cached) $ECHO_C" >&6
6443else
6444  rm -f .libs 2>/dev/null
6445mkdir .libs 2>/dev/null
6446if test -d .libs; then
6447  lt_cv_objdir=.libs
6448else
6449  # MS-DOS does not allow filenames that begin with a dot.
6450  lt_cv_objdir=_libs
6451fi
6452rmdir .libs 2>/dev/null
6453fi
6454echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6455echo "${ECHO_T}$lt_cv_objdir" >&6
6456objdir=$lt_cv_objdir
6457
6458
6459
6460
6461
6462case $host_os in
6463aix3*)
6464  # AIX sometimes has problems with the GCC collect2 program.  For some
6465  # reason, if we set the COLLECT_NAMES environment variable, the problems
6466  # vanish in a puff of smoke.
6467  if test "X${COLLECT_NAMES+set}" != Xset; then
6468    COLLECT_NAMES=
6469    export COLLECT_NAMES
6470  fi
6471  ;;
6472esac
6473
6474# Sed substitution that helps us do robust quoting.  It backslashifies
6475# metacharacters that are still active within double-quoted strings.
6476Xsed='sed -e s/^X//'
6477sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6478
6479# Same as above, but do not quote variable references.
6480double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6481
6482# Sed substitution to delay expansion of an escaped shell variable in a
6483# double_quote_subst'ed string.
6484delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6485
6486# Sed substitution to avoid accidental globbing in evaled expressions
6487no_glob_subst='s/\*/\\\*/g'
6488
6489# Constants:
6490rm="rm -f"
6491
6492# Global variables:
6493default_ofile=libtool
6494can_build_shared=yes
6495
6496# All known linkers require a `.a' archive for static linking (except M$VC,
6497# which needs '.lib').
6498libext=a
6499ltmain="$ac_aux_dir/ltmain.sh"
6500ofile="$default_ofile"
6501with_gnu_ld="$lt_cv_prog_gnu_ld"
6502
6503if test -n "$ac_tool_prefix"; then
6504  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6505set dummy ${ac_tool_prefix}ar; ac_word=$2
6506echo "$as_me:$LINENO: checking for $ac_word" >&5
6507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6508if test "${ac_cv_prog_AR+set}" = set; then
6509  echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511  if test -n "$AR"; then
6512  ac_cv_prog_AR="$AR" # Let the user override the test.
6513else
6514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515for as_dir in $PATH
6516do
6517  IFS=$as_save_IFS
6518  test -z "$as_dir" && as_dir=.
6519  for ac_exec_ext in '' $ac_executable_extensions; do
6520  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6521    ac_cv_prog_AR="${ac_tool_prefix}ar"
6522    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6523    break 2
6524  fi
6525done
6526done
6527
6528fi
6529fi
6530AR=$ac_cv_prog_AR
6531if test -n "$AR"; then
6532  echo "$as_me:$LINENO: result: $AR" >&5
6533echo "${ECHO_T}$AR" >&6
6534else
6535  echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6
6537fi
6538
6539fi
6540if test -z "$ac_cv_prog_AR"; then
6541  ac_ct_AR=$AR
6542  # Extract the first word of "ar", so it can be a program name with args.
6543set dummy ar; ac_word=$2
6544echo "$as_me:$LINENO: checking for $ac_word" >&5
6545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6546if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6547  echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
6549  if test -n "$ac_ct_AR"; then
6550  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6551else
6552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555  IFS=$as_save_IFS
6556  test -z "$as_dir" && as_dir=.
6557  for ac_exec_ext in '' $ac_executable_extensions; do
6558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6559    ac_cv_prog_ac_ct_AR="ar"
6560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561    break 2
6562  fi
6563done
6564done
6565
6566  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6567fi
6568fi
6569ac_ct_AR=$ac_cv_prog_ac_ct_AR
6570if test -n "$ac_ct_AR"; then
6571  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6572echo "${ECHO_T}$ac_ct_AR" >&6
6573else
6574  echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6
6576fi
6577
6578  AR=$ac_ct_AR
6579else
6580  AR="$ac_cv_prog_AR"
6581fi
6582
6583if test -n "$ac_tool_prefix"; then
6584  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6585set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6586echo "$as_me:$LINENO: checking for $ac_word" >&5
6587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588if test "${ac_cv_prog_RANLIB+set}" = set; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591  if test -n "$RANLIB"; then
6592  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6593else
6594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595for as_dir in $PATH
6596do
6597  IFS=$as_save_IFS
6598  test -z "$as_dir" && as_dir=.
6599  for ac_exec_ext in '' $ac_executable_extensions; do
6600  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6601    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6603    break 2
6604  fi
6605done
6606done
6607
6608fi
6609fi
6610RANLIB=$ac_cv_prog_RANLIB
6611if test -n "$RANLIB"; then
6612  echo "$as_me:$LINENO: result: $RANLIB" >&5
6613echo "${ECHO_T}$RANLIB" >&6
6614else
6615  echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6
6617fi
6618
6619fi
6620if test -z "$ac_cv_prog_RANLIB"; then
6621  ac_ct_RANLIB=$RANLIB
6622  # Extract the first word of "ranlib", so it can be a program name with args.
6623set dummy ranlib; ac_word=$2
6624echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6626if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629  if test -n "$ac_ct_RANLIB"; then
6630  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637  for ac_exec_ext in '' $ac_executable_extensions; do
6638  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_ac_ct_RANLIB="ranlib"
6640    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644done
6645
6646  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6647fi
6648fi
6649ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6650if test -n "$ac_ct_RANLIB"; then
6651  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6652echo "${ECHO_T}$ac_ct_RANLIB" >&6
6653else
6654  echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6
6656fi
6657
6658  RANLIB=$ac_ct_RANLIB
6659else
6660  RANLIB="$ac_cv_prog_RANLIB"
6661fi
6662
6663if test -n "$ac_tool_prefix"; then
6664  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6665set dummy ${ac_tool_prefix}strip; ac_word=$2
6666echo "$as_me:$LINENO: checking for $ac_word" >&5
6667echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6668if test "${ac_cv_prog_STRIP+set}" = set; then
6669  echo $ECHO_N "(cached) $ECHO_C" >&6
6670else
6671  if test -n "$STRIP"; then
6672  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677  IFS=$as_save_IFS
6678  test -z "$as_dir" && as_dir=.
6679  for ac_exec_ext in '' $ac_executable_extensions; do
6680  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6682    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683    break 2
6684  fi
6685done
6686done
6687
6688fi
6689fi
6690STRIP=$ac_cv_prog_STRIP
6691if test -n "$STRIP"; then
6692  echo "$as_me:$LINENO: result: $STRIP" >&5
6693echo "${ECHO_T}$STRIP" >&6
6694else
6695  echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6
6697fi
6698
6699fi
6700if test -z "$ac_cv_prog_STRIP"; then
6701  ac_ct_STRIP=$STRIP
6702  # Extract the first word of "strip", so it can be a program name with args.
6703set dummy strip; ac_word=$2
6704echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6706if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709  if test -n "$ac_ct_STRIP"; then
6710  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6711else
6712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715  IFS=$as_save_IFS
6716  test -z "$as_dir" && as_dir=.
6717  for ac_exec_ext in '' $ac_executable_extensions; do
6718  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719    ac_cv_prog_ac_ct_STRIP="strip"
6720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721    break 2
6722  fi
6723done
6724done
6725
6726  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6727fi
6728fi
6729ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6730if test -n "$ac_ct_STRIP"; then
6731  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6732echo "${ECHO_T}$ac_ct_STRIP" >&6
6733else
6734  echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6
6736fi
6737
6738  STRIP=$ac_ct_STRIP
6739else
6740  STRIP="$ac_cv_prog_STRIP"
6741fi
6742
6743
6744old_CC="$CC"
6745old_CFLAGS="$CFLAGS"
6746
6747# Set sane defaults for various variables
6748test -z "$AR" && AR=ar
6749test -z "$AR_FLAGS" && AR_FLAGS=cru
6750test -z "$AS" && AS=as
6751test -z "$CC" && CC=cc
6752test -z "$LTCC" && LTCC=$CC
6753test -z "$DLLTOOL" && DLLTOOL=dlltool
6754test -z "$LD" && LD=ld
6755test -z "$LN_S" && LN_S="ln -s"
6756test -z "$MAGIC_CMD" && MAGIC_CMD=file
6757test -z "$NM" && NM=nm
6758test -z "$SED" && SED=sed
6759test -z "$OBJDUMP" && OBJDUMP=objdump
6760test -z "$RANLIB" && RANLIB=:
6761test -z "$STRIP" && STRIP=:
6762test -z "$ac_objext" && ac_objext=o
6763
6764# Determine commands to create old-style static archives.
6765old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6766old_postinstall_cmds='chmod 644 $oldlib'
6767old_postuninstall_cmds=
6768
6769if test -n "$RANLIB"; then
6770  case $host_os in
6771  openbsd*)
6772    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6773    ;;
6774  *)
6775    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6776    ;;
6777  esac
6778  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6779fi
6780
6781# Only perform the check for file, if the check method requires it
6782case $deplibs_check_method in
6783file_magic*)
6784  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6785    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6786echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6787if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6788  echo $ECHO_N "(cached) $ECHO_C" >&6
6789else
6790  case $MAGIC_CMD in
6791[\\/*] |  ?:[\\/]*)
6792  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6793  ;;
6794*)
6795  lt_save_MAGIC_CMD="$MAGIC_CMD"
6796  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6797  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6798  for ac_dir in $ac_dummy; do
6799    IFS="$lt_save_ifs"
6800    test -z "$ac_dir" && ac_dir=.
6801    if test -f $ac_dir/${ac_tool_prefix}file; then
6802      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6803      if test -n "$file_magic_test_file"; then
6804	case $deplibs_check_method in
6805	"file_magic "*)
6806	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6807	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6808	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6809	    $EGREP "$file_magic_regex" > /dev/null; then
6810	    :
6811	  else
6812	    cat <<EOF 1>&2
6813
6814*** Warning: the command libtool uses to detect shared libraries,
6815*** $file_magic_cmd, produces output that libtool cannot recognize.
6816*** The result is that libtool may fail to recognize shared libraries
6817*** as such.  This will affect the creation of libtool libraries that
6818*** depend on shared libraries, but programs linked with such libtool
6819*** libraries will work regardless of this problem.  Nevertheless, you
6820*** may want to report the problem to your system manager and/or to
6821*** bug-libtool@gnu.org
6822
6823EOF
6824	  fi ;;
6825	esac
6826      fi
6827      break
6828    fi
6829  done
6830  IFS="$lt_save_ifs"
6831  MAGIC_CMD="$lt_save_MAGIC_CMD"
6832  ;;
6833esac
6834fi
6835
6836MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6837if test -n "$MAGIC_CMD"; then
6838  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6839echo "${ECHO_T}$MAGIC_CMD" >&6
6840else
6841  echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
6843fi
6844
6845if test -z "$lt_cv_path_MAGIC_CMD"; then
6846  if test -n "$ac_tool_prefix"; then
6847    echo "$as_me:$LINENO: checking for file" >&5
6848echo $ECHO_N "checking for file... $ECHO_C" >&6
6849if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6850  echo $ECHO_N "(cached) $ECHO_C" >&6
6851else
6852  case $MAGIC_CMD in
6853[\\/*] |  ?:[\\/]*)
6854  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6855  ;;
6856*)
6857  lt_save_MAGIC_CMD="$MAGIC_CMD"
6858  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6859  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6860  for ac_dir in $ac_dummy; do
6861    IFS="$lt_save_ifs"
6862    test -z "$ac_dir" && ac_dir=.
6863    if test -f $ac_dir/file; then
6864      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6865      if test -n "$file_magic_test_file"; then
6866	case $deplibs_check_method in
6867	"file_magic "*)
6868	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6869	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6871	    $EGREP "$file_magic_regex" > /dev/null; then
6872	    :
6873	  else
6874	    cat <<EOF 1>&2
6875
6876*** Warning: the command libtool uses to detect shared libraries,
6877*** $file_magic_cmd, produces output that libtool cannot recognize.
6878*** The result is that libtool may fail to recognize shared libraries
6879*** as such.  This will affect the creation of libtool libraries that
6880*** depend on shared libraries, but programs linked with such libtool
6881*** libraries will work regardless of this problem.  Nevertheless, you
6882*** may want to report the problem to your system manager and/or to
6883*** bug-libtool@gnu.org
6884
6885EOF
6886	  fi ;;
6887	esac
6888      fi
6889      break
6890    fi
6891  done
6892  IFS="$lt_save_ifs"
6893  MAGIC_CMD="$lt_save_MAGIC_CMD"
6894  ;;
6895esac
6896fi
6897
6898MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899if test -n "$MAGIC_CMD"; then
6900  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6901echo "${ECHO_T}$MAGIC_CMD" >&6
6902else
6903  echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
6905fi
6906
6907  else
6908    MAGIC_CMD=:
6909  fi
6910fi
6911
6912  fi
6913  ;;
6914esac
6915
6916enable_dlopen=no
6917enable_win32_dll=no
6918
6919# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6920if test "${enable_libtool_lock+set}" = set; then
6921  enableval="$enable_libtool_lock"
6922
6923fi;
6924test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6925
6926
6927# Check whether --with-pic or --without-pic was given.
6928if test "${with_pic+set}" = set; then
6929  withval="$with_pic"
6930  pic_mode="$withval"
6931else
6932  pic_mode=default
6933fi;
6934test -z "$pic_mode" && pic_mode=default
6935
6936# Use C for the default configuration in the libtool script
6937tagname=
6938lt_save_CC="$CC"
6939ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945
6946# Source file extension for C test sources.
6947ac_ext=c
6948
6949# Object file extension for compiled C test sources.
6950objext=o
6951objext=$objext
6952
6953# Code to be used in simple compile tests
6954lt_simple_compile_test_code="int some_variable = 0;\n"
6955
6956# Code to be used in simple link tests
6957lt_simple_link_test_code='int main(){return(0);}\n'
6958
6959
6960# If no C compiler was specified, use CC.
6961LTCC=${LTCC-"$CC"}
6962
6963# Allow CC to be a program name with arguments.
6964compiler=$CC
6965
6966
6967#
6968# Check for any special shared library compilation flags.
6969#
6970lt_prog_cc_shlib=
6971if test "$GCC" = no; then
6972  case $host_os in
6973  sco3.2v5*)
6974    lt_prog_cc_shlib='-belf'
6975    ;;
6976  esac
6977fi
6978if test -n "$lt_prog_cc_shlib"; then
6979  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6980echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6981  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6982  else
6983    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6984echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6985    lt_cv_prog_cc_can_build_shared=no
6986  fi
6987fi
6988
6989
6990#
6991# Check to make sure the static flag actually works.
6992#
6993echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6994echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6995if test "${lt_prog_compiler_static_works+set}" = set; then
6996  echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998  lt_prog_compiler_static_works=no
6999   save_LDFLAGS="$LDFLAGS"
7000   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7001   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7002   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7003     # The compiler can only warn and ignore the option if not recognized
7004     # So say no if there are warnings
7005     if test -s conftest.err; then
7006       # Append any errors to the config.log.
7007       cat conftest.err 1>&5
7008     else
7009       lt_prog_compiler_static_works=yes
7010     fi
7011   fi
7012   $rm conftest*
7013   LDFLAGS="$save_LDFLAGS"
7014
7015fi
7016echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7017echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7018
7019if test x"$lt_prog_compiler_static_works" = xyes; then
7020    :
7021else
7022    lt_prog_compiler_static=
7023fi
7024
7025
7026
7027
7028lt_prog_compiler_no_builtin_flag=
7029
7030if test "$GCC" = yes; then
7031  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7032
7033
7034echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7035echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7036if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7037  echo $ECHO_N "(cached) $ECHO_C" >&6
7038else
7039  lt_cv_prog_compiler_rtti_exceptions=no
7040  ac_outfile=conftest.$ac_objext
7041   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7042   lt_compiler_flag="-fno-rtti -fno-exceptions"
7043   # Insert the option either (1) after the last *FLAGS variable, or
7044   # (2) before a word containing "conftest.", or (3) at the end.
7045   # Note that $ac_compile itself does not contain backslashes and begins
7046   # with a dollar sign (not a hyphen), so the echo should work correctly.
7047   # The option is referenced via a variable to avoid confusing sed.
7048   lt_compile=`echo "$ac_compile" | $SED \
7049   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7051   -e 's:$: $lt_compiler_flag:'`
7052   (eval echo "\"\$as_me:7052: $lt_compile\"" >&5)
7053   (eval "$lt_compile" 2>conftest.err)
7054   ac_status=$?
7055   cat conftest.err >&5
7056   echo "$as_me:7056: \$? = $ac_status" >&5
7057   if (exit $ac_status) && test -s "$ac_outfile"; then
7058     # The compiler can only warn and ignore the option if not recognized
7059     # So say no if there are warnings
7060     if test ! -s conftest.err; then
7061       lt_cv_prog_compiler_rtti_exceptions=yes
7062     fi
7063   fi
7064   $rm conftest*
7065
7066fi
7067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7068echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7069
7070if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7071    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7072else
7073    :
7074fi
7075
7076fi
7077
7078lt_prog_compiler_wl=
7079lt_prog_compiler_pic=
7080lt_prog_compiler_static=
7081
7082echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7083echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7084
7085  if test "$GCC" = yes; then
7086    lt_prog_compiler_wl='-Wl,'
7087    lt_prog_compiler_static='-static'
7088
7089    case $host_os in
7090      aix*)
7091      # All AIX code is PIC.
7092      if test "$host_cpu" = ia64; then
7093	# AIX 5 now supports IA64 processor
7094	lt_prog_compiler_static='-Bstatic'
7095      fi
7096      ;;
7097
7098    amigaos*)
7099      # FIXME: we need at least 68020 code to build shared libraries, but
7100      # adding the `-m68020' flag to GCC prevents building anything better,
7101      # like `-m68040'.
7102      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7103      ;;
7104
7105    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7106      # PIC is the default for these OSes.
7107      ;;
7108
7109    mingw* | pw32* | os2*)
7110      # This hack is so that the source file can tell whether it is being
7111      # built for inclusion in a dll (and should export symbols for example).
7112      lt_prog_compiler_pic='-DDLL_EXPORT'
7113      ;;
7114
7115    darwin* | rhapsody*)
7116      # PIC is the default on this platform
7117      # Common symbols not allowed in MH_DYLIB files
7118      lt_prog_compiler_pic='-fno-common'
7119      ;;
7120
7121    msdosdjgpp*)
7122      # Just because we use GCC doesn't mean we suddenly get shared libraries
7123      # on systems that don't support them.
7124      lt_prog_compiler_can_build_shared=no
7125      enable_shared=no
7126      ;;
7127
7128    sysv4*MP*)
7129      if test -d /usr/nec; then
7130	lt_prog_compiler_pic=-Kconform_pic
7131      fi
7132      ;;
7133
7134    hpux*)
7135      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7136      # not for PA HP-UX.
7137      case "$host_cpu" in
7138      hppa*64*|ia64*)
7139	# +Z the default
7140	;;
7141      *)
7142	lt_prog_compiler_pic='-fPIC'
7143	;;
7144      esac
7145      ;;
7146
7147    *)
7148      lt_prog_compiler_pic='-fPIC'
7149      ;;
7150    esac
7151  else
7152    # PORTME Check for flag to pass linker flags through the system compiler.
7153    case $host_os in
7154    aix*)
7155      lt_prog_compiler_wl='-Wl,'
7156      if test "$host_cpu" = ia64; then
7157	# AIX 5 now supports IA64 processor
7158	lt_prog_compiler_static='-Bstatic'
7159      else
7160	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7161      fi
7162      ;;
7163
7164    mingw* | pw32* | os2*)
7165      # This hack is so that the source file can tell whether it is being
7166      # built for inclusion in a dll (and should export symbols for example).
7167      lt_prog_compiler_pic='-DDLL_EXPORT'
7168      ;;
7169
7170    hpux9* | hpux10* | hpux11*)
7171      lt_prog_compiler_wl='-Wl,'
7172      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7173      # not for PA HP-UX.
7174      case "$host_cpu" in
7175      hppa*64*|ia64*)
7176	# +Z the default
7177	;;
7178      *)
7179	lt_prog_compiler_pic='+Z'
7180	;;
7181      esac
7182      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7183      lt_prog_compiler_static='${wl}-a ${wl}archive'
7184      ;;
7185
7186    irix5* | irix6* | nonstopux*)
7187      lt_prog_compiler_wl='-Wl,'
7188      # PIC (with -KPIC) is the default.
7189      lt_prog_compiler_static='-non_shared'
7190      ;;
7191
7192    newsos6)
7193      lt_prog_compiler_pic='-KPIC'
7194      lt_prog_compiler_static='-Bstatic'
7195      ;;
7196
7197    linux*)
7198      case $CC in
7199      icc* | ecc*)
7200	lt_prog_compiler_wl='-Wl,'
7201	lt_prog_compiler_pic='-KPIC'
7202	lt_prog_compiler_static='-static'
7203        ;;
7204      ccc*)
7205        lt_prog_compiler_wl='-Wl,'
7206        # All Alpha code is PIC.
7207        lt_prog_compiler_static='-non_shared'
7208        ;;
7209      esac
7210      ;;
7211
7212    osf3* | osf4* | osf5*)
7213      lt_prog_compiler_wl='-Wl,'
7214      # All OSF/1 code is PIC.
7215      lt_prog_compiler_static='-non_shared'
7216      ;;
7217
7218    sco3.2v5*)
7219      lt_prog_compiler_pic='-Kpic'
7220      lt_prog_compiler_static='-dn'
7221      ;;
7222
7223    solaris*)
7224      lt_prog_compiler_wl='-Wl,'
7225      lt_prog_compiler_pic='-KPIC'
7226      lt_prog_compiler_static='-Bstatic'
7227      ;;
7228
7229    sunos4*)
7230      lt_prog_compiler_wl='-Qoption ld '
7231      lt_prog_compiler_pic='-PIC'
7232      lt_prog_compiler_static='-Bstatic'
7233      ;;
7234
7235    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7236      lt_prog_compiler_wl='-Wl,'
7237      lt_prog_compiler_pic='-KPIC'
7238      lt_prog_compiler_static='-Bstatic'
7239      ;;
7240
7241    sysv4*MP*)
7242      if test -d /usr/nec ;then
7243	lt_prog_compiler_pic='-Kconform_pic'
7244	lt_prog_compiler_static='-Bstatic'
7245      fi
7246      ;;
7247
7248    uts4*)
7249      lt_prog_compiler_pic='-pic'
7250      lt_prog_compiler_static='-Bstatic'
7251      ;;
7252
7253    *)
7254      lt_prog_compiler_can_build_shared=no
7255      ;;
7256    esac
7257  fi
7258
7259echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7260echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7261
7262#
7263# Check to make sure the PIC flag actually works.
7264#
7265if test -n "$lt_prog_compiler_pic"; then
7266
7267echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7268echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7269if test "${lt_prog_compiler_pic_works+set}" = set; then
7270  echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272  lt_prog_compiler_pic_works=no
7273  ac_outfile=conftest.$ac_objext
7274   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7275   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7276   # Insert the option either (1) after the last *FLAGS variable, or
7277   # (2) before a word containing "conftest.", or (3) at the end.
7278   # Note that $ac_compile itself does not contain backslashes and begins
7279   # with a dollar sign (not a hyphen), so the echo should work correctly.
7280   # The option is referenced via a variable to avoid confusing sed.
7281   lt_compile=`echo "$ac_compile" | $SED \
7282   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7283   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7284   -e 's:$: $lt_compiler_flag:'`
7285   (eval echo "\"\$as_me:7285: $lt_compile\"" >&5)
7286   (eval "$lt_compile" 2>conftest.err)
7287   ac_status=$?
7288   cat conftest.err >&5
7289   echo "$as_me:7289: \$? = $ac_status" >&5
7290   if (exit $ac_status) && test -s "$ac_outfile"; then
7291     # The compiler can only warn and ignore the option if not recognized
7292     # So say no if there are warnings
7293     if test ! -s conftest.err; then
7294       lt_prog_compiler_pic_works=yes
7295     fi
7296   fi
7297   $rm conftest*
7298
7299fi
7300echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7301echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7302
7303if test x"$lt_prog_compiler_pic_works" = xyes; then
7304    case $lt_prog_compiler_pic in
7305     "" | " "*) ;;
7306     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7307     esac
7308else
7309    lt_prog_compiler_pic=
7310     lt_prog_compiler_can_build_shared=no
7311fi
7312
7313fi
7314case "$host_os" in
7315  # For platforms which do not support PIC, -DPIC is meaningless:
7316  *djgpp*)
7317    lt_prog_compiler_pic=
7318    ;;
7319  *)
7320    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7321    ;;
7322esac
7323
7324echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7325echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7326if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7327  echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329  lt_cv_prog_compiler_c_o=no
7330   $rm -r conftest 2>/dev/null
7331   mkdir conftest
7332   cd conftest
7333   mkdir out
7334   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7335
7336   lt_compiler_flag="-o out/conftest2.$ac_objext"
7337   # Insert the option either (1) after the last *FLAGS variable, or
7338   # (2) before a word containing "conftest.", or (3) at the end.
7339   # Note that $ac_compile itself does not contain backslashes and begins
7340   # with a dollar sign (not a hyphen), so the echo should work correctly.
7341   lt_compile=`echo "$ac_compile" | $SED \
7342   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7344   -e 's:$: $lt_compiler_flag:'`
7345   (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
7346   (eval "$lt_compile" 2>out/conftest.err)
7347   ac_status=$?
7348   cat out/conftest.err >&5
7349   echo "$as_me:7349: \$? = $ac_status" >&5
7350   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7351   then
7352     # The compiler can only warn and ignore the option if not recognized
7353     # So say no if there are warnings
7354     if test ! -s out/conftest.err; then
7355       lt_cv_prog_compiler_c_o=yes
7356     fi
7357   fi
7358   chmod u+w .
7359   $rm conftest*
7360   # SGI C++ compiler will create directory out/ii_files/ for
7361   # template instantiation
7362   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7363   $rm out/* && rmdir out
7364   cd ..
7365   rmdir conftest
7366   $rm conftest*
7367
7368fi
7369echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7370echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7371
7372
7373hard_links="nottested"
7374if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7375  # do not overwrite the value of need_locks provided by the user
7376  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7377echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7378  hard_links=yes
7379  $rm conftest*
7380  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7381  touch conftest.a
7382  ln conftest.a conftest.b 2>&5 || hard_links=no
7383  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7384  echo "$as_me:$LINENO: result: $hard_links" >&5
7385echo "${ECHO_T}$hard_links" >&6
7386  if test "$hard_links" = no; then
7387    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7388echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7389    need_locks=warn
7390  fi
7391else
7392  need_locks=no
7393fi
7394
7395echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7396echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7397
7398  runpath_var=
7399  allow_undefined_flag=
7400  enable_shared_with_static_runtimes=no
7401  archive_cmds=
7402  archive_expsym_cmds=
7403  old_archive_From_new_cmds=
7404  old_archive_from_expsyms_cmds=
7405  export_dynamic_flag_spec=
7406  whole_archive_flag_spec=
7407  thread_safe_flag_spec=
7408  hardcode_libdir_flag_spec=
7409  hardcode_libdir_flag_spec_ld=
7410  hardcode_libdir_separator=
7411  hardcode_direct=no
7412  hardcode_minus_L=no
7413  hardcode_shlibpath_var=unsupported
7414  link_all_deplibs=unknown
7415  hardcode_automatic=no
7416  module_cmds=
7417  module_expsym_cmds=
7418  always_export_symbols=no
7419  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7420  # include_expsyms should be a list of space-separated symbols to be *always*
7421  # included in the symbol list
7422  include_expsyms=
7423  # exclude_expsyms can be an extended regexp of symbols to exclude
7424  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7425  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7426  # as well as any symbol that contains `d'.
7427  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7428  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7429  # platforms (ab)use it in PIC code, but their linkers get confused if
7430  # the symbol is explicitly referenced.  Since portable code cannot
7431  # rely on this symbol name, it's probably fine to never include it in
7432  # preloaded symbol tables.
7433  extract_expsyms_cmds=
7434
7435  case $host_os in
7436  cygwin* | mingw* | pw32*)
7437    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7438    # When not using gcc, we currently assume that we are using
7439    # Microsoft Visual C++.
7440    if test "$GCC" != yes; then
7441      with_gnu_ld=no
7442    fi
7443    ;;
7444  openbsd*)
7445    with_gnu_ld=no
7446    ;;
7447  esac
7448
7449  ld_shlibs=yes
7450  if test "$with_gnu_ld" = yes; then
7451    # If archive_cmds runs LD, not CC, wlarc should be empty
7452    wlarc='${wl}'
7453
7454    # See if GNU ld supports shared libraries.
7455    case $host_os in
7456    aix3* | aix4* | aix5*)
7457      # On AIX/PPC, the GNU linker is very broken
7458      if test "$host_cpu" != ia64; then
7459	ld_shlibs=no
7460	cat <<EOF 1>&2
7461
7462*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463*** to be unable to reliably create shared libraries on AIX.
7464*** Therefore, libtool is disabling shared libraries support.  If you
7465*** really care for shared libraries, you may want to modify your PATH
7466*** so that a non-GNU linker is found, and then restart.
7467
7468EOF
7469      fi
7470      ;;
7471
7472    amigaos*)
7473      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)'
7474      hardcode_libdir_flag_spec='-L$libdir'
7475      hardcode_minus_L=yes
7476
7477      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7478      # that the semantics of dynamic libraries on AmigaOS, at least up
7479      # to version 4, is to share data among multiple programs linked
7480      # with the same dynamic library.  Since this doesn't match the
7481      # behavior of shared libraries on other platforms, we can't use
7482      # them.
7483      ld_shlibs=no
7484      ;;
7485
7486    beos*)
7487      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7488	allow_undefined_flag=unsupported
7489	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7490	# support --undefined.  This deserves some investigation.  FIXME
7491	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7492      else
7493	ld_shlibs=no
7494      fi
7495      ;;
7496
7497    cygwin* | mingw* | pw32*)
7498      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7499      # as there is no search path for DLLs.
7500      hardcode_libdir_flag_spec='-L$libdir'
7501      allow_undefined_flag=unsupported
7502      always_export_symbols=no
7503      enable_shared_with_static_runtimes=yes
7504      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7505
7506      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7507        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7508	# If the export-symbols file already is a .def file (1st line
7509	# is EXPORTS), use it as is; otherwise, prepend...
7510	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7511	  cp $export_symbols $output_objdir/$soname.def;
7512	else
7513	  echo EXPORTS > $output_objdir/$soname.def;
7514	  cat $export_symbols >> $output_objdir/$soname.def;
7515	fi~
7516	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7517      else
7518	ld_shlibs=no
7519      fi
7520      ;;
7521
7522    netbsd*)
7523      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7524	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7525	wlarc=
7526      else
7527	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7529      fi
7530      ;;
7531
7532    solaris* | sysv5*)
7533      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7534	ld_shlibs=no
7535	cat <<EOF 1>&2
7536
7537*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7538*** create shared libraries on Solaris systems.  Therefore, libtool
7539*** is disabling shared libraries support.  We urge you to upgrade GNU
7540*** binutils to release 2.9.1 or newer.  Another option is to modify
7541*** your PATH or compiler configuration so that the native linker is
7542*** used, and then restart.
7543
7544EOF
7545      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7546	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7547	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7548      else
7549	ld_shlibs=no
7550      fi
7551      ;;
7552
7553    sunos4*)
7554      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7555      wlarc=
7556      hardcode_direct=yes
7557      hardcode_shlibpath_var=no
7558      ;;
7559
7560  linux*)
7561    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7562        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7563	archive_cmds="$tmp_archive_cmds"
7564      supports_anon_versioning=no
7565      case `$LD -v 2>/dev/null` in
7566        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7567        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7568        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7569        *\ 2.11.*) ;; # other 2.11 versions
7570        *) supports_anon_versioning=yes ;;
7571      esac
7572      if test $supports_anon_versioning = yes; then
7573        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7574cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7575$echo "local: *; };" >> $output_objdir/$libname.ver~
7576        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7577      else
7578        archive_expsym_cmds="$tmp_archive_cmds"
7579      fi
7580    else
7581      ld_shlibs=no
7582    fi
7583    ;;
7584
7585    *)
7586      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7587	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7588	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7589      else
7590	ld_shlibs=no
7591      fi
7592      ;;
7593    esac
7594
7595    if test "$ld_shlibs" = yes; then
7596      runpath_var=LD_RUN_PATH
7597      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7598      export_dynamic_flag_spec='${wl}--export-dynamic'
7599      # ancient GNU ld didn't support --whole-archive et. al.
7600      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7601 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7602      else
7603  	whole_archive_flag_spec=
7604      fi
7605    fi
7606  else
7607    # PORTME fill in a description of your system's linker (not GNU ld)
7608    case $host_os in
7609    aix3*)
7610      allow_undefined_flag=unsupported
7611      always_export_symbols=yes
7612      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'
7613      # Note: this linker hardcodes the directories in LIBPATH if there
7614      # are no directories specified by -L.
7615      hardcode_minus_L=yes
7616      if test "$GCC" = yes && test -z "$link_static_flag"; then
7617	# Neither direct hardcoding nor static linking is supported with a
7618	# broken collect2.
7619	hardcode_direct=unsupported
7620      fi
7621      ;;
7622
7623    aix4* | aix5*)
7624      if test "$host_cpu" = ia64; then
7625	# On IA64, the linker does run time linking by default, so we don't
7626	# have to do anything special.
7627	aix_use_runtimelinking=no
7628	exp_sym_flag='-Bexport'
7629	no_entry_flag=""
7630      else
7631	# If we're using GNU nm, then we don't want the "-C" option.
7632	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7633	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7634	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7635	else
7636	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7637	fi
7638	aix_use_runtimelinking=no
7639
7640	# Test if we are trying to use run time linking or normal
7641	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7642	# need to do runtime linking.
7643	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7644	  for ld_flag in $LDFLAGS; do
7645  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7646  	    aix_use_runtimelinking=yes
7647  	    break
7648  	  fi
7649	  done
7650	esac
7651
7652	exp_sym_flag='-bexport'
7653	no_entry_flag='-bnoentry'
7654      fi
7655
7656      # When large executables or shared objects are built, AIX ld can
7657      # have problems creating the table of contents.  If linking a library
7658      # or program results in "error TOC overflow" add -mminimal-toc to
7659      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7660      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7661
7662      archive_cmds=''
7663      hardcode_direct=yes
7664      hardcode_libdir_separator=':'
7665      link_all_deplibs=yes
7666
7667      if test "$GCC" = yes; then
7668	case $host_os in aix4.012|aix4.012.*)
7669	# We only want to do this on AIX 4.2 and lower, the check
7670	# below for broken collect2 doesn't work under 4.3+
7671	  collect2name=`${CC} -print-prog-name=collect2`
7672	  if test -f "$collect2name" && \
7673  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7674	  then
7675  	  # We have reworked collect2
7676  	  hardcode_direct=yes
7677	  else
7678  	  # We have old collect2
7679  	  hardcode_direct=unsupported
7680  	  # It fails to find uninstalled libraries when the uninstalled
7681  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7682  	  # to unsupported forces relinking
7683  	  hardcode_minus_L=yes
7684  	  hardcode_libdir_flag_spec='-L$libdir'
7685  	  hardcode_libdir_separator=
7686	  fi
7687	esac
7688	shared_flag='-shared'
7689      else
7690	# not using gcc
7691	if test "$host_cpu" = ia64; then
7692  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7693  	# chokes on -Wl,-G. The following line is correct:
7694	  shared_flag='-G'
7695	else
7696  	if test "$aix_use_runtimelinking" = yes; then
7697	    shared_flag='${wl}-G'
7698	  else
7699	    shared_flag='${wl}-bM:SRE'
7700  	fi
7701	fi
7702      fi
7703
7704      # It seems that -bexpall does not export symbols beginning with
7705      # underscore (_), so it is better to generate a list of symbols to export.
7706      always_export_symbols=yes
7707      if test "$aix_use_runtimelinking" = yes; then
7708	# Warning - without using the other runtime loading flags (-brtl),
7709	# -berok will link without error, but may produce a broken library.
7710	allow_undefined_flag='-berok'
7711       # Determine the default libpath from the value encoded in an empty executable.
7712       cat >conftest.$ac_ext <<_ACEOF
7713/* confdefs.h.  */
7714_ACEOF
7715cat confdefs.h >>conftest.$ac_ext
7716cat >>conftest.$ac_ext <<_ACEOF
7717/* end confdefs.h.  */
7718
7719int
7720main ()
7721{
7722
7723  ;
7724  return 0;
7725}
7726_ACEOF
7727rm -f conftest.$ac_objext conftest$ac_exeext
7728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729  (eval $ac_link) 2>conftest.er1
7730  ac_status=$?
7731  grep -v '^ *+' conftest.er1 >conftest.err
7732  rm -f conftest.er1
7733  cat conftest.err >&5
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); } &&
7736	 { ac_try='test -z "$ac_c_werror_flag"
7737			 || test ! -s conftest.err'
7738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739  (eval $ac_try) 2>&5
7740  ac_status=$?
7741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742  (exit $ac_status); }; } &&
7743	 { ac_try='test -s conftest$ac_exeext'
7744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7745  (eval $ac_try) 2>&5
7746  ac_status=$?
7747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748  (exit $ac_status); }; }; then
7749
7750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7751}'`
7752# Check for a 64-bit object if we didn't find anything.
7753if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7754}'`; fi
7755else
7756  echo "$as_me: failed program was:" >&5
7757sed 's/^/| /' conftest.$ac_ext >&5
7758
7759fi
7760rm -f conftest.err conftest.$ac_objext \
7761      conftest$ac_exeext conftest.$ac_ext
7762if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7763
7764       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7765	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"
7766       else
7767	if test "$host_cpu" = ia64; then
7768	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7769	  allow_undefined_flag="-z nodefs"
7770	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7771	else
7772	 # Determine the default libpath from the value encoded in an empty executable.
7773	 cat >conftest.$ac_ext <<_ACEOF
7774/* confdefs.h.  */
7775_ACEOF
7776cat confdefs.h >>conftest.$ac_ext
7777cat >>conftest.$ac_ext <<_ACEOF
7778/* end confdefs.h.  */
7779
7780int
7781main ()
7782{
7783
7784  ;
7785  return 0;
7786}
7787_ACEOF
7788rm -f conftest.$ac_objext conftest$ac_exeext
7789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7790  (eval $ac_link) 2>conftest.er1
7791  ac_status=$?
7792  grep -v '^ *+' conftest.er1 >conftest.err
7793  rm -f conftest.er1
7794  cat conftest.err >&5
7795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796  (exit $ac_status); } &&
7797	 { ac_try='test -z "$ac_c_werror_flag"
7798			 || test ! -s conftest.err'
7799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800  (eval $ac_try) 2>&5
7801  ac_status=$?
7802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803  (exit $ac_status); }; } &&
7804	 { ac_try='test -s conftest$ac_exeext'
7805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806  (eval $ac_try) 2>&5
7807  ac_status=$?
7808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809  (exit $ac_status); }; }; then
7810
7811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7812}'`
7813# Check for a 64-bit object if we didn't find anything.
7814if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7815}'`; fi
7816else
7817  echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820fi
7821rm -f conftest.err conftest.$ac_objext \
7822      conftest$ac_exeext conftest.$ac_ext
7823if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7824
7825	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7826	  # Warning - without using the other run time loading flags,
7827	  # -berok will link without error, but may produce a broken library.
7828	  no_undefined_flag=' ${wl}-bernotok'
7829	  allow_undefined_flag=' ${wl}-berok'
7830	  # -bexpall does not export symbols beginning with underscore (_)
7831	  always_export_symbols=yes
7832	  # Exported symbols can be pulled into shared objects from archives
7833	  whole_archive_flag_spec=' '
7834	  archive_cmds_need_lc=yes
7835	  # This is similar to how AIX traditionally builds it's shared libraries.
7836	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7837	fi
7838      fi
7839      ;;
7840
7841    amigaos*)
7842      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)'
7843      hardcode_libdir_flag_spec='-L$libdir'
7844      hardcode_minus_L=yes
7845      # see comment about different semantics on the GNU ld section
7846      ld_shlibs=no
7847      ;;
7848
7849    bsdi4*)
7850      export_dynamic_flag_spec=-rdynamic
7851      ;;
7852
7853    cygwin* | mingw* | pw32*)
7854      # When not using gcc, we currently assume that we are using
7855      # Microsoft Visual C++.
7856      # hardcode_libdir_flag_spec is actually meaningless, as there is
7857      # no search path for DLLs.
7858      hardcode_libdir_flag_spec=' '
7859      allow_undefined_flag=unsupported
7860      # Tell ltmain to make .lib files, not .a files.
7861      libext=lib
7862      # Tell ltmain to make .dll files, not .so files.
7863      shrext=".dll"
7864      # FIXME: Setting linknames here is a bad hack.
7865      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7866      # The linker will automatically build a .lib file if we build a DLL.
7867      old_archive_From_new_cmds='true'
7868      # FIXME: Should let the user specify the lib program.
7869      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7870      fix_srcfile_path='`cygpath -w "$srcfile"`'
7871      enable_shared_with_static_runtimes=yes
7872      ;;
7873
7874    darwin* | rhapsody*)
7875    if test "$GXX" = yes ; then
7876      archive_cmds_need_lc=no
7877      case "$host_os" in
7878      rhapsody* | darwin1.[012])
7879	allow_undefined_flag='-undefined suppress'
7880	;;
7881      *) # Darwin 1.3 on
7882      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7883      	allow_undefined_flag='-flat_namespace -undefined suppress'
7884      else
7885        case ${MACOSX_DEPLOYMENT_TARGET} in
7886          10.[012])
7887            allow_undefined_flag='-flat_namespace -undefined suppress'
7888            ;;
7889          10.*)
7890            allow_undefined_flag='-undefined dynamic_lookup'
7891            ;;
7892        esac
7893      fi
7894	;;
7895      esac
7896    	lt_int_apple_cc_single_mod=no
7897    	output_verbose_link_cmd='echo'
7898    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7899    	  lt_int_apple_cc_single_mod=yes
7900    	fi
7901    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7902    	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7903    	else
7904        archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7905      fi
7906      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7907      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7908        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7909          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7910        else
7911          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7912        fi
7913          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7914      hardcode_direct=no
7915      hardcode_automatic=yes
7916      hardcode_shlibpath_var=unsupported
7917      whole_archive_flag_spec='-all_load $convenience'
7918      link_all_deplibs=yes
7919    else
7920      ld_shlibs=no
7921    fi
7922      ;;
7923
7924    dgux*)
7925      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7926      hardcode_libdir_flag_spec='-L$libdir'
7927      hardcode_shlibpath_var=no
7928      ;;
7929
7930    freebsd1*)
7931      ld_shlibs=no
7932      ;;
7933
7934    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7935    # support.  Future versions do this automatically, but an explicit c++rt0.o
7936    # does not break anything, and helps significantly (at the cost of a little
7937    # extra space).
7938    freebsd2.2*)
7939      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7940      hardcode_libdir_flag_spec='-R$libdir'
7941      hardcode_direct=yes
7942      hardcode_shlibpath_var=no
7943      ;;
7944
7945    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7946    freebsd2*)
7947      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7948      hardcode_direct=yes
7949      hardcode_minus_L=yes
7950      hardcode_shlibpath_var=no
7951      ;;
7952
7953    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7954    freebsd* | kfreebsd*-gnu)
7955      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7956      hardcode_libdir_flag_spec='-R$libdir'
7957      hardcode_direct=yes
7958      hardcode_shlibpath_var=no
7959      ;;
7960
7961    hpux9*)
7962      if test "$GCC" = yes; then
7963	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7964      else
7965	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'
7966      fi
7967      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7968      hardcode_libdir_separator=:
7969      hardcode_direct=yes
7970
7971      # hardcode_minus_L: Not really in the search PATH,
7972      # but as the default location of the library.
7973      hardcode_minus_L=yes
7974      export_dynamic_flag_spec='${wl}-E'
7975      ;;
7976
7977    hpux10* | hpux11*)
7978      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7979	case "$host_cpu" in
7980	hppa*64*|ia64*)
7981	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7982	  ;;
7983	*)
7984	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7985	  ;;
7986	esac
7987      else
7988	case "$host_cpu" in
7989	hppa*64*|ia64*)
7990	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7991	  ;;
7992	*)
7993	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7994	  ;;
7995	esac
7996      fi
7997      if test "$with_gnu_ld" = no; then
7998	case "$host_cpu" in
7999	hppa*64*)
8000	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8001	  hardcode_libdir_flag_spec_ld='+b $libdir'
8002	  hardcode_libdir_separator=:
8003	  hardcode_direct=no
8004	  hardcode_shlibpath_var=no
8005	  ;;
8006	ia64*)
8007	  hardcode_libdir_flag_spec='-L$libdir'
8008	  hardcode_direct=no
8009	  hardcode_shlibpath_var=no
8010
8011	  # hardcode_minus_L: Not really in the search PATH,
8012	  # but as the default location of the library.
8013	  hardcode_minus_L=yes
8014	  ;;
8015	*)
8016	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8017	  hardcode_libdir_separator=:
8018	  hardcode_direct=yes
8019	  export_dynamic_flag_spec='${wl}-E'
8020
8021	  # hardcode_minus_L: Not really in the search PATH,
8022	  # but as the default location of the library.
8023	  hardcode_minus_L=yes
8024	  ;;
8025	esac
8026      fi
8027      ;;
8028
8029    irix5* | irix6* | nonstopux*)
8030      if test "$GCC" = yes; then
8031	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'
8032      else
8033	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'
8034	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8035      fi
8036      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8037      hardcode_libdir_separator=:
8038      link_all_deplibs=yes
8039      ;;
8040
8041    netbsd*)
8042      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8043	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8044      else
8045	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8046      fi
8047      hardcode_libdir_flag_spec='-R$libdir'
8048      hardcode_direct=yes
8049      hardcode_shlibpath_var=no
8050      ;;
8051
8052    newsos6)
8053      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8054      hardcode_direct=yes
8055      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8056      hardcode_libdir_separator=:
8057      hardcode_shlibpath_var=no
8058      ;;
8059
8060    openbsd*)
8061      hardcode_direct=yes
8062      hardcode_shlibpath_var=no
8063      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8064	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8065	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8066	export_dynamic_flag_spec='${wl}-E'
8067      else
8068       case $host_os in
8069	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8070	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8071	   hardcode_libdir_flag_spec='-R$libdir'
8072	   ;;
8073	 *)
8074	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8075	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8076	   ;;
8077       esac
8078      fi
8079      ;;
8080
8081    os2*)
8082      hardcode_libdir_flag_spec='-L$libdir'
8083      hardcode_minus_L=yes
8084      allow_undefined_flag=unsupported
8085      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'
8086      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8087      ;;
8088
8089    osf3*)
8090      if test "$GCC" = yes; then
8091	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8092	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'
8093      else
8094	allow_undefined_flag=' -expect_unresolved \*'
8095	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'
8096      fi
8097      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8098      hardcode_libdir_separator=:
8099      ;;
8100
8101    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8102      if test "$GCC" = yes; then
8103	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8104	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'
8105	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8106      else
8107	allow_undefined_flag=' -expect_unresolved \*'
8108	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'
8109	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8110	$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'
8111
8112	# Both c and cxx compiler support -rpath directly
8113	hardcode_libdir_flag_spec='-rpath $libdir'
8114      fi
8115      hardcode_libdir_separator=:
8116      ;;
8117
8118    sco3.2v5*)
8119      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120      hardcode_shlibpath_var=no
8121      export_dynamic_flag_spec='${wl}-Bexport'
8122      runpath_var=LD_RUN_PATH
8123      hardcode_runpath_var=yes
8124      ;;
8125
8126    solaris*)
8127      no_undefined_flag=' -z text'
8128      if test "$GCC" = yes; then
8129	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8130	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8131	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8132      else
8133	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8135  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8136      fi
8137      hardcode_libdir_flag_spec='-R$libdir'
8138      hardcode_shlibpath_var=no
8139      case $host_os in
8140      solaris2.[0-5] | solaris2.[0-5].*) ;;
8141      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8142	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8143      esac
8144      link_all_deplibs=yes
8145      ;;
8146
8147    sunos4*)
8148      if test "x$host_vendor" = xsequent; then
8149	# Use $CC to link under sequent, because it throws in some extra .o
8150	# files that make .init and .fini sections work.
8151	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8152      else
8153	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8154      fi
8155      hardcode_libdir_flag_spec='-L$libdir'
8156      hardcode_direct=yes
8157      hardcode_minus_L=yes
8158      hardcode_shlibpath_var=no
8159      ;;
8160
8161    sysv4)
8162      case $host_vendor in
8163	sni)
8164	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8165	  hardcode_direct=yes # is this really true???
8166	;;
8167	siemens)
8168	  ## LD is ld it makes a PLAMLIB
8169	  ## CC just makes a GrossModule.
8170	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8171	  reload_cmds='$CC -r -o $output$reload_objs'
8172	  hardcode_direct=no
8173        ;;
8174	motorola)
8175	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8176	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8177	;;
8178      esac
8179      runpath_var='LD_RUN_PATH'
8180      hardcode_shlibpath_var=no
8181      ;;
8182
8183    sysv4.3*)
8184      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8185      hardcode_shlibpath_var=no
8186      export_dynamic_flag_spec='-Bexport'
8187      ;;
8188
8189    sysv4*MP*)
8190      if test -d /usr/nec; then
8191	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8192	hardcode_shlibpath_var=no
8193	runpath_var=LD_RUN_PATH
8194	hardcode_runpath_var=yes
8195	ld_shlibs=yes
8196      fi
8197      ;;
8198
8199    sysv4.2uw2*)
8200      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8201      hardcode_direct=yes
8202      hardcode_minus_L=no
8203      hardcode_shlibpath_var=no
8204      hardcode_runpath_var=yes
8205      runpath_var=LD_RUN_PATH
8206      ;;
8207
8208   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8209      no_undefined_flag='${wl}-z ${wl}text'
8210      if test "$GCC" = yes; then
8211	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8212      else
8213	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8214      fi
8215      runpath_var='LD_RUN_PATH'
8216      hardcode_shlibpath_var=no
8217      ;;
8218
8219    sysv5*)
8220      no_undefined_flag=' -z text'
8221      # $CC -shared without GNU ld will not create a library from C++
8222      # object files and a static libstdc++, better avoid it by now
8223      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8224      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8225  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8226      hardcode_libdir_flag_spec=
8227      hardcode_shlibpath_var=no
8228      runpath_var='LD_RUN_PATH'
8229      ;;
8230
8231    uts4*)
8232      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8233      hardcode_libdir_flag_spec='-L$libdir'
8234      hardcode_shlibpath_var=no
8235      ;;
8236
8237    *)
8238      ld_shlibs=no
8239      ;;
8240    esac
8241  fi
8242
8243echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8244echo "${ECHO_T}$ld_shlibs" >&6
8245test "$ld_shlibs" = no && can_build_shared=no
8246
8247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8248if test "$GCC" = yes; then
8249  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8250fi
8251
8252#
8253# Do we need to explicitly link libc?
8254#
8255case "x$archive_cmds_need_lc" in
8256x|xyes)
8257  # Assume -lc should be added
8258  archive_cmds_need_lc=yes
8259
8260  if test "$enable_shared" = yes && test "$GCC" = yes; then
8261    case $archive_cmds in
8262    *'~'*)
8263      # FIXME: we may have to deal with multi-command sequences.
8264      ;;
8265    '$CC '*)
8266      # Test whether the compiler implicitly links with -lc since on some
8267      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8268      # to ld, don't add -lc before -lgcc.
8269      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8270echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8271      $rm conftest*
8272      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8273
8274      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275  (eval $ac_compile) 2>&5
8276  ac_status=$?
8277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278  (exit $ac_status); } 2>conftest.err; then
8279        soname=conftest
8280        lib=conftest
8281        libobjs=conftest.$ac_objext
8282        deplibs=
8283        wl=$lt_prog_compiler_wl
8284        compiler_flags=-v
8285        linker_flags=-v
8286        verstring=
8287        output_objdir=.
8288        libname=conftest
8289        lt_save_allow_undefined_flag=$allow_undefined_flag
8290        allow_undefined_flag=
8291        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8292  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8293  ac_status=$?
8294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295  (exit $ac_status); }
8296        then
8297	  archive_cmds_need_lc=no
8298        else
8299	  archive_cmds_need_lc=yes
8300        fi
8301        allow_undefined_flag=$lt_save_allow_undefined_flag
8302      else
8303        cat conftest.err 1>&5
8304      fi
8305      $rm conftest*
8306      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8307echo "${ECHO_T}$archive_cmds_need_lc" >&6
8308      ;;
8309    esac
8310  fi
8311  ;;
8312esac
8313
8314echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8315echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8316library_names_spec=
8317libname_spec='lib$name'
8318soname_spec=
8319shrext=".so"
8320postinstall_cmds=
8321postuninstall_cmds=
8322finish_cmds=
8323finish_eval=
8324shlibpath_var=
8325shlibpath_overrides_runpath=unknown
8326version_type=none
8327dynamic_linker="$host_os ld.so"
8328sys_lib_dlsearch_path_spec="/lib /usr/lib"
8329if test "$GCC" = yes; then
8330  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8331  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8332    # if the path contains ";" then we assume it to be the separator
8333    # otherwise default to the standard path separator (i.e. ":") - it is
8334    # assumed that no part of a normal pathname contains ";" but that should
8335    # okay in the real world where ";" in dirpaths is itself problematic.
8336    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8337  else
8338    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8339  fi
8340else
8341  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8342fi
8343need_lib_prefix=unknown
8344hardcode_into_libs=no
8345
8346# when you set need_version to no, make sure it does not cause -set_version
8347# flags to be left without arguments
8348need_version=unknown
8349
8350case $host_os in
8351aix3*)
8352  version_type=linux
8353  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8354  shlibpath_var=LIBPATH
8355
8356  # AIX 3 has no versioning support, so we append a major version to the name.
8357  soname_spec='${libname}${release}${shared_ext}$major'
8358  ;;
8359
8360aix4* | aix5*)
8361  version_type=linux
8362  need_lib_prefix=no
8363  need_version=no
8364  hardcode_into_libs=yes
8365  if test "$host_cpu" = ia64; then
8366    # AIX 5 supports IA64
8367    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8368    shlibpath_var=LD_LIBRARY_PATH
8369  else
8370    # With GCC up to 2.95.x, collect2 would create an import file
8371    # for dependence libraries.  The import file would start with
8372    # the line `#! .'.  This would cause the generated library to
8373    # depend on `.', always an invalid library.  This was fixed in
8374    # development snapshots of GCC prior to 3.0.
8375    case $host_os in
8376      aix4 | aix4.[01] | aix4.[01].*)
8377      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8378	   echo ' yes '
8379	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8380	:
8381      else
8382	can_build_shared=no
8383      fi
8384      ;;
8385    esac
8386    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8387    # soname into executable. Probably we can add versioning support to
8388    # collect2, so additional links can be useful in future.
8389    if test "$aix_use_runtimelinking" = yes; then
8390      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8391      # instead of lib<name>.a to let people know that these are not
8392      # typical AIX shared libraries.
8393      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8394    else
8395      # We preserve .a as extension for shared libraries through AIX4.2
8396      # and later when we are not doing run time linking.
8397      library_names_spec='${libname}${release}.a $libname.a'
8398      soname_spec='${libname}${release}${shared_ext}$major'
8399    fi
8400    shlibpath_var=LIBPATH
8401  fi
8402  ;;
8403
8404amigaos*)
8405  library_names_spec='$libname.ixlibrary $libname.a'
8406  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8407  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'
8408  ;;
8409
8410beos*)
8411  library_names_spec='${libname}${shared_ext}'
8412  dynamic_linker="$host_os ld.so"
8413  shlibpath_var=LIBRARY_PATH
8414  ;;
8415
8416bsdi4*)
8417  version_type=linux
8418  need_version=no
8419  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8420  soname_spec='${libname}${release}${shared_ext}$major'
8421  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8422  shlibpath_var=LD_LIBRARY_PATH
8423  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8424  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8425  # the default ld.so.conf also contains /usr/contrib/lib and
8426  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8427  # libtool to hard-code these into programs
8428  ;;
8429
8430cygwin* | mingw* | pw32*)
8431  version_type=windows
8432  shrext=".dll"
8433  need_version=no
8434  need_lib_prefix=no
8435
8436  case $GCC,$host_os in
8437  yes,cygwin* | yes,mingw* | yes,pw32*)
8438    library_names_spec='$libname.dll.a'
8439    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8440    postinstall_cmds='base_file=`basename \${file}`~
8441      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8442      dldir=$destdir/`dirname \$dlpath`~
8443      test -d \$dldir || mkdir -p \$dldir~
8444      $install_prog $dir/$dlname \$dldir/$dlname'
8445    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8446      dlpath=$dir/\$dldll~
8447       $rm \$dlpath'
8448    shlibpath_overrides_runpath=yes
8449
8450    case $host_os in
8451    cygwin*)
8452      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8453      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8454      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8455      ;;
8456    mingw*)
8457      # MinGW DLLs use traditional 'lib' prefix
8458      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8459      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8460      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8461        # It is most probably a Windows format PATH printed by
8462        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8463        # path with ; separators, and with drive letters. We can handle the
8464        # drive letters (cygwin fileutils understands them), so leave them,
8465        # especially as we might pass files found there to a mingw objdump,
8466        # which wouldn't understand a cygwinified path. Ahh.
8467        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8468      else
8469        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8470      fi
8471      ;;
8472    pw32*)
8473      # pw32 DLLs use 'pw' prefix rather than 'lib'
8474      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
8475      ;;
8476    esac
8477    ;;
8478
8479  *)
8480    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8481    ;;
8482  esac
8483  dynamic_linker='Win32 ld.exe'
8484  # FIXME: first we should search . and the directory the executable is in
8485  shlibpath_var=PATH
8486  ;;
8487
8488darwin* | rhapsody*)
8489  dynamic_linker="$host_os dyld"
8490  version_type=darwin
8491  need_lib_prefix=no
8492  need_version=no
8493  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8494  soname_spec='${libname}${release}${major}$shared_ext'
8495  shlibpath_overrides_runpath=yes
8496  shlibpath_var=DYLD_LIBRARY_PATH
8497  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
8498  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8499  if test "$GCC" = yes; then
8500    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8501  else
8502    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8503  fi
8504  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8505  ;;
8506
8507dgux*)
8508  version_type=linux
8509  need_lib_prefix=no
8510  need_version=no
8511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8512  soname_spec='${libname}${release}${shared_ext}$major'
8513  shlibpath_var=LD_LIBRARY_PATH
8514  ;;
8515
8516freebsd1*)
8517  dynamic_linker=no
8518  ;;
8519
8520kfreebsd*-gnu)
8521  version_type=linux
8522  need_lib_prefix=no
8523  need_version=no
8524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8525  soname_spec='${libname}${release}${shared_ext}$major'
8526  shlibpath_var=LD_LIBRARY_PATH
8527  shlibpath_overrides_runpath=no
8528  hardcode_into_libs=yes
8529  dynamic_linker='GNU ld.so'
8530  ;;
8531
8532freebsd*)
8533  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8534  version_type=freebsd-$objformat
8535  case $version_type in
8536    freebsd-elf*)
8537      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8538      need_version=no
8539      need_lib_prefix=no
8540      ;;
8541    freebsd-*)
8542      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8543      need_version=yes
8544      ;;
8545  esac
8546  shlibpath_var=LD_LIBRARY_PATH
8547  case $host_os in
8548  freebsd2*)
8549    shlibpath_overrides_runpath=yes
8550    ;;
8551  freebsd3.01* | freebsdelf3.01*)
8552    shlibpath_overrides_runpath=yes
8553    hardcode_into_libs=yes
8554    ;;
8555  *) # from 3.2 on
8556    shlibpath_overrides_runpath=no
8557    hardcode_into_libs=yes
8558    ;;
8559  esac
8560  ;;
8561
8562gnu*)
8563  version_type=linux
8564  need_lib_prefix=no
8565  need_version=no
8566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8567  soname_spec='${libname}${release}${shared_ext}$major'
8568  shlibpath_var=LD_LIBRARY_PATH
8569  hardcode_into_libs=yes
8570  ;;
8571
8572hpux9* | hpux10* | hpux11*)
8573  # Give a soname corresponding to the major version so that dld.sl refuses to
8574  # link against other versions.
8575  version_type=sunos
8576  need_lib_prefix=no
8577  need_version=no
8578  case "$host_cpu" in
8579  ia64*)
8580    shrext='.so'
8581    hardcode_into_libs=yes
8582    dynamic_linker="$host_os dld.so"
8583    shlibpath_var=LD_LIBRARY_PATH
8584    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8585    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586    soname_spec='${libname}${release}${shared_ext}$major'
8587    if test "X$HPUX_IA64_MODE" = X32; then
8588      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8589    else
8590      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8591    fi
8592    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8593    ;;
8594   hppa*64*)
8595     shrext='.sl'
8596     hardcode_into_libs=yes
8597     dynamic_linker="$host_os dld.sl"
8598     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8599     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8601     soname_spec='${libname}${release}${shared_ext}$major'
8602     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8603     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8604     ;;
8605   *)
8606    shrext='.sl'
8607    dynamic_linker="$host_os dld.sl"
8608    shlibpath_var=SHLIB_PATH
8609    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8610    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611    soname_spec='${libname}${release}${shared_ext}$major'
8612    ;;
8613  esac
8614  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8615  postinstall_cmds='chmod 555 $lib'
8616  ;;
8617
8618irix5* | irix6* | nonstopux*)
8619  case $host_os in
8620    nonstopux*) version_type=nonstopux ;;
8621    *)
8622	if test "$lt_cv_prog_gnu_ld" = yes; then
8623		version_type=linux
8624	else
8625		version_type=irix
8626	fi ;;
8627  esac
8628  need_lib_prefix=no
8629  need_version=no
8630  soname_spec='${libname}${release}${shared_ext}$major'
8631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8632  case $host_os in
8633  irix5* | nonstopux*)
8634    libsuff= shlibsuff=
8635    ;;
8636  *)
8637    case $LD in # libtool.m4 will add one of these switches to LD
8638    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8639      libsuff= shlibsuff= libmagic=32-bit;;
8640    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8641      libsuff=32 shlibsuff=N32 libmagic=N32;;
8642    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8643      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8644    *) libsuff= shlibsuff= libmagic=never-match;;
8645    esac
8646    ;;
8647  esac
8648  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8649  shlibpath_overrides_runpath=no
8650  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8651  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8652  hardcode_into_libs=yes
8653  ;;
8654
8655# No shared lib support for Linux oldld, aout, or coff.
8656linux*oldld* | linux*aout* | linux*coff*)
8657  dynamic_linker=no
8658  ;;
8659
8660# This must be Linux ELF.
8661linux*)
8662  version_type=linux
8663  need_lib_prefix=no
8664  need_version=no
8665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8666  soname_spec='${libname}${release}${shared_ext}$major'
8667  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8668  shlibpath_var=LD_LIBRARY_PATH
8669  shlibpath_overrides_runpath=no
8670  # This implies no fast_install, which is unacceptable.
8671  # Some rework will be needed to allow for fast_install
8672  # before this can be enabled.
8673  hardcode_into_libs=yes
8674
8675  # Append ld.so.conf contents to the search path
8676  if test -f /etc/ld.so.conf; then
8677    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8678    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8679  fi
8680
8681  # We used to test for /lib/ld.so.1 and disable shared libraries on
8682  # powerpc, because MkLinux only supported shared libraries with the
8683  # GNU dynamic linker.  Since this was broken with cross compilers,
8684  # most powerpc-linux boxes support dynamic linking these days and
8685  # people can always --disable-shared, the test was removed, and we
8686  # assume the GNU/Linux dynamic linker is in use.
8687  dynamic_linker='GNU/Linux ld.so'
8688  ;;
8689
8690knetbsd*-gnu)
8691  version_type=linux
8692  need_lib_prefix=no
8693  need_version=no
8694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8695  soname_spec='${libname}${release}${shared_ext}$major'
8696  shlibpath_var=LD_LIBRARY_PATH
8697  shlibpath_overrides_runpath=no
8698  hardcode_into_libs=yes
8699  dynamic_linker='GNU ld.so'
8700  ;;
8701
8702netbsd*)
8703  version_type=sunos
8704  need_lib_prefix=no
8705  need_version=no
8706  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8708    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8709    dynamic_linker='NetBSD (a.out) ld.so'
8710  else
8711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8712    soname_spec='${libname}${release}${shared_ext}$major'
8713    dynamic_linker='NetBSD ld.elf_so'
8714  fi
8715  shlibpath_var=LD_LIBRARY_PATH
8716  shlibpath_overrides_runpath=yes
8717  hardcode_into_libs=yes
8718  ;;
8719
8720newsos6)
8721  version_type=linux
8722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723  shlibpath_var=LD_LIBRARY_PATH
8724  shlibpath_overrides_runpath=yes
8725  ;;
8726
8727nto-qnx*)
8728  version_type=linux
8729  need_lib_prefix=no
8730  need_version=no
8731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8732  soname_spec='${libname}${release}${shared_ext}$major'
8733  shlibpath_var=LD_LIBRARY_PATH
8734  shlibpath_overrides_runpath=yes
8735  ;;
8736
8737openbsd*)
8738  version_type=sunos
8739  need_lib_prefix=no
8740  need_version=yes
8741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8742  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8743  shlibpath_var=LD_LIBRARY_PATH
8744  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8745    case $host_os in
8746      openbsd2.[89] | openbsd2.[89].*)
8747	shlibpath_overrides_runpath=no
8748	;;
8749      *)
8750	shlibpath_overrides_runpath=yes
8751	;;
8752      esac
8753  else
8754    shlibpath_overrides_runpath=yes
8755  fi
8756  ;;
8757
8758os2*)
8759  libname_spec='$name'
8760  shrext=".dll"
8761  need_lib_prefix=no
8762  library_names_spec='$libname${shared_ext} $libname.a'
8763  dynamic_linker='OS/2 ld.exe'
8764  shlibpath_var=LIBPATH
8765  ;;
8766
8767osf3* | osf4* | osf5*)
8768  version_type=osf
8769  need_lib_prefix=no
8770  need_version=no
8771  soname_spec='${libname}${release}${shared_ext}$major'
8772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8773  shlibpath_var=LD_LIBRARY_PATH
8774  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8775  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8776  ;;
8777
8778sco3.2v5*)
8779  version_type=osf
8780  soname_spec='${libname}${release}${shared_ext}$major'
8781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782  shlibpath_var=LD_LIBRARY_PATH
8783  ;;
8784
8785solaris*)
8786  version_type=linux
8787  need_lib_prefix=no
8788  need_version=no
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  shlibpath_var=LD_LIBRARY_PATH
8792  shlibpath_overrides_runpath=yes
8793  hardcode_into_libs=yes
8794  # ldd complains unless libraries are executable
8795  postinstall_cmds='chmod +x $lib'
8796  ;;
8797
8798sunos4*)
8799  version_type=sunos
8800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8801  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8802  shlibpath_var=LD_LIBRARY_PATH
8803  shlibpath_overrides_runpath=yes
8804  if test "$with_gnu_ld" = yes; then
8805    need_lib_prefix=no
8806  fi
8807  need_version=yes
8808  ;;
8809
8810sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8811  version_type=linux
8812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813  soname_spec='${libname}${release}${shared_ext}$major'
8814  shlibpath_var=LD_LIBRARY_PATH
8815  case $host_vendor in
8816    sni)
8817      shlibpath_overrides_runpath=no
8818      need_lib_prefix=no
8819      export_dynamic_flag_spec='${wl}-Blargedynsym'
8820      runpath_var=LD_RUN_PATH
8821      ;;
8822    siemens)
8823      need_lib_prefix=no
8824      ;;
8825    motorola)
8826      need_lib_prefix=no
8827      need_version=no
8828      shlibpath_overrides_runpath=no
8829      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8830      ;;
8831  esac
8832  ;;
8833
8834sysv4*MP*)
8835  if test -d /usr/nec ;then
8836    version_type=linux
8837    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8838    soname_spec='$libname${shared_ext}.$major'
8839    shlibpath_var=LD_LIBRARY_PATH
8840  fi
8841  ;;
8842
8843uts4*)
8844  version_type=linux
8845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846  soname_spec='${libname}${release}${shared_ext}$major'
8847  shlibpath_var=LD_LIBRARY_PATH
8848  ;;
8849
8850*)
8851  dynamic_linker=no
8852  ;;
8853esac
8854echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8855echo "${ECHO_T}$dynamic_linker" >&6
8856test "$dynamic_linker" = no && can_build_shared=no
8857
8858echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8859echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8860hardcode_action=
8861if test -n "$hardcode_libdir_flag_spec" || \
8862   test -n "$runpath_var " || \
8863   test "X$hardcode_automatic"="Xyes" ; then
8864
8865  # We can hardcode non-existant directories.
8866  if test "$hardcode_direct" != no &&
8867     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8868     # have to relink, otherwise we might link with an installed library
8869     # when we should be linking with a yet-to-be-installed one
8870     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8871     test "$hardcode_minus_L" != no; then
8872    # Linking always hardcodes the temporary library directory.
8873    hardcode_action=relink
8874  else
8875    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8876    hardcode_action=immediate
8877  fi
8878else
8879  # We cannot hardcode anything, or else we can only hardcode existing
8880  # directories.
8881  hardcode_action=unsupported
8882fi
8883echo "$as_me:$LINENO: result: $hardcode_action" >&5
8884echo "${ECHO_T}$hardcode_action" >&6
8885
8886if test "$hardcode_action" = relink; then
8887  # Fast installation is not supported
8888  enable_fast_install=no
8889elif test "$shlibpath_overrides_runpath" = yes ||
8890     test "$enable_shared" = no; then
8891  # Fast installation is not necessary
8892  enable_fast_install=needless
8893fi
8894
8895striplib=
8896old_striplib=
8897echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8898echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8899if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8900  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8901  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8902  echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
8904else
8905# FIXME - insert some real tests, host_os isn't really good enough
8906  case $host_os in
8907   darwin*)
8908       if test -n "$STRIP" ; then
8909         striplib="$STRIP -x"
8910         echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912       else
8913  echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915fi
8916       ;;
8917   *)
8918  echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6
8920    ;;
8921  esac
8922fi
8923
8924if test "x$enable_dlopen" != xyes; then
8925  enable_dlopen=unknown
8926  enable_dlopen_self=unknown
8927  enable_dlopen_self_static=unknown
8928else
8929  lt_cv_dlopen=no
8930  lt_cv_dlopen_libs=
8931
8932  case $host_os in
8933  beos*)
8934    lt_cv_dlopen="load_add_on"
8935    lt_cv_dlopen_libs=
8936    lt_cv_dlopen_self=yes
8937    ;;
8938
8939  mingw* | pw32*)
8940    lt_cv_dlopen="LoadLibrary"
8941    lt_cv_dlopen_libs=
8942   ;;
8943
8944  cygwin*)
8945    lt_cv_dlopen="dlopen"
8946    lt_cv_dlopen_libs=
8947   ;;
8948
8949  darwin*)
8950  # if libdl is installed we need to link against it
8951    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8952echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8953if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8954  echo $ECHO_N "(cached) $ECHO_C" >&6
8955else
8956  ac_check_lib_save_LIBS=$LIBS
8957LIBS="-ldl  $LIBS"
8958cat >conftest.$ac_ext <<_ACEOF
8959/* confdefs.h.  */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h.  */
8964
8965/* Override any gcc2 internal prototype to avoid an error.  */
8966#ifdef __cplusplus
8967extern "C"
8968#endif
8969/* We use char because int might match the return type of a gcc2
8970   builtin and then its argument prototype would still apply.  */
8971char dlopen ();
8972int
8973main ()
8974{
8975dlopen ();
8976  ;
8977  return 0;
8978}
8979_ACEOF
8980rm -f conftest.$ac_objext conftest$ac_exeext
8981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8982  (eval $ac_link) 2>conftest.er1
8983  ac_status=$?
8984  grep -v '^ *+' conftest.er1 >conftest.err
8985  rm -f conftest.er1
8986  cat conftest.err >&5
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); } &&
8989	 { ac_try='test -z "$ac_c_werror_flag"
8990			 || test ! -s conftest.err'
8991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992  (eval $ac_try) 2>&5
8993  ac_status=$?
8994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995  (exit $ac_status); }; } &&
8996	 { ac_try='test -s conftest$ac_exeext'
8997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8998  (eval $ac_try) 2>&5
8999  ac_status=$?
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); }; }; then
9002  ac_cv_lib_dl_dlopen=yes
9003else
9004  echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
9007ac_cv_lib_dl_dlopen=no
9008fi
9009rm -f conftest.err conftest.$ac_objext \
9010      conftest$ac_exeext conftest.$ac_ext
9011LIBS=$ac_check_lib_save_LIBS
9012fi
9013echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9014echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9015if test $ac_cv_lib_dl_dlopen = yes; then
9016  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9017else
9018
9019    lt_cv_dlopen="dyld"
9020    lt_cv_dlopen_libs=
9021    lt_cv_dlopen_self=yes
9022
9023fi
9024
9025   ;;
9026
9027  *)
9028    echo "$as_me:$LINENO: checking for shl_load" >&5
9029echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9030if test "${ac_cv_func_shl_load+set}" = set; then
9031  echo $ECHO_N "(cached) $ECHO_C" >&6
9032else
9033  cat >conftest.$ac_ext <<_ACEOF
9034/* confdefs.h.  */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h.  */
9039/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9040   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9041#define shl_load innocuous_shl_load
9042
9043/* System header to define __stub macros and hopefully few prototypes,
9044    which can conflict with char shl_load (); below.
9045    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9046    <limits.h> exists even on freestanding compilers.  */
9047
9048#ifdef __STDC__
9049# include <limits.h>
9050#else
9051# include <assert.h>
9052#endif
9053
9054#undef shl_load
9055
9056/* Override any gcc2 internal prototype to avoid an error.  */
9057#ifdef __cplusplus
9058extern "C"
9059{
9060#endif
9061/* We use char because int might match the return type of a gcc2
9062   builtin and then its argument prototype would still apply.  */
9063char shl_load ();
9064/* The GNU C library defines this for functions which it implements
9065    to always fail with ENOSYS.  Some functions are actually named
9066    something starting with __ and the normal name is an alias.  */
9067#if defined (__stub_shl_load) || defined (__stub___shl_load)
9068choke me
9069#else
9070char (*f) () = shl_load;
9071#endif
9072#ifdef __cplusplus
9073}
9074#endif
9075
9076int
9077main ()
9078{
9079return f != shl_load;
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext conftest$ac_exeext
9085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9086  (eval $ac_link) 2>conftest.er1
9087  ac_status=$?
9088  grep -v '^ *+' conftest.er1 >conftest.err
9089  rm -f conftest.er1
9090  cat conftest.err >&5
9091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092  (exit $ac_status); } &&
9093	 { ac_try='test -z "$ac_c_werror_flag"
9094			 || test ! -s conftest.err'
9095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096  (eval $ac_try) 2>&5
9097  ac_status=$?
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); }; } &&
9100	 { ac_try='test -s conftest$ac_exeext'
9101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102  (eval $ac_try) 2>&5
9103  ac_status=$?
9104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105  (exit $ac_status); }; }; then
9106  ac_cv_func_shl_load=yes
9107else
9108  echo "$as_me: failed program was:" >&5
9109sed 's/^/| /' conftest.$ac_ext >&5
9110
9111ac_cv_func_shl_load=no
9112fi
9113rm -f conftest.err conftest.$ac_objext \
9114      conftest$ac_exeext conftest.$ac_ext
9115fi
9116echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9117echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9118if test $ac_cv_func_shl_load = yes; then
9119  lt_cv_dlopen="shl_load"
9120else
9121  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9122echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9123if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9124  echo $ECHO_N "(cached) $ECHO_C" >&6
9125else
9126  ac_check_lib_save_LIBS=$LIBS
9127LIBS="-ldld  $LIBS"
9128cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h.  */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h.  */
9134
9135/* Override any gcc2 internal prototype to avoid an error.  */
9136#ifdef __cplusplus
9137extern "C"
9138#endif
9139/* We use char because int might match the return type of a gcc2
9140   builtin and then its argument prototype would still apply.  */
9141char shl_load ();
9142int
9143main ()
9144{
9145shl_load ();
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150rm -f conftest.$ac_objext conftest$ac_exeext
9151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9152  (eval $ac_link) 2>conftest.er1
9153  ac_status=$?
9154  grep -v '^ *+' conftest.er1 >conftest.err
9155  rm -f conftest.er1
9156  cat conftest.err >&5
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); } &&
9159	 { ac_try='test -z "$ac_c_werror_flag"
9160			 || test ! -s conftest.err'
9161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162  (eval $ac_try) 2>&5
9163  ac_status=$?
9164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165  (exit $ac_status); }; } &&
9166	 { ac_try='test -s conftest$ac_exeext'
9167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9168  (eval $ac_try) 2>&5
9169  ac_status=$?
9170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171  (exit $ac_status); }; }; then
9172  ac_cv_lib_dld_shl_load=yes
9173else
9174  echo "$as_me: failed program was:" >&5
9175sed 's/^/| /' conftest.$ac_ext >&5
9176
9177ac_cv_lib_dld_shl_load=no
9178fi
9179rm -f conftest.err conftest.$ac_objext \
9180      conftest$ac_exeext conftest.$ac_ext
9181LIBS=$ac_check_lib_save_LIBS
9182fi
9183echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9184echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9185if test $ac_cv_lib_dld_shl_load = yes; then
9186  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9187else
9188  echo "$as_me:$LINENO: checking for dlopen" >&5
9189echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9190if test "${ac_cv_func_dlopen+set}" = set; then
9191  echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193  cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h.  */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h.  */
9199/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9200   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9201#define dlopen innocuous_dlopen
9202
9203/* System header to define __stub macros and hopefully few prototypes,
9204    which can conflict with char dlopen (); below.
9205    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206    <limits.h> exists even on freestanding compilers.  */
9207
9208#ifdef __STDC__
9209# include <limits.h>
9210#else
9211# include <assert.h>
9212#endif
9213
9214#undef dlopen
9215
9216/* Override any gcc2 internal prototype to avoid an error.  */
9217#ifdef __cplusplus
9218extern "C"
9219{
9220#endif
9221/* We use char because int might match the return type of a gcc2
9222   builtin and then its argument prototype would still apply.  */
9223char dlopen ();
9224/* The GNU C library defines this for functions which it implements
9225    to always fail with ENOSYS.  Some functions are actually named
9226    something starting with __ and the normal name is an alias.  */
9227#if defined (__stub_dlopen) || defined (__stub___dlopen)
9228choke me
9229#else
9230char (*f) () = dlopen;
9231#endif
9232#ifdef __cplusplus
9233}
9234#endif
9235
9236int
9237main ()
9238{
9239return f != dlopen;
9240  ;
9241  return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext conftest$ac_exeext
9245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9246  (eval $ac_link) 2>conftest.er1
9247  ac_status=$?
9248  grep -v '^ *+' conftest.er1 >conftest.err
9249  rm -f conftest.er1
9250  cat conftest.err >&5
9251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252  (exit $ac_status); } &&
9253	 { ac_try='test -z "$ac_c_werror_flag"
9254			 || test ! -s conftest.err'
9255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256  (eval $ac_try) 2>&5
9257  ac_status=$?
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); }; } &&
9260	 { ac_try='test -s conftest$ac_exeext'
9261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262  (eval $ac_try) 2>&5
9263  ac_status=$?
9264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265  (exit $ac_status); }; }; then
9266  ac_cv_func_dlopen=yes
9267else
9268  echo "$as_me: failed program was:" >&5
9269sed 's/^/| /' conftest.$ac_ext >&5
9270
9271ac_cv_func_dlopen=no
9272fi
9273rm -f conftest.err conftest.$ac_objext \
9274      conftest$ac_exeext conftest.$ac_ext
9275fi
9276echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9277echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9278if test $ac_cv_func_dlopen = yes; then
9279  lt_cv_dlopen="dlopen"
9280else
9281  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9282echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9283if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9284  echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286  ac_check_lib_save_LIBS=$LIBS
9287LIBS="-ldl  $LIBS"
9288cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h.  */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h.  */
9294
9295/* Override any gcc2 internal prototype to avoid an error.  */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299/* We use char because int might match the return type of a gcc2
9300   builtin and then its argument prototype would still apply.  */
9301char dlopen ();
9302int
9303main ()
9304{
9305dlopen ();
9306  ;
9307  return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext conftest$ac_exeext
9311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312  (eval $ac_link) 2>conftest.er1
9313  ac_status=$?
9314  grep -v '^ *+' conftest.er1 >conftest.err
9315  rm -f conftest.er1
9316  cat conftest.err >&5
9317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318  (exit $ac_status); } &&
9319	 { ac_try='test -z "$ac_c_werror_flag"
9320			 || test ! -s conftest.err'
9321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322  (eval $ac_try) 2>&5
9323  ac_status=$?
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); }; } &&
9326	 { ac_try='test -s conftest$ac_exeext'
9327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328  (eval $ac_try) 2>&5
9329  ac_status=$?
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); }; }; then
9332  ac_cv_lib_dl_dlopen=yes
9333else
9334  echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
9337ac_cv_lib_dl_dlopen=no
9338fi
9339rm -f conftest.err conftest.$ac_objext \
9340      conftest$ac_exeext conftest.$ac_ext
9341LIBS=$ac_check_lib_save_LIBS
9342fi
9343echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9344echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9345if test $ac_cv_lib_dl_dlopen = yes; then
9346  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9347else
9348  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9349echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9350if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9351  echo $ECHO_N "(cached) $ECHO_C" >&6
9352else
9353  ac_check_lib_save_LIBS=$LIBS
9354LIBS="-lsvld  $LIBS"
9355cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h.  */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h.  */
9361
9362/* Override any gcc2 internal prototype to avoid an error.  */
9363#ifdef __cplusplus
9364extern "C"
9365#endif
9366/* We use char because int might match the return type of a gcc2
9367   builtin and then its argument prototype would still apply.  */
9368char dlopen ();
9369int
9370main ()
9371{
9372dlopen ();
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379  (eval $ac_link) 2>conftest.er1
9380  ac_status=$?
9381  grep -v '^ *+' conftest.er1 >conftest.err
9382  rm -f conftest.er1
9383  cat conftest.err >&5
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); } &&
9386	 { ac_try='test -z "$ac_c_werror_flag"
9387			 || test ! -s conftest.err'
9388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389  (eval $ac_try) 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; } &&
9393	 { ac_try='test -s conftest$ac_exeext'
9394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395  (eval $ac_try) 2>&5
9396  ac_status=$?
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); }; }; then
9399  ac_cv_lib_svld_dlopen=yes
9400else
9401  echo "$as_me: failed program was:" >&5
9402sed 's/^/| /' conftest.$ac_ext >&5
9403
9404ac_cv_lib_svld_dlopen=no
9405fi
9406rm -f conftest.err conftest.$ac_objext \
9407      conftest$ac_exeext conftest.$ac_ext
9408LIBS=$ac_check_lib_save_LIBS
9409fi
9410echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9411echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9412if test $ac_cv_lib_svld_dlopen = yes; then
9413  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9414else
9415  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9416echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9417if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9418  echo $ECHO_N "(cached) $ECHO_C" >&6
9419else
9420  ac_check_lib_save_LIBS=$LIBS
9421LIBS="-ldld  $LIBS"
9422cat >conftest.$ac_ext <<_ACEOF
9423/* confdefs.h.  */
9424_ACEOF
9425cat confdefs.h >>conftest.$ac_ext
9426cat >>conftest.$ac_ext <<_ACEOF
9427/* end confdefs.h.  */
9428
9429/* Override any gcc2 internal prototype to avoid an error.  */
9430#ifdef __cplusplus
9431extern "C"
9432#endif
9433/* We use char because int might match the return type of a gcc2
9434   builtin and then its argument prototype would still apply.  */
9435char dld_link ();
9436int
9437main ()
9438{
9439dld_link ();
9440  ;
9441  return 0;
9442}
9443_ACEOF
9444rm -f conftest.$ac_objext conftest$ac_exeext
9445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446  (eval $ac_link) 2>conftest.er1
9447  ac_status=$?
9448  grep -v '^ *+' conftest.er1 >conftest.err
9449  rm -f conftest.er1
9450  cat conftest.err >&5
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); } &&
9453	 { ac_try='test -z "$ac_c_werror_flag"
9454			 || test ! -s conftest.err'
9455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456  (eval $ac_try) 2>&5
9457  ac_status=$?
9458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459  (exit $ac_status); }; } &&
9460	 { ac_try='test -s conftest$ac_exeext'
9461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462  (eval $ac_try) 2>&5
9463  ac_status=$?
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); }; }; then
9466  ac_cv_lib_dld_dld_link=yes
9467else
9468  echo "$as_me: failed program was:" >&5
9469sed 's/^/| /' conftest.$ac_ext >&5
9470
9471ac_cv_lib_dld_dld_link=no
9472fi
9473rm -f conftest.err conftest.$ac_objext \
9474      conftest$ac_exeext conftest.$ac_ext
9475LIBS=$ac_check_lib_save_LIBS
9476fi
9477echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9478echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9479if test $ac_cv_lib_dld_dld_link = yes; then
9480  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9481fi
9482
9483
9484fi
9485
9486
9487fi
9488
9489
9490fi
9491
9492
9493fi
9494
9495
9496fi
9497
9498    ;;
9499  esac
9500
9501  if test "x$lt_cv_dlopen" != xno; then
9502    enable_dlopen=yes
9503  else
9504    enable_dlopen=no
9505  fi
9506
9507  case $lt_cv_dlopen in
9508  dlopen)
9509    save_CPPFLAGS="$CPPFLAGS"
9510    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9511
9512    save_LDFLAGS="$LDFLAGS"
9513    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9514
9515    save_LIBS="$LIBS"
9516    LIBS="$lt_cv_dlopen_libs $LIBS"
9517
9518    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9519echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9520if test "${lt_cv_dlopen_self+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523  	  if test "$cross_compiling" = yes; then :
9524  lt_cv_dlopen_self=cross
9525else
9526  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9527  lt_status=$lt_dlunknown
9528  cat > conftest.$ac_ext <<EOF
9529#line 9529 "configure"
9530#include "confdefs.h"
9531
9532#if HAVE_DLFCN_H
9533#include <dlfcn.h>
9534#endif
9535
9536#include <stdio.h>
9537
9538#ifdef RTLD_GLOBAL
9539#  define LT_DLGLOBAL		RTLD_GLOBAL
9540#else
9541#  ifdef DL_GLOBAL
9542#    define LT_DLGLOBAL		DL_GLOBAL
9543#  else
9544#    define LT_DLGLOBAL		0
9545#  endif
9546#endif
9547
9548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9549   find out it does not work in some platform. */
9550#ifndef LT_DLLAZY_OR_NOW
9551#  ifdef RTLD_LAZY
9552#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9553#  else
9554#    ifdef DL_LAZY
9555#      define LT_DLLAZY_OR_NOW		DL_LAZY
9556#    else
9557#      ifdef RTLD_NOW
9558#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9559#      else
9560#        ifdef DL_NOW
9561#          define LT_DLLAZY_OR_NOW	DL_NOW
9562#        else
9563#          define LT_DLLAZY_OR_NOW	0
9564#        endif
9565#      endif
9566#    endif
9567#  endif
9568#endif
9569
9570#ifdef __cplusplus
9571extern "C" void exit (int);
9572#endif
9573
9574void fnord() { int i=42;}
9575int main ()
9576{
9577  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9578  int status = $lt_dlunknown;
9579
9580  if (self)
9581    {
9582      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9583      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9584      /* dlclose (self); */
9585    }
9586
9587    exit (status);
9588}
9589EOF
9590  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591  (eval $ac_link) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9595    (./conftest; exit; ) 2>/dev/null
9596    lt_status=$?
9597    case x$lt_status in
9598      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9599      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9600      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9601    esac
9602  else :
9603    # compilation failed
9604    lt_cv_dlopen_self=no
9605  fi
9606fi
9607rm -fr conftest*
9608
9609
9610fi
9611echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9612echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9613
9614    if test "x$lt_cv_dlopen_self" = xyes; then
9615      LDFLAGS="$LDFLAGS $link_static_flag"
9616      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9617echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9618if test "${lt_cv_dlopen_self_static+set}" = set; then
9619  echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621  	  if test "$cross_compiling" = yes; then :
9622  lt_cv_dlopen_self_static=cross
9623else
9624  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9625  lt_status=$lt_dlunknown
9626  cat > conftest.$ac_ext <<EOF
9627#line 9627 "configure"
9628#include "confdefs.h"
9629
9630#if HAVE_DLFCN_H
9631#include <dlfcn.h>
9632#endif
9633
9634#include <stdio.h>
9635
9636#ifdef RTLD_GLOBAL
9637#  define LT_DLGLOBAL		RTLD_GLOBAL
9638#else
9639#  ifdef DL_GLOBAL
9640#    define LT_DLGLOBAL		DL_GLOBAL
9641#  else
9642#    define LT_DLGLOBAL		0
9643#  endif
9644#endif
9645
9646/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9647   find out it does not work in some platform. */
9648#ifndef LT_DLLAZY_OR_NOW
9649#  ifdef RTLD_LAZY
9650#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9651#  else
9652#    ifdef DL_LAZY
9653#      define LT_DLLAZY_OR_NOW		DL_LAZY
9654#    else
9655#      ifdef RTLD_NOW
9656#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9657#      else
9658#        ifdef DL_NOW
9659#          define LT_DLLAZY_OR_NOW	DL_NOW
9660#        else
9661#          define LT_DLLAZY_OR_NOW	0
9662#        endif
9663#      endif
9664#    endif
9665#  endif
9666#endif
9667
9668#ifdef __cplusplus
9669extern "C" void exit (int);
9670#endif
9671
9672void fnord() { int i=42;}
9673int main ()
9674{
9675  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9676  int status = $lt_dlunknown;
9677
9678  if (self)
9679    {
9680      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9681      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9682      /* dlclose (self); */
9683    }
9684
9685    exit (status);
9686}
9687EOF
9688  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9689  (eval $ac_link) 2>&5
9690  ac_status=$?
9691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9693    (./conftest; exit; ) 2>/dev/null
9694    lt_status=$?
9695    case x$lt_status in
9696      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9697      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9698      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9699    esac
9700  else :
9701    # compilation failed
9702    lt_cv_dlopen_self_static=no
9703  fi
9704fi
9705rm -fr conftest*
9706
9707
9708fi
9709echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9710echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9711    fi
9712
9713    CPPFLAGS="$save_CPPFLAGS"
9714    LDFLAGS="$save_LDFLAGS"
9715    LIBS="$save_LIBS"
9716    ;;
9717  esac
9718
9719  case $lt_cv_dlopen_self in
9720  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9721  *) enable_dlopen_self=unknown ;;
9722  esac
9723
9724  case $lt_cv_dlopen_self_static in
9725  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9726  *) enable_dlopen_self_static=unknown ;;
9727  esac
9728fi
9729
9730
9731# Report which librarie types wil actually be built
9732echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9733echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9734echo "$as_me:$LINENO: result: $can_build_shared" >&5
9735echo "${ECHO_T}$can_build_shared" >&6
9736
9737echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9738echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9739test "$can_build_shared" = "no" && enable_shared=no
9740
9741# On AIX, shared libraries and static libraries use the same namespace, and
9742# are all built from PIC.
9743case "$host_os" in
9744aix3*)
9745  test "$enable_shared" = yes && enable_static=no
9746  if test -n "$RANLIB"; then
9747    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9748    postinstall_cmds='$RANLIB $lib'
9749  fi
9750  ;;
9751
9752aix4*)
9753  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9754    test "$enable_shared" = yes && enable_static=no
9755  fi
9756  ;;
9757  darwin* | rhapsody*)
9758  if test "$GCC" = yes; then
9759    archive_cmds_need_lc=no
9760    case "$host_os" in
9761    rhapsody* | darwin1.[012])
9762      allow_undefined_flag='-undefined suppress'
9763      ;;
9764    *) # Darwin 1.3 on
9765      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9766      	allow_undefined_flag='-flat_namespace -undefined suppress'
9767      else
9768        case ${MACOSX_DEPLOYMENT_TARGET} in
9769          10.[012])
9770            allow_undefined_flag='-flat_namespace -undefined suppress'
9771            ;;
9772          10.*)
9773            allow_undefined_flag='-undefined dynamic_lookup'
9774            ;;
9775        esac
9776      fi
9777      ;;
9778    esac
9779    output_verbose_link_cmd='echo'
9780    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9781    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9782    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9783    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9784    module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9785    hardcode_direct=no
9786    hardcode_automatic=yes
9787    hardcode_shlibpath_var=unsupported
9788    whole_archive_flag_spec='-all_load $convenience'
9789    link_all_deplibs=yes
9790  else
9791    ld_shlibs=no
9792  fi
9793    ;;
9794esac
9795echo "$as_me:$LINENO: result: $enable_shared" >&5
9796echo "${ECHO_T}$enable_shared" >&6
9797
9798echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9799echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9800# Make sure either enable_shared or enable_static is yes.
9801test "$enable_shared" = yes || enable_static=yes
9802echo "$as_me:$LINENO: result: $enable_static" >&5
9803echo "${ECHO_T}$enable_static" >&6
9804
9805# The else clause should only fire when bootstrapping the
9806# libtool distribution, otherwise you forgot to ship ltmain.sh
9807# with your package, and you will get complaints that there are
9808# no rules to generate ltmain.sh.
9809if test -f "$ltmain"; then
9810  # See if we are running on zsh, and set the options which allow our commands through
9811  # without removal of \ escapes.
9812  if test -n "${ZSH_VERSION+set}" ; then
9813    setopt NO_GLOB_SUBST
9814  fi
9815  # Now quote all the things that may contain metacharacters while being
9816  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9817  # variables and quote the copies for generation of the libtool script.
9818  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9819    SED SHELL STRIP \
9820    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9821    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9822    deplibs_check_method reload_flag reload_cmds need_locks \
9823    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9824    lt_cv_sys_global_symbol_to_c_name_address \
9825    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9826    old_postinstall_cmds old_postuninstall_cmds \
9827    compiler \
9828    CC \
9829    LD \
9830    lt_prog_compiler_wl \
9831    lt_prog_compiler_pic \
9832    lt_prog_compiler_static \
9833    lt_prog_compiler_no_builtin_flag \
9834    export_dynamic_flag_spec \
9835    thread_safe_flag_spec \
9836    whole_archive_flag_spec \
9837    enable_shared_with_static_runtimes \
9838    old_archive_cmds \
9839    old_archive_from_new_cmds \
9840    predep_objects \
9841    postdep_objects \
9842    predeps \
9843    postdeps \
9844    compiler_lib_search_path \
9845    archive_cmds \
9846    archive_expsym_cmds \
9847    postinstall_cmds \
9848    postuninstall_cmds \
9849    old_archive_from_expsyms_cmds \
9850    allow_undefined_flag \
9851    no_undefined_flag \
9852    export_symbols_cmds \
9853    hardcode_libdir_flag_spec \
9854    hardcode_libdir_flag_spec_ld \
9855    hardcode_libdir_separator \
9856    hardcode_automatic \
9857    module_cmds \
9858    module_expsym_cmds \
9859    lt_cv_prog_compiler_c_o \
9860    exclude_expsyms \
9861    include_expsyms; do
9862
9863    case $var in
9864    old_archive_cmds | \
9865    old_archive_from_new_cmds | \
9866    archive_cmds | \
9867    archive_expsym_cmds | \
9868    module_cmds | \
9869    module_expsym_cmds | \
9870    old_archive_from_expsyms_cmds | \
9871    export_symbols_cmds | \
9872    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9873    postinstall_cmds | postuninstall_cmds | \
9874    old_postinstall_cmds | old_postuninstall_cmds | \
9875    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9876      # Double-quote double-evaled strings.
9877      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9878      ;;
9879    *)
9880      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9881      ;;
9882    esac
9883  done
9884
9885  case $lt_echo in
9886  *'\$0 --fallback-echo"')
9887    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9888    ;;
9889  esac
9890
9891cfgfile="${ofile}T"
9892  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9893  $rm -f "$cfgfile"
9894  { echo "$as_me:$LINENO: creating $ofile" >&5
9895echo "$as_me: creating $ofile" >&6;}
9896
9897  cat <<__EOF__ >> "$cfgfile"
9898#! $SHELL
9899
9900# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9901# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9902# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9903#
9904# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9905# Free Software Foundation, Inc.
9906#
9907# This file is part of GNU Libtool:
9908# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9909#
9910# This program is free software; you can redistribute it and/or modify
9911# it under the terms of the GNU General Public License as published by
9912# the Free Software Foundation; either version 2 of the License, or
9913# (at your option) any later version.
9914#
9915# This program is distributed in the hope that it will be useful, but
9916# WITHOUT ANY WARRANTY; without even the implied warranty of
9917# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9918# General Public License for more details.
9919#
9920# You should have received a copy of the GNU General Public License
9921# along with this program; if not, write to the Free Software
9922# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9923#
9924# As a special exception to the GNU General Public License, if you
9925# distribute this file as part of a program that contains a
9926# configuration script generated by Autoconf, you may include it under
9927# the same distribution terms that you use for the rest of that program.
9928
9929# A sed program that does not truncate output.
9930SED=$lt_SED
9931
9932# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9933Xsed="$SED -e s/^X//"
9934
9935# The HP-UX ksh and POSIX shell print the target directory to stdout
9936# if CDPATH is set.
9937if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9938
9939# The names of the tagged configurations supported by this script.
9940available_tags=
9941
9942# ### BEGIN LIBTOOL CONFIG
9943
9944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9945
9946# Shell to use when invoking shell scripts.
9947SHELL=$lt_SHELL
9948
9949# Whether or not to build shared libraries.
9950build_libtool_libs=$enable_shared
9951
9952# Whether or not to build static libraries.
9953build_old_libs=$enable_static
9954
9955# Whether or not to add -lc for building shared libraries.
9956build_libtool_need_lc=$archive_cmds_need_lc
9957
9958# Whether or not to disallow shared libs when runtime libs are static
9959allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9960
9961# Whether or not to optimize for fast installation.
9962fast_install=$enable_fast_install
9963
9964# The host system.
9965host_alias=$host_alias
9966host=$host
9967
9968# An echo program that does not interpret backslashes.
9969echo=$lt_echo
9970
9971# The archiver.
9972AR=$lt_AR
9973AR_FLAGS=$lt_AR_FLAGS
9974
9975# A C compiler.
9976LTCC=$lt_LTCC
9977
9978# A language-specific compiler.
9979CC=$lt_compiler
9980
9981# Is the compiler the GNU C compiler?
9982with_gcc=$GCC
9983
9984# An ERE matcher.
9985EGREP=$lt_EGREP
9986
9987# The linker used to build libraries.
9988LD=$lt_LD
9989
9990# Whether we need hard or soft links.
9991LN_S=$lt_LN_S
9992
9993# A BSD-compatible nm program.
9994NM=$lt_NM
9995
9996# A symbol stripping program
9997STRIP=$lt_STRIP
9998
9999# Used to examine libraries when file_magic_cmd begins "file"
10000MAGIC_CMD=$MAGIC_CMD
10001
10002# Used on cygwin: DLL creation program.
10003DLLTOOL="$DLLTOOL"
10004
10005# Used on cygwin: object dumper.
10006OBJDUMP="$OBJDUMP"
10007
10008# Used on cygwin: assembler.
10009AS="$AS"
10010
10011# The name of the directory that contains temporary libtool files.
10012objdir=$objdir
10013
10014# How to create reloadable object files.
10015reload_flag=$lt_reload_flag
10016reload_cmds=$lt_reload_cmds
10017
10018# How to pass a linker flag through the compiler.
10019wl=$lt_lt_prog_compiler_wl
10020
10021# Object file suffix (normally "o").
10022objext="$ac_objext"
10023
10024# Old archive suffix (normally "a").
10025libext="$libext"
10026
10027# Shared library suffix (normally ".so").
10028shrext='$shrext'
10029
10030# Executable file suffix (normally "").
10031exeext="$exeext"
10032
10033# Additional compiler flags for building library objects.
10034pic_flag=$lt_lt_prog_compiler_pic
10035pic_mode=$pic_mode
10036
10037# What is the maximum length of a command?
10038max_cmd_len=$lt_cv_sys_max_cmd_len
10039
10040# Does compiler simultaneously support -c and -o options?
10041compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10042
10043# Must we lock files when doing compilation ?
10044need_locks=$lt_need_locks
10045
10046# Do we need the lib prefix for modules?
10047need_lib_prefix=$need_lib_prefix
10048
10049# Do we need a version for libraries?
10050need_version=$need_version
10051
10052# Whether dlopen is supported.
10053dlopen_support=$enable_dlopen
10054
10055# Whether dlopen of programs is supported.
10056dlopen_self=$enable_dlopen_self
10057
10058# Whether dlopen of statically linked programs is supported.
10059dlopen_self_static=$enable_dlopen_self_static
10060
10061# Compiler flag to prevent dynamic linking.
10062link_static_flag=$lt_lt_prog_compiler_static
10063
10064# Compiler flag to turn off builtin functions.
10065no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10066
10067# Compiler flag to allow reflexive dlopens.
10068export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10069
10070# Compiler flag to generate shared objects directly from archives.
10071whole_archive_flag_spec=$lt_whole_archive_flag_spec
10072
10073# Compiler flag to generate thread-safe objects.
10074thread_safe_flag_spec=$lt_thread_safe_flag_spec
10075
10076# Library versioning type.
10077version_type=$version_type
10078
10079# Format of library name prefix.
10080libname_spec=$lt_libname_spec
10081
10082# List of archive names.  First name is the real one, the rest are links.
10083# The last name is the one that the linker finds with -lNAME.
10084library_names_spec=$lt_library_names_spec
10085
10086# The coded name of the library, if different from the real name.
10087soname_spec=$lt_soname_spec
10088
10089# Commands used to build and install an old-style archive.
10090RANLIB=$lt_RANLIB
10091old_archive_cmds=$lt_old_archive_cmds
10092old_postinstall_cmds=$lt_old_postinstall_cmds
10093old_postuninstall_cmds=$lt_old_postuninstall_cmds
10094
10095# Create an old-style archive from a shared archive.
10096old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10097
10098# Create a temporary old-style archive to link instead of a shared archive.
10099old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10100
10101# Commands used to build and install a shared archive.
10102archive_cmds=$lt_archive_cmds
10103archive_expsym_cmds=$lt_archive_expsym_cmds
10104postinstall_cmds=$lt_postinstall_cmds
10105postuninstall_cmds=$lt_postuninstall_cmds
10106
10107# Commands used to build a loadable module (assumed same as above if empty)
10108module_cmds=$lt_module_cmds
10109module_expsym_cmds=$lt_module_expsym_cmds
10110
10111# Commands to strip libraries.
10112old_striplib=$lt_old_striplib
10113striplib=$lt_striplib
10114
10115# Dependencies to place before the objects being linked to create a
10116# shared library.
10117predep_objects=$lt_predep_objects
10118
10119# Dependencies to place after the objects being linked to create a
10120# shared library.
10121postdep_objects=$lt_postdep_objects
10122
10123# Dependencies to place before the objects being linked to create a
10124# shared library.
10125predeps=$lt_predeps
10126
10127# Dependencies to place after the objects being linked to create a
10128# shared library.
10129postdeps=$lt_postdeps
10130
10131# The library search path used internally by the compiler when linking
10132# a shared library.
10133compiler_lib_search_path=$lt_compiler_lib_search_path
10134
10135# Method to check whether dependent libraries are shared objects.
10136deplibs_check_method=$lt_deplibs_check_method
10137
10138# Command to use when deplibs_check_method == file_magic.
10139file_magic_cmd=$lt_file_magic_cmd
10140
10141# Flag that allows shared libraries with undefined symbols to be built.
10142allow_undefined_flag=$lt_allow_undefined_flag
10143
10144# Flag that forces no undefined symbols.
10145no_undefined_flag=$lt_no_undefined_flag
10146
10147# Commands used to finish a libtool library installation in a directory.
10148finish_cmds=$lt_finish_cmds
10149
10150# Same as above, but a single script fragment to be evaled but not shown.
10151finish_eval=$lt_finish_eval
10152
10153# Take the output of nm and produce a listing of raw symbols and C names.
10154global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10155
10156# Transform the output of nm in a proper C declaration
10157global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10158
10159# Transform the output of nm in a C name address pair
10160global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10161
10162# This is the shared library runtime path variable.
10163runpath_var=$runpath_var
10164
10165# This is the shared library path variable.
10166shlibpath_var=$shlibpath_var
10167
10168# Is shlibpath searched before the hard-coded library search path?
10169shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10170
10171# How to hardcode a shared library path into an executable.
10172hardcode_action=$hardcode_action
10173
10174# Whether we should hardcode library paths into libraries.
10175hardcode_into_libs=$hardcode_into_libs
10176
10177# Flag to hardcode \$libdir into a binary during linking.
10178# This must work even if \$libdir does not exist.
10179hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10180
10181# If ld is used when linking, flag to hardcode \$libdir into
10182# a binary during linking. This must work even if \$libdir does
10183# not exist.
10184hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10185
10186# Whether we need a single -rpath flag with a separated argument.
10187hardcode_libdir_separator=$lt_hardcode_libdir_separator
10188
10189# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10190# resulting binary.
10191hardcode_direct=$hardcode_direct
10192
10193# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10194# resulting binary.
10195hardcode_minus_L=$hardcode_minus_L
10196
10197# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10198# the resulting binary.
10199hardcode_shlibpath_var=$hardcode_shlibpath_var
10200
10201# Set to yes if building a shared library automatically hardcodes DIR into the library
10202# and all subsequent libraries and executables linked against it.
10203hardcode_automatic=$hardcode_automatic
10204
10205# Variables whose values should be saved in libtool wrapper scripts and
10206# restored at relink time.
10207variables_saved_for_relink="$variables_saved_for_relink"
10208
10209# Whether libtool must link a program against all its dependency libraries.
10210link_all_deplibs=$link_all_deplibs
10211
10212# Compile-time system search path for libraries
10213sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10214
10215# Run-time system search path for libraries
10216sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10217
10218# Fix the shell variable \$srcfile for the compiler.
10219fix_srcfile_path="$fix_srcfile_path"
10220
10221# Set to yes if exported symbols are required.
10222always_export_symbols=$always_export_symbols
10223
10224# The commands to list exported symbols.
10225export_symbols_cmds=$lt_export_symbols_cmds
10226
10227# The commands to extract the exported symbol list from a shared archive.
10228extract_expsyms_cmds=$lt_extract_expsyms_cmds
10229
10230# Symbols that should not be listed in the preloaded symbols.
10231exclude_expsyms=$lt_exclude_expsyms
10232
10233# Symbols that must always be exported.
10234include_expsyms=$lt_include_expsyms
10235
10236# ### END LIBTOOL CONFIG
10237
10238__EOF__
10239
10240
10241  case $host_os in
10242  aix3*)
10243    cat <<\EOF >> "$cfgfile"
10244
10245# AIX sometimes has problems with the GCC collect2 program.  For some
10246# reason, if we set the COLLECT_NAMES environment variable, the problems
10247# vanish in a puff of smoke.
10248if test "X${COLLECT_NAMES+set}" != Xset; then
10249  COLLECT_NAMES=
10250  export COLLECT_NAMES
10251fi
10252EOF
10253    ;;
10254  esac
10255
10256  # We use sed instead of cat because bash on DJGPP gets confused if
10257  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10258  # text mode, it properly converts lines to CR/LF.  This bash problem
10259  # is reportedly fixed, but why not run on old versions too?
10260  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10261
10262  mv -f "$cfgfile" "$ofile" || \
10263    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10264  chmod +x "$ofile"
10265
10266else
10267  # If there is no Makefile yet, we rely on a make rule to execute
10268  # `config.status --recheck' to rerun these tests and create the
10269  # libtool script then.
10270  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10271  if test -f "$ltmain_in"; then
10272    test -f Makefile && make "$ltmain"
10273  fi
10274fi
10275
10276
10277ac_ext=c
10278ac_cpp='$CPP $CPPFLAGS'
10279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10281ac_compiler_gnu=$ac_cv_c_compiler_gnu
10282
10283CC="$lt_save_CC"
10284
10285
10286# Check whether --with-tags or --without-tags was given.
10287if test "${with_tags+set}" = set; then
10288  withval="$with_tags"
10289  tagnames="$withval"
10290fi;
10291
10292if test -f "$ltmain" && test -n "$tagnames"; then
10293  if test ! -f "${ofile}"; then
10294    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10295echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10296  fi
10297
10298  if test -z "$LTCC"; then
10299    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10300    if test -z "$LTCC"; then
10301      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10302echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10303    else
10304      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10305echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10306    fi
10307  fi
10308
10309  # Extract list of available tagged configurations in $ofile.
10310  # Note that this assumes the entire list is on one line.
10311  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10312
10313  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10314  for tagname in $tagnames; do
10315    IFS="$lt_save_ifs"
10316    # Check whether tagname contains only valid characters
10317    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10318    "") ;;
10319    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10320echo "$as_me: error: invalid tag name: $tagname" >&2;}
10321   { (exit 1); exit 1; }; }
10322	;;
10323    esac
10324
10325    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10326    then
10327      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10328echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10329   { (exit 1); exit 1; }; }
10330    fi
10331
10332    # Update the list of available tags.
10333    if test -n "$tagname"; then
10334      echo appending configuration tag \"$tagname\" to $ofile
10335
10336      case $tagname in
10337      CXX)
10338	if test -n "$CXX" && test "X$CXX" != "Xno"; then
10339	  ac_ext=cc
10340ac_cpp='$CXXCPP $CPPFLAGS'
10341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10344
10345
10346
10347
10348archive_cmds_need_lc_CXX=no
10349allow_undefined_flag_CXX=
10350always_export_symbols_CXX=no
10351archive_expsym_cmds_CXX=
10352export_dynamic_flag_spec_CXX=
10353hardcode_direct_CXX=no
10354hardcode_libdir_flag_spec_CXX=
10355hardcode_libdir_flag_spec_ld_CXX=
10356hardcode_libdir_separator_CXX=
10357hardcode_minus_L_CXX=no
10358hardcode_automatic_CXX=no
10359module_cmds_CXX=
10360module_expsym_cmds_CXX=
10361link_all_deplibs_CXX=unknown
10362old_archive_cmds_CXX=$old_archive_cmds
10363no_undefined_flag_CXX=
10364whole_archive_flag_spec_CXX=
10365enable_shared_with_static_runtimes_CXX=no
10366
10367# Dependencies to place before and after the object being linked:
10368predep_objects_CXX=
10369postdep_objects_CXX=
10370predeps_CXX=
10371postdeps_CXX=
10372compiler_lib_search_path_CXX=
10373
10374# Source file extension for C++ test sources.
10375ac_ext=cc
10376
10377# Object file extension for compiled C++ test sources.
10378objext=o
10379objext_CXX=$objext
10380
10381# Code to be used in simple compile tests
10382lt_simple_compile_test_code="int some_variable = 0;\n"
10383
10384# Code to be used in simple link tests
10385lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10386
10387# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10388
10389# If no C compiler was specified, use CC.
10390LTCC=${LTCC-"$CC"}
10391
10392# Allow CC to be a program name with arguments.
10393compiler=$CC
10394
10395
10396# Allow CC to be a program name with arguments.
10397lt_save_CC=$CC
10398lt_save_LD=$LD
10399lt_save_GCC=$GCC
10400GCC=$GXX
10401lt_save_with_gnu_ld=$with_gnu_ld
10402lt_save_path_LD=$lt_cv_path_LD
10403if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10404  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10405else
10406  unset lt_cv_prog_gnu_ld
10407fi
10408if test -n "${lt_cv_path_LDCXX+set}"; then
10409  lt_cv_path_LD=$lt_cv_path_LDCXX
10410else
10411  unset lt_cv_path_LD
10412fi
10413test -z "${LDCXX+set}" || LD=$LDCXX
10414CC=${CXX-"c++"}
10415compiler=$CC
10416compiler_CXX=$CC
10417cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10418
10419# We don't want -fno-exception wen compiling C++ code, so set the
10420# no_builtin_flag separately
10421if test "$GXX" = yes; then
10422  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10423else
10424  lt_prog_compiler_no_builtin_flag_CXX=
10425fi
10426
10427if test "$GXX" = yes; then
10428  # Set up default GNU C++ configuration
10429
10430
10431# Check whether --with-gnu-ld or --without-gnu-ld was given.
10432if test "${with_gnu_ld+set}" = set; then
10433  withval="$with_gnu_ld"
10434  test "$withval" = no || with_gnu_ld=yes
10435else
10436  with_gnu_ld=no
10437fi;
10438ac_prog=ld
10439if test "$GCC" = yes; then
10440  # Check if gcc -print-prog-name=ld gives a path.
10441  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10442echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10443  case $host in
10444  *-*-mingw*)
10445    # gcc leaves a trailing carriage return which upsets mingw
10446    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10447  *)
10448    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10449  esac
10450  case $ac_prog in
10451    # Accept absolute paths.
10452    [\\/]* | ?:[\\/]*)
10453      re_direlt='/[^/][^/]*/\.\./'
10454      # Canonicalize the pathname of ld
10455      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10456      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10457	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10458      done
10459      test -z "$LD" && LD="$ac_prog"
10460      ;;
10461  "")
10462    # If it fails, then pretend we aren't using GCC.
10463    ac_prog=ld
10464    ;;
10465  *)
10466    # If it is relative, then search for the first ld in PATH.
10467    with_gnu_ld=unknown
10468    ;;
10469  esac
10470elif test "$with_gnu_ld" = yes; then
10471  echo "$as_me:$LINENO: checking for GNU ld" >&5
10472echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10473else
10474  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10475echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10476fi
10477if test "${lt_cv_path_LD+set}" = set; then
10478  echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480  if test -z "$LD"; then
10481  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10482  for ac_dir in $PATH; do
10483    IFS="$lt_save_ifs"
10484    test -z "$ac_dir" && ac_dir=.
10485    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10486      lt_cv_path_LD="$ac_dir/$ac_prog"
10487      # Check to see if the program is GNU ld.  I'd rather use --version,
10488      # but apparently some GNU ld's only accept -v.
10489      # Break only if it was the GNU/non-GNU ld that we prefer.
10490      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10491      *GNU* | *'with BFD'*)
10492	test "$with_gnu_ld" != no && break
10493	;;
10494      *)
10495	test "$with_gnu_ld" != yes && break
10496	;;
10497      esac
10498    fi
10499  done
10500  IFS="$lt_save_ifs"
10501else
10502  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10503fi
10504fi
10505
10506LD="$lt_cv_path_LD"
10507if test -n "$LD"; then
10508  echo "$as_me:$LINENO: result: $LD" >&5
10509echo "${ECHO_T}$LD" >&6
10510else
10511  echo "$as_me:$LINENO: result: no" >&5
10512echo "${ECHO_T}no" >&6
10513fi
10514test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10515echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10516   { (exit 1); exit 1; }; }
10517echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10518echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10519if test "${lt_cv_prog_gnu_ld+set}" = set; then
10520  echo $ECHO_N "(cached) $ECHO_C" >&6
10521else
10522  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10523case `$LD -v 2>&1 </dev/null` in
10524*GNU* | *'with BFD'*)
10525  lt_cv_prog_gnu_ld=yes
10526  ;;
10527*)
10528  lt_cv_prog_gnu_ld=no
10529  ;;
10530esac
10531fi
10532echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10533echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10534with_gnu_ld=$lt_cv_prog_gnu_ld
10535
10536
10537
10538  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10539  # archiving commands below assume that GNU ld is being used.
10540  if test "$with_gnu_ld" = yes; then
10541    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10542    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10543
10544    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10545    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10546
10547    # If archive_cmds runs LD, not CC, wlarc should be empty
10548    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10549    #     investigate it a little bit more. (MM)
10550    wlarc='${wl}'
10551
10552    # ancient GNU ld didn't support --whole-archive et. al.
10553    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10554	grep 'no-whole-archive' > /dev/null; then
10555      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10556    else
10557      whole_archive_flag_spec_CXX=
10558    fi
10559  else
10560    with_gnu_ld=no
10561    wlarc=
10562
10563    # A generic and very simple default shared library creation
10564    # command for GNU C++ for the case where it uses the native
10565    # linker, instead of GNU ld.  If possible, this setting should
10566    # overridden to take advantage of the native linker features on
10567    # the platform it is being used on.
10568    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10569  fi
10570
10571  # Commands to make compiler produce verbose output that lists
10572  # what "hidden" libraries, object files and flags are used when
10573  # linking a shared library.
10574  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10575
10576else
10577  GXX=no
10578  with_gnu_ld=no
10579  wlarc=
10580fi
10581
10582# PORTME: fill in a description of your system's C++ link characteristics
10583echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10585ld_shlibs_CXX=yes
10586case $host_os in
10587  aix3*)
10588    # FIXME: insert proper C++ library support
10589    ld_shlibs_CXX=no
10590    ;;
10591  aix4* | aix5*)
10592    if test "$host_cpu" = ia64; then
10593      # On IA64, the linker does run time linking by default, so we don't
10594      # have to do anything special.
10595      aix_use_runtimelinking=no
10596      exp_sym_flag='-Bexport'
10597      no_entry_flag=""
10598    else
10599      aix_use_runtimelinking=no
10600
10601      # Test if we are trying to use run time linking or normal
10602      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10603      # need to do runtime linking.
10604      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10605	for ld_flag in $LDFLAGS; do
10606	  case $ld_flag in
10607	  *-brtl*)
10608	    aix_use_runtimelinking=yes
10609	    break
10610	    ;;
10611	  esac
10612	done
10613      esac
10614
10615      exp_sym_flag='-bexport'
10616      no_entry_flag='-bnoentry'
10617    fi
10618
10619    # When large executables or shared objects are built, AIX ld can
10620    # have problems creating the table of contents.  If linking a library
10621    # or program results in "error TOC overflow" add -mminimal-toc to
10622    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10623    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10624
10625    archive_cmds_CXX=''
10626    hardcode_direct_CXX=yes
10627    hardcode_libdir_separator_CXX=':'
10628    link_all_deplibs_CXX=yes
10629
10630    if test "$GXX" = yes; then
10631      case $host_os in aix4.012|aix4.012.*)
10632      # We only want to do this on AIX 4.2 and lower, the check
10633      # below for broken collect2 doesn't work under 4.3+
10634	collect2name=`${CC} -print-prog-name=collect2`
10635	if test -f "$collect2name" && \
10636	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10637	then
10638	  # We have reworked collect2
10639	  hardcode_direct_CXX=yes
10640	else
10641	  # We have old collect2
10642	  hardcode_direct_CXX=unsupported
10643	  # It fails to find uninstalled libraries when the uninstalled
10644	  # path is not listed in the libpath.  Setting hardcode_minus_L
10645	  # to unsupported forces relinking
10646	  hardcode_minus_L_CXX=yes
10647	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10648	  hardcode_libdir_separator_CXX=
10649	fi
10650      esac
10651      shared_flag='-shared'
10652    else
10653      # not using gcc
10654      if test "$host_cpu" = ia64; then
10655	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10656	# chokes on -Wl,-G. The following line is correct:
10657	shared_flag='-G'
10658      else
10659	if test "$aix_use_runtimelinking" = yes; then
10660	  shared_flag='${wl}-G'
10661	else
10662	  shared_flag='${wl}-bM:SRE'
10663	fi
10664      fi
10665    fi
10666
10667    # It seems that -bexpall does not export symbols beginning with
10668    # underscore (_), so it is better to generate a list of symbols to export.
10669    always_export_symbols_CXX=yes
10670    if test "$aix_use_runtimelinking" = yes; then
10671      # Warning - without using the other runtime loading flags (-brtl),
10672      # -berok will link without error, but may produce a broken library.
10673      allow_undefined_flag_CXX='-berok'
10674      # Determine the default libpath from the value encoded in an empty executable.
10675      cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h.  */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h.  */
10681
10682int
10683main ()
10684{
10685
10686  ;
10687  return 0;
10688}
10689_ACEOF
10690rm -f conftest.$ac_objext conftest$ac_exeext
10691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10692  (eval $ac_link) 2>conftest.er1
10693  ac_status=$?
10694  grep -v '^ *+' conftest.er1 >conftest.err
10695  rm -f conftest.er1
10696  cat conftest.err >&5
10697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698  (exit $ac_status); } &&
10699	 { ac_try='test -z "$ac_cxx_werror_flag"
10700			 || test ! -s conftest.err'
10701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702  (eval $ac_try) 2>&5
10703  ac_status=$?
10704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705  (exit $ac_status); }; } &&
10706	 { ac_try='test -s conftest$ac_exeext'
10707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708  (eval $ac_try) 2>&5
10709  ac_status=$?
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); }; }; then
10712
10713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10714}'`
10715# Check for a 64-bit object if we didn't find anything.
10716if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10717}'`; fi
10718else
10719  echo "$as_me: failed program was:" >&5
10720sed 's/^/| /' conftest.$ac_ext >&5
10721
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10726
10727      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10728
10729      archive_expsym_cmds_CXX="\$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"
10730     else
10731      if test "$host_cpu" = ia64; then
10732	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10733	allow_undefined_flag_CXX="-z nodefs"
10734	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10735      else
10736	# Determine the default libpath from the value encoded in an empty executable.
10737	cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h.  */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h.  */
10743
10744int
10745main ()
10746{
10747
10748  ;
10749  return 0;
10750}
10751_ACEOF
10752rm -f conftest.$ac_objext conftest$ac_exeext
10753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10754  (eval $ac_link) 2>conftest.er1
10755  ac_status=$?
10756  grep -v '^ *+' conftest.er1 >conftest.err
10757  rm -f conftest.er1
10758  cat conftest.err >&5
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); } &&
10761	 { ac_try='test -z "$ac_cxx_werror_flag"
10762			 || test ! -s conftest.err'
10763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764  (eval $ac_try) 2>&5
10765  ac_status=$?
10766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767  (exit $ac_status); }; } &&
10768	 { ac_try='test -s conftest$ac_exeext'
10769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10770  (eval $ac_try) 2>&5
10771  ac_status=$?
10772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773  (exit $ac_status); }; }; then
10774
10775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10776}'`
10777# Check for a 64-bit object if we didn't find anything.
10778if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10779}'`; fi
10780else
10781  echo "$as_me: failed program was:" >&5
10782sed 's/^/| /' conftest.$ac_ext >&5
10783
10784fi
10785rm -f conftest.err conftest.$ac_objext \
10786      conftest$ac_exeext conftest.$ac_ext
10787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10788
10789	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10790	# Warning - without using the other run time loading flags,
10791	# -berok will link without error, but may produce a broken library.
10792	no_undefined_flag_CXX=' ${wl}-bernotok'
10793	allow_undefined_flag_CXX=' ${wl}-berok'
10794	# -bexpall does not export symbols beginning with underscore (_)
10795	always_export_symbols_CXX=yes
10796	# Exported symbols can be pulled into shared objects from archives
10797	whole_archive_flag_spec_CXX=' '
10798	archive_cmds_need_lc_CXX=yes
10799	# This is similar to how AIX traditionally builds it's shared libraries.
10800	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10801      fi
10802    fi
10803    ;;
10804  chorus*)
10805    case $cc_basename in
10806      *)
10807	# FIXME: insert proper C++ library support
10808	ld_shlibs_CXX=no
10809	;;
10810    esac
10811    ;;
10812
10813  cygwin* | mingw* | pw32*)
10814    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10815    # as there is no search path for DLLs.
10816    hardcode_libdir_flag_spec_CXX='-L$libdir'
10817    allow_undefined_flag_CXX=unsupported
10818    always_export_symbols_CXX=no
10819    enable_shared_with_static_runtimes_CXX=yes
10820
10821    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10822      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10823      # If the export-symbols file already is a .def file (1st line
10824      # is EXPORTS), use it as is; otherwise, prepend...
10825      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10826	cp $export_symbols $output_objdir/$soname.def;
10827      else
10828	echo EXPORTS > $output_objdir/$soname.def;
10829	cat $export_symbols >> $output_objdir/$soname.def;
10830      fi~
10831      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10832    else
10833      ld_shlibs_CXX=no
10834    fi
10835  ;;
10836
10837  darwin* | rhapsody*)
10838  if test "$GXX" = yes; then
10839    archive_cmds_need_lc_CXX=no
10840    case "$host_os" in
10841    rhapsody* | darwin1.[012])
10842      allow_undefined_flag_CXX='-undefined suppress'
10843      ;;
10844    *) # Darwin 1.3 on
10845      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10846      	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10847      else
10848        case ${MACOSX_DEPLOYMENT_TARGET} in
10849          10.[012])
10850            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10851            ;;
10852          10.*)
10853            allow_undefined_flag_CXX='-undefined dynamic_lookup'
10854            ;;
10855        esac
10856      fi
10857      ;;
10858    esac
10859    lt_int_apple_cc_single_mod=no
10860    output_verbose_link_cmd='echo'
10861    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10862      lt_int_apple_cc_single_mod=yes
10863    fi
10864    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10865      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10866    else
10867      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10868    fi
10869    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10870
10871    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10872    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10873      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10874    else
10875      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10876    fi
10877    module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10878    hardcode_direct_CXX=no
10879    hardcode_automatic_CXX=yes
10880    hardcode_shlibpath_var_CXX=unsupported
10881    whole_archive_flag_spec_CXX='-all_load $convenience'
10882    link_all_deplibs_CXX=yes
10883  else
10884    ld_shlibs_CXX=no
10885  fi
10886    ;;
10887
10888  dgux*)
10889    case $cc_basename in
10890      ec++)
10891	# FIXME: insert proper C++ library support
10892	ld_shlibs_CXX=no
10893	;;
10894      ghcx)
10895	# Green Hills C++ Compiler
10896	# FIXME: insert proper C++ library support
10897	ld_shlibs_CXX=no
10898	;;
10899      *)
10900	# FIXME: insert proper C++ library support
10901	ld_shlibs_CXX=no
10902	;;
10903    esac
10904    ;;
10905  freebsd12*)
10906    # C++ shared libraries reported to be fairly broken before switch to ELF
10907    ld_shlibs_CXX=no
10908    ;;
10909  freebsd-elf*)
10910    archive_cmds_need_lc_CXX=no
10911    ;;
10912  freebsd* | kfreebsd*-gnu)
10913    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10914    # conventions
10915    ld_shlibs_CXX=yes
10916    ;;
10917  gnu*)
10918    ;;
10919  hpux9*)
10920    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10921    hardcode_libdir_separator_CXX=:
10922    export_dynamic_flag_spec_CXX='${wl}-E'
10923    hardcode_direct_CXX=yes
10924    hardcode_minus_L_CXX=yes # Not in the search PATH,
10925				# but as the default
10926				# location of the library.
10927
10928    case $cc_basename in
10929    CC)
10930      # FIXME: insert proper C++ library support
10931      ld_shlibs_CXX=no
10932      ;;
10933    aCC)
10934      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10935      # Commands to make compiler produce verbose output that lists
10936      # what "hidden" libraries, object files and flags are used when
10937      # linking a shared library.
10938      #
10939      # There doesn't appear to be a way to prevent this compiler from
10940      # explicitly linking system object files so we need to strip them
10941      # from the output so that they don't get included in the library
10942      # dependencies.
10943      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10944      ;;
10945    *)
10946      if test "$GXX" = yes; then
10947        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10948      else
10949        # FIXME: insert proper C++ library support
10950        ld_shlibs_CXX=no
10951      fi
10952      ;;
10953    esac
10954    ;;
10955  hpux10*|hpux11*)
10956    if test $with_gnu_ld = no; then
10957      case "$host_cpu" in
10958      hppa*64*)
10959	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10960	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10961	hardcode_libdir_separator_CXX=:
10962        ;;
10963      ia64*)
10964	hardcode_libdir_flag_spec_CXX='-L$libdir'
10965        ;;
10966      *)
10967	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10968	hardcode_libdir_separator_CXX=:
10969	export_dynamic_flag_spec_CXX='${wl}-E'
10970        ;;
10971      esac
10972    fi
10973    case "$host_cpu" in
10974    hppa*64*)
10975      hardcode_direct_CXX=no
10976      hardcode_shlibpath_var_CXX=no
10977      ;;
10978    ia64*)
10979      hardcode_direct_CXX=no
10980      hardcode_shlibpath_var_CXX=no
10981      hardcode_minus_L_CXX=yes # Not in the search PATH,
10982					      # but as the default
10983					      # location of the library.
10984      ;;
10985    *)
10986      hardcode_direct_CXX=yes
10987      hardcode_minus_L_CXX=yes # Not in the search PATH,
10988					      # but as the default
10989					      # location of the library.
10990      ;;
10991    esac
10992
10993    case $cc_basename in
10994      CC)
10995	# FIXME: insert proper C++ library support
10996	ld_shlibs_CXX=no
10997	;;
10998      aCC)
10999	case "$host_cpu" in
11000	hppa*64*|ia64*)
11001	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11002	  ;;
11003	*)
11004	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11005	  ;;
11006	esac
11007	# Commands to make compiler produce verbose output that lists
11008	# what "hidden" libraries, object files and flags are used when
11009	# linking a shared library.
11010	#
11011	# There doesn't appear to be a way to prevent this compiler from
11012	# explicitly linking system object files so we need to strip them
11013	# from the output so that they don't get included in the library
11014	# dependencies.
11015	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11016	;;
11017      *)
11018	if test "$GXX" = yes; then
11019	  if test $with_gnu_ld = no; then
11020	    case "$host_cpu" in
11021	    ia64*|hppa*64*)
11022	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11023	      ;;
11024	    *)
11025	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11026	      ;;
11027	    esac
11028	  fi
11029	else
11030	  # FIXME: insert proper C++ library support
11031	  ld_shlibs_CXX=no
11032	fi
11033	;;
11034    esac
11035    ;;
11036  irix5* | irix6*)
11037    case $cc_basename in
11038      CC)
11039	# SGI C++
11040	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11041
11042	# Archives containing C++ object files must be created using
11043	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11044	# necessary to make sure instantiated templates are included
11045	# in the archive.
11046	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11047	;;
11048      *)
11049	if test "$GXX" = yes; then
11050	  if test "$with_gnu_ld" = no; then
11051	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11052	  else
11053	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11054	  fi
11055	fi
11056	link_all_deplibs_CXX=yes
11057	;;
11058    esac
11059    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11060    hardcode_libdir_separator_CXX=:
11061    ;;
11062  linux*)
11063    case $cc_basename in
11064      KCC)
11065	# Kuck and Associates, Inc. (KAI) C++ Compiler
11066
11067	# KCC will only create a shared library if the output file
11068	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11069	# to its proper name (with version) after linking.
11070	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11071	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11072	# Commands to make compiler produce verbose output that lists
11073	# what "hidden" libraries, object files and flags are used when
11074	# linking a shared library.
11075	#
11076	# There doesn't appear to be a way to prevent this compiler from
11077	# explicitly linking system object files so we need to strip them
11078	# from the output so that they don't get included in the library
11079	# dependencies.
11080	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11081
11082	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11083	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11084
11085	# Archives containing C++ object files must be created using
11086	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11087	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11088	;;
11089      icpc)
11090	# Intel C++
11091	with_gnu_ld=yes
11092	archive_cmds_need_lc_CXX=no
11093	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11095	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11096	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11097	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11098	;;
11099      cxx)
11100	# Compaq C++
11101	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11102	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11103
11104	runpath_var=LD_RUN_PATH
11105	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11106	hardcode_libdir_separator_CXX=:
11107
11108	# Commands to make compiler produce verbose output that lists
11109	# what "hidden" libraries, object files and flags are used when
11110	# linking a shared library.
11111	#
11112	# There doesn't appear to be a way to prevent this compiler from
11113	# explicitly linking system object files so we need to strip them
11114	# from the output so that they don't get included in the library
11115	# dependencies.
11116	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11117	;;
11118    esac
11119    ;;
11120  lynxos*)
11121    # FIXME: insert proper C++ library support
11122    ld_shlibs_CXX=no
11123    ;;
11124  m88k*)
11125    # FIXME: insert proper C++ library support
11126    ld_shlibs_CXX=no
11127    ;;
11128  mvs*)
11129    case $cc_basename in
11130      cxx)
11131	# FIXME: insert proper C++ library support
11132	ld_shlibs_CXX=no
11133	;;
11134      *)
11135	# FIXME: insert proper C++ library support
11136	ld_shlibs_CXX=no
11137	;;
11138    esac
11139    ;;
11140  netbsd*)
11141    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11142      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11143      wlarc=
11144      hardcode_libdir_flag_spec_CXX='-R$libdir'
11145      hardcode_direct_CXX=yes
11146      hardcode_shlibpath_var_CXX=no
11147    fi
11148    # Workaround some broken pre-1.5 toolchains
11149    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11150    ;;
11151  osf3*)
11152    case $cc_basename in
11153      KCC)
11154	# Kuck and Associates, Inc. (KAI) C++ Compiler
11155
11156	# KCC will only create a shared library if the output file
11157	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11158	# to its proper name (with version) after linking.
11159	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11160
11161	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11162	hardcode_libdir_separator_CXX=:
11163
11164	# Archives containing C++ object files must be created using
11165	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11166	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11167
11168	;;
11169      RCC)
11170	# Rational C++ 2.4.1
11171	# FIXME: insert proper C++ library support
11172	ld_shlibs_CXX=no
11173	;;
11174      cxx)
11175	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11176	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11177
11178	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11179	hardcode_libdir_separator_CXX=:
11180
11181	# Commands to make compiler produce verbose output that lists
11182	# what "hidden" libraries, object files and flags are used when
11183	# linking a shared library.
11184	#
11185	# There doesn't appear to be a way to prevent this compiler from
11186	# explicitly linking system object files so we need to strip them
11187	# from the output so that they don't get included in the library
11188	# dependencies.
11189	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11190	;;
11191      *)
11192	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11193	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11194	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11195
11196	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11197	  hardcode_libdir_separator_CXX=:
11198
11199	  # Commands to make compiler produce verbose output that lists
11200	  # what "hidden" libraries, object files and flags are used when
11201	  # linking a shared library.
11202	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11203
11204	else
11205	  # FIXME: insert proper C++ library support
11206	  ld_shlibs_CXX=no
11207	fi
11208	;;
11209    esac
11210    ;;
11211  osf4* | osf5*)
11212    case $cc_basename in
11213      KCC)
11214	# Kuck and Associates, Inc. (KAI) C++ Compiler
11215
11216	# KCC will only create a shared library if the output file
11217	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11218	# to its proper name (with version) after linking.
11219	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11220
11221	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11222	hardcode_libdir_separator_CXX=:
11223
11224	# Archives containing C++ object files must be created using
11225	# the KAI C++ compiler.
11226	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11227	;;
11228      RCC)
11229	# Rational C++ 2.4.1
11230	# FIXME: insert proper C++ library support
11231	ld_shlibs_CXX=no
11232	;;
11233      cxx)
11234	allow_undefined_flag_CXX=' -expect_unresolved \*'
11235	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11236	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11237	  echo "-hidden">> $lib.exp~
11238	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
11239	  $rm $lib.exp'
11240
11241	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11242	hardcode_libdir_separator_CXX=:
11243
11244	# Commands to make compiler produce verbose output that lists
11245	# what "hidden" libraries, object files and flags are used when
11246	# linking a shared library.
11247	#
11248	# There doesn't appear to be a way to prevent this compiler from
11249	# explicitly linking system object files so we need to strip them
11250	# from the output so that they don't get included in the library
11251	# dependencies.
11252	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11253	;;
11254      *)
11255	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11256	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11257	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11258
11259	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11260	  hardcode_libdir_separator_CXX=:
11261
11262	  # Commands to make compiler produce verbose output that lists
11263	  # what "hidden" libraries, object files and flags are used when
11264	  # linking a shared library.
11265	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11266
11267	else
11268	  # FIXME: insert proper C++ library support
11269	  ld_shlibs_CXX=no
11270	fi
11271	;;
11272    esac
11273    ;;
11274  psos*)
11275    # FIXME: insert proper C++ library support
11276    ld_shlibs_CXX=no
11277    ;;
11278  sco*)
11279    archive_cmds_need_lc_CXX=no
11280    case $cc_basename in
11281      CC)
11282	# FIXME: insert proper C++ library support
11283	ld_shlibs_CXX=no
11284	;;
11285      *)
11286	# FIXME: insert proper C++ library support
11287	ld_shlibs_CXX=no
11288	;;
11289    esac
11290    ;;
11291  sunos4*)
11292    case $cc_basename in
11293      CC)
11294	# Sun C++ 4.x
11295	# FIXME: insert proper C++ library support
11296	ld_shlibs_CXX=no
11297	;;
11298      lcc)
11299	# Lucid
11300	# FIXME: insert proper C++ library support
11301	ld_shlibs_CXX=no
11302	;;
11303      *)
11304	# FIXME: insert proper C++ library support
11305	ld_shlibs_CXX=no
11306	;;
11307    esac
11308    ;;
11309  solaris*)
11310    case $cc_basename in
11311      CC)
11312	# Sun C++ 4.2, 5.x and Centerline C++
11313	no_undefined_flag_CXX=' -zdefs'
11314	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11315	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11316	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11317
11318	hardcode_libdir_flag_spec_CXX='-R$libdir'
11319	hardcode_shlibpath_var_CXX=no
11320	case $host_os in
11321	  solaris2.0-5 | solaris2.0-5.*) ;;
11322	  *)
11323	    # The C++ compiler is used as linker so we must use $wl
11324	    # flag to pass the commands to the underlying system
11325	    # linker.
11326	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11327	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11328	    ;;
11329	esac
11330	link_all_deplibs_CXX=yes
11331
11332	# Commands to make compiler produce verbose output that lists
11333	# what "hidden" libraries, object files and flags are used when
11334	# linking a shared library.
11335	#
11336	# There doesn't appear to be a way to prevent this compiler from
11337	# explicitly linking system object files so we need to strip them
11338	# from the output so that they don't get included in the library
11339	# dependencies.
11340	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11341
11342	# Archives containing C++ object files must be created using
11343	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11344	# necessary to make sure instantiated templates are included
11345	# in the archive.
11346	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11347	;;
11348      gcx)
11349	# Green Hills C++ Compiler
11350	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11351
11352	# The C++ compiler must be used to create the archive.
11353	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11354	;;
11355      *)
11356	# GNU C++ compiler with Solaris linker
11357	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11358	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11359	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11360	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11361	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11362		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11363
11364	    # Commands to make compiler produce verbose output that lists
11365	    # what "hidden" libraries, object files and flags are used when
11366	    # linking a shared library.
11367	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11368	  else
11369	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11370	    # platform.
11371	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11372	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11373		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11374
11375	    # Commands to make compiler produce verbose output that lists
11376	    # what "hidden" libraries, object files and flags are used when
11377	    # linking a shared library.
11378	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11379	  fi
11380
11381	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11382	fi
11383	;;
11384    esac
11385    ;;
11386  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11387    archive_cmds_need_lc_CXX=no
11388    ;;
11389  tandem*)
11390    case $cc_basename in
11391      NCC)
11392	# NonStop-UX NCC 3.20
11393	# FIXME: insert proper C++ library support
11394	ld_shlibs_CXX=no
11395	;;
11396      *)
11397	# FIXME: insert proper C++ library support
11398	ld_shlibs_CXX=no
11399	;;
11400    esac
11401    ;;
11402  vxworks*)
11403    # FIXME: insert proper C++ library support
11404    ld_shlibs_CXX=no
11405    ;;
11406  *)
11407    # FIXME: insert proper C++ library support
11408    ld_shlibs_CXX=no
11409    ;;
11410esac
11411echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11412echo "${ECHO_T}$ld_shlibs_CXX" >&6
11413test "$ld_shlibs_CXX" = no && can_build_shared=no
11414
11415GCC_CXX="$GXX"
11416LD_CXX="$LD"
11417
11418
11419cat > conftest.$ac_ext <<EOF
11420class Foo
11421{
11422public:
11423  Foo (void) { a = 0; }
11424private:
11425  int a;
11426};
11427EOF
11428
11429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430  (eval $ac_compile) 2>&5
11431  ac_status=$?
11432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433  (exit $ac_status); }; then
11434  # Parse the compiler output and extract the necessary
11435  # objects, libraries and library flags.
11436
11437  # Sentinel used to keep track of whether or not we are before
11438  # the conftest object file.
11439  pre_test_object_deps_done=no
11440
11441  # The `*' in the case matches for architectures that use `case' in
11442  # $output_verbose_cmd can trigger glob expansion during the loop
11443  # eval without this substitution.
11444  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11445
11446  for p in `eval $output_verbose_link_cmd`; do
11447    case $p in
11448
11449    -L* | -R* | -l*)
11450       # Some compilers place space between "-{L,R}" and the path.
11451       # Remove the space.
11452       if test $p = "-L" \
11453	  || test $p = "-R"; then
11454	 prev=$p
11455	 continue
11456       else
11457	 prev=
11458       fi
11459
11460       if test "$pre_test_object_deps_done" = no; then
11461	 case $p in
11462	 -L* | -R*)
11463	   # Internal compiler library paths should come after those
11464	   # provided the user.  The postdeps already come after the
11465	   # user supplied libs so there is no need to process them.
11466	   if test -z "$compiler_lib_search_path_CXX"; then
11467	     compiler_lib_search_path_CXX="${prev}${p}"
11468	   else
11469	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11470	   fi
11471	   ;;
11472	 # The "-l" case would never come before the object being
11473	 # linked, so don't bother handling this case.
11474	 esac
11475       else
11476	 if test -z "$postdeps_CXX"; then
11477	   postdeps_CXX="${prev}${p}"
11478	 else
11479	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11480	 fi
11481       fi
11482       ;;
11483
11484    *.$objext)
11485       # This assumes that the test object file only shows up
11486       # once in the compiler output.
11487       if test "$p" = "conftest.$objext"; then
11488	 pre_test_object_deps_done=yes
11489	 continue
11490       fi
11491
11492       if test "$pre_test_object_deps_done" = no; then
11493	 if test -z "$predep_objects_CXX"; then
11494	   predep_objects_CXX="$p"
11495	 else
11496	   predep_objects_CXX="$predep_objects_CXX $p"
11497	 fi
11498       else
11499	 if test -z "$postdep_objects_CXX"; then
11500	   postdep_objects_CXX="$p"
11501	 else
11502	   postdep_objects_CXX="$postdep_objects_CXX $p"
11503	 fi
11504       fi
11505       ;;
11506
11507    *) ;; # Ignore the rest.
11508
11509    esac
11510  done
11511
11512  # Clean up.
11513  rm -f a.out a.exe
11514else
11515  echo "libtool.m4: error: problem compiling CXX test program"
11516fi
11517
11518$rm -f confest.$objext
11519
11520case " $postdeps_CXX " in
11521*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11522esac
11523
11524lt_prog_compiler_wl_CXX=
11525lt_prog_compiler_pic_CXX=
11526lt_prog_compiler_static_CXX=
11527
11528echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11529echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11530
11531  # C++ specific cases for pic, static, wl, etc.
11532  if test "$GXX" = yes; then
11533    lt_prog_compiler_wl_CXX='-Wl,'
11534    lt_prog_compiler_static_CXX='-static'
11535
11536    case $host_os in
11537    aix*)
11538      # All AIX code is PIC.
11539      if test "$host_cpu" = ia64; then
11540	# AIX 5 now supports IA64 processor
11541	lt_prog_compiler_static_CXX='-Bstatic'
11542      fi
11543      ;;
11544    amigaos*)
11545      # FIXME: we need at least 68020 code to build shared libraries, but
11546      # adding the `-m68020' flag to GCC prevents building anything better,
11547      # like `-m68040'.
11548      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11549      ;;
11550    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11551      # PIC is the default for these OSes.
11552      ;;
11553    mingw* | os2* | pw32*)
11554      # This hack is so that the source file can tell whether it is being
11555      # built for inclusion in a dll (and should export symbols for example).
11556      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11557      ;;
11558    darwin* | rhapsody*)
11559      # PIC is the default on this platform
11560      # Common symbols not allowed in MH_DYLIB files
11561      lt_prog_compiler_pic_CXX='-fno-common'
11562      ;;
11563    *djgpp*)
11564      # DJGPP does not support shared libraries at all
11565      lt_prog_compiler_pic_CXX=
11566      ;;
11567    sysv4*MP*)
11568      if test -d /usr/nec; then
11569	lt_prog_compiler_pic_CXX=-Kconform_pic
11570      fi
11571      ;;
11572    hpux*)
11573      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11574      # not for PA HP-UX.
11575      case "$host_cpu" in
11576      hppa*64*|ia64*)
11577	;;
11578      *)
11579	lt_prog_compiler_pic_CXX='-fPIC'
11580	;;
11581      esac
11582      ;;
11583    *)
11584      lt_prog_compiler_pic_CXX='-fPIC'
11585      ;;
11586    esac
11587  else
11588    case $host_os in
11589      aix4* | aix5*)
11590	# All AIX code is PIC.
11591	if test "$host_cpu" = ia64; then
11592	  # AIX 5 now supports IA64 processor
11593	  lt_prog_compiler_static_CXX='-Bstatic'
11594	else
11595	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11596	fi
11597	;;
11598      chorus*)
11599	case $cc_basename in
11600	cxch68)
11601	  # Green Hills C++ Compiler
11602	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11603	  ;;
11604	esac
11605	;;
11606      dgux*)
11607	case $cc_basename in
11608	  ec++)
11609	    lt_prog_compiler_pic_CXX='-KPIC'
11610	    ;;
11611	  ghcx)
11612	    # Green Hills C++ Compiler
11613	    lt_prog_compiler_pic_CXX='-pic'
11614	    ;;
11615	  *)
11616	    ;;
11617	esac
11618	;;
11619      freebsd* | kfreebsd*-gnu)
11620	# FreeBSD uses GNU C++
11621	;;
11622      hpux9* | hpux10* | hpux11*)
11623	case $cc_basename in
11624	  CC)
11625	    lt_prog_compiler_wl_CXX='-Wl,'
11626	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11627	    if test "$host_cpu" != ia64; then
11628	      lt_prog_compiler_pic_CXX='+Z'
11629	    fi
11630	    ;;
11631	  aCC)
11632	    lt_prog_compiler_wl_CXX='-Wl,'
11633	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11634	    case "$host_cpu" in
11635	    hppa*64*|ia64*)
11636	      # +Z the default
11637	      ;;
11638	    *)
11639	      lt_prog_compiler_pic_CXX='+Z'
11640	      ;;
11641	    esac
11642	    ;;
11643	  *)
11644	    ;;
11645	esac
11646	;;
11647      irix5* | irix6* | nonstopux*)
11648	case $cc_basename in
11649	  CC)
11650	    lt_prog_compiler_wl_CXX='-Wl,'
11651	    lt_prog_compiler_static_CXX='-non_shared'
11652	    # CC pic flag -KPIC is the default.
11653	    ;;
11654	  *)
11655	    ;;
11656	esac
11657	;;
11658      linux*)
11659	case $cc_basename in
11660	  KCC)
11661	    # KAI C++ Compiler
11662	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11663	    lt_prog_compiler_pic_CXX='-fPIC'
11664	    ;;
11665	  icpc)
11666	    # Intel C++
11667	    lt_prog_compiler_wl_CXX='-Wl,'
11668	    lt_prog_compiler_pic_CXX='-KPIC'
11669	    lt_prog_compiler_static_CXX='-static'
11670	    ;;
11671	  cxx)
11672	    # Compaq C++
11673	    # Make sure the PIC flag is empty.  It appears that all Alpha
11674	    # Linux and Compaq Tru64 Unix objects are PIC.
11675	    lt_prog_compiler_pic_CXX=
11676	    lt_prog_compiler_static_CXX='-non_shared'
11677	    ;;
11678	  *)
11679	    ;;
11680	esac
11681	;;
11682      lynxos*)
11683	;;
11684      m88k*)
11685	;;
11686      mvs*)
11687	case $cc_basename in
11688	  cxx)
11689	    lt_prog_compiler_pic_CXX='-W c,exportall'
11690	    ;;
11691	  *)
11692	    ;;
11693	esac
11694	;;
11695      netbsd*)
11696	;;
11697      osf3* | osf4* | osf5*)
11698	case $cc_basename in
11699	  KCC)
11700	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11701	    ;;
11702	  RCC)
11703	    # Rational C++ 2.4.1
11704	    lt_prog_compiler_pic_CXX='-pic'
11705	    ;;
11706	  cxx)
11707	    # Digital/Compaq C++
11708	    lt_prog_compiler_wl_CXX='-Wl,'
11709	    # Make sure the PIC flag is empty.  It appears that all Alpha
11710	    # Linux and Compaq Tru64 Unix objects are PIC.
11711	    lt_prog_compiler_pic_CXX=
11712	    lt_prog_compiler_static_CXX='-non_shared'
11713	    ;;
11714	  *)
11715	    ;;
11716	esac
11717	;;
11718      psos*)
11719	;;
11720      sco*)
11721	case $cc_basename in
11722	  CC)
11723	    lt_prog_compiler_pic_CXX='-fPIC'
11724	    ;;
11725	  *)
11726	    ;;
11727	esac
11728	;;
11729      solaris*)
11730	case $cc_basename in
11731	  CC)
11732	    # Sun C++ 4.2, 5.x and Centerline C++
11733	    lt_prog_compiler_pic_CXX='-KPIC'
11734	    lt_prog_compiler_static_CXX='-Bstatic'
11735	    lt_prog_compiler_wl_CXX='-Qoption ld '
11736	    ;;
11737	  gcx)
11738	    # Green Hills C++ Compiler
11739	    lt_prog_compiler_pic_CXX='-PIC'
11740	    ;;
11741	  *)
11742	    ;;
11743	esac
11744	;;
11745      sunos4*)
11746	case $cc_basename in
11747	  CC)
11748	    # Sun C++ 4.x
11749	    lt_prog_compiler_pic_CXX='-pic'
11750	    lt_prog_compiler_static_CXX='-Bstatic'
11751	    ;;
11752	  lcc)
11753	    # Lucid
11754	    lt_prog_compiler_pic_CXX='-pic'
11755	    ;;
11756	  *)
11757	    ;;
11758	esac
11759	;;
11760      tandem*)
11761	case $cc_basename in
11762	  NCC)
11763	    # NonStop-UX NCC 3.20
11764	    lt_prog_compiler_pic_CXX='-KPIC'
11765	    ;;
11766	  *)
11767	    ;;
11768	esac
11769	;;
11770      unixware*)
11771	;;
11772      vxworks*)
11773	;;
11774      *)
11775	lt_prog_compiler_can_build_shared_CXX=no
11776	;;
11777    esac
11778  fi
11779
11780echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11781echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11782
11783#
11784# Check to make sure the PIC flag actually works.
11785#
11786if test -n "$lt_prog_compiler_pic_CXX"; then
11787
11788echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11789echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11790if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11791  echo $ECHO_N "(cached) $ECHO_C" >&6
11792else
11793  lt_prog_compiler_pic_works_CXX=no
11794  ac_outfile=conftest.$ac_objext
11795   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11796   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11797   # Insert the option either (1) after the last *FLAGS variable, or
11798   # (2) before a word containing "conftest.", or (3) at the end.
11799   # Note that $ac_compile itself does not contain backslashes and begins
11800   # with a dollar sign (not a hyphen), so the echo should work correctly.
11801   # The option is referenced via a variable to avoid confusing sed.
11802   lt_compile=`echo "$ac_compile" | $SED \
11803   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11804   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11805   -e 's:$: $lt_compiler_flag:'`
11806   (eval echo "\"\$as_me:11806: $lt_compile\"" >&5)
11807   (eval "$lt_compile" 2>conftest.err)
11808   ac_status=$?
11809   cat conftest.err >&5
11810   echo "$as_me:11810: \$? = $ac_status" >&5
11811   if (exit $ac_status) && test -s "$ac_outfile"; then
11812     # The compiler can only warn and ignore the option if not recognized
11813     # So say no if there are warnings
11814     if test ! -s conftest.err; then
11815       lt_prog_compiler_pic_works_CXX=yes
11816     fi
11817   fi
11818   $rm conftest*
11819
11820fi
11821echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11822echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11823
11824if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11825    case $lt_prog_compiler_pic_CXX in
11826     "" | " "*) ;;
11827     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11828     esac
11829else
11830    lt_prog_compiler_pic_CXX=
11831     lt_prog_compiler_can_build_shared_CXX=no
11832fi
11833
11834fi
11835case "$host_os" in
11836  # For platforms which do not support PIC, -DPIC is meaningless:
11837  *djgpp*)
11838    lt_prog_compiler_pic_CXX=
11839    ;;
11840  *)
11841    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11842    ;;
11843esac
11844
11845echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11846echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11847if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11848  echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850  lt_cv_prog_compiler_c_o_CXX=no
11851   $rm -r conftest 2>/dev/null
11852   mkdir conftest
11853   cd conftest
11854   mkdir out
11855   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11856
11857   lt_compiler_flag="-o out/conftest2.$ac_objext"
11858   # Insert the option either (1) after the last *FLAGS variable, or
11859   # (2) before a word containing "conftest.", or (3) at the end.
11860   # Note that $ac_compile itself does not contain backslashes and begins
11861   # with a dollar sign (not a hyphen), so the echo should work correctly.
11862   lt_compile=`echo "$ac_compile" | $SED \
11863   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11864   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11865   -e 's:$: $lt_compiler_flag:'`
11866   (eval echo "\"\$as_me:11866: $lt_compile\"" >&5)
11867   (eval "$lt_compile" 2>out/conftest.err)
11868   ac_status=$?
11869   cat out/conftest.err >&5
11870   echo "$as_me:11870: \$? = $ac_status" >&5
11871   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11872   then
11873     # The compiler can only warn and ignore the option if not recognized
11874     # So say no if there are warnings
11875     if test ! -s out/conftest.err; then
11876       lt_cv_prog_compiler_c_o_CXX=yes
11877     fi
11878   fi
11879   chmod u+w .
11880   $rm conftest*
11881   # SGI C++ compiler will create directory out/ii_files/ for
11882   # template instantiation
11883   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11884   $rm out/* && rmdir out
11885   cd ..
11886   rmdir conftest
11887   $rm conftest*
11888
11889fi
11890echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11891echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11892
11893
11894hard_links="nottested"
11895if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11896  # do not overwrite the value of need_locks provided by the user
11897  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11898echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11899  hard_links=yes
11900  $rm conftest*
11901  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11902  touch conftest.a
11903  ln conftest.a conftest.b 2>&5 || hard_links=no
11904  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11905  echo "$as_me:$LINENO: result: $hard_links" >&5
11906echo "${ECHO_T}$hard_links" >&6
11907  if test "$hard_links" = no; then
11908    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11909echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11910    need_locks=warn
11911  fi
11912else
11913  need_locks=no
11914fi
11915
11916echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11917echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11918
11919  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11920  case $host_os in
11921  aix4* | aix5*)
11922    # If we're using GNU nm, then we don't want the "-C" option.
11923    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11924    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11925      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11926    else
11927      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11928    fi
11929    ;;
11930  pw32*)
11931    export_symbols_cmds_CXX="$ltdll_cmds"
11932  ;;
11933  cygwin* | mingw*)
11934    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11935  ;;
11936  *)
11937    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11938  ;;
11939  esac
11940
11941echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11942echo "${ECHO_T}$ld_shlibs_CXX" >&6
11943test "$ld_shlibs_CXX" = no && can_build_shared=no
11944
11945variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11946if test "$GCC" = yes; then
11947  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11948fi
11949
11950#
11951# Do we need to explicitly link libc?
11952#
11953case "x$archive_cmds_need_lc_CXX" in
11954x|xyes)
11955  # Assume -lc should be added
11956  archive_cmds_need_lc_CXX=yes
11957
11958  if test "$enable_shared" = yes && test "$GCC" = yes; then
11959    case $archive_cmds_CXX in
11960    *'~'*)
11961      # FIXME: we may have to deal with multi-command sequences.
11962      ;;
11963    '$CC '*)
11964      # Test whether the compiler implicitly links with -lc since on some
11965      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11966      # to ld, don't add -lc before -lgcc.
11967      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11968echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11969      $rm conftest*
11970      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11971
11972      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973  (eval $ac_compile) 2>&5
11974  ac_status=$?
11975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976  (exit $ac_status); } 2>conftest.err; then
11977        soname=conftest
11978        lib=conftest
11979        libobjs=conftest.$ac_objext
11980        deplibs=
11981        wl=$lt_prog_compiler_wl_CXX
11982        compiler_flags=-v
11983        linker_flags=-v
11984        verstring=
11985        output_objdir=.
11986        libname=conftest
11987        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11988        allow_undefined_flag_CXX=
11989        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11990  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11991  ac_status=$?
11992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993  (exit $ac_status); }
11994        then
11995	  archive_cmds_need_lc_CXX=no
11996        else
11997	  archive_cmds_need_lc_CXX=yes
11998        fi
11999        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12000      else
12001        cat conftest.err 1>&5
12002      fi
12003      $rm conftest*
12004      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12005echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12006      ;;
12007    esac
12008  fi
12009  ;;
12010esac
12011
12012echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12013echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12014library_names_spec=
12015libname_spec='lib$name'
12016soname_spec=
12017shrext=".so"
12018postinstall_cmds=
12019postuninstall_cmds=
12020finish_cmds=
12021finish_eval=
12022shlibpath_var=
12023shlibpath_overrides_runpath=unknown
12024version_type=none
12025dynamic_linker="$host_os ld.so"
12026sys_lib_dlsearch_path_spec="/lib /usr/lib"
12027if test "$GCC" = yes; then
12028  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12029  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12030    # if the path contains ";" then we assume it to be the separator
12031    # otherwise default to the standard path separator (i.e. ":") - it is
12032    # assumed that no part of a normal pathname contains ";" but that should
12033    # okay in the real world where ";" in dirpaths is itself problematic.
12034    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12035  else
12036    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12037  fi
12038else
12039  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12040fi
12041need_lib_prefix=unknown
12042hardcode_into_libs=no
12043
12044# when you set need_version to no, make sure it does not cause -set_version
12045# flags to be left without arguments
12046need_version=unknown
12047
12048case $host_os in
12049aix3*)
12050  version_type=linux
12051  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12052  shlibpath_var=LIBPATH
12053
12054  # AIX 3 has no versioning support, so we append a major version to the name.
12055  soname_spec='${libname}${release}${shared_ext}$major'
12056  ;;
12057
12058aix4* | aix5*)
12059  version_type=linux
12060  need_lib_prefix=no
12061  need_version=no
12062  hardcode_into_libs=yes
12063  if test "$host_cpu" = ia64; then
12064    # AIX 5 supports IA64
12065    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12066    shlibpath_var=LD_LIBRARY_PATH
12067  else
12068    # With GCC up to 2.95.x, collect2 would create an import file
12069    # for dependence libraries.  The import file would start with
12070    # the line `#! .'.  This would cause the generated library to
12071    # depend on `.', always an invalid library.  This was fixed in
12072    # development snapshots of GCC prior to 3.0.
12073    case $host_os in
12074      aix4 | aix4.[01] | aix4.[01].*)
12075      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12076	   echo ' yes '
12077	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12078	:
12079      else
12080	can_build_shared=no
12081      fi
12082      ;;
12083    esac
12084    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12085    # soname into executable. Probably we can add versioning support to
12086    # collect2, so additional links can be useful in future.
12087    if test "$aix_use_runtimelinking" = yes; then
12088      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12089      # instead of lib<name>.a to let people know that these are not
12090      # typical AIX shared libraries.
12091      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12092    else
12093      # We preserve .a as extension for shared libraries through AIX4.2
12094      # and later when we are not doing run time linking.
12095      library_names_spec='${libname}${release}.a $libname.a'
12096      soname_spec='${libname}${release}${shared_ext}$major'
12097    fi
12098    shlibpath_var=LIBPATH
12099  fi
12100  ;;
12101
12102amigaos*)
12103  library_names_spec='$libname.ixlibrary $libname.a'
12104  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12105  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'
12106  ;;
12107
12108beos*)
12109  library_names_spec='${libname}${shared_ext}'
12110  dynamic_linker="$host_os ld.so"
12111  shlibpath_var=LIBRARY_PATH
12112  ;;
12113
12114bsdi4*)
12115  version_type=linux
12116  need_version=no
12117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118  soname_spec='${libname}${release}${shared_ext}$major'
12119  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12120  shlibpath_var=LD_LIBRARY_PATH
12121  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12122  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12123  # the default ld.so.conf also contains /usr/contrib/lib and
12124  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12125  # libtool to hard-code these into programs
12126  ;;
12127
12128cygwin* | mingw* | pw32*)
12129  version_type=windows
12130  shrext=".dll"
12131  need_version=no
12132  need_lib_prefix=no
12133
12134  case $GCC,$host_os in
12135  yes,cygwin* | yes,mingw* | yes,pw32*)
12136    library_names_spec='$libname.dll.a'
12137    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12138    postinstall_cmds='base_file=`basename \${file}`~
12139      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12140      dldir=$destdir/`dirname \$dlpath`~
12141      test -d \$dldir || mkdir -p \$dldir~
12142      $install_prog $dir/$dlname \$dldir/$dlname'
12143    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12144      dlpath=$dir/\$dldll~
12145       $rm \$dlpath'
12146    shlibpath_overrides_runpath=yes
12147
12148    case $host_os in
12149    cygwin*)
12150      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12151      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12152      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12153      ;;
12154    mingw*)
12155      # MinGW DLLs use traditional 'lib' prefix
12156      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12158      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12159        # It is most probably a Windows format PATH printed by
12160        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12161        # path with ; separators, and with drive letters. We can handle the
12162        # drive letters (cygwin fileutils understands them), so leave them,
12163        # especially as we might pass files found there to a mingw objdump,
12164        # which wouldn't understand a cygwinified path. Ahh.
12165        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12166      else
12167        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12168      fi
12169      ;;
12170    pw32*)
12171      # pw32 DLLs use 'pw' prefix rather than 'lib'
12172      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
12173      ;;
12174    esac
12175    ;;
12176
12177  *)
12178    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12179    ;;
12180  esac
12181  dynamic_linker='Win32 ld.exe'
12182  # FIXME: first we should search . and the directory the executable is in
12183  shlibpath_var=PATH
12184  ;;
12185
12186darwin* | rhapsody*)
12187  dynamic_linker="$host_os dyld"
12188  version_type=darwin
12189  need_lib_prefix=no
12190  need_version=no
12191  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12192  soname_spec='${libname}${release}${major}$shared_ext'
12193  shlibpath_overrides_runpath=yes
12194  shlibpath_var=DYLD_LIBRARY_PATH
12195  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
12196  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12197  if test "$GCC" = yes; then
12198    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12199  else
12200    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12201  fi
12202  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12203  ;;
12204
12205dgux*)
12206  version_type=linux
12207  need_lib_prefix=no
12208  need_version=no
12209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12210  soname_spec='${libname}${release}${shared_ext}$major'
12211  shlibpath_var=LD_LIBRARY_PATH
12212  ;;
12213
12214freebsd1*)
12215  dynamic_linker=no
12216  ;;
12217
12218kfreebsd*-gnu)
12219  version_type=linux
12220  need_lib_prefix=no
12221  need_version=no
12222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223  soname_spec='${libname}${release}${shared_ext}$major'
12224  shlibpath_var=LD_LIBRARY_PATH
12225  shlibpath_overrides_runpath=no
12226  hardcode_into_libs=yes
12227  dynamic_linker='GNU ld.so'
12228  ;;
12229
12230freebsd*)
12231  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12232  version_type=freebsd-$objformat
12233  case $version_type in
12234    freebsd-elf*)
12235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12236      need_version=no
12237      need_lib_prefix=no
12238      ;;
12239    freebsd-*)
12240      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12241      need_version=yes
12242      ;;
12243  esac
12244  shlibpath_var=LD_LIBRARY_PATH
12245  case $host_os in
12246  freebsd2*)
12247    shlibpath_overrides_runpath=yes
12248    ;;
12249  freebsd3.01* | freebsdelf3.01*)
12250    shlibpath_overrides_runpath=yes
12251    hardcode_into_libs=yes
12252    ;;
12253  *) # from 3.2 on
12254    shlibpath_overrides_runpath=no
12255    hardcode_into_libs=yes
12256    ;;
12257  esac
12258  ;;
12259
12260gnu*)
12261  version_type=linux
12262  need_lib_prefix=no
12263  need_version=no
12264  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12265  soname_spec='${libname}${release}${shared_ext}$major'
12266  shlibpath_var=LD_LIBRARY_PATH
12267  hardcode_into_libs=yes
12268  ;;
12269
12270hpux9* | hpux10* | hpux11*)
12271  # Give a soname corresponding to the major version so that dld.sl refuses to
12272  # link against other versions.
12273  version_type=sunos
12274  need_lib_prefix=no
12275  need_version=no
12276  case "$host_cpu" in
12277  ia64*)
12278    shrext='.so'
12279    hardcode_into_libs=yes
12280    dynamic_linker="$host_os dld.so"
12281    shlibpath_var=LD_LIBRARY_PATH
12282    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12283    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284    soname_spec='${libname}${release}${shared_ext}$major'
12285    if test "X$HPUX_IA64_MODE" = X32; then
12286      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12287    else
12288      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12289    fi
12290    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12291    ;;
12292   hppa*64*)
12293     shrext='.sl'
12294     hardcode_into_libs=yes
12295     dynamic_linker="$host_os dld.sl"
12296     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12297     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299     soname_spec='${libname}${release}${shared_ext}$major'
12300     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12301     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12302     ;;
12303   *)
12304    shrext='.sl'
12305    dynamic_linker="$host_os dld.sl"
12306    shlibpath_var=SHLIB_PATH
12307    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12308    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309    soname_spec='${libname}${release}${shared_ext}$major'
12310    ;;
12311  esac
12312  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12313  postinstall_cmds='chmod 555 $lib'
12314  ;;
12315
12316irix5* | irix6* | nonstopux*)
12317  case $host_os in
12318    nonstopux*) version_type=nonstopux ;;
12319    *)
12320	if test "$lt_cv_prog_gnu_ld" = yes; then
12321		version_type=linux
12322	else
12323		version_type=irix
12324	fi ;;
12325  esac
12326  need_lib_prefix=no
12327  need_version=no
12328  soname_spec='${libname}${release}${shared_ext}$major'
12329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12330  case $host_os in
12331  irix5* | nonstopux*)
12332    libsuff= shlibsuff=
12333    ;;
12334  *)
12335    case $LD in # libtool.m4 will add one of these switches to LD
12336    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12337      libsuff= shlibsuff= libmagic=32-bit;;
12338    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12339      libsuff=32 shlibsuff=N32 libmagic=N32;;
12340    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12341      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12342    *) libsuff= shlibsuff= libmagic=never-match;;
12343    esac
12344    ;;
12345  esac
12346  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12347  shlibpath_overrides_runpath=no
12348  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12349  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12350  hardcode_into_libs=yes
12351  ;;
12352
12353# No shared lib support for Linux oldld, aout, or coff.
12354linux*oldld* | linux*aout* | linux*coff*)
12355  dynamic_linker=no
12356  ;;
12357
12358# This must be Linux ELF.
12359linux*)
12360  version_type=linux
12361  need_lib_prefix=no
12362  need_version=no
12363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12364  soname_spec='${libname}${release}${shared_ext}$major'
12365  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12366  shlibpath_var=LD_LIBRARY_PATH
12367  shlibpath_overrides_runpath=no
12368  # This implies no fast_install, which is unacceptable.
12369  # Some rework will be needed to allow for fast_install
12370  # before this can be enabled.
12371  hardcode_into_libs=yes
12372
12373  # Append ld.so.conf contents to the search path
12374  if test -f /etc/ld.so.conf; then
12375    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
12376    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
12377  fi
12378
12379  # We used to test for /lib/ld.so.1 and disable shared libraries on
12380  # powerpc, because MkLinux only supported shared libraries with the
12381  # GNU dynamic linker.  Since this was broken with cross compilers,
12382  # most powerpc-linux boxes support dynamic linking these days and
12383  # people can always --disable-shared, the test was removed, and we
12384  # assume the GNU/Linux dynamic linker is in use.
12385  dynamic_linker='GNU/Linux ld.so'
12386  ;;
12387
12388knetbsd*-gnu)
12389  version_type=linux
12390  need_lib_prefix=no
12391  need_version=no
12392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12393  soname_spec='${libname}${release}${shared_ext}$major'
12394  shlibpath_var=LD_LIBRARY_PATH
12395  shlibpath_overrides_runpath=no
12396  hardcode_into_libs=yes
12397  dynamic_linker='GNU ld.so'
12398  ;;
12399
12400netbsd*)
12401  version_type=sunos
12402  need_lib_prefix=no
12403  need_version=no
12404  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12405    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12406    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12407    dynamic_linker='NetBSD (a.out) ld.so'
12408  else
12409    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12410    soname_spec='${libname}${release}${shared_ext}$major'
12411    dynamic_linker='NetBSD ld.elf_so'
12412  fi
12413  shlibpath_var=LD_LIBRARY_PATH
12414  shlibpath_overrides_runpath=yes
12415  hardcode_into_libs=yes
12416  ;;
12417
12418newsos6)
12419  version_type=linux
12420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12421  shlibpath_var=LD_LIBRARY_PATH
12422  shlibpath_overrides_runpath=yes
12423  ;;
12424
12425nto-qnx*)
12426  version_type=linux
12427  need_lib_prefix=no
12428  need_version=no
12429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12430  soname_spec='${libname}${release}${shared_ext}$major'
12431  shlibpath_var=LD_LIBRARY_PATH
12432  shlibpath_overrides_runpath=yes
12433  ;;
12434
12435openbsd*)
12436  version_type=sunos
12437  need_lib_prefix=no
12438  need_version=yes
12439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12441  shlibpath_var=LD_LIBRARY_PATH
12442  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12443    case $host_os in
12444      openbsd2.[89] | openbsd2.[89].*)
12445	shlibpath_overrides_runpath=no
12446	;;
12447      *)
12448	shlibpath_overrides_runpath=yes
12449	;;
12450      esac
12451  else
12452    shlibpath_overrides_runpath=yes
12453  fi
12454  ;;
12455
12456os2*)
12457  libname_spec='$name'
12458  shrext=".dll"
12459  need_lib_prefix=no
12460  library_names_spec='$libname${shared_ext} $libname.a'
12461  dynamic_linker='OS/2 ld.exe'
12462  shlibpath_var=LIBPATH
12463  ;;
12464
12465osf3* | osf4* | osf5*)
12466  version_type=osf
12467  need_lib_prefix=no
12468  need_version=no
12469  soname_spec='${libname}${release}${shared_ext}$major'
12470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471  shlibpath_var=LD_LIBRARY_PATH
12472  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12473  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12474  ;;
12475
12476sco3.2v5*)
12477  version_type=osf
12478  soname_spec='${libname}${release}${shared_ext}$major'
12479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12480  shlibpath_var=LD_LIBRARY_PATH
12481  ;;
12482
12483solaris*)
12484  version_type=linux
12485  need_lib_prefix=no
12486  need_version=no
12487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12488  soname_spec='${libname}${release}${shared_ext}$major'
12489  shlibpath_var=LD_LIBRARY_PATH
12490  shlibpath_overrides_runpath=yes
12491  hardcode_into_libs=yes
12492  # ldd complains unless libraries are executable
12493  postinstall_cmds='chmod +x $lib'
12494  ;;
12495
12496sunos4*)
12497  version_type=sunos
12498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12499  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12500  shlibpath_var=LD_LIBRARY_PATH
12501  shlibpath_overrides_runpath=yes
12502  if test "$with_gnu_ld" = yes; then
12503    need_lib_prefix=no
12504  fi
12505  need_version=yes
12506  ;;
12507
12508sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12509  version_type=linux
12510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511  soname_spec='${libname}${release}${shared_ext}$major'
12512  shlibpath_var=LD_LIBRARY_PATH
12513  case $host_vendor in
12514    sni)
12515      shlibpath_overrides_runpath=no
12516      need_lib_prefix=no
12517      export_dynamic_flag_spec='${wl}-Blargedynsym'
12518      runpath_var=LD_RUN_PATH
12519      ;;
12520    siemens)
12521      need_lib_prefix=no
12522      ;;
12523    motorola)
12524      need_lib_prefix=no
12525      need_version=no
12526      shlibpath_overrides_runpath=no
12527      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12528      ;;
12529  esac
12530  ;;
12531
12532sysv4*MP*)
12533  if test -d /usr/nec ;then
12534    version_type=linux
12535    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12536    soname_spec='$libname${shared_ext}.$major'
12537    shlibpath_var=LD_LIBRARY_PATH
12538  fi
12539  ;;
12540
12541uts4*)
12542  version_type=linux
12543  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544  soname_spec='${libname}${release}${shared_ext}$major'
12545  shlibpath_var=LD_LIBRARY_PATH
12546  ;;
12547
12548*)
12549  dynamic_linker=no
12550  ;;
12551esac
12552echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12553echo "${ECHO_T}$dynamic_linker" >&6
12554test "$dynamic_linker" = no && can_build_shared=no
12555
12556echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12557echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12558hardcode_action_CXX=
12559if test -n "$hardcode_libdir_flag_spec_CXX" || \
12560   test -n "$runpath_var CXX" || \
12561   test "X$hardcode_automatic_CXX"="Xyes" ; then
12562
12563  # We can hardcode non-existant directories.
12564  if test "$hardcode_direct_CXX" != no &&
12565     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12566     # have to relink, otherwise we might link with an installed library
12567     # when we should be linking with a yet-to-be-installed one
12568     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12569     test "$hardcode_minus_L_CXX" != no; then
12570    # Linking always hardcodes the temporary library directory.
12571    hardcode_action_CXX=relink
12572  else
12573    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12574    hardcode_action_CXX=immediate
12575  fi
12576else
12577  # We cannot hardcode anything, or else we can only hardcode existing
12578  # directories.
12579  hardcode_action_CXX=unsupported
12580fi
12581echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12582echo "${ECHO_T}$hardcode_action_CXX" >&6
12583
12584if test "$hardcode_action_CXX" = relink; then
12585  # Fast installation is not supported
12586  enable_fast_install=no
12587elif test "$shlibpath_overrides_runpath" = yes ||
12588     test "$enable_shared" = no; then
12589  # Fast installation is not necessary
12590  enable_fast_install=needless
12591fi
12592
12593striplib=
12594old_striplib=
12595echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12596echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12597if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12598  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12599  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12600  echo "$as_me:$LINENO: result: yes" >&5
12601echo "${ECHO_T}yes" >&6
12602else
12603# FIXME - insert some real tests, host_os isn't really good enough
12604  case $host_os in
12605   darwin*)
12606       if test -n "$STRIP" ; then
12607         striplib="$STRIP -x"
12608         echo "$as_me:$LINENO: result: yes" >&5
12609echo "${ECHO_T}yes" >&6
12610       else
12611  echo "$as_me:$LINENO: result: no" >&5
12612echo "${ECHO_T}no" >&6
12613fi
12614       ;;
12615   *)
12616  echo "$as_me:$LINENO: result: no" >&5
12617echo "${ECHO_T}no" >&6
12618    ;;
12619  esac
12620fi
12621
12622if test "x$enable_dlopen" != xyes; then
12623  enable_dlopen=unknown
12624  enable_dlopen_self=unknown
12625  enable_dlopen_self_static=unknown
12626else
12627  lt_cv_dlopen=no
12628  lt_cv_dlopen_libs=
12629
12630  case $host_os in
12631  beos*)
12632    lt_cv_dlopen="load_add_on"
12633    lt_cv_dlopen_libs=
12634    lt_cv_dlopen_self=yes
12635    ;;
12636
12637  mingw* | pw32*)
12638    lt_cv_dlopen="LoadLibrary"
12639    lt_cv_dlopen_libs=
12640   ;;
12641
12642  cygwin*)
12643    lt_cv_dlopen="dlopen"
12644    lt_cv_dlopen_libs=
12645   ;;
12646
12647  darwin*)
12648  # if libdl is installed we need to link against it
12649    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12650echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12651if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12652  echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654  ac_check_lib_save_LIBS=$LIBS
12655LIBS="-ldl  $LIBS"
12656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h.  */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h.  */
12662
12663/* Override any gcc2 internal prototype to avoid an error.  */
12664#ifdef __cplusplus
12665extern "C"
12666#endif
12667/* We use char because int might match the return type of a gcc2
12668   builtin and then its argument prototype would still apply.  */
12669char dlopen ();
12670int
12671main ()
12672{
12673dlopen ();
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext conftest$ac_exeext
12679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12680  (eval $ac_link) 2>conftest.er1
12681  ac_status=$?
12682  grep -v '^ *+' conftest.er1 >conftest.err
12683  rm -f conftest.er1
12684  cat conftest.err >&5
12685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686  (exit $ac_status); } &&
12687	 { ac_try='test -z "$ac_cxx_werror_flag"
12688			 || test ! -s conftest.err'
12689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690  (eval $ac_try) 2>&5
12691  ac_status=$?
12692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693  (exit $ac_status); }; } &&
12694	 { ac_try='test -s conftest$ac_exeext'
12695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696  (eval $ac_try) 2>&5
12697  ac_status=$?
12698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699  (exit $ac_status); }; }; then
12700  ac_cv_lib_dl_dlopen=yes
12701else
12702  echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
12705ac_cv_lib_dl_dlopen=no
12706fi
12707rm -f conftest.err conftest.$ac_objext \
12708      conftest$ac_exeext conftest.$ac_ext
12709LIBS=$ac_check_lib_save_LIBS
12710fi
12711echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12712echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12713if test $ac_cv_lib_dl_dlopen = yes; then
12714  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12715else
12716
12717    lt_cv_dlopen="dyld"
12718    lt_cv_dlopen_libs=
12719    lt_cv_dlopen_self=yes
12720
12721fi
12722
12723   ;;
12724
12725  *)
12726    echo "$as_me:$LINENO: checking for shl_load" >&5
12727echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12728if test "${ac_cv_func_shl_load+set}" = set; then
12729  echo $ECHO_N "(cached) $ECHO_C" >&6
12730else
12731  cat >conftest.$ac_ext <<_ACEOF
12732/* confdefs.h.  */
12733_ACEOF
12734cat confdefs.h >>conftest.$ac_ext
12735cat >>conftest.$ac_ext <<_ACEOF
12736/* end confdefs.h.  */
12737/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12739#define shl_load innocuous_shl_load
12740
12741/* System header to define __stub macros and hopefully few prototypes,
12742    which can conflict with char shl_load (); below.
12743    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12744    <limits.h> exists even on freestanding compilers.  */
12745
12746#ifdef __STDC__
12747# include <limits.h>
12748#else
12749# include <assert.h>
12750#endif
12751
12752#undef shl_load
12753
12754/* Override any gcc2 internal prototype to avoid an error.  */
12755#ifdef __cplusplus
12756extern "C"
12757{
12758#endif
12759/* We use char because int might match the return type of a gcc2
12760   builtin and then its argument prototype would still apply.  */
12761char shl_load ();
12762/* The GNU C library defines this for functions which it implements
12763    to always fail with ENOSYS.  Some functions are actually named
12764    something starting with __ and the normal name is an alias.  */
12765#if defined (__stub_shl_load) || defined (__stub___shl_load)
12766choke me
12767#else
12768char (*f) () = shl_load;
12769#endif
12770#ifdef __cplusplus
12771}
12772#endif
12773
12774int
12775main ()
12776{
12777return f != shl_load;
12778  ;
12779  return 0;
12780}
12781_ACEOF
12782rm -f conftest.$ac_objext conftest$ac_exeext
12783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12784  (eval $ac_link) 2>conftest.er1
12785  ac_status=$?
12786  grep -v '^ *+' conftest.er1 >conftest.err
12787  rm -f conftest.er1
12788  cat conftest.err >&5
12789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790  (exit $ac_status); } &&
12791	 { ac_try='test -z "$ac_cxx_werror_flag"
12792			 || test ! -s conftest.err'
12793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794  (eval $ac_try) 2>&5
12795  ac_status=$?
12796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797  (exit $ac_status); }; } &&
12798	 { ac_try='test -s conftest$ac_exeext'
12799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800  (eval $ac_try) 2>&5
12801  ac_status=$?
12802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803  (exit $ac_status); }; }; then
12804  ac_cv_func_shl_load=yes
12805else
12806  echo "$as_me: failed program was:" >&5
12807sed 's/^/| /' conftest.$ac_ext >&5
12808
12809ac_cv_func_shl_load=no
12810fi
12811rm -f conftest.err conftest.$ac_objext \
12812      conftest$ac_exeext conftest.$ac_ext
12813fi
12814echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12815echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12816if test $ac_cv_func_shl_load = yes; then
12817  lt_cv_dlopen="shl_load"
12818else
12819  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12820echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12821if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12822  echo $ECHO_N "(cached) $ECHO_C" >&6
12823else
12824  ac_check_lib_save_LIBS=$LIBS
12825LIBS="-ldld  $LIBS"
12826cat >conftest.$ac_ext <<_ACEOF
12827/* confdefs.h.  */
12828_ACEOF
12829cat confdefs.h >>conftest.$ac_ext
12830cat >>conftest.$ac_ext <<_ACEOF
12831/* end confdefs.h.  */
12832
12833/* Override any gcc2 internal prototype to avoid an error.  */
12834#ifdef __cplusplus
12835extern "C"
12836#endif
12837/* We use char because int might match the return type of a gcc2
12838   builtin and then its argument prototype would still apply.  */
12839char shl_load ();
12840int
12841main ()
12842{
12843shl_load ();
12844  ;
12845  return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext conftest$ac_exeext
12849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850  (eval $ac_link) 2>conftest.er1
12851  ac_status=$?
12852  grep -v '^ *+' conftest.er1 >conftest.err
12853  rm -f conftest.er1
12854  cat conftest.err >&5
12855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856  (exit $ac_status); } &&
12857	 { ac_try='test -z "$ac_cxx_werror_flag"
12858			 || test ! -s conftest.err'
12859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860  (eval $ac_try) 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }; } &&
12864	 { ac_try='test -s conftest$ac_exeext'
12865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866  (eval $ac_try) 2>&5
12867  ac_status=$?
12868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869  (exit $ac_status); }; }; then
12870  ac_cv_lib_dld_shl_load=yes
12871else
12872  echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875ac_cv_lib_dld_shl_load=no
12876fi
12877rm -f conftest.err conftest.$ac_objext \
12878      conftest$ac_exeext conftest.$ac_ext
12879LIBS=$ac_check_lib_save_LIBS
12880fi
12881echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12883if test $ac_cv_lib_dld_shl_load = yes; then
12884  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12885else
12886  echo "$as_me:$LINENO: checking for dlopen" >&5
12887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12888if test "${ac_cv_func_dlopen+set}" = set; then
12889  echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891  cat >conftest.$ac_ext <<_ACEOF
12892/* confdefs.h.  */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h.  */
12897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12898   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12899#define dlopen innocuous_dlopen
12900
12901/* System header to define __stub macros and hopefully few prototypes,
12902    which can conflict with char dlopen (); below.
12903    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12904    <limits.h> exists even on freestanding compilers.  */
12905
12906#ifdef __STDC__
12907# include <limits.h>
12908#else
12909# include <assert.h>
12910#endif
12911
12912#undef dlopen
12913
12914/* Override any gcc2 internal prototype to avoid an error.  */
12915#ifdef __cplusplus
12916extern "C"
12917{
12918#endif
12919/* We use char because int might match the return type of a gcc2
12920   builtin and then its argument prototype would still apply.  */
12921char dlopen ();
12922/* The GNU C library defines this for functions which it implements
12923    to always fail with ENOSYS.  Some functions are actually named
12924    something starting with __ and the normal name is an alias.  */
12925#if defined (__stub_dlopen) || defined (__stub___dlopen)
12926choke me
12927#else
12928char (*f) () = dlopen;
12929#endif
12930#ifdef __cplusplus
12931}
12932#endif
12933
12934int
12935main ()
12936{
12937return f != dlopen;
12938  ;
12939  return 0;
12940}
12941_ACEOF
12942rm -f conftest.$ac_objext conftest$ac_exeext
12943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12944  (eval $ac_link) 2>conftest.er1
12945  ac_status=$?
12946  grep -v '^ *+' conftest.er1 >conftest.err
12947  rm -f conftest.er1
12948  cat conftest.err >&5
12949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950  (exit $ac_status); } &&
12951	 { ac_try='test -z "$ac_cxx_werror_flag"
12952			 || test ! -s conftest.err'
12953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12954  (eval $ac_try) 2>&5
12955  ac_status=$?
12956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957  (exit $ac_status); }; } &&
12958	 { ac_try='test -s conftest$ac_exeext'
12959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960  (eval $ac_try) 2>&5
12961  ac_status=$?
12962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963  (exit $ac_status); }; }; then
12964  ac_cv_func_dlopen=yes
12965else
12966  echo "$as_me: failed program was:" >&5
12967sed 's/^/| /' conftest.$ac_ext >&5
12968
12969ac_cv_func_dlopen=no
12970fi
12971rm -f conftest.err conftest.$ac_objext \
12972      conftest$ac_exeext conftest.$ac_ext
12973fi
12974echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12975echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12976if test $ac_cv_func_dlopen = yes; then
12977  lt_cv_dlopen="dlopen"
12978else
12979  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12980echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12981if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12982  echo $ECHO_N "(cached) $ECHO_C" >&6
12983else
12984  ac_check_lib_save_LIBS=$LIBS
12985LIBS="-ldl  $LIBS"
12986cat >conftest.$ac_ext <<_ACEOF
12987/* confdefs.h.  */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h.  */
12992
12993/* Override any gcc2 internal prototype to avoid an error.  */
12994#ifdef __cplusplus
12995extern "C"
12996#endif
12997/* We use char because int might match the return type of a gcc2
12998   builtin and then its argument prototype would still apply.  */
12999char dlopen ();
13000int
13001main ()
13002{
13003dlopen ();
13004  ;
13005  return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext conftest$ac_exeext
13009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13010  (eval $ac_link) 2>conftest.er1
13011  ac_status=$?
13012  grep -v '^ *+' conftest.er1 >conftest.err
13013  rm -f conftest.er1
13014  cat conftest.err >&5
13015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016  (exit $ac_status); } &&
13017	 { ac_try='test -z "$ac_cxx_werror_flag"
13018			 || test ! -s conftest.err'
13019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13020  (eval $ac_try) 2>&5
13021  ac_status=$?
13022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023  (exit $ac_status); }; } &&
13024	 { ac_try='test -s conftest$ac_exeext'
13025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026  (eval $ac_try) 2>&5
13027  ac_status=$?
13028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029  (exit $ac_status); }; }; then
13030  ac_cv_lib_dl_dlopen=yes
13031else
13032  echo "$as_me: failed program was:" >&5
13033sed 's/^/| /' conftest.$ac_ext >&5
13034
13035ac_cv_lib_dl_dlopen=no
13036fi
13037rm -f conftest.err conftest.$ac_objext \
13038      conftest$ac_exeext conftest.$ac_ext
13039LIBS=$ac_check_lib_save_LIBS
13040fi
13041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13043if test $ac_cv_lib_dl_dlopen = yes; then
13044  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13045else
13046  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13047echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13048if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13049  echo $ECHO_N "(cached) $ECHO_C" >&6
13050else
13051  ac_check_lib_save_LIBS=$LIBS
13052LIBS="-lsvld  $LIBS"
13053cat >conftest.$ac_ext <<_ACEOF
13054/* confdefs.h.  */
13055_ACEOF
13056cat confdefs.h >>conftest.$ac_ext
13057cat >>conftest.$ac_ext <<_ACEOF
13058/* end confdefs.h.  */
13059
13060/* Override any gcc2 internal prototype to avoid an error.  */
13061#ifdef __cplusplus
13062extern "C"
13063#endif
13064/* We use char because int might match the return type of a gcc2
13065   builtin and then its argument prototype would still apply.  */
13066char dlopen ();
13067int
13068main ()
13069{
13070dlopen ();
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075rm -f conftest.$ac_objext conftest$ac_exeext
13076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077  (eval $ac_link) 2>conftest.er1
13078  ac_status=$?
13079  grep -v '^ *+' conftest.er1 >conftest.err
13080  rm -f conftest.er1
13081  cat conftest.err >&5
13082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083  (exit $ac_status); } &&
13084	 { ac_try='test -z "$ac_cxx_werror_flag"
13085			 || test ! -s conftest.err'
13086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087  (eval $ac_try) 2>&5
13088  ac_status=$?
13089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090  (exit $ac_status); }; } &&
13091	 { ac_try='test -s conftest$ac_exeext'
13092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093  (eval $ac_try) 2>&5
13094  ac_status=$?
13095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096  (exit $ac_status); }; }; then
13097  ac_cv_lib_svld_dlopen=yes
13098else
13099  echo "$as_me: failed program was:" >&5
13100sed 's/^/| /' conftest.$ac_ext >&5
13101
13102ac_cv_lib_svld_dlopen=no
13103fi
13104rm -f conftest.err conftest.$ac_objext \
13105      conftest$ac_exeext conftest.$ac_ext
13106LIBS=$ac_check_lib_save_LIBS
13107fi
13108echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13109echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13110if test $ac_cv_lib_svld_dlopen = yes; then
13111  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13112else
13113  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13114echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13115if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13116  echo $ECHO_N "(cached) $ECHO_C" >&6
13117else
13118  ac_check_lib_save_LIBS=$LIBS
13119LIBS="-ldld  $LIBS"
13120cat >conftest.$ac_ext <<_ACEOF
13121/* confdefs.h.  */
13122_ACEOF
13123cat confdefs.h >>conftest.$ac_ext
13124cat >>conftest.$ac_ext <<_ACEOF
13125/* end confdefs.h.  */
13126
13127/* Override any gcc2 internal prototype to avoid an error.  */
13128#ifdef __cplusplus
13129extern "C"
13130#endif
13131/* We use char because int might match the return type of a gcc2
13132   builtin and then its argument prototype would still apply.  */
13133char dld_link ();
13134int
13135main ()
13136{
13137dld_link ();
13138  ;
13139  return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext conftest$ac_exeext
13143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13144  (eval $ac_link) 2>conftest.er1
13145  ac_status=$?
13146  grep -v '^ *+' conftest.er1 >conftest.err
13147  rm -f conftest.er1
13148  cat conftest.err >&5
13149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150  (exit $ac_status); } &&
13151	 { ac_try='test -z "$ac_cxx_werror_flag"
13152			 || test ! -s conftest.err'
13153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154  (eval $ac_try) 2>&5
13155  ac_status=$?
13156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157  (exit $ac_status); }; } &&
13158	 { ac_try='test -s conftest$ac_exeext'
13159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160  (eval $ac_try) 2>&5
13161  ac_status=$?
13162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163  (exit $ac_status); }; }; then
13164  ac_cv_lib_dld_dld_link=yes
13165else
13166  echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169ac_cv_lib_dld_dld_link=no
13170fi
13171rm -f conftest.err conftest.$ac_objext \
13172      conftest$ac_exeext conftest.$ac_ext
13173LIBS=$ac_check_lib_save_LIBS
13174fi
13175echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13176echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13177if test $ac_cv_lib_dld_dld_link = yes; then
13178  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13179fi
13180
13181
13182fi
13183
13184
13185fi
13186
13187
13188fi
13189
13190
13191fi
13192
13193
13194fi
13195
13196    ;;
13197  esac
13198
13199  if test "x$lt_cv_dlopen" != xno; then
13200    enable_dlopen=yes
13201  else
13202    enable_dlopen=no
13203  fi
13204
13205  case $lt_cv_dlopen in
13206  dlopen)
13207    save_CPPFLAGS="$CPPFLAGS"
13208    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13209
13210    save_LDFLAGS="$LDFLAGS"
13211    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13212
13213    save_LIBS="$LIBS"
13214    LIBS="$lt_cv_dlopen_libs $LIBS"
13215
13216    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13217echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13218if test "${lt_cv_dlopen_self+set}" = set; then
13219  echo $ECHO_N "(cached) $ECHO_C" >&6
13220else
13221  	  if test "$cross_compiling" = yes; then :
13222  lt_cv_dlopen_self=cross
13223else
13224  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13225  lt_status=$lt_dlunknown
13226  cat > conftest.$ac_ext <<EOF
13227#line 13227 "configure"
13228#include "confdefs.h"
13229
13230#if HAVE_DLFCN_H
13231#include <dlfcn.h>
13232#endif
13233
13234#include <stdio.h>
13235
13236#ifdef RTLD_GLOBAL
13237#  define LT_DLGLOBAL		RTLD_GLOBAL
13238#else
13239#  ifdef DL_GLOBAL
13240#    define LT_DLGLOBAL		DL_GLOBAL
13241#  else
13242#    define LT_DLGLOBAL		0
13243#  endif
13244#endif
13245
13246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13247   find out it does not work in some platform. */
13248#ifndef LT_DLLAZY_OR_NOW
13249#  ifdef RTLD_LAZY
13250#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13251#  else
13252#    ifdef DL_LAZY
13253#      define LT_DLLAZY_OR_NOW		DL_LAZY
13254#    else
13255#      ifdef RTLD_NOW
13256#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13257#      else
13258#        ifdef DL_NOW
13259#          define LT_DLLAZY_OR_NOW	DL_NOW
13260#        else
13261#          define LT_DLLAZY_OR_NOW	0
13262#        endif
13263#      endif
13264#    endif
13265#  endif
13266#endif
13267
13268#ifdef __cplusplus
13269extern "C" void exit (int);
13270#endif
13271
13272void fnord() { int i=42;}
13273int main ()
13274{
13275  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13276  int status = $lt_dlunknown;
13277
13278  if (self)
13279    {
13280      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13281      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13282      /* dlclose (self); */
13283    }
13284
13285    exit (status);
13286}
13287EOF
13288  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13289  (eval $ac_link) 2>&5
13290  ac_status=$?
13291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13293    (./conftest; exit; ) 2>/dev/null
13294    lt_status=$?
13295    case x$lt_status in
13296      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13297      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13298      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13299    esac
13300  else :
13301    # compilation failed
13302    lt_cv_dlopen_self=no
13303  fi
13304fi
13305rm -fr conftest*
13306
13307
13308fi
13309echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13310echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13311
13312    if test "x$lt_cv_dlopen_self" = xyes; then
13313      LDFLAGS="$LDFLAGS $link_static_flag"
13314      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13315echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13316if test "${lt_cv_dlopen_self_static+set}" = set; then
13317  echo $ECHO_N "(cached) $ECHO_C" >&6
13318else
13319  	  if test "$cross_compiling" = yes; then :
13320  lt_cv_dlopen_self_static=cross
13321else
13322  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13323  lt_status=$lt_dlunknown
13324  cat > conftest.$ac_ext <<EOF
13325#line 13325 "configure"
13326#include "confdefs.h"
13327
13328#if HAVE_DLFCN_H
13329#include <dlfcn.h>
13330#endif
13331
13332#include <stdio.h>
13333
13334#ifdef RTLD_GLOBAL
13335#  define LT_DLGLOBAL		RTLD_GLOBAL
13336#else
13337#  ifdef DL_GLOBAL
13338#    define LT_DLGLOBAL		DL_GLOBAL
13339#  else
13340#    define LT_DLGLOBAL		0
13341#  endif
13342#endif
13343
13344/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13345   find out it does not work in some platform. */
13346#ifndef LT_DLLAZY_OR_NOW
13347#  ifdef RTLD_LAZY
13348#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13349#  else
13350#    ifdef DL_LAZY
13351#      define LT_DLLAZY_OR_NOW		DL_LAZY
13352#    else
13353#      ifdef RTLD_NOW
13354#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13355#      else
13356#        ifdef DL_NOW
13357#          define LT_DLLAZY_OR_NOW	DL_NOW
13358#        else
13359#          define LT_DLLAZY_OR_NOW	0
13360#        endif
13361#      endif
13362#    endif
13363#  endif
13364#endif
13365
13366#ifdef __cplusplus
13367extern "C" void exit (int);
13368#endif
13369
13370void fnord() { int i=42;}
13371int main ()
13372{
13373  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13374  int status = $lt_dlunknown;
13375
13376  if (self)
13377    {
13378      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13379      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13380      /* dlclose (self); */
13381    }
13382
13383    exit (status);
13384}
13385EOF
13386  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387  (eval $ac_link) 2>&5
13388  ac_status=$?
13389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13391    (./conftest; exit; ) 2>/dev/null
13392    lt_status=$?
13393    case x$lt_status in
13394      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13395      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13396      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13397    esac
13398  else :
13399    # compilation failed
13400    lt_cv_dlopen_self_static=no
13401  fi
13402fi
13403rm -fr conftest*
13404
13405
13406fi
13407echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13408echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13409    fi
13410
13411    CPPFLAGS="$save_CPPFLAGS"
13412    LDFLAGS="$save_LDFLAGS"
13413    LIBS="$save_LIBS"
13414    ;;
13415  esac
13416
13417  case $lt_cv_dlopen_self in
13418  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13419  *) enable_dlopen_self=unknown ;;
13420  esac
13421
13422  case $lt_cv_dlopen_self_static in
13423  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13424  *) enable_dlopen_self_static=unknown ;;
13425  esac
13426fi
13427
13428
13429# The else clause should only fire when bootstrapping the
13430# libtool distribution, otherwise you forgot to ship ltmain.sh
13431# with your package, and you will get complaints that there are
13432# no rules to generate ltmain.sh.
13433if test -f "$ltmain"; then
13434  # See if we are running on zsh, and set the options which allow our commands through
13435  # without removal of \ escapes.
13436  if test -n "${ZSH_VERSION+set}" ; then
13437    setopt NO_GLOB_SUBST
13438  fi
13439  # Now quote all the things that may contain metacharacters while being
13440  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13441  # variables and quote the copies for generation of the libtool script.
13442  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13443    SED SHELL STRIP \
13444    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13445    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13446    deplibs_check_method reload_flag reload_cmds need_locks \
13447    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13448    lt_cv_sys_global_symbol_to_c_name_address \
13449    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13450    old_postinstall_cmds old_postuninstall_cmds \
13451    compiler_CXX \
13452    CC_CXX \
13453    LD_CXX \
13454    lt_prog_compiler_wl_CXX \
13455    lt_prog_compiler_pic_CXX \
13456    lt_prog_compiler_static_CXX \
13457    lt_prog_compiler_no_builtin_flag_CXX \
13458    export_dynamic_flag_spec_CXX \
13459    thread_safe_flag_spec_CXX \
13460    whole_archive_flag_spec_CXX \
13461    enable_shared_with_static_runtimes_CXX \
13462    old_archive_cmds_CXX \
13463    old_archive_from_new_cmds_CXX \
13464    predep_objects_CXX \
13465    postdep_objects_CXX \
13466    predeps_CXX \
13467    postdeps_CXX \
13468    compiler_lib_search_path_CXX \
13469    archive_cmds_CXX \
13470    archive_expsym_cmds_CXX \
13471    postinstall_cmds_CXX \
13472    postuninstall_cmds_CXX \
13473    old_archive_from_expsyms_cmds_CXX \
13474    allow_undefined_flag_CXX \
13475    no_undefined_flag_CXX \
13476    export_symbols_cmds_CXX \
13477    hardcode_libdir_flag_spec_CXX \
13478    hardcode_libdir_flag_spec_ld_CXX \
13479    hardcode_libdir_separator_CXX \
13480    hardcode_automatic_CXX \
13481    module_cmds_CXX \
13482    module_expsym_cmds_CXX \
13483    lt_cv_prog_compiler_c_o_CXX \
13484    exclude_expsyms_CXX \
13485    include_expsyms_CXX; do
13486
13487    case $var in
13488    old_archive_cmds_CXX | \
13489    old_archive_from_new_cmds_CXX | \
13490    archive_cmds_CXX | \
13491    archive_expsym_cmds_CXX | \
13492    module_cmds_CXX | \
13493    module_expsym_cmds_CXX | \
13494    old_archive_from_expsyms_cmds_CXX | \
13495    export_symbols_cmds_CXX | \
13496    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13497    postinstall_cmds | postuninstall_cmds | \
13498    old_postinstall_cmds | old_postuninstall_cmds | \
13499    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13500      # Double-quote double-evaled strings.
13501      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13502      ;;
13503    *)
13504      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13505      ;;
13506    esac
13507  done
13508
13509  case $lt_echo in
13510  *'\$0 --fallback-echo"')
13511    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13512    ;;
13513  esac
13514
13515cfgfile="$ofile"
13516
13517  cat <<__EOF__ >> "$cfgfile"
13518# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13519
13520# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13521
13522# Shell to use when invoking shell scripts.
13523SHELL=$lt_SHELL
13524
13525# Whether or not to build shared libraries.
13526build_libtool_libs=$enable_shared
13527
13528# Whether or not to build static libraries.
13529build_old_libs=$enable_static
13530
13531# Whether or not to add -lc for building shared libraries.
13532build_libtool_need_lc=$archive_cmds_need_lc_CXX
13533
13534# Whether or not to disallow shared libs when runtime libs are static
13535allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13536
13537# Whether or not to optimize for fast installation.
13538fast_install=$enable_fast_install
13539
13540# The host system.
13541host_alias=$host_alias
13542host=$host
13543
13544# An echo program that does not interpret backslashes.
13545echo=$lt_echo
13546
13547# The archiver.
13548AR=$lt_AR
13549AR_FLAGS=$lt_AR_FLAGS
13550
13551# A C compiler.
13552LTCC=$lt_LTCC
13553
13554# A language-specific compiler.
13555CC=$lt_compiler_CXX
13556
13557# Is the compiler the GNU C compiler?
13558with_gcc=$GCC_CXX
13559
13560# An ERE matcher.
13561EGREP=$lt_EGREP
13562
13563# The linker used to build libraries.
13564LD=$lt_LD_CXX
13565
13566# Whether we need hard or soft links.
13567LN_S=$lt_LN_S
13568
13569# A BSD-compatible nm program.
13570NM=$lt_NM
13571
13572# A symbol stripping program
13573STRIP=$lt_STRIP
13574
13575# Used to examine libraries when file_magic_cmd begins "file"
13576MAGIC_CMD=$MAGIC_CMD
13577
13578# Used on cygwin: DLL creation program.
13579DLLTOOL="$DLLTOOL"
13580
13581# Used on cygwin: object dumper.
13582OBJDUMP="$OBJDUMP"
13583
13584# Used on cygwin: assembler.
13585AS="$AS"
13586
13587# The name of the directory that contains temporary libtool files.
13588objdir=$objdir
13589
13590# How to create reloadable object files.
13591reload_flag=$lt_reload_flag
13592reload_cmds=$lt_reload_cmds
13593
13594# How to pass a linker flag through the compiler.
13595wl=$lt_lt_prog_compiler_wl_CXX
13596
13597# Object file suffix (normally "o").
13598objext="$ac_objext"
13599
13600# Old archive suffix (normally "a").
13601libext="$libext"
13602
13603# Shared library suffix (normally ".so").
13604shrext='$shrext'
13605
13606# Executable file suffix (normally "").
13607exeext="$exeext"
13608
13609# Additional compiler flags for building library objects.
13610pic_flag=$lt_lt_prog_compiler_pic_CXX
13611pic_mode=$pic_mode
13612
13613# What is the maximum length of a command?
13614max_cmd_len=$lt_cv_sys_max_cmd_len
13615
13616# Does compiler simultaneously support -c and -o options?
13617compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13618
13619# Must we lock files when doing compilation ?
13620need_locks=$lt_need_locks
13621
13622# Do we need the lib prefix for modules?
13623need_lib_prefix=$need_lib_prefix
13624
13625# Do we need a version for libraries?
13626need_version=$need_version
13627
13628# Whether dlopen is supported.
13629dlopen_support=$enable_dlopen
13630
13631# Whether dlopen of programs is supported.
13632dlopen_self=$enable_dlopen_self
13633
13634# Whether dlopen of statically linked programs is supported.
13635dlopen_self_static=$enable_dlopen_self_static
13636
13637# Compiler flag to prevent dynamic linking.
13638link_static_flag=$lt_lt_prog_compiler_static_CXX
13639
13640# Compiler flag to turn off builtin functions.
13641no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13642
13643# Compiler flag to allow reflexive dlopens.
13644export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13645
13646# Compiler flag to generate shared objects directly from archives.
13647whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13648
13649# Compiler flag to generate thread-safe objects.
13650thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13651
13652# Library versioning type.
13653version_type=$version_type
13654
13655# Format of library name prefix.
13656libname_spec=$lt_libname_spec
13657
13658# List of archive names.  First name is the real one, the rest are links.
13659# The last name is the one that the linker finds with -lNAME.
13660library_names_spec=$lt_library_names_spec
13661
13662# The coded name of the library, if different from the real name.
13663soname_spec=$lt_soname_spec
13664
13665# Commands used to build and install an old-style archive.
13666RANLIB=$lt_RANLIB
13667old_archive_cmds=$lt_old_archive_cmds_CXX
13668old_postinstall_cmds=$lt_old_postinstall_cmds
13669old_postuninstall_cmds=$lt_old_postuninstall_cmds
13670
13671# Create an old-style archive from a shared archive.
13672old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13673
13674# Create a temporary old-style archive to link instead of a shared archive.
13675old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13676
13677# Commands used to build and install a shared archive.
13678archive_cmds=$lt_archive_cmds_CXX
13679archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13680postinstall_cmds=$lt_postinstall_cmds
13681postuninstall_cmds=$lt_postuninstall_cmds
13682
13683# Commands used to build a loadable module (assumed same as above if empty)
13684module_cmds=$lt_module_cmds_CXX
13685module_expsym_cmds=$lt_module_expsym_cmds_CXX
13686
13687# Commands to strip libraries.
13688old_striplib=$lt_old_striplib
13689striplib=$lt_striplib
13690
13691# Dependencies to place before the objects being linked to create a
13692# shared library.
13693predep_objects=$lt_predep_objects_CXX
13694
13695# Dependencies to place after the objects being linked to create a
13696# shared library.
13697postdep_objects=$lt_postdep_objects_CXX
13698
13699# Dependencies to place before the objects being linked to create a
13700# shared library.
13701predeps=$lt_predeps_CXX
13702
13703# Dependencies to place after the objects being linked to create a
13704# shared library.
13705postdeps=$lt_postdeps_CXX
13706
13707# The library search path used internally by the compiler when linking
13708# a shared library.
13709compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13710
13711# Method to check whether dependent libraries are shared objects.
13712deplibs_check_method=$lt_deplibs_check_method
13713
13714# Command to use when deplibs_check_method == file_magic.
13715file_magic_cmd=$lt_file_magic_cmd
13716
13717# Flag that allows shared libraries with undefined symbols to be built.
13718allow_undefined_flag=$lt_allow_undefined_flag_CXX
13719
13720# Flag that forces no undefined symbols.
13721no_undefined_flag=$lt_no_undefined_flag_CXX
13722
13723# Commands used to finish a libtool library installation in a directory.
13724finish_cmds=$lt_finish_cmds
13725
13726# Same as above, but a single script fragment to be evaled but not shown.
13727finish_eval=$lt_finish_eval
13728
13729# Take the output of nm and produce a listing of raw symbols and C names.
13730global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13731
13732# Transform the output of nm in a proper C declaration
13733global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13734
13735# Transform the output of nm in a C name address pair
13736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13737
13738# This is the shared library runtime path variable.
13739runpath_var=$runpath_var
13740
13741# This is the shared library path variable.
13742shlibpath_var=$shlibpath_var
13743
13744# Is shlibpath searched before the hard-coded library search path?
13745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13746
13747# How to hardcode a shared library path into an executable.
13748hardcode_action=$hardcode_action_CXX
13749
13750# Whether we should hardcode library paths into libraries.
13751hardcode_into_libs=$hardcode_into_libs
13752
13753# Flag to hardcode \$libdir into a binary during linking.
13754# This must work even if \$libdir does not exist.
13755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13756
13757# If ld is used when linking, flag to hardcode \$libdir into
13758# a binary during linking. This must work even if \$libdir does
13759# not exist.
13760hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13761
13762# Whether we need a single -rpath flag with a separated argument.
13763hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13764
13765# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13766# resulting binary.
13767hardcode_direct=$hardcode_direct_CXX
13768
13769# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13770# resulting binary.
13771hardcode_minus_L=$hardcode_minus_L_CXX
13772
13773# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13774# the resulting binary.
13775hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13776
13777# Set to yes if building a shared library automatically hardcodes DIR into the library
13778# and all subsequent libraries and executables linked against it.
13779hardcode_automatic=$hardcode_automatic_CXX
13780
13781# Variables whose values should be saved in libtool wrapper scripts and
13782# restored at relink time.
13783variables_saved_for_relink="$variables_saved_for_relink"
13784
13785# Whether libtool must link a program against all its dependency libraries.
13786link_all_deplibs=$link_all_deplibs_CXX
13787
13788# Compile-time system search path for libraries
13789sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13790
13791# Run-time system search path for libraries
13792sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13793
13794# Fix the shell variable \$srcfile for the compiler.
13795fix_srcfile_path="$fix_srcfile_path_CXX"
13796
13797# Set to yes if exported symbols are required.
13798always_export_symbols=$always_export_symbols_CXX
13799
13800# The commands to list exported symbols.
13801export_symbols_cmds=$lt_export_symbols_cmds_CXX
13802
13803# The commands to extract the exported symbol list from a shared archive.
13804extract_expsyms_cmds=$lt_extract_expsyms_cmds
13805
13806# Symbols that should not be listed in the preloaded symbols.
13807exclude_expsyms=$lt_exclude_expsyms_CXX
13808
13809# Symbols that must always be exported.
13810include_expsyms=$lt_include_expsyms_CXX
13811
13812# ### END LIBTOOL TAG CONFIG: $tagname
13813
13814__EOF__
13815
13816
13817else
13818  # If there is no Makefile yet, we rely on a make rule to execute
13819  # `config.status --recheck' to rerun these tests and create the
13820  # libtool script then.
13821  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13822  if test -f "$ltmain_in"; then
13823    test -f Makefile && make "$ltmain"
13824  fi
13825fi
13826
13827
13828ac_ext=c
13829ac_cpp='$CPP $CPPFLAGS'
13830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13832ac_compiler_gnu=$ac_cv_c_compiler_gnu
13833
13834CC=$lt_save_CC
13835LDCXX=$LD
13836LD=$lt_save_LD
13837GCC=$lt_save_GCC
13838with_gnu_ldcxx=$with_gnu_ld
13839with_gnu_ld=$lt_save_with_gnu_ld
13840lt_cv_path_LDCXX=$lt_cv_path_LD
13841lt_cv_path_LD=$lt_save_path_LD
13842lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13843lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13844
13845	else
13846	  tagname=""
13847	fi
13848	;;
13849
13850      F77)
13851	if test -n "$F77" && test "X$F77" != "Xno"; then
13852
13853ac_ext=f
13854ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13855ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13856ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13857
13858
13859archive_cmds_need_lc_F77=no
13860allow_undefined_flag_F77=
13861always_export_symbols_F77=no
13862archive_expsym_cmds_F77=
13863export_dynamic_flag_spec_F77=
13864hardcode_direct_F77=no
13865hardcode_libdir_flag_spec_F77=
13866hardcode_libdir_flag_spec_ld_F77=
13867hardcode_libdir_separator_F77=
13868hardcode_minus_L_F77=no
13869hardcode_automatic_F77=no
13870module_cmds_F77=
13871module_expsym_cmds_F77=
13872link_all_deplibs_F77=unknown
13873old_archive_cmds_F77=$old_archive_cmds
13874no_undefined_flag_F77=
13875whole_archive_flag_spec_F77=
13876enable_shared_with_static_runtimes_F77=no
13877
13878# Source file extension for f77 test sources.
13879ac_ext=f
13880
13881# Object file extension for compiled f77 test sources.
13882objext=o
13883objext_F77=$objext
13884
13885# Code to be used in simple compile tests
13886lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13887
13888# Code to be used in simple link tests
13889lt_simple_link_test_code="      program t\n      end\n"
13890
13891# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13892
13893# If no C compiler was specified, use CC.
13894LTCC=${LTCC-"$CC"}
13895
13896# Allow CC to be a program name with arguments.
13897compiler=$CC
13898
13899
13900# Allow CC to be a program name with arguments.
13901lt_save_CC="$CC"
13902CC=${F77-"f77"}
13903compiler=$CC
13904compiler_F77=$CC
13905cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13906
13907echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13908echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13909echo "$as_me:$LINENO: result: $can_build_shared" >&5
13910echo "${ECHO_T}$can_build_shared" >&6
13911
13912echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13913echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13914test "$can_build_shared" = "no" && enable_shared=no
13915
13916# On AIX, shared libraries and static libraries use the same namespace, and
13917# are all built from PIC.
13918case "$host_os" in
13919aix3*)
13920  test "$enable_shared" = yes && enable_static=no
13921  if test -n "$RANLIB"; then
13922    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13923    postinstall_cmds='$RANLIB $lib'
13924  fi
13925  ;;
13926aix4*)
13927  test "$enable_shared" = yes && enable_static=no
13928  ;;
13929esac
13930echo "$as_me:$LINENO: result: $enable_shared" >&5
13931echo "${ECHO_T}$enable_shared" >&6
13932
13933echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13934echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13935# Make sure either enable_shared or enable_static is yes.
13936test "$enable_shared" = yes || enable_static=yes
13937echo "$as_me:$LINENO: result: $enable_static" >&5
13938echo "${ECHO_T}$enable_static" >&6
13939
13940test "$ld_shlibs_F77" = no && can_build_shared=no
13941
13942GCC_F77="$G77"
13943LD_F77="$LD"
13944
13945lt_prog_compiler_wl_F77=
13946lt_prog_compiler_pic_F77=
13947lt_prog_compiler_static_F77=
13948
13949echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13950echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13951
13952  if test "$GCC" = yes; then
13953    lt_prog_compiler_wl_F77='-Wl,'
13954    lt_prog_compiler_static_F77='-static'
13955
13956    case $host_os in
13957      aix*)
13958      # All AIX code is PIC.
13959      if test "$host_cpu" = ia64; then
13960	# AIX 5 now supports IA64 processor
13961	lt_prog_compiler_static_F77='-Bstatic'
13962      fi
13963      ;;
13964
13965    amigaos*)
13966      # FIXME: we need at least 68020 code to build shared libraries, but
13967      # adding the `-m68020' flag to GCC prevents building anything better,
13968      # like `-m68040'.
13969      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13970      ;;
13971
13972    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13973      # PIC is the default for these OSes.
13974      ;;
13975
13976    mingw* | pw32* | os2*)
13977      # This hack is so that the source file can tell whether it is being
13978      # built for inclusion in a dll (and should export symbols for example).
13979      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13980      ;;
13981
13982    darwin* | rhapsody*)
13983      # PIC is the default on this platform
13984      # Common symbols not allowed in MH_DYLIB files
13985      lt_prog_compiler_pic_F77='-fno-common'
13986      ;;
13987
13988    msdosdjgpp*)
13989      # Just because we use GCC doesn't mean we suddenly get shared libraries
13990      # on systems that don't support them.
13991      lt_prog_compiler_can_build_shared_F77=no
13992      enable_shared=no
13993      ;;
13994
13995    sysv4*MP*)
13996      if test -d /usr/nec; then
13997	lt_prog_compiler_pic_F77=-Kconform_pic
13998      fi
13999      ;;
14000
14001    hpux*)
14002      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14003      # not for PA HP-UX.
14004      case "$host_cpu" in
14005      hppa*64*|ia64*)
14006	# +Z the default
14007	;;
14008      *)
14009	lt_prog_compiler_pic_F77='-fPIC'
14010	;;
14011      esac
14012      ;;
14013
14014    *)
14015      lt_prog_compiler_pic_F77='-fPIC'
14016      ;;
14017    esac
14018  else
14019    # PORTME Check for flag to pass linker flags through the system compiler.
14020    case $host_os in
14021    aix*)
14022      lt_prog_compiler_wl_F77='-Wl,'
14023      if test "$host_cpu" = ia64; then
14024	# AIX 5 now supports IA64 processor
14025	lt_prog_compiler_static_F77='-Bstatic'
14026      else
14027	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14028      fi
14029      ;;
14030
14031    mingw* | pw32* | os2*)
14032      # This hack is so that the source file can tell whether it is being
14033      # built for inclusion in a dll (and should export symbols for example).
14034      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14035      ;;
14036
14037    hpux9* | hpux10* | hpux11*)
14038      lt_prog_compiler_wl_F77='-Wl,'
14039      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14040      # not for PA HP-UX.
14041      case "$host_cpu" in
14042      hppa*64*|ia64*)
14043	# +Z the default
14044	;;
14045      *)
14046	lt_prog_compiler_pic_F77='+Z'
14047	;;
14048      esac
14049      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14050      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14051      ;;
14052
14053    irix5* | irix6* | nonstopux*)
14054      lt_prog_compiler_wl_F77='-Wl,'
14055      # PIC (with -KPIC) is the default.
14056      lt_prog_compiler_static_F77='-non_shared'
14057      ;;
14058
14059    newsos6)
14060      lt_prog_compiler_pic_F77='-KPIC'
14061      lt_prog_compiler_static_F77='-Bstatic'
14062      ;;
14063
14064    linux*)
14065      case $CC in
14066      icc* | ecc*)
14067	lt_prog_compiler_wl_F77='-Wl,'
14068	lt_prog_compiler_pic_F77='-KPIC'
14069	lt_prog_compiler_static_F77='-static'
14070        ;;
14071      ccc*)
14072        lt_prog_compiler_wl_F77='-Wl,'
14073        # All Alpha code is PIC.
14074        lt_prog_compiler_static_F77='-non_shared'
14075        ;;
14076      esac
14077      ;;
14078
14079    osf3* | osf4* | osf5*)
14080      lt_prog_compiler_wl_F77='-Wl,'
14081      # All OSF/1 code is PIC.
14082      lt_prog_compiler_static_F77='-non_shared'
14083      ;;
14084
14085    sco3.2v5*)
14086      lt_prog_compiler_pic_F77='-Kpic'
14087      lt_prog_compiler_static_F77='-dn'
14088      ;;
14089
14090    solaris*)
14091      lt_prog_compiler_wl_F77='-Wl,'
14092      lt_prog_compiler_pic_F77='-KPIC'
14093      lt_prog_compiler_static_F77='-Bstatic'
14094      ;;
14095
14096    sunos4*)
14097      lt_prog_compiler_wl_F77='-Qoption ld '
14098      lt_prog_compiler_pic_F77='-PIC'
14099      lt_prog_compiler_static_F77='-Bstatic'
14100      ;;
14101
14102    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14103      lt_prog_compiler_wl_F77='-Wl,'
14104      lt_prog_compiler_pic_F77='-KPIC'
14105      lt_prog_compiler_static_F77='-Bstatic'
14106      ;;
14107
14108    sysv4*MP*)
14109      if test -d /usr/nec ;then
14110	lt_prog_compiler_pic_F77='-Kconform_pic'
14111	lt_prog_compiler_static_F77='-Bstatic'
14112      fi
14113      ;;
14114
14115    uts4*)
14116      lt_prog_compiler_pic_F77='-pic'
14117      lt_prog_compiler_static_F77='-Bstatic'
14118      ;;
14119
14120    *)
14121      lt_prog_compiler_can_build_shared_F77=no
14122      ;;
14123    esac
14124  fi
14125
14126echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14127echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14128
14129#
14130# Check to make sure the PIC flag actually works.
14131#
14132if test -n "$lt_prog_compiler_pic_F77"; then
14133
14134echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14135echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14136if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14137  echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139  lt_prog_compiler_pic_works_F77=no
14140  ac_outfile=conftest.$ac_objext
14141   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14142   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14143   # Insert the option either (1) after the last *FLAGS variable, or
14144   # (2) before a word containing "conftest.", or (3) at the end.
14145   # Note that $ac_compile itself does not contain backslashes and begins
14146   # with a dollar sign (not a hyphen), so the echo should work correctly.
14147   # The option is referenced via a variable to avoid confusing sed.
14148   lt_compile=`echo "$ac_compile" | $SED \
14149   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14150   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14151   -e 's:$: $lt_compiler_flag:'`
14152   (eval echo "\"\$as_me:14152: $lt_compile\"" >&5)
14153   (eval "$lt_compile" 2>conftest.err)
14154   ac_status=$?
14155   cat conftest.err >&5
14156   echo "$as_me:14156: \$? = $ac_status" >&5
14157   if (exit $ac_status) && test -s "$ac_outfile"; then
14158     # The compiler can only warn and ignore the option if not recognized
14159     # So say no if there are warnings
14160     if test ! -s conftest.err; then
14161       lt_prog_compiler_pic_works_F77=yes
14162     fi
14163   fi
14164   $rm conftest*
14165
14166fi
14167echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14168echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14169
14170if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14171    case $lt_prog_compiler_pic_F77 in
14172     "" | " "*) ;;
14173     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14174     esac
14175else
14176    lt_prog_compiler_pic_F77=
14177     lt_prog_compiler_can_build_shared_F77=no
14178fi
14179
14180fi
14181case "$host_os" in
14182  # For platforms which do not support PIC, -DPIC is meaningless:
14183  *djgpp*)
14184    lt_prog_compiler_pic_F77=
14185    ;;
14186  *)
14187    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14188    ;;
14189esac
14190
14191echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14192echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14193if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14194  echo $ECHO_N "(cached) $ECHO_C" >&6
14195else
14196  lt_cv_prog_compiler_c_o_F77=no
14197   $rm -r conftest 2>/dev/null
14198   mkdir conftest
14199   cd conftest
14200   mkdir out
14201   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14202
14203   lt_compiler_flag="-o out/conftest2.$ac_objext"
14204   # Insert the option either (1) after the last *FLAGS variable, or
14205   # (2) before a word containing "conftest.", or (3) at the end.
14206   # Note that $ac_compile itself does not contain backslashes and begins
14207   # with a dollar sign (not a hyphen), so the echo should work correctly.
14208   lt_compile=`echo "$ac_compile" | $SED \
14209   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14210   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14211   -e 's:$: $lt_compiler_flag:'`
14212   (eval echo "\"\$as_me:14212: $lt_compile\"" >&5)
14213   (eval "$lt_compile" 2>out/conftest.err)
14214   ac_status=$?
14215   cat out/conftest.err >&5
14216   echo "$as_me:14216: \$? = $ac_status" >&5
14217   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14218   then
14219     # The compiler can only warn and ignore the option if not recognized
14220     # So say no if there are warnings
14221     if test ! -s out/conftest.err; then
14222       lt_cv_prog_compiler_c_o_F77=yes
14223     fi
14224   fi
14225   chmod u+w .
14226   $rm conftest*
14227   # SGI C++ compiler will create directory out/ii_files/ for
14228   # template instantiation
14229   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14230   $rm out/* && rmdir out
14231   cd ..
14232   rmdir conftest
14233   $rm conftest*
14234
14235fi
14236echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14237echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14238
14239
14240hard_links="nottested"
14241if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14242  # do not overwrite the value of need_locks provided by the user
14243  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14244echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14245  hard_links=yes
14246  $rm conftest*
14247  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14248  touch conftest.a
14249  ln conftest.a conftest.b 2>&5 || hard_links=no
14250  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14251  echo "$as_me:$LINENO: result: $hard_links" >&5
14252echo "${ECHO_T}$hard_links" >&6
14253  if test "$hard_links" = no; then
14254    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14255echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14256    need_locks=warn
14257  fi
14258else
14259  need_locks=no
14260fi
14261
14262echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14263echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14264
14265  runpath_var=
14266  allow_undefined_flag_F77=
14267  enable_shared_with_static_runtimes_F77=no
14268  archive_cmds_F77=
14269  archive_expsym_cmds_F77=
14270  old_archive_From_new_cmds_F77=
14271  old_archive_from_expsyms_cmds_F77=
14272  export_dynamic_flag_spec_F77=
14273  whole_archive_flag_spec_F77=
14274  thread_safe_flag_spec_F77=
14275  hardcode_libdir_flag_spec_F77=
14276  hardcode_libdir_flag_spec_ld_F77=
14277  hardcode_libdir_separator_F77=
14278  hardcode_direct_F77=no
14279  hardcode_minus_L_F77=no
14280  hardcode_shlibpath_var_F77=unsupported
14281  link_all_deplibs_F77=unknown
14282  hardcode_automatic_F77=no
14283  module_cmds_F77=
14284  module_expsym_cmds_F77=
14285  always_export_symbols_F77=no
14286  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14287  # include_expsyms should be a list of space-separated symbols to be *always*
14288  # included in the symbol list
14289  include_expsyms_F77=
14290  # exclude_expsyms can be an extended regexp of symbols to exclude
14291  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14292  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14293  # as well as any symbol that contains `d'.
14294  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14295  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14296  # platforms (ab)use it in PIC code, but their linkers get confused if
14297  # the symbol is explicitly referenced.  Since portable code cannot
14298  # rely on this symbol name, it's probably fine to never include it in
14299  # preloaded symbol tables.
14300  extract_expsyms_cmds=
14301
14302  case $host_os in
14303  cygwin* | mingw* | pw32*)
14304    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14305    # When not using gcc, we currently assume that we are using
14306    # Microsoft Visual C++.
14307    if test "$GCC" != yes; then
14308      with_gnu_ld=no
14309    fi
14310    ;;
14311  openbsd*)
14312    with_gnu_ld=no
14313    ;;
14314  esac
14315
14316  ld_shlibs_F77=yes
14317  if test "$with_gnu_ld" = yes; then
14318    # If archive_cmds runs LD, not CC, wlarc should be empty
14319    wlarc='${wl}'
14320
14321    # See if GNU ld supports shared libraries.
14322    case $host_os in
14323    aix3* | aix4* | aix5*)
14324      # On AIX/PPC, the GNU linker is very broken
14325      if test "$host_cpu" != ia64; then
14326	ld_shlibs_F77=no
14327	cat <<EOF 1>&2
14328
14329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14330*** to be unable to reliably create shared libraries on AIX.
14331*** Therefore, libtool is disabling shared libraries support.  If you
14332*** really care for shared libraries, you may want to modify your PATH
14333*** so that a non-GNU linker is found, and then restart.
14334
14335EOF
14336      fi
14337      ;;
14338
14339    amigaos*)
14340      archive_cmds_F77='$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)'
14341      hardcode_libdir_flag_spec_F77='-L$libdir'
14342      hardcode_minus_L_F77=yes
14343
14344      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14345      # that the semantics of dynamic libraries on AmigaOS, at least up
14346      # to version 4, is to share data among multiple programs linked
14347      # with the same dynamic library.  Since this doesn't match the
14348      # behavior of shared libraries on other platforms, we can't use
14349      # them.
14350      ld_shlibs_F77=no
14351      ;;
14352
14353    beos*)
14354      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14355	allow_undefined_flag_F77=unsupported
14356	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14357	# support --undefined.  This deserves some investigation.  FIXME
14358	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14359      else
14360	ld_shlibs_F77=no
14361      fi
14362      ;;
14363
14364    cygwin* | mingw* | pw32*)
14365      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14366      # as there is no search path for DLLs.
14367      hardcode_libdir_flag_spec_F77='-L$libdir'
14368      allow_undefined_flag_F77=unsupported
14369      always_export_symbols_F77=no
14370      enable_shared_with_static_runtimes_F77=yes
14371      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14372
14373      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14374        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14375	# If the export-symbols file already is a .def file (1st line
14376	# is EXPORTS), use it as is; otherwise, prepend...
14377	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14378	  cp $export_symbols $output_objdir/$soname.def;
14379	else
14380	  echo EXPORTS > $output_objdir/$soname.def;
14381	  cat $export_symbols >> $output_objdir/$soname.def;
14382	fi~
14383	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14384      else
14385	ld_shlibs=no
14386      fi
14387      ;;
14388
14389    netbsd*)
14390      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14391	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14392	wlarc=
14393      else
14394	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14396      fi
14397      ;;
14398
14399    solaris* | sysv5*)
14400      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14401	ld_shlibs_F77=no
14402	cat <<EOF 1>&2
14403
14404*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14405*** create shared libraries on Solaris systems.  Therefore, libtool
14406*** is disabling shared libraries support.  We urge you to upgrade GNU
14407*** binutils to release 2.9.1 or newer.  Another option is to modify
14408*** your PATH or compiler configuration so that the native linker is
14409*** used, and then restart.
14410
14411EOF
14412      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14413	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14415      else
14416	ld_shlibs_F77=no
14417      fi
14418      ;;
14419
14420    sunos4*)
14421      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14422      wlarc=
14423      hardcode_direct_F77=yes
14424      hardcode_shlibpath_var_F77=no
14425      ;;
14426
14427  linux*)
14428    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
14429        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14430	archive_cmds_F77="$tmp_archive_cmds"
14431      supports_anon_versioning=no
14432      case `$LD -v 2>/dev/null` in
14433        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14434        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14435        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14436        *\ 2.11.*) ;; # other 2.11 versions
14437        *) supports_anon_versioning=yes ;;
14438      esac
14439      if test $supports_anon_versioning = yes; then
14440        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14441cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14442$echo "local: *; };" >> $output_objdir/$libname.ver~
14443        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14444      else
14445        archive_expsym_cmds_F77="$tmp_archive_cmds"
14446      fi
14447    else
14448      ld_shlibs_F77=no
14449    fi
14450    ;;
14451
14452    *)
14453      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14454	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14455	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14456      else
14457	ld_shlibs_F77=no
14458      fi
14459      ;;
14460    esac
14461
14462    if test "$ld_shlibs_F77" = yes; then
14463      runpath_var=LD_RUN_PATH
14464      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14465      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14466      # ancient GNU ld didn't support --whole-archive et. al.
14467      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14468 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14469      else
14470  	whole_archive_flag_spec_F77=
14471      fi
14472    fi
14473  else
14474    # PORTME fill in a description of your system's linker (not GNU ld)
14475    case $host_os in
14476    aix3*)
14477      allow_undefined_flag_F77=unsupported
14478      always_export_symbols_F77=yes
14479      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14480      # Note: this linker hardcodes the directories in LIBPATH if there
14481      # are no directories specified by -L.
14482      hardcode_minus_L_F77=yes
14483      if test "$GCC" = yes && test -z "$link_static_flag"; then
14484	# Neither direct hardcoding nor static linking is supported with a
14485	# broken collect2.
14486	hardcode_direct_F77=unsupported
14487      fi
14488      ;;
14489
14490    aix4* | aix5*)
14491      if test "$host_cpu" = ia64; then
14492	# On IA64, the linker does run time linking by default, so we don't
14493	# have to do anything special.
14494	aix_use_runtimelinking=no
14495	exp_sym_flag='-Bexport'
14496	no_entry_flag=""
14497      else
14498	# If we're using GNU nm, then we don't want the "-C" option.
14499	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14500	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14501	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14502	else
14503	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14504	fi
14505	aix_use_runtimelinking=no
14506
14507	# Test if we are trying to use run time linking or normal
14508	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14509	# need to do runtime linking.
14510	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14511	  for ld_flag in $LDFLAGS; do
14512  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14513  	    aix_use_runtimelinking=yes
14514  	    break
14515  	  fi
14516	  done
14517	esac
14518
14519	exp_sym_flag='-bexport'
14520	no_entry_flag='-bnoentry'
14521      fi
14522
14523      # When large executables or shared objects are built, AIX ld can
14524      # have problems creating the table of contents.  If linking a library
14525      # or program results in "error TOC overflow" add -mminimal-toc to
14526      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14527      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14528
14529      archive_cmds_F77=''
14530      hardcode_direct_F77=yes
14531      hardcode_libdir_separator_F77=':'
14532      link_all_deplibs_F77=yes
14533
14534      if test "$GCC" = yes; then
14535	case $host_os in aix4.012|aix4.012.*)
14536	# We only want to do this on AIX 4.2 and lower, the check
14537	# below for broken collect2 doesn't work under 4.3+
14538	  collect2name=`${CC} -print-prog-name=collect2`
14539	  if test -f "$collect2name" && \
14540  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14541	  then
14542  	  # We have reworked collect2
14543  	  hardcode_direct_F77=yes
14544	  else
14545  	  # We have old collect2
14546  	  hardcode_direct_F77=unsupported
14547  	  # It fails to find uninstalled libraries when the uninstalled
14548  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14549  	  # to unsupported forces relinking
14550  	  hardcode_minus_L_F77=yes
14551  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14552  	  hardcode_libdir_separator_F77=
14553	  fi
14554	esac
14555	shared_flag='-shared'
14556      else
14557	# not using gcc
14558	if test "$host_cpu" = ia64; then
14559  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14560  	# chokes on -Wl,-G. The following line is correct:
14561	  shared_flag='-G'
14562	else
14563  	if test "$aix_use_runtimelinking" = yes; then
14564	    shared_flag='${wl}-G'
14565	  else
14566	    shared_flag='${wl}-bM:SRE'
14567  	fi
14568	fi
14569      fi
14570
14571      # It seems that -bexpall does not export symbols beginning with
14572      # underscore (_), so it is better to generate a list of symbols to export.
14573      always_export_symbols_F77=yes
14574      if test "$aix_use_runtimelinking" = yes; then
14575	# Warning - without using the other runtime loading flags (-brtl),
14576	# -berok will link without error, but may produce a broken library.
14577	allow_undefined_flag_F77='-berok'
14578       # Determine the default libpath from the value encoded in an empty executable.
14579       cat >conftest.$ac_ext <<_ACEOF
14580      program main
14581
14582      end
14583_ACEOF
14584rm -f conftest.$ac_objext conftest$ac_exeext
14585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14586  (eval $ac_link) 2>conftest.er1
14587  ac_status=$?
14588  grep -v '^ *+' conftest.er1 >conftest.err
14589  rm -f conftest.er1
14590  cat conftest.err >&5
14591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592  (exit $ac_status); } &&
14593	 { ac_try='test -z "$ac_f77_werror_flag"
14594			 || test ! -s conftest.err'
14595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596  (eval $ac_try) 2>&5
14597  ac_status=$?
14598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599  (exit $ac_status); }; } &&
14600	 { ac_try='test -s conftest$ac_exeext'
14601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602  (eval $ac_try) 2>&5
14603  ac_status=$?
14604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605  (exit $ac_status); }; }; then
14606
14607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14608}'`
14609# Check for a 64-bit object if we didn't find anything.
14610if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14611}'`; fi
14612else
14613  echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
14616fi
14617rm -f conftest.err conftest.$ac_objext \
14618      conftest$ac_exeext conftest.$ac_ext
14619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14620
14621       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14622	archive_expsym_cmds_F77="\$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"
14623       else
14624	if test "$host_cpu" = ia64; then
14625	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14626	  allow_undefined_flag_F77="-z nodefs"
14627	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14628	else
14629	 # Determine the default libpath from the value encoded in an empty executable.
14630	 cat >conftest.$ac_ext <<_ACEOF
14631      program main
14632
14633      end
14634_ACEOF
14635rm -f conftest.$ac_objext conftest$ac_exeext
14636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14637  (eval $ac_link) 2>conftest.er1
14638  ac_status=$?
14639  grep -v '^ *+' conftest.er1 >conftest.err
14640  rm -f conftest.er1
14641  cat conftest.err >&5
14642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643  (exit $ac_status); } &&
14644	 { ac_try='test -z "$ac_f77_werror_flag"
14645			 || test ! -s conftest.err'
14646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647  (eval $ac_try) 2>&5
14648  ac_status=$?
14649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650  (exit $ac_status); }; } &&
14651	 { ac_try='test -s conftest$ac_exeext'
14652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14653  (eval $ac_try) 2>&5
14654  ac_status=$?
14655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656  (exit $ac_status); }; }; then
14657
14658aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14659}'`
14660# Check for a 64-bit object if we didn't find anything.
14661if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14662}'`; fi
14663else
14664  echo "$as_me: failed program was:" >&5
14665sed 's/^/| /' conftest.$ac_ext >&5
14666
14667fi
14668rm -f conftest.err conftest.$ac_objext \
14669      conftest$ac_exeext conftest.$ac_ext
14670if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14671
14672	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14673	  # Warning - without using the other run time loading flags,
14674	  # -berok will link without error, but may produce a broken library.
14675	  no_undefined_flag_F77=' ${wl}-bernotok'
14676	  allow_undefined_flag_F77=' ${wl}-berok'
14677	  # -bexpall does not export symbols beginning with underscore (_)
14678	  always_export_symbols_F77=yes
14679	  # Exported symbols can be pulled into shared objects from archives
14680	  whole_archive_flag_spec_F77=' '
14681	  archive_cmds_need_lc_F77=yes
14682	  # This is similar to how AIX traditionally builds it's shared libraries.
14683	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14684	fi
14685      fi
14686      ;;
14687
14688    amigaos*)
14689      archive_cmds_F77='$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)'
14690      hardcode_libdir_flag_spec_F77='-L$libdir'
14691      hardcode_minus_L_F77=yes
14692      # see comment about different semantics on the GNU ld section
14693      ld_shlibs_F77=no
14694      ;;
14695
14696    bsdi4*)
14697      export_dynamic_flag_spec_F77=-rdynamic
14698      ;;
14699
14700    cygwin* | mingw* | pw32*)
14701      # When not using gcc, we currently assume that we are using
14702      # Microsoft Visual C++.
14703      # hardcode_libdir_flag_spec is actually meaningless, as there is
14704      # no search path for DLLs.
14705      hardcode_libdir_flag_spec_F77=' '
14706      allow_undefined_flag_F77=unsupported
14707      # Tell ltmain to make .lib files, not .a files.
14708      libext=lib
14709      # Tell ltmain to make .dll files, not .so files.
14710      shrext=".dll"
14711      # FIXME: Setting linknames here is a bad hack.
14712      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14713      # The linker will automatically build a .lib file if we build a DLL.
14714      old_archive_From_new_cmds_F77='true'
14715      # FIXME: Should let the user specify the lib program.
14716      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14717      fix_srcfile_path='`cygpath -w "$srcfile"`'
14718      enable_shared_with_static_runtimes_F77=yes
14719      ;;
14720
14721    darwin* | rhapsody*)
14722    if test "$GXX" = yes ; then
14723      archive_cmds_need_lc_F77=no
14724      case "$host_os" in
14725      rhapsody* | darwin1.[012])
14726	allow_undefined_flag_F77='-undefined suppress'
14727	;;
14728      *) # Darwin 1.3 on
14729      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14730      	allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14731      else
14732        case ${MACOSX_DEPLOYMENT_TARGET} in
14733          10.[012])
14734            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14735            ;;
14736          10.*)
14737            allow_undefined_flag_F77='-undefined dynamic_lookup'
14738            ;;
14739        esac
14740      fi
14741	;;
14742      esac
14743    	lt_int_apple_cc_single_mod=no
14744    	output_verbose_link_cmd='echo'
14745    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14746    	  lt_int_apple_cc_single_mod=yes
14747    	fi
14748    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14749    	  archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14750    	else
14751        archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14752      fi
14753      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14754      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14755        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14756          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14757        else
14758          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14759        fi
14760          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14761      hardcode_direct_F77=no
14762      hardcode_automatic_F77=yes
14763      hardcode_shlibpath_var_F77=unsupported
14764      whole_archive_flag_spec_F77='-all_load $convenience'
14765      link_all_deplibs_F77=yes
14766    else
14767      ld_shlibs_F77=no
14768    fi
14769      ;;
14770
14771    dgux*)
14772      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14773      hardcode_libdir_flag_spec_F77='-L$libdir'
14774      hardcode_shlibpath_var_F77=no
14775      ;;
14776
14777    freebsd1*)
14778      ld_shlibs_F77=no
14779      ;;
14780
14781    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14782    # support.  Future versions do this automatically, but an explicit c++rt0.o
14783    # does not break anything, and helps significantly (at the cost of a little
14784    # extra space).
14785    freebsd2.2*)
14786      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14787      hardcode_libdir_flag_spec_F77='-R$libdir'
14788      hardcode_direct_F77=yes
14789      hardcode_shlibpath_var_F77=no
14790      ;;
14791
14792    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14793    freebsd2*)
14794      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14795      hardcode_direct_F77=yes
14796      hardcode_minus_L_F77=yes
14797      hardcode_shlibpath_var_F77=no
14798      ;;
14799
14800    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14801    freebsd* | kfreebsd*-gnu)
14802      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14803      hardcode_libdir_flag_spec_F77='-R$libdir'
14804      hardcode_direct_F77=yes
14805      hardcode_shlibpath_var_F77=no
14806      ;;
14807
14808    hpux9*)
14809      if test "$GCC" = yes; then
14810	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14811      else
14812	archive_cmds_F77='$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'
14813      fi
14814      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14815      hardcode_libdir_separator_F77=:
14816      hardcode_direct_F77=yes
14817
14818      # hardcode_minus_L: Not really in the search PATH,
14819      # but as the default location of the library.
14820      hardcode_minus_L_F77=yes
14821      export_dynamic_flag_spec_F77='${wl}-E'
14822      ;;
14823
14824    hpux10* | hpux11*)
14825      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14826	case "$host_cpu" in
14827	hppa*64*|ia64*)
14828	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14829	  ;;
14830	*)
14831	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14832	  ;;
14833	esac
14834      else
14835	case "$host_cpu" in
14836	hppa*64*|ia64*)
14837	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14838	  ;;
14839	*)
14840	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14841	  ;;
14842	esac
14843      fi
14844      if test "$with_gnu_ld" = no; then
14845	case "$host_cpu" in
14846	hppa*64*)
14847	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14848	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14849	  hardcode_libdir_separator_F77=:
14850	  hardcode_direct_F77=no
14851	  hardcode_shlibpath_var_F77=no
14852	  ;;
14853	ia64*)
14854	  hardcode_libdir_flag_spec_F77='-L$libdir'
14855	  hardcode_direct_F77=no
14856	  hardcode_shlibpath_var_F77=no
14857
14858	  # hardcode_minus_L: Not really in the search PATH,
14859	  # but as the default location of the library.
14860	  hardcode_minus_L_F77=yes
14861	  ;;
14862	*)
14863	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14864	  hardcode_libdir_separator_F77=:
14865	  hardcode_direct_F77=yes
14866	  export_dynamic_flag_spec_F77='${wl}-E'
14867
14868	  # hardcode_minus_L: Not really in the search PATH,
14869	  # but as the default location of the library.
14870	  hardcode_minus_L_F77=yes
14871	  ;;
14872	esac
14873      fi
14874      ;;
14875
14876    irix5* | irix6* | nonstopux*)
14877      if test "$GCC" = yes; then
14878	archive_cmds_F77='$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'
14879      else
14880	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14881	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14882      fi
14883      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14884      hardcode_libdir_separator_F77=:
14885      link_all_deplibs_F77=yes
14886      ;;
14887
14888    netbsd*)
14889      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14890	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14891      else
14892	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14893      fi
14894      hardcode_libdir_flag_spec_F77='-R$libdir'
14895      hardcode_direct_F77=yes
14896      hardcode_shlibpath_var_F77=no
14897      ;;
14898
14899    newsos6)
14900      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14901      hardcode_direct_F77=yes
14902      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14903      hardcode_libdir_separator_F77=:
14904      hardcode_shlibpath_var_F77=no
14905      ;;
14906
14907    openbsd*)
14908      hardcode_direct_F77=yes
14909      hardcode_shlibpath_var_F77=no
14910      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14911	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14912	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14913	export_dynamic_flag_spec_F77='${wl}-E'
14914      else
14915       case $host_os in
14916	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14917	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14918	   hardcode_libdir_flag_spec_F77='-R$libdir'
14919	   ;;
14920	 *)
14921	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14922	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14923	   ;;
14924       esac
14925      fi
14926      ;;
14927
14928    os2*)
14929      hardcode_libdir_flag_spec_F77='-L$libdir'
14930      hardcode_minus_L_F77=yes
14931      allow_undefined_flag_F77=unsupported
14932      archive_cmds_F77='$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'
14933      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14934      ;;
14935
14936    osf3*)
14937      if test "$GCC" = yes; then
14938	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14939	archive_cmds_F77='$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'
14940      else
14941	allow_undefined_flag_F77=' -expect_unresolved \*'
14942	archive_cmds_F77='$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'
14943      fi
14944      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14945      hardcode_libdir_separator_F77=:
14946      ;;
14947
14948    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14949      if test "$GCC" = yes; then
14950	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14951	archive_cmds_F77='$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'
14952	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14953      else
14954	allow_undefined_flag_F77=' -expect_unresolved \*'
14955	archive_cmds_F77='$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'
14956	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14957	$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'
14958
14959	# Both c and cxx compiler support -rpath directly
14960	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14961      fi
14962      hardcode_libdir_separator_F77=:
14963      ;;
14964
14965    sco3.2v5*)
14966      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14967      hardcode_shlibpath_var_F77=no
14968      export_dynamic_flag_spec_F77='${wl}-Bexport'
14969      runpath_var=LD_RUN_PATH
14970      hardcode_runpath_var=yes
14971      ;;
14972
14973    solaris*)
14974      no_undefined_flag_F77=' -z text'
14975      if test "$GCC" = yes; then
14976	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14977	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14978	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14979      else
14980	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14982  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14983      fi
14984      hardcode_libdir_flag_spec_F77='-R$libdir'
14985      hardcode_shlibpath_var_F77=no
14986      case $host_os in
14987      solaris2.[0-5] | solaris2.[0-5].*) ;;
14988      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14989	whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14990      esac
14991      link_all_deplibs_F77=yes
14992      ;;
14993
14994    sunos4*)
14995      if test "x$host_vendor" = xsequent; then
14996	# Use $CC to link under sequent, because it throws in some extra .o
14997	# files that make .init and .fini sections work.
14998	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14999      else
15000	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15001      fi
15002      hardcode_libdir_flag_spec_F77='-L$libdir'
15003      hardcode_direct_F77=yes
15004      hardcode_minus_L_F77=yes
15005      hardcode_shlibpath_var_F77=no
15006      ;;
15007
15008    sysv4)
15009      case $host_vendor in
15010	sni)
15011	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15012	  hardcode_direct_F77=yes # is this really true???
15013	;;
15014	siemens)
15015	  ## LD is ld it makes a PLAMLIB
15016	  ## CC just makes a GrossModule.
15017	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15018	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15019	  hardcode_direct_F77=no
15020        ;;
15021	motorola)
15022	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15024	;;
15025      esac
15026      runpath_var='LD_RUN_PATH'
15027      hardcode_shlibpath_var_F77=no
15028      ;;
15029
15030    sysv4.3*)
15031      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15032      hardcode_shlibpath_var_F77=no
15033      export_dynamic_flag_spec_F77='-Bexport'
15034      ;;
15035
15036    sysv4*MP*)
15037      if test -d /usr/nec; then
15038	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15039	hardcode_shlibpath_var_F77=no
15040	runpath_var=LD_RUN_PATH
15041	hardcode_runpath_var=yes
15042	ld_shlibs_F77=yes
15043      fi
15044      ;;
15045
15046    sysv4.2uw2*)
15047      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15048      hardcode_direct_F77=yes
15049      hardcode_minus_L_F77=no
15050      hardcode_shlibpath_var_F77=no
15051      hardcode_runpath_var=yes
15052      runpath_var=LD_RUN_PATH
15053      ;;
15054
15055   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15056      no_undefined_flag_F77='${wl}-z ${wl}text'
15057      if test "$GCC" = yes; then
15058	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15059      else
15060	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15061      fi
15062      runpath_var='LD_RUN_PATH'
15063      hardcode_shlibpath_var_F77=no
15064      ;;
15065
15066    sysv5*)
15067      no_undefined_flag_F77=' -z text'
15068      # $CC -shared without GNU ld will not create a library from C++
15069      # object files and a static libstdc++, better avoid it by now
15070      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15071      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15072  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15073      hardcode_libdir_flag_spec_F77=
15074      hardcode_shlibpath_var_F77=no
15075      runpath_var='LD_RUN_PATH'
15076      ;;
15077
15078    uts4*)
15079      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080      hardcode_libdir_flag_spec_F77='-L$libdir'
15081      hardcode_shlibpath_var_F77=no
15082      ;;
15083
15084    *)
15085      ld_shlibs_F77=no
15086      ;;
15087    esac
15088  fi
15089
15090echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15091echo "${ECHO_T}$ld_shlibs_F77" >&6
15092test "$ld_shlibs_F77" = no && can_build_shared=no
15093
15094variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15095if test "$GCC" = yes; then
15096  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15097fi
15098
15099#
15100# Do we need to explicitly link libc?
15101#
15102case "x$archive_cmds_need_lc_F77" in
15103x|xyes)
15104  # Assume -lc should be added
15105  archive_cmds_need_lc_F77=yes
15106
15107  if test "$enable_shared" = yes && test "$GCC" = yes; then
15108    case $archive_cmds_F77 in
15109    *'~'*)
15110      # FIXME: we may have to deal with multi-command sequences.
15111      ;;
15112    '$CC '*)
15113      # Test whether the compiler implicitly links with -lc since on some
15114      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15115      # to ld, don't add -lc before -lgcc.
15116      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15117echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15118      $rm conftest*
15119      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15120
15121      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15122  (eval $ac_compile) 2>&5
15123  ac_status=$?
15124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125  (exit $ac_status); } 2>conftest.err; then
15126        soname=conftest
15127        lib=conftest
15128        libobjs=conftest.$ac_objext
15129        deplibs=
15130        wl=$lt_prog_compiler_wl_F77
15131        compiler_flags=-v
15132        linker_flags=-v
15133        verstring=
15134        output_objdir=.
15135        libname=conftest
15136        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15137        allow_undefined_flag_F77=
15138        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15139  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15140  ac_status=$?
15141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142  (exit $ac_status); }
15143        then
15144	  archive_cmds_need_lc_F77=no
15145        else
15146	  archive_cmds_need_lc_F77=yes
15147        fi
15148        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15149      else
15150        cat conftest.err 1>&5
15151      fi
15152      $rm conftest*
15153      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15154echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15155      ;;
15156    esac
15157  fi
15158  ;;
15159esac
15160
15161echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15163library_names_spec=
15164libname_spec='lib$name'
15165soname_spec=
15166shrext=".so"
15167postinstall_cmds=
15168postuninstall_cmds=
15169finish_cmds=
15170finish_eval=
15171shlibpath_var=
15172shlibpath_overrides_runpath=unknown
15173version_type=none
15174dynamic_linker="$host_os ld.so"
15175sys_lib_dlsearch_path_spec="/lib /usr/lib"
15176if test "$GCC" = yes; then
15177  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15178  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15179    # if the path contains ";" then we assume it to be the separator
15180    # otherwise default to the standard path separator (i.e. ":") - it is
15181    # assumed that no part of a normal pathname contains ";" but that should
15182    # okay in the real world where ";" in dirpaths is itself problematic.
15183    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15184  else
15185    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15186  fi
15187else
15188  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15189fi
15190need_lib_prefix=unknown
15191hardcode_into_libs=no
15192
15193# when you set need_version to no, make sure it does not cause -set_version
15194# flags to be left without arguments
15195need_version=unknown
15196
15197case $host_os in
15198aix3*)
15199  version_type=linux
15200  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15201  shlibpath_var=LIBPATH
15202
15203  # AIX 3 has no versioning support, so we append a major version to the name.
15204  soname_spec='${libname}${release}${shared_ext}$major'
15205  ;;
15206
15207aix4* | aix5*)
15208  version_type=linux
15209  need_lib_prefix=no
15210  need_version=no
15211  hardcode_into_libs=yes
15212  if test "$host_cpu" = ia64; then
15213    # AIX 5 supports IA64
15214    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15215    shlibpath_var=LD_LIBRARY_PATH
15216  else
15217    # With GCC up to 2.95.x, collect2 would create an import file
15218    # for dependence libraries.  The import file would start with
15219    # the line `#! .'.  This would cause the generated library to
15220    # depend on `.', always an invalid library.  This was fixed in
15221    # development snapshots of GCC prior to 3.0.
15222    case $host_os in
15223      aix4 | aix4.[01] | aix4.[01].*)
15224      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15225	   echo ' yes '
15226	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15227	:
15228      else
15229	can_build_shared=no
15230      fi
15231      ;;
15232    esac
15233    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15234    # soname into executable. Probably we can add versioning support to
15235    # collect2, so additional links can be useful in future.
15236    if test "$aix_use_runtimelinking" = yes; then
15237      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15238      # instead of lib<name>.a to let people know that these are not
15239      # typical AIX shared libraries.
15240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241    else
15242      # We preserve .a as extension for shared libraries through AIX4.2
15243      # and later when we are not doing run time linking.
15244      library_names_spec='${libname}${release}.a $libname.a'
15245      soname_spec='${libname}${release}${shared_ext}$major'
15246    fi
15247    shlibpath_var=LIBPATH
15248  fi
15249  ;;
15250
15251amigaos*)
15252  library_names_spec='$libname.ixlibrary $libname.a'
15253  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15254  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'
15255  ;;
15256
15257beos*)
15258  library_names_spec='${libname}${shared_ext}'
15259  dynamic_linker="$host_os ld.so"
15260  shlibpath_var=LIBRARY_PATH
15261  ;;
15262
15263bsdi4*)
15264  version_type=linux
15265  need_version=no
15266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267  soname_spec='${libname}${release}${shared_ext}$major'
15268  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15269  shlibpath_var=LD_LIBRARY_PATH
15270  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15271  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15272  # the default ld.so.conf also contains /usr/contrib/lib and
15273  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15274  # libtool to hard-code these into programs
15275  ;;
15276
15277cygwin* | mingw* | pw32*)
15278  version_type=windows
15279  shrext=".dll"
15280  need_version=no
15281  need_lib_prefix=no
15282
15283  case $GCC,$host_os in
15284  yes,cygwin* | yes,mingw* | yes,pw32*)
15285    library_names_spec='$libname.dll.a'
15286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15287    postinstall_cmds='base_file=`basename \${file}`~
15288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15289      dldir=$destdir/`dirname \$dlpath`~
15290      test -d \$dldir || mkdir -p \$dldir~
15291      $install_prog $dir/$dlname \$dldir/$dlname'
15292    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293      dlpath=$dir/\$dldll~
15294       $rm \$dlpath'
15295    shlibpath_overrides_runpath=yes
15296
15297    case $host_os in
15298    cygwin*)
15299      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15300      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15301      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15302      ;;
15303    mingw*)
15304      # MinGW DLLs use traditional 'lib' prefix
15305      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15306      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15307      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15308        # It is most probably a Windows format PATH printed by
15309        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15310        # path with ; separators, and with drive letters. We can handle the
15311        # drive letters (cygwin fileutils understands them), so leave them,
15312        # especially as we might pass files found there to a mingw objdump,
15313        # which wouldn't understand a cygwinified path. Ahh.
15314        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15315      else
15316        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15317      fi
15318      ;;
15319    pw32*)
15320      # pw32 DLLs use 'pw' prefix rather than 'lib'
15321      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15322      ;;
15323    esac
15324    ;;
15325
15326  *)
15327    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15328    ;;
15329  esac
15330  dynamic_linker='Win32 ld.exe'
15331  # FIXME: first we should search . and the directory the executable is in
15332  shlibpath_var=PATH
15333  ;;
15334
15335darwin* | rhapsody*)
15336  dynamic_linker="$host_os dyld"
15337  version_type=darwin
15338  need_lib_prefix=no
15339  need_version=no
15340  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15341  soname_spec='${libname}${release}${major}$shared_ext'
15342  shlibpath_overrides_runpath=yes
15343  shlibpath_var=DYLD_LIBRARY_PATH
15344  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15345  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15346  if test "$GCC" = yes; then
15347    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15348  else
15349    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15350  fi
15351  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15352  ;;
15353
15354dgux*)
15355  version_type=linux
15356  need_lib_prefix=no
15357  need_version=no
15358  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15359  soname_spec='${libname}${release}${shared_ext}$major'
15360  shlibpath_var=LD_LIBRARY_PATH
15361  ;;
15362
15363freebsd1*)
15364  dynamic_linker=no
15365  ;;
15366
15367kfreebsd*-gnu)
15368  version_type=linux
15369  need_lib_prefix=no
15370  need_version=no
15371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15372  soname_spec='${libname}${release}${shared_ext}$major'
15373  shlibpath_var=LD_LIBRARY_PATH
15374  shlibpath_overrides_runpath=no
15375  hardcode_into_libs=yes
15376  dynamic_linker='GNU ld.so'
15377  ;;
15378
15379freebsd*)
15380  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15381  version_type=freebsd-$objformat
15382  case $version_type in
15383    freebsd-elf*)
15384      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15385      need_version=no
15386      need_lib_prefix=no
15387      ;;
15388    freebsd-*)
15389      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15390      need_version=yes
15391      ;;
15392  esac
15393  shlibpath_var=LD_LIBRARY_PATH
15394  case $host_os in
15395  freebsd2*)
15396    shlibpath_overrides_runpath=yes
15397    ;;
15398  freebsd3.01* | freebsdelf3.01*)
15399    shlibpath_overrides_runpath=yes
15400    hardcode_into_libs=yes
15401    ;;
15402  *) # from 3.2 on
15403    shlibpath_overrides_runpath=no
15404    hardcode_into_libs=yes
15405    ;;
15406  esac
15407  ;;
15408
15409gnu*)
15410  version_type=linux
15411  need_lib_prefix=no
15412  need_version=no
15413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15414  soname_spec='${libname}${release}${shared_ext}$major'
15415  shlibpath_var=LD_LIBRARY_PATH
15416  hardcode_into_libs=yes
15417  ;;
15418
15419hpux9* | hpux10* | hpux11*)
15420  # Give a soname corresponding to the major version so that dld.sl refuses to
15421  # link against other versions.
15422  version_type=sunos
15423  need_lib_prefix=no
15424  need_version=no
15425  case "$host_cpu" in
15426  ia64*)
15427    shrext='.so'
15428    hardcode_into_libs=yes
15429    dynamic_linker="$host_os dld.so"
15430    shlibpath_var=LD_LIBRARY_PATH
15431    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433    soname_spec='${libname}${release}${shared_ext}$major'
15434    if test "X$HPUX_IA64_MODE" = X32; then
15435      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15436    else
15437      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15438    fi
15439    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15440    ;;
15441   hppa*64*)
15442     shrext='.sl'
15443     hardcode_into_libs=yes
15444     dynamic_linker="$host_os dld.sl"
15445     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448     soname_spec='${libname}${release}${shared_ext}$major'
15449     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15450     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451     ;;
15452   *)
15453    shrext='.sl'
15454    dynamic_linker="$host_os dld.sl"
15455    shlibpath_var=SHLIB_PATH
15456    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15457    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458    soname_spec='${libname}${release}${shared_ext}$major'
15459    ;;
15460  esac
15461  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15462  postinstall_cmds='chmod 555 $lib'
15463  ;;
15464
15465irix5* | irix6* | nonstopux*)
15466  case $host_os in
15467    nonstopux*) version_type=nonstopux ;;
15468    *)
15469	if test "$lt_cv_prog_gnu_ld" = yes; then
15470		version_type=linux
15471	else
15472		version_type=irix
15473	fi ;;
15474  esac
15475  need_lib_prefix=no
15476  need_version=no
15477  soname_spec='${libname}${release}${shared_ext}$major'
15478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15479  case $host_os in
15480  irix5* | nonstopux*)
15481    libsuff= shlibsuff=
15482    ;;
15483  *)
15484    case $LD in # libtool.m4 will add one of these switches to LD
15485    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15486      libsuff= shlibsuff= libmagic=32-bit;;
15487    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15488      libsuff=32 shlibsuff=N32 libmagic=N32;;
15489    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15490      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15491    *) libsuff= shlibsuff= libmagic=never-match;;
15492    esac
15493    ;;
15494  esac
15495  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15496  shlibpath_overrides_runpath=no
15497  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15498  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15499  hardcode_into_libs=yes
15500  ;;
15501
15502# No shared lib support for Linux oldld, aout, or coff.
15503linux*oldld* | linux*aout* | linux*coff*)
15504  dynamic_linker=no
15505  ;;
15506
15507# This must be Linux ELF.
15508linux*)
15509  version_type=linux
15510  need_lib_prefix=no
15511  need_version=no
15512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513  soname_spec='${libname}${release}${shared_ext}$major'
15514  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15515  shlibpath_var=LD_LIBRARY_PATH
15516  shlibpath_overrides_runpath=no
15517  # This implies no fast_install, which is unacceptable.
15518  # Some rework will be needed to allow for fast_install
15519  # before this can be enabled.
15520  hardcode_into_libs=yes
15521
15522  # Append ld.so.conf contents to the search path
15523  if test -f /etc/ld.so.conf; then
15524    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
15525    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
15526  fi
15527
15528  # We used to test for /lib/ld.so.1 and disable shared libraries on
15529  # powerpc, because MkLinux only supported shared libraries with the
15530  # GNU dynamic linker.  Since this was broken with cross compilers,
15531  # most powerpc-linux boxes support dynamic linking these days and
15532  # people can always --disable-shared, the test was removed, and we
15533  # assume the GNU/Linux dynamic linker is in use.
15534  dynamic_linker='GNU/Linux ld.so'
15535  ;;
15536
15537knetbsd*-gnu)
15538  version_type=linux
15539  need_lib_prefix=no
15540  need_version=no
15541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15542  soname_spec='${libname}${release}${shared_ext}$major'
15543  shlibpath_var=LD_LIBRARY_PATH
15544  shlibpath_overrides_runpath=no
15545  hardcode_into_libs=yes
15546  dynamic_linker='GNU ld.so'
15547  ;;
15548
15549netbsd*)
15550  version_type=sunos
15551  need_lib_prefix=no
15552  need_version=no
15553  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15554    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15555    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15556    dynamic_linker='NetBSD (a.out) ld.so'
15557  else
15558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15559    soname_spec='${libname}${release}${shared_ext}$major'
15560    dynamic_linker='NetBSD ld.elf_so'
15561  fi
15562  shlibpath_var=LD_LIBRARY_PATH
15563  shlibpath_overrides_runpath=yes
15564  hardcode_into_libs=yes
15565  ;;
15566
15567newsos6)
15568  version_type=linux
15569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  shlibpath_overrides_runpath=yes
15572  ;;
15573
15574nto-qnx*)
15575  version_type=linux
15576  need_lib_prefix=no
15577  need_version=no
15578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579  soname_spec='${libname}${release}${shared_ext}$major'
15580  shlibpath_var=LD_LIBRARY_PATH
15581  shlibpath_overrides_runpath=yes
15582  ;;
15583
15584openbsd*)
15585  version_type=sunos
15586  need_lib_prefix=no
15587  need_version=yes
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15589  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15590  shlibpath_var=LD_LIBRARY_PATH
15591  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15592    case $host_os in
15593      openbsd2.[89] | openbsd2.[89].*)
15594	shlibpath_overrides_runpath=no
15595	;;
15596      *)
15597	shlibpath_overrides_runpath=yes
15598	;;
15599      esac
15600  else
15601    shlibpath_overrides_runpath=yes
15602  fi
15603  ;;
15604
15605os2*)
15606  libname_spec='$name'
15607  shrext=".dll"
15608  need_lib_prefix=no
15609  library_names_spec='$libname${shared_ext} $libname.a'
15610  dynamic_linker='OS/2 ld.exe'
15611  shlibpath_var=LIBPATH
15612  ;;
15613
15614osf3* | osf4* | osf5*)
15615  version_type=osf
15616  need_lib_prefix=no
15617  need_version=no
15618  soname_spec='${libname}${release}${shared_ext}$major'
15619  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620  shlibpath_var=LD_LIBRARY_PATH
15621  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15622  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15623  ;;
15624
15625sco3.2v5*)
15626  version_type=osf
15627  soname_spec='${libname}${release}${shared_ext}$major'
15628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629  shlibpath_var=LD_LIBRARY_PATH
15630  ;;
15631
15632solaris*)
15633  version_type=linux
15634  need_lib_prefix=no
15635  need_version=no
15636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15637  soname_spec='${libname}${release}${shared_ext}$major'
15638  shlibpath_var=LD_LIBRARY_PATH
15639  shlibpath_overrides_runpath=yes
15640  hardcode_into_libs=yes
15641  # ldd complains unless libraries are executable
15642  postinstall_cmds='chmod +x $lib'
15643  ;;
15644
15645sunos4*)
15646  version_type=sunos
15647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15648  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15649  shlibpath_var=LD_LIBRARY_PATH
15650  shlibpath_overrides_runpath=yes
15651  if test "$with_gnu_ld" = yes; then
15652    need_lib_prefix=no
15653  fi
15654  need_version=yes
15655  ;;
15656
15657sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15658  version_type=linux
15659  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660  soname_spec='${libname}${release}${shared_ext}$major'
15661  shlibpath_var=LD_LIBRARY_PATH
15662  case $host_vendor in
15663    sni)
15664      shlibpath_overrides_runpath=no
15665      need_lib_prefix=no
15666      export_dynamic_flag_spec='${wl}-Blargedynsym'
15667      runpath_var=LD_RUN_PATH
15668      ;;
15669    siemens)
15670      need_lib_prefix=no
15671      ;;
15672    motorola)
15673      need_lib_prefix=no
15674      need_version=no
15675      shlibpath_overrides_runpath=no
15676      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15677      ;;
15678  esac
15679  ;;
15680
15681sysv4*MP*)
15682  if test -d /usr/nec ;then
15683    version_type=linux
15684    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15685    soname_spec='$libname${shared_ext}.$major'
15686    shlibpath_var=LD_LIBRARY_PATH
15687  fi
15688  ;;
15689
15690uts4*)
15691  version_type=linux
15692  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15693  soname_spec='${libname}${release}${shared_ext}$major'
15694  shlibpath_var=LD_LIBRARY_PATH
15695  ;;
15696
15697*)
15698  dynamic_linker=no
15699  ;;
15700esac
15701echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15702echo "${ECHO_T}$dynamic_linker" >&6
15703test "$dynamic_linker" = no && can_build_shared=no
15704
15705echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15706echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15707hardcode_action_F77=
15708if test -n "$hardcode_libdir_flag_spec_F77" || \
15709   test -n "$runpath_var F77" || \
15710   test "X$hardcode_automatic_F77"="Xyes" ; then
15711
15712  # We can hardcode non-existant directories.
15713  if test "$hardcode_direct_F77" != no &&
15714     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15715     # have to relink, otherwise we might link with an installed library
15716     # when we should be linking with a yet-to-be-installed one
15717     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15718     test "$hardcode_minus_L_F77" != no; then
15719    # Linking always hardcodes the temporary library directory.
15720    hardcode_action_F77=relink
15721  else
15722    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15723    hardcode_action_F77=immediate
15724  fi
15725else
15726  # We cannot hardcode anything, or else we can only hardcode existing
15727  # directories.
15728  hardcode_action_F77=unsupported
15729fi
15730echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15731echo "${ECHO_T}$hardcode_action_F77" >&6
15732
15733if test "$hardcode_action_F77" = relink; then
15734  # Fast installation is not supported
15735  enable_fast_install=no
15736elif test "$shlibpath_overrides_runpath" = yes ||
15737     test "$enable_shared" = no; then
15738  # Fast installation is not necessary
15739  enable_fast_install=needless
15740fi
15741
15742striplib=
15743old_striplib=
15744echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15745echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15746if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15747  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15748  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15749  echo "$as_me:$LINENO: result: yes" >&5
15750echo "${ECHO_T}yes" >&6
15751else
15752# FIXME - insert some real tests, host_os isn't really good enough
15753  case $host_os in
15754   darwin*)
15755       if test -n "$STRIP" ; then
15756         striplib="$STRIP -x"
15757         echo "$as_me:$LINENO: result: yes" >&5
15758echo "${ECHO_T}yes" >&6
15759       else
15760  echo "$as_me:$LINENO: result: no" >&5
15761echo "${ECHO_T}no" >&6
15762fi
15763       ;;
15764   *)
15765  echo "$as_me:$LINENO: result: no" >&5
15766echo "${ECHO_T}no" >&6
15767    ;;
15768  esac
15769fi
15770
15771
15772
15773# The else clause should only fire when bootstrapping the
15774# libtool distribution, otherwise you forgot to ship ltmain.sh
15775# with your package, and you will get complaints that there are
15776# no rules to generate ltmain.sh.
15777if test -f "$ltmain"; then
15778  # See if we are running on zsh, and set the options which allow our commands through
15779  # without removal of \ escapes.
15780  if test -n "${ZSH_VERSION+set}" ; then
15781    setopt NO_GLOB_SUBST
15782  fi
15783  # Now quote all the things that may contain metacharacters while being
15784  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15785  # variables and quote the copies for generation of the libtool script.
15786  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15787    SED SHELL STRIP \
15788    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15789    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15790    deplibs_check_method reload_flag reload_cmds need_locks \
15791    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15792    lt_cv_sys_global_symbol_to_c_name_address \
15793    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15794    old_postinstall_cmds old_postuninstall_cmds \
15795    compiler_F77 \
15796    CC_F77 \
15797    LD_F77 \
15798    lt_prog_compiler_wl_F77 \
15799    lt_prog_compiler_pic_F77 \
15800    lt_prog_compiler_static_F77 \
15801    lt_prog_compiler_no_builtin_flag_F77 \
15802    export_dynamic_flag_spec_F77 \
15803    thread_safe_flag_spec_F77 \
15804    whole_archive_flag_spec_F77 \
15805    enable_shared_with_static_runtimes_F77 \
15806    old_archive_cmds_F77 \
15807    old_archive_from_new_cmds_F77 \
15808    predep_objects_F77 \
15809    postdep_objects_F77 \
15810    predeps_F77 \
15811    postdeps_F77 \
15812    compiler_lib_search_path_F77 \
15813    archive_cmds_F77 \
15814    archive_expsym_cmds_F77 \
15815    postinstall_cmds_F77 \
15816    postuninstall_cmds_F77 \
15817    old_archive_from_expsyms_cmds_F77 \
15818    allow_undefined_flag_F77 \
15819    no_undefined_flag_F77 \
15820    export_symbols_cmds_F77 \
15821    hardcode_libdir_flag_spec_F77 \
15822    hardcode_libdir_flag_spec_ld_F77 \
15823    hardcode_libdir_separator_F77 \
15824    hardcode_automatic_F77 \
15825    module_cmds_F77 \
15826    module_expsym_cmds_F77 \
15827    lt_cv_prog_compiler_c_o_F77 \
15828    exclude_expsyms_F77 \
15829    include_expsyms_F77; do
15830
15831    case $var in
15832    old_archive_cmds_F77 | \
15833    old_archive_from_new_cmds_F77 | \
15834    archive_cmds_F77 | \
15835    archive_expsym_cmds_F77 | \
15836    module_cmds_F77 | \
15837    module_expsym_cmds_F77 | \
15838    old_archive_from_expsyms_cmds_F77 | \
15839    export_symbols_cmds_F77 | \
15840    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15841    postinstall_cmds | postuninstall_cmds | \
15842    old_postinstall_cmds | old_postuninstall_cmds | \
15843    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15844      # Double-quote double-evaled strings.
15845      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15846      ;;
15847    *)
15848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15849      ;;
15850    esac
15851  done
15852
15853  case $lt_echo in
15854  *'\$0 --fallback-echo"')
15855    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15856    ;;
15857  esac
15858
15859cfgfile="$ofile"
15860
15861  cat <<__EOF__ >> "$cfgfile"
15862# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15863
15864# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15865
15866# Shell to use when invoking shell scripts.
15867SHELL=$lt_SHELL
15868
15869# Whether or not to build shared libraries.
15870build_libtool_libs=$enable_shared
15871
15872# Whether or not to build static libraries.
15873build_old_libs=$enable_static
15874
15875# Whether or not to add -lc for building shared libraries.
15876build_libtool_need_lc=$archive_cmds_need_lc_F77
15877
15878# Whether or not to disallow shared libs when runtime libs are static
15879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15880
15881# Whether or not to optimize for fast installation.
15882fast_install=$enable_fast_install
15883
15884# The host system.
15885host_alias=$host_alias
15886host=$host
15887
15888# An echo program that does not interpret backslashes.
15889echo=$lt_echo
15890
15891# The archiver.
15892AR=$lt_AR
15893AR_FLAGS=$lt_AR_FLAGS
15894
15895# A C compiler.
15896LTCC=$lt_LTCC
15897
15898# A language-specific compiler.
15899CC=$lt_compiler_F77
15900
15901# Is the compiler the GNU C compiler?
15902with_gcc=$GCC_F77
15903
15904# An ERE matcher.
15905EGREP=$lt_EGREP
15906
15907# The linker used to build libraries.
15908LD=$lt_LD_F77
15909
15910# Whether we need hard or soft links.
15911LN_S=$lt_LN_S
15912
15913# A BSD-compatible nm program.
15914NM=$lt_NM
15915
15916# A symbol stripping program
15917STRIP=$lt_STRIP
15918
15919# Used to examine libraries when file_magic_cmd begins "file"
15920MAGIC_CMD=$MAGIC_CMD
15921
15922# Used on cygwin: DLL creation program.
15923DLLTOOL="$DLLTOOL"
15924
15925# Used on cygwin: object dumper.
15926OBJDUMP="$OBJDUMP"
15927
15928# Used on cygwin: assembler.
15929AS="$AS"
15930
15931# The name of the directory that contains temporary libtool files.
15932objdir=$objdir
15933
15934# How to create reloadable object files.
15935reload_flag=$lt_reload_flag
15936reload_cmds=$lt_reload_cmds
15937
15938# How to pass a linker flag through the compiler.
15939wl=$lt_lt_prog_compiler_wl_F77
15940
15941# Object file suffix (normally "o").
15942objext="$ac_objext"
15943
15944# Old archive suffix (normally "a").
15945libext="$libext"
15946
15947# Shared library suffix (normally ".so").
15948shrext='$shrext'
15949
15950# Executable file suffix (normally "").
15951exeext="$exeext"
15952
15953# Additional compiler flags for building library objects.
15954pic_flag=$lt_lt_prog_compiler_pic_F77
15955pic_mode=$pic_mode
15956
15957# What is the maximum length of a command?
15958max_cmd_len=$lt_cv_sys_max_cmd_len
15959
15960# Does compiler simultaneously support -c and -o options?
15961compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15962
15963# Must we lock files when doing compilation ?
15964need_locks=$lt_need_locks
15965
15966# Do we need the lib prefix for modules?
15967need_lib_prefix=$need_lib_prefix
15968
15969# Do we need a version for libraries?
15970need_version=$need_version
15971
15972# Whether dlopen is supported.
15973dlopen_support=$enable_dlopen
15974
15975# Whether dlopen of programs is supported.
15976dlopen_self=$enable_dlopen_self
15977
15978# Whether dlopen of statically linked programs is supported.
15979dlopen_self_static=$enable_dlopen_self_static
15980
15981# Compiler flag to prevent dynamic linking.
15982link_static_flag=$lt_lt_prog_compiler_static_F77
15983
15984# Compiler flag to turn off builtin functions.
15985no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15986
15987# Compiler flag to allow reflexive dlopens.
15988export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15989
15990# Compiler flag to generate shared objects directly from archives.
15991whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15992
15993# Compiler flag to generate thread-safe objects.
15994thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15995
15996# Library versioning type.
15997version_type=$version_type
15998
15999# Format of library name prefix.
16000libname_spec=$lt_libname_spec
16001
16002# List of archive names.  First name is the real one, the rest are links.
16003# The last name is the one that the linker finds with -lNAME.
16004library_names_spec=$lt_library_names_spec
16005
16006# The coded name of the library, if different from the real name.
16007soname_spec=$lt_soname_spec
16008
16009# Commands used to build and install an old-style archive.
16010RANLIB=$lt_RANLIB
16011old_archive_cmds=$lt_old_archive_cmds_F77
16012old_postinstall_cmds=$lt_old_postinstall_cmds
16013old_postuninstall_cmds=$lt_old_postuninstall_cmds
16014
16015# Create an old-style archive from a shared archive.
16016old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16017
16018# Create a temporary old-style archive to link instead of a shared archive.
16019old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16020
16021# Commands used to build and install a shared archive.
16022archive_cmds=$lt_archive_cmds_F77
16023archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16024postinstall_cmds=$lt_postinstall_cmds
16025postuninstall_cmds=$lt_postuninstall_cmds
16026
16027# Commands used to build a loadable module (assumed same as above if empty)
16028module_cmds=$lt_module_cmds_F77
16029module_expsym_cmds=$lt_module_expsym_cmds_F77
16030
16031# Commands to strip libraries.
16032old_striplib=$lt_old_striplib
16033striplib=$lt_striplib
16034
16035# Dependencies to place before the objects being linked to create a
16036# shared library.
16037predep_objects=$lt_predep_objects_F77
16038
16039# Dependencies to place after the objects being linked to create a
16040# shared library.
16041postdep_objects=$lt_postdep_objects_F77
16042
16043# Dependencies to place before the objects being linked to create a
16044# shared library.
16045predeps=$lt_predeps_F77
16046
16047# Dependencies to place after the objects being linked to create a
16048# shared library.
16049postdeps=$lt_postdeps_F77
16050
16051# The library search path used internally by the compiler when linking
16052# a shared library.
16053compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16054
16055# Method to check whether dependent libraries are shared objects.
16056deplibs_check_method=$lt_deplibs_check_method
16057
16058# Command to use when deplibs_check_method == file_magic.
16059file_magic_cmd=$lt_file_magic_cmd
16060
16061# Flag that allows shared libraries with undefined symbols to be built.
16062allow_undefined_flag=$lt_allow_undefined_flag_F77
16063
16064# Flag that forces no undefined symbols.
16065no_undefined_flag=$lt_no_undefined_flag_F77
16066
16067# Commands used to finish a libtool library installation in a directory.
16068finish_cmds=$lt_finish_cmds
16069
16070# Same as above, but a single script fragment to be evaled but not shown.
16071finish_eval=$lt_finish_eval
16072
16073# Take the output of nm and produce a listing of raw symbols and C names.
16074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16075
16076# Transform the output of nm in a proper C declaration
16077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16078
16079# Transform the output of nm in a C name address pair
16080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16081
16082# This is the shared library runtime path variable.
16083runpath_var=$runpath_var
16084
16085# This is the shared library path variable.
16086shlibpath_var=$shlibpath_var
16087
16088# Is shlibpath searched before the hard-coded library search path?
16089shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16090
16091# How to hardcode a shared library path into an executable.
16092hardcode_action=$hardcode_action_F77
16093
16094# Whether we should hardcode library paths into libraries.
16095hardcode_into_libs=$hardcode_into_libs
16096
16097# Flag to hardcode \$libdir into a binary during linking.
16098# This must work even if \$libdir does not exist.
16099hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16100
16101# If ld is used when linking, flag to hardcode \$libdir into
16102# a binary during linking. This must work even if \$libdir does
16103# not exist.
16104hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16105
16106# Whether we need a single -rpath flag with a separated argument.
16107hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16108
16109# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16110# resulting binary.
16111hardcode_direct=$hardcode_direct_F77
16112
16113# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16114# resulting binary.
16115hardcode_minus_L=$hardcode_minus_L_F77
16116
16117# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16118# the resulting binary.
16119hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16120
16121# Set to yes if building a shared library automatically hardcodes DIR into the library
16122# and all subsequent libraries and executables linked against it.
16123hardcode_automatic=$hardcode_automatic_F77
16124
16125# Variables whose values should be saved in libtool wrapper scripts and
16126# restored at relink time.
16127variables_saved_for_relink="$variables_saved_for_relink"
16128
16129# Whether libtool must link a program against all its dependency libraries.
16130link_all_deplibs=$link_all_deplibs_F77
16131
16132# Compile-time system search path for libraries
16133sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16134
16135# Run-time system search path for libraries
16136sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16137
16138# Fix the shell variable \$srcfile for the compiler.
16139fix_srcfile_path="$fix_srcfile_path_F77"
16140
16141# Set to yes if exported symbols are required.
16142always_export_symbols=$always_export_symbols_F77
16143
16144# The commands to list exported symbols.
16145export_symbols_cmds=$lt_export_symbols_cmds_F77
16146
16147# The commands to extract the exported symbol list from a shared archive.
16148extract_expsyms_cmds=$lt_extract_expsyms_cmds
16149
16150# Symbols that should not be listed in the preloaded symbols.
16151exclude_expsyms=$lt_exclude_expsyms_F77
16152
16153# Symbols that must always be exported.
16154include_expsyms=$lt_include_expsyms_F77
16155
16156# ### END LIBTOOL TAG CONFIG: $tagname
16157
16158__EOF__
16159
16160
16161else
16162  # If there is no Makefile yet, we rely on a make rule to execute
16163  # `config.status --recheck' to rerun these tests and create the
16164  # libtool script then.
16165  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16166  if test -f "$ltmain_in"; then
16167    test -f Makefile && make "$ltmain"
16168  fi
16169fi
16170
16171
16172ac_ext=c
16173ac_cpp='$CPP $CPPFLAGS'
16174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178CC="$lt_save_CC"
16179
16180	else
16181	  tagname=""
16182	fi
16183	;;
16184
16185      GCJ)
16186	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16187
16188
16189
16190# Source file extension for Java test sources.
16191ac_ext=java
16192
16193# Object file extension for compiled Java test sources.
16194objext=o
16195objext_GCJ=$objext
16196
16197# Code to be used in simple compile tests
16198lt_simple_compile_test_code="class foo {}\n"
16199
16200# Code to be used in simple link tests
16201lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
16202
16203# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16204
16205# If no C compiler was specified, use CC.
16206LTCC=${LTCC-"$CC"}
16207
16208# Allow CC to be a program name with arguments.
16209compiler=$CC
16210
16211
16212# Allow CC to be a program name with arguments.
16213lt_save_CC="$CC"
16214CC=${GCJ-"gcj"}
16215compiler=$CC
16216compiler_GCJ=$CC
16217
16218# GCJ did not exist at the time GCC didn't implicitly link libc in.
16219archive_cmds_need_lc_GCJ=no
16220
16221
16222lt_prog_compiler_no_builtin_flag_GCJ=
16223
16224if test "$GCC" = yes; then
16225  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16226
16227
16228echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16229echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16230if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16231  echo $ECHO_N "(cached) $ECHO_C" >&6
16232else
16233  lt_cv_prog_compiler_rtti_exceptions=no
16234  ac_outfile=conftest.$ac_objext
16235   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16236   lt_compiler_flag="-fno-rtti -fno-exceptions"
16237   # Insert the option either (1) after the last *FLAGS variable, or
16238   # (2) before a word containing "conftest.", or (3) at the end.
16239   # Note that $ac_compile itself does not contain backslashes and begins
16240   # with a dollar sign (not a hyphen), so the echo should work correctly.
16241   # The option is referenced via a variable to avoid confusing sed.
16242   lt_compile=`echo "$ac_compile" | $SED \
16243   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16244   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16245   -e 's:$: $lt_compiler_flag:'`
16246   (eval echo "\"\$as_me:16246: $lt_compile\"" >&5)
16247   (eval "$lt_compile" 2>conftest.err)
16248   ac_status=$?
16249   cat conftest.err >&5
16250   echo "$as_me:16250: \$? = $ac_status" >&5
16251   if (exit $ac_status) && test -s "$ac_outfile"; then
16252     # The compiler can only warn and ignore the option if not recognized
16253     # So say no if there are warnings
16254     if test ! -s conftest.err; then
16255       lt_cv_prog_compiler_rtti_exceptions=yes
16256     fi
16257   fi
16258   $rm conftest*
16259
16260fi
16261echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16262echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16263
16264if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16265    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16266else
16267    :
16268fi
16269
16270fi
16271
16272lt_prog_compiler_wl_GCJ=
16273lt_prog_compiler_pic_GCJ=
16274lt_prog_compiler_static_GCJ=
16275
16276echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16277echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16278
16279  if test "$GCC" = yes; then
16280    lt_prog_compiler_wl_GCJ='-Wl,'
16281    lt_prog_compiler_static_GCJ='-static'
16282
16283    case $host_os in
16284      aix*)
16285      # All AIX code is PIC.
16286      if test "$host_cpu" = ia64; then
16287	# AIX 5 now supports IA64 processor
16288	lt_prog_compiler_static_GCJ='-Bstatic'
16289      fi
16290      ;;
16291
16292    amigaos*)
16293      # FIXME: we need at least 68020 code to build shared libraries, but
16294      # adding the `-m68020' flag to GCC prevents building anything better,
16295      # like `-m68040'.
16296      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16297      ;;
16298
16299    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16300      # PIC is the default for these OSes.
16301      ;;
16302
16303    mingw* | pw32* | os2*)
16304      # This hack is so that the source file can tell whether it is being
16305      # built for inclusion in a dll (and should export symbols for example).
16306      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16307      ;;
16308
16309    darwin* | rhapsody*)
16310      # PIC is the default on this platform
16311      # Common symbols not allowed in MH_DYLIB files
16312      lt_prog_compiler_pic_GCJ='-fno-common'
16313      ;;
16314
16315    msdosdjgpp*)
16316      # Just because we use GCC doesn't mean we suddenly get shared libraries
16317      # on systems that don't support them.
16318      lt_prog_compiler_can_build_shared_GCJ=no
16319      enable_shared=no
16320      ;;
16321
16322    sysv4*MP*)
16323      if test -d /usr/nec; then
16324	lt_prog_compiler_pic_GCJ=-Kconform_pic
16325      fi
16326      ;;
16327
16328    hpux*)
16329      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16330      # not for PA HP-UX.
16331      case "$host_cpu" in
16332      hppa*64*|ia64*)
16333	# +Z the default
16334	;;
16335      *)
16336	lt_prog_compiler_pic_GCJ='-fPIC'
16337	;;
16338      esac
16339      ;;
16340
16341    *)
16342      lt_prog_compiler_pic_GCJ='-fPIC'
16343      ;;
16344    esac
16345  else
16346    # PORTME Check for flag to pass linker flags through the system compiler.
16347    case $host_os in
16348    aix*)
16349      lt_prog_compiler_wl_GCJ='-Wl,'
16350      if test "$host_cpu" = ia64; then
16351	# AIX 5 now supports IA64 processor
16352	lt_prog_compiler_static_GCJ='-Bstatic'
16353      else
16354	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16355      fi
16356      ;;
16357
16358    mingw* | pw32* | os2*)
16359      # This hack is so that the source file can tell whether it is being
16360      # built for inclusion in a dll (and should export symbols for example).
16361      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16362      ;;
16363
16364    hpux9* | hpux10* | hpux11*)
16365      lt_prog_compiler_wl_GCJ='-Wl,'
16366      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16367      # not for PA HP-UX.
16368      case "$host_cpu" in
16369      hppa*64*|ia64*)
16370	# +Z the default
16371	;;
16372      *)
16373	lt_prog_compiler_pic_GCJ='+Z'
16374	;;
16375      esac
16376      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16377      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16378      ;;
16379
16380    irix5* | irix6* | nonstopux*)
16381      lt_prog_compiler_wl_GCJ='-Wl,'
16382      # PIC (with -KPIC) is the default.
16383      lt_prog_compiler_static_GCJ='-non_shared'
16384      ;;
16385
16386    newsos6)
16387      lt_prog_compiler_pic_GCJ='-KPIC'
16388      lt_prog_compiler_static_GCJ='-Bstatic'
16389      ;;
16390
16391    linux*)
16392      case $CC in
16393      icc* | ecc*)
16394	lt_prog_compiler_wl_GCJ='-Wl,'
16395	lt_prog_compiler_pic_GCJ='-KPIC'
16396	lt_prog_compiler_static_GCJ='-static'
16397        ;;
16398      ccc*)
16399        lt_prog_compiler_wl_GCJ='-Wl,'
16400        # All Alpha code is PIC.
16401        lt_prog_compiler_static_GCJ='-non_shared'
16402        ;;
16403      esac
16404      ;;
16405
16406    osf3* | osf4* | osf5*)
16407      lt_prog_compiler_wl_GCJ='-Wl,'
16408      # All OSF/1 code is PIC.
16409      lt_prog_compiler_static_GCJ='-non_shared'
16410      ;;
16411
16412    sco3.2v5*)
16413      lt_prog_compiler_pic_GCJ='-Kpic'
16414      lt_prog_compiler_static_GCJ='-dn'
16415      ;;
16416
16417    solaris*)
16418      lt_prog_compiler_wl_GCJ='-Wl,'
16419      lt_prog_compiler_pic_GCJ='-KPIC'
16420      lt_prog_compiler_static_GCJ='-Bstatic'
16421      ;;
16422
16423    sunos4*)
16424      lt_prog_compiler_wl_GCJ='-Qoption ld '
16425      lt_prog_compiler_pic_GCJ='-PIC'
16426      lt_prog_compiler_static_GCJ='-Bstatic'
16427      ;;
16428
16429    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16430      lt_prog_compiler_wl_GCJ='-Wl,'
16431      lt_prog_compiler_pic_GCJ='-KPIC'
16432      lt_prog_compiler_static_GCJ='-Bstatic'
16433      ;;
16434
16435    sysv4*MP*)
16436      if test -d /usr/nec ;then
16437	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16438	lt_prog_compiler_static_GCJ='-Bstatic'
16439      fi
16440      ;;
16441
16442    uts4*)
16443      lt_prog_compiler_pic_GCJ='-pic'
16444      lt_prog_compiler_static_GCJ='-Bstatic'
16445      ;;
16446
16447    *)
16448      lt_prog_compiler_can_build_shared_GCJ=no
16449      ;;
16450    esac
16451  fi
16452
16453echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16454echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16455
16456#
16457# Check to make sure the PIC flag actually works.
16458#
16459if test -n "$lt_prog_compiler_pic_GCJ"; then
16460
16461echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16462echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16463if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16464  echo $ECHO_N "(cached) $ECHO_C" >&6
16465else
16466  lt_prog_compiler_pic_works_GCJ=no
16467  ac_outfile=conftest.$ac_objext
16468   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16469   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16470   # Insert the option either (1) after the last *FLAGS variable, or
16471   # (2) before a word containing "conftest.", or (3) at the end.
16472   # Note that $ac_compile itself does not contain backslashes and begins
16473   # with a dollar sign (not a hyphen), so the echo should work correctly.
16474   # The option is referenced via a variable to avoid confusing sed.
16475   lt_compile=`echo "$ac_compile" | $SED \
16476   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16477   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478   -e 's:$: $lt_compiler_flag:'`
16479   (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480   (eval "$lt_compile" 2>conftest.err)
16481   ac_status=$?
16482   cat conftest.err >&5
16483   echo "$as_me:16483: \$? = $ac_status" >&5
16484   if (exit $ac_status) && test -s "$ac_outfile"; then
16485     # The compiler can only warn and ignore the option if not recognized
16486     # So say no if there are warnings
16487     if test ! -s conftest.err; then
16488       lt_prog_compiler_pic_works_GCJ=yes
16489     fi
16490   fi
16491   $rm conftest*
16492
16493fi
16494echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16495echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16496
16497if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16498    case $lt_prog_compiler_pic_GCJ in
16499     "" | " "*) ;;
16500     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16501     esac
16502else
16503    lt_prog_compiler_pic_GCJ=
16504     lt_prog_compiler_can_build_shared_GCJ=no
16505fi
16506
16507fi
16508case "$host_os" in
16509  # For platforms which do not support PIC, -DPIC is meaningless:
16510  *djgpp*)
16511    lt_prog_compiler_pic_GCJ=
16512    ;;
16513  *)
16514    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16515    ;;
16516esac
16517
16518echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16519echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16520if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16521  echo $ECHO_N "(cached) $ECHO_C" >&6
16522else
16523  lt_cv_prog_compiler_c_o_GCJ=no
16524   $rm -r conftest 2>/dev/null
16525   mkdir conftest
16526   cd conftest
16527   mkdir out
16528   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16529
16530   lt_compiler_flag="-o out/conftest2.$ac_objext"
16531   # Insert the option either (1) after the last *FLAGS variable, or
16532   # (2) before a word containing "conftest.", or (3) at the end.
16533   # Note that $ac_compile itself does not contain backslashes and begins
16534   # with a dollar sign (not a hyphen), so the echo should work correctly.
16535   lt_compile=`echo "$ac_compile" | $SED \
16536   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16537   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16538   -e 's:$: $lt_compiler_flag:'`
16539   (eval echo "\"\$as_me:16539: $lt_compile\"" >&5)
16540   (eval "$lt_compile" 2>out/conftest.err)
16541   ac_status=$?
16542   cat out/conftest.err >&5
16543   echo "$as_me:16543: \$? = $ac_status" >&5
16544   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16545   then
16546     # The compiler can only warn and ignore the option if not recognized
16547     # So say no if there are warnings
16548     if test ! -s out/conftest.err; then
16549       lt_cv_prog_compiler_c_o_GCJ=yes
16550     fi
16551   fi
16552   chmod u+w .
16553   $rm conftest*
16554   # SGI C++ compiler will create directory out/ii_files/ for
16555   # template instantiation
16556   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16557   $rm out/* && rmdir out
16558   cd ..
16559   rmdir conftest
16560   $rm conftest*
16561
16562fi
16563echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16564echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16565
16566
16567hard_links="nottested"
16568if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16569  # do not overwrite the value of need_locks provided by the user
16570  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16571echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16572  hard_links=yes
16573  $rm conftest*
16574  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16575  touch conftest.a
16576  ln conftest.a conftest.b 2>&5 || hard_links=no
16577  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16578  echo "$as_me:$LINENO: result: $hard_links" >&5
16579echo "${ECHO_T}$hard_links" >&6
16580  if test "$hard_links" = no; then
16581    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16582echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16583    need_locks=warn
16584  fi
16585else
16586  need_locks=no
16587fi
16588
16589echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16590echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16591
16592  runpath_var=
16593  allow_undefined_flag_GCJ=
16594  enable_shared_with_static_runtimes_GCJ=no
16595  archive_cmds_GCJ=
16596  archive_expsym_cmds_GCJ=
16597  old_archive_From_new_cmds_GCJ=
16598  old_archive_from_expsyms_cmds_GCJ=
16599  export_dynamic_flag_spec_GCJ=
16600  whole_archive_flag_spec_GCJ=
16601  thread_safe_flag_spec_GCJ=
16602  hardcode_libdir_flag_spec_GCJ=
16603  hardcode_libdir_flag_spec_ld_GCJ=
16604  hardcode_libdir_separator_GCJ=
16605  hardcode_direct_GCJ=no
16606  hardcode_minus_L_GCJ=no
16607  hardcode_shlibpath_var_GCJ=unsupported
16608  link_all_deplibs_GCJ=unknown
16609  hardcode_automatic_GCJ=no
16610  module_cmds_GCJ=
16611  module_expsym_cmds_GCJ=
16612  always_export_symbols_GCJ=no
16613  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16614  # include_expsyms should be a list of space-separated symbols to be *always*
16615  # included in the symbol list
16616  include_expsyms_GCJ=
16617  # exclude_expsyms can be an extended regexp of symbols to exclude
16618  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16619  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16620  # as well as any symbol that contains `d'.
16621  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16622  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16623  # platforms (ab)use it in PIC code, but their linkers get confused if
16624  # the symbol is explicitly referenced.  Since portable code cannot
16625  # rely on this symbol name, it's probably fine to never include it in
16626  # preloaded symbol tables.
16627  extract_expsyms_cmds=
16628
16629  case $host_os in
16630  cygwin* | mingw* | pw32*)
16631    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16632    # When not using gcc, we currently assume that we are using
16633    # Microsoft Visual C++.
16634    if test "$GCC" != yes; then
16635      with_gnu_ld=no
16636    fi
16637    ;;
16638  openbsd*)
16639    with_gnu_ld=no
16640    ;;
16641  esac
16642
16643  ld_shlibs_GCJ=yes
16644  if test "$with_gnu_ld" = yes; then
16645    # If archive_cmds runs LD, not CC, wlarc should be empty
16646    wlarc='${wl}'
16647
16648    # See if GNU ld supports shared libraries.
16649    case $host_os in
16650    aix3* | aix4* | aix5*)
16651      # On AIX/PPC, the GNU linker is very broken
16652      if test "$host_cpu" != ia64; then
16653	ld_shlibs_GCJ=no
16654	cat <<EOF 1>&2
16655
16656*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16657*** to be unable to reliably create shared libraries on AIX.
16658*** Therefore, libtool is disabling shared libraries support.  If you
16659*** really care for shared libraries, you may want to modify your PATH
16660*** so that a non-GNU linker is found, and then restart.
16661
16662EOF
16663      fi
16664      ;;
16665
16666    amigaos*)
16667      archive_cmds_GCJ='$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)'
16668      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16669      hardcode_minus_L_GCJ=yes
16670
16671      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16672      # that the semantics of dynamic libraries on AmigaOS, at least up
16673      # to version 4, is to share data among multiple programs linked
16674      # with the same dynamic library.  Since this doesn't match the
16675      # behavior of shared libraries on other platforms, we can't use
16676      # them.
16677      ld_shlibs_GCJ=no
16678      ;;
16679
16680    beos*)
16681      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16682	allow_undefined_flag_GCJ=unsupported
16683	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16684	# support --undefined.  This deserves some investigation.  FIXME
16685	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16686      else
16687	ld_shlibs_GCJ=no
16688      fi
16689      ;;
16690
16691    cygwin* | mingw* | pw32*)
16692      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16693      # as there is no search path for DLLs.
16694      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16695      allow_undefined_flag_GCJ=unsupported
16696      always_export_symbols_GCJ=no
16697      enable_shared_with_static_runtimes_GCJ=yes
16698      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16699
16700      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16701        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16702	# If the export-symbols file already is a .def file (1st line
16703	# is EXPORTS), use it as is; otherwise, prepend...
16704	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16705	  cp $export_symbols $output_objdir/$soname.def;
16706	else
16707	  echo EXPORTS > $output_objdir/$soname.def;
16708	  cat $export_symbols >> $output_objdir/$soname.def;
16709	fi~
16710	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16711      else
16712	ld_shlibs=no
16713      fi
16714      ;;
16715
16716    netbsd*)
16717      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16718	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16719	wlarc=
16720      else
16721	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16722	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16723      fi
16724      ;;
16725
16726    solaris* | sysv5*)
16727      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16728	ld_shlibs_GCJ=no
16729	cat <<EOF 1>&2
16730
16731*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16732*** create shared libraries on Solaris systems.  Therefore, libtool
16733*** is disabling shared libraries support.  We urge you to upgrade GNU
16734*** binutils to release 2.9.1 or newer.  Another option is to modify
16735*** your PATH or compiler configuration so that the native linker is
16736*** used, and then restart.
16737
16738EOF
16739      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16742      else
16743	ld_shlibs_GCJ=no
16744      fi
16745      ;;
16746
16747    sunos4*)
16748      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16749      wlarc=
16750      hardcode_direct_GCJ=yes
16751      hardcode_shlibpath_var_GCJ=no
16752      ;;
16753
16754  linux*)
16755    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16756        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16757	archive_cmds_GCJ="$tmp_archive_cmds"
16758      supports_anon_versioning=no
16759      case `$LD -v 2>/dev/null` in
16760        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16761        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16762        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16763        *\ 2.11.*) ;; # other 2.11 versions
16764        *) supports_anon_versioning=yes ;;
16765      esac
16766      if test $supports_anon_versioning = yes; then
16767        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16768cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16769$echo "local: *; };" >> $output_objdir/$libname.ver~
16770        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16771      else
16772        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16773      fi
16774    else
16775      ld_shlibs_GCJ=no
16776    fi
16777    ;;
16778
16779    *)
16780      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16781	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16782	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16783      else
16784	ld_shlibs_GCJ=no
16785      fi
16786      ;;
16787    esac
16788
16789    if test "$ld_shlibs_GCJ" = yes; then
16790      runpath_var=LD_RUN_PATH
16791      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16792      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16793      # ancient GNU ld didn't support --whole-archive et. al.
16794      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16795 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16796      else
16797  	whole_archive_flag_spec_GCJ=
16798      fi
16799    fi
16800  else
16801    # PORTME fill in a description of your system's linker (not GNU ld)
16802    case $host_os in
16803    aix3*)
16804      allow_undefined_flag_GCJ=unsupported
16805      always_export_symbols_GCJ=yes
16806      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16807      # Note: this linker hardcodes the directories in LIBPATH if there
16808      # are no directories specified by -L.
16809      hardcode_minus_L_GCJ=yes
16810      if test "$GCC" = yes && test -z "$link_static_flag"; then
16811	# Neither direct hardcoding nor static linking is supported with a
16812	# broken collect2.
16813	hardcode_direct_GCJ=unsupported
16814      fi
16815      ;;
16816
16817    aix4* | aix5*)
16818      if test "$host_cpu" = ia64; then
16819	# On IA64, the linker does run time linking by default, so we don't
16820	# have to do anything special.
16821	aix_use_runtimelinking=no
16822	exp_sym_flag='-Bexport'
16823	no_entry_flag=""
16824      else
16825	# If we're using GNU nm, then we don't want the "-C" option.
16826	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16827	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16828	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16829	else
16830	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16831	fi
16832	aix_use_runtimelinking=no
16833
16834	# Test if we are trying to use run time linking or normal
16835	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16836	# need to do runtime linking.
16837	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16838	  for ld_flag in $LDFLAGS; do
16839  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16840  	    aix_use_runtimelinking=yes
16841  	    break
16842  	  fi
16843	  done
16844	esac
16845
16846	exp_sym_flag='-bexport'
16847	no_entry_flag='-bnoentry'
16848      fi
16849
16850      # When large executables or shared objects are built, AIX ld can
16851      # have problems creating the table of contents.  If linking a library
16852      # or program results in "error TOC overflow" add -mminimal-toc to
16853      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16854      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16855
16856      archive_cmds_GCJ=''
16857      hardcode_direct_GCJ=yes
16858      hardcode_libdir_separator_GCJ=':'
16859      link_all_deplibs_GCJ=yes
16860
16861      if test "$GCC" = yes; then
16862	case $host_os in aix4.012|aix4.012.*)
16863	# We only want to do this on AIX 4.2 and lower, the check
16864	# below for broken collect2 doesn't work under 4.3+
16865	  collect2name=`${CC} -print-prog-name=collect2`
16866	  if test -f "$collect2name" && \
16867  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16868	  then
16869  	  # We have reworked collect2
16870  	  hardcode_direct_GCJ=yes
16871	  else
16872  	  # We have old collect2
16873  	  hardcode_direct_GCJ=unsupported
16874  	  # It fails to find uninstalled libraries when the uninstalled
16875  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16876  	  # to unsupported forces relinking
16877  	  hardcode_minus_L_GCJ=yes
16878  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16879  	  hardcode_libdir_separator_GCJ=
16880	  fi
16881	esac
16882	shared_flag='-shared'
16883      else
16884	# not using gcc
16885	if test "$host_cpu" = ia64; then
16886  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16887  	# chokes on -Wl,-G. The following line is correct:
16888	  shared_flag='-G'
16889	else
16890  	if test "$aix_use_runtimelinking" = yes; then
16891	    shared_flag='${wl}-G'
16892	  else
16893	    shared_flag='${wl}-bM:SRE'
16894  	fi
16895	fi
16896      fi
16897
16898      # It seems that -bexpall does not export symbols beginning with
16899      # underscore (_), so it is better to generate a list of symbols to export.
16900      always_export_symbols_GCJ=yes
16901      if test "$aix_use_runtimelinking" = yes; then
16902	# Warning - without using the other runtime loading flags (-brtl),
16903	# -berok will link without error, but may produce a broken library.
16904	allow_undefined_flag_GCJ='-berok'
16905       # Determine the default libpath from the value encoded in an empty executable.
16906       cat >conftest.$ac_ext <<_ACEOF
16907/* confdefs.h.  */
16908_ACEOF
16909cat confdefs.h >>conftest.$ac_ext
16910cat >>conftest.$ac_ext <<_ACEOF
16911/* end confdefs.h.  */
16912
16913int
16914main ()
16915{
16916
16917  ;
16918  return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext conftest$ac_exeext
16922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923  (eval $ac_link) 2>conftest.er1
16924  ac_status=$?
16925  grep -v '^ *+' conftest.er1 >conftest.err
16926  rm -f conftest.er1
16927  cat conftest.err >&5
16928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929  (exit $ac_status); } &&
16930	 { ac_try='test -z "$ac_c_werror_flag"
16931			 || test ! -s conftest.err'
16932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933  (eval $ac_try) 2>&5
16934  ac_status=$?
16935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936  (exit $ac_status); }; } &&
16937	 { ac_try='test -s conftest$ac_exeext'
16938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939  (eval $ac_try) 2>&5
16940  ac_status=$?
16941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942  (exit $ac_status); }; }; then
16943
16944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16945}'`
16946# Check for a 64-bit object if we didn't find anything.
16947if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16948}'`; fi
16949else
16950  echo "$as_me: failed program was:" >&5
16951sed 's/^/| /' conftest.$ac_ext >&5
16952
16953fi
16954rm -f conftest.err conftest.$ac_objext \
16955      conftest$ac_exeext conftest.$ac_ext
16956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16957
16958       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959	archive_expsym_cmds_GCJ="\$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"
16960       else
16961	if test "$host_cpu" = ia64; then
16962	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16963	  allow_undefined_flag_GCJ="-z nodefs"
16964	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16965	else
16966	 # Determine the default libpath from the value encoded in an empty executable.
16967	 cat >conftest.$ac_ext <<_ACEOF
16968/* confdefs.h.  */
16969_ACEOF
16970cat confdefs.h >>conftest.$ac_ext
16971cat >>conftest.$ac_ext <<_ACEOF
16972/* end confdefs.h.  */
16973
16974int
16975main ()
16976{
16977
16978  ;
16979  return 0;
16980}
16981_ACEOF
16982rm -f conftest.$ac_objext conftest$ac_exeext
16983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16984  (eval $ac_link) 2>conftest.er1
16985  ac_status=$?
16986  grep -v '^ *+' conftest.er1 >conftest.err
16987  rm -f conftest.er1
16988  cat conftest.err >&5
16989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990  (exit $ac_status); } &&
16991	 { ac_try='test -z "$ac_c_werror_flag"
16992			 || test ! -s conftest.err'
16993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994  (eval $ac_try) 2>&5
16995  ac_status=$?
16996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997  (exit $ac_status); }; } &&
16998	 { ac_try='test -s conftest$ac_exeext'
16999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000  (eval $ac_try) 2>&5
17001  ac_status=$?
17002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003  (exit $ac_status); }; }; then
17004
17005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17006}'`
17007# Check for a 64-bit object if we didn't find anything.
17008if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17009}'`; fi
17010else
17011  echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014fi
17015rm -f conftest.err conftest.$ac_objext \
17016      conftest$ac_exeext conftest.$ac_ext
17017if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17018
17019	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17020	  # Warning - without using the other run time loading flags,
17021	  # -berok will link without error, but may produce a broken library.
17022	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17023	  allow_undefined_flag_GCJ=' ${wl}-berok'
17024	  # -bexpall does not export symbols beginning with underscore (_)
17025	  always_export_symbols_GCJ=yes
17026	  # Exported symbols can be pulled into shared objects from archives
17027	  whole_archive_flag_spec_GCJ=' '
17028	  archive_cmds_need_lc_GCJ=yes
17029	  # This is similar to how AIX traditionally builds it's shared libraries.
17030	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17031	fi
17032      fi
17033      ;;
17034
17035    amigaos*)
17036      archive_cmds_GCJ='$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)'
17037      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038      hardcode_minus_L_GCJ=yes
17039      # see comment about different semantics on the GNU ld section
17040      ld_shlibs_GCJ=no
17041      ;;
17042
17043    bsdi4*)
17044      export_dynamic_flag_spec_GCJ=-rdynamic
17045      ;;
17046
17047    cygwin* | mingw* | pw32*)
17048      # When not using gcc, we currently assume that we are using
17049      # Microsoft Visual C++.
17050      # hardcode_libdir_flag_spec is actually meaningless, as there is
17051      # no search path for DLLs.
17052      hardcode_libdir_flag_spec_GCJ=' '
17053      allow_undefined_flag_GCJ=unsupported
17054      # Tell ltmain to make .lib files, not .a files.
17055      libext=lib
17056      # Tell ltmain to make .dll files, not .so files.
17057      shrext=".dll"
17058      # FIXME: Setting linknames here is a bad hack.
17059      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17060      # The linker will automatically build a .lib file if we build a DLL.
17061      old_archive_From_new_cmds_GCJ='true'
17062      # FIXME: Should let the user specify the lib program.
17063      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17064      fix_srcfile_path='`cygpath -w "$srcfile"`'
17065      enable_shared_with_static_runtimes_GCJ=yes
17066      ;;
17067
17068    darwin* | rhapsody*)
17069    if test "$GXX" = yes ; then
17070      archive_cmds_need_lc_GCJ=no
17071      case "$host_os" in
17072      rhapsody* | darwin1.[012])
17073	allow_undefined_flag_GCJ='-undefined suppress'
17074	;;
17075      *) # Darwin 1.3 on
17076      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17077      	allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17078      else
17079        case ${MACOSX_DEPLOYMENT_TARGET} in
17080          10.[012])
17081            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
17082            ;;
17083          10.*)
17084            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
17085            ;;
17086        esac
17087      fi
17088	;;
17089      esac
17090    	lt_int_apple_cc_single_mod=no
17091    	output_verbose_link_cmd='echo'
17092    	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17093    	  lt_int_apple_cc_single_mod=yes
17094    	fi
17095    	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17096    	  archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17097    	else
17098        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17099      fi
17100      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17101      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17102        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17103          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17104        else
17105          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17106        fi
17107          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17108      hardcode_direct_GCJ=no
17109      hardcode_automatic_GCJ=yes
17110      hardcode_shlibpath_var_GCJ=unsupported
17111      whole_archive_flag_spec_GCJ='-all_load $convenience'
17112      link_all_deplibs_GCJ=yes
17113    else
17114      ld_shlibs_GCJ=no
17115    fi
17116      ;;
17117
17118    dgux*)
17119      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17121      hardcode_shlibpath_var_GCJ=no
17122      ;;
17123
17124    freebsd1*)
17125      ld_shlibs_GCJ=no
17126      ;;
17127
17128    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17129    # support.  Future versions do this automatically, but an explicit c++rt0.o
17130    # does not break anything, and helps significantly (at the cost of a little
17131    # extra space).
17132    freebsd2.2*)
17133      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17134      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17135      hardcode_direct_GCJ=yes
17136      hardcode_shlibpath_var_GCJ=no
17137      ;;
17138
17139    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17140    freebsd2*)
17141      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17142      hardcode_direct_GCJ=yes
17143      hardcode_minus_L_GCJ=yes
17144      hardcode_shlibpath_var_GCJ=no
17145      ;;
17146
17147    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17148    freebsd* | kfreebsd*-gnu)
17149      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17150      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17151      hardcode_direct_GCJ=yes
17152      hardcode_shlibpath_var_GCJ=no
17153      ;;
17154
17155    hpux9*)
17156      if test "$GCC" = yes; then
17157	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17158      else
17159	archive_cmds_GCJ='$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'
17160      fi
17161      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17162      hardcode_libdir_separator_GCJ=:
17163      hardcode_direct_GCJ=yes
17164
17165      # hardcode_minus_L: Not really in the search PATH,
17166      # but as the default location of the library.
17167      hardcode_minus_L_GCJ=yes
17168      export_dynamic_flag_spec_GCJ='${wl}-E'
17169      ;;
17170
17171    hpux10* | hpux11*)
17172      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17173	case "$host_cpu" in
17174	hppa*64*|ia64*)
17175	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17176	  ;;
17177	*)
17178	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17179	  ;;
17180	esac
17181      else
17182	case "$host_cpu" in
17183	hppa*64*|ia64*)
17184	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17185	  ;;
17186	*)
17187	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17188	  ;;
17189	esac
17190      fi
17191      if test "$with_gnu_ld" = no; then
17192	case "$host_cpu" in
17193	hppa*64*)
17194	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17195	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17196	  hardcode_libdir_separator_GCJ=:
17197	  hardcode_direct_GCJ=no
17198	  hardcode_shlibpath_var_GCJ=no
17199	  ;;
17200	ia64*)
17201	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17202	  hardcode_direct_GCJ=no
17203	  hardcode_shlibpath_var_GCJ=no
17204
17205	  # hardcode_minus_L: Not really in the search PATH,
17206	  # but as the default location of the library.
17207	  hardcode_minus_L_GCJ=yes
17208	  ;;
17209	*)
17210	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17211	  hardcode_libdir_separator_GCJ=:
17212	  hardcode_direct_GCJ=yes
17213	  export_dynamic_flag_spec_GCJ='${wl}-E'
17214
17215	  # hardcode_minus_L: Not really in the search PATH,
17216	  # but as the default location of the library.
17217	  hardcode_minus_L_GCJ=yes
17218	  ;;
17219	esac
17220      fi
17221      ;;
17222
17223    irix5* | irix6* | nonstopux*)
17224      if test "$GCC" = yes; then
17225	archive_cmds_GCJ='$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'
17226      else
17227	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17228	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17229      fi
17230      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17231      hardcode_libdir_separator_GCJ=:
17232      link_all_deplibs_GCJ=yes
17233      ;;
17234
17235    netbsd*)
17236      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17237	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17238      else
17239	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17240      fi
17241      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17242      hardcode_direct_GCJ=yes
17243      hardcode_shlibpath_var_GCJ=no
17244      ;;
17245
17246    newsos6)
17247      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17248      hardcode_direct_GCJ=yes
17249      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17250      hardcode_libdir_separator_GCJ=:
17251      hardcode_shlibpath_var_GCJ=no
17252      ;;
17253
17254    openbsd*)
17255      hardcode_direct_GCJ=yes
17256      hardcode_shlibpath_var_GCJ=no
17257      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17258	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17259	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17260	export_dynamic_flag_spec_GCJ='${wl}-E'
17261      else
17262       case $host_os in
17263	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17264	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17265	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17266	   ;;
17267	 *)
17268	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17269	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17270	   ;;
17271       esac
17272      fi
17273      ;;
17274
17275    os2*)
17276      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17277      hardcode_minus_L_GCJ=yes
17278      allow_undefined_flag_GCJ=unsupported
17279      archive_cmds_GCJ='$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'
17280      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17281      ;;
17282
17283    osf3*)
17284      if test "$GCC" = yes; then
17285	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17286	archive_cmds_GCJ='$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'
17287      else
17288	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17289	archive_cmds_GCJ='$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'
17290      fi
17291      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17292      hardcode_libdir_separator_GCJ=:
17293      ;;
17294
17295    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17296      if test "$GCC" = yes; then
17297	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17298	archive_cmds_GCJ='$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'
17299	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17300      else
17301	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302	archive_cmds_GCJ='$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'
17303	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17304	$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'
17305
17306	# Both c and cxx compiler support -rpath directly
17307	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17308      fi
17309      hardcode_libdir_separator_GCJ=:
17310      ;;
17311
17312    sco3.2v5*)
17313      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17314      hardcode_shlibpath_var_GCJ=no
17315      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17316      runpath_var=LD_RUN_PATH
17317      hardcode_runpath_var=yes
17318      ;;
17319
17320    solaris*)
17321      no_undefined_flag_GCJ=' -z text'
17322      if test "$GCC" = yes; then
17323	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17324	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17325	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17326      else
17327	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17329  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17330      fi
17331      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17332      hardcode_shlibpath_var_GCJ=no
17333      case $host_os in
17334      solaris2.[0-5] | solaris2.[0-5].*) ;;
17335      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17336	whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17337      esac
17338      link_all_deplibs_GCJ=yes
17339      ;;
17340
17341    sunos4*)
17342      if test "x$host_vendor" = xsequent; then
17343	# Use $CC to link under sequent, because it throws in some extra .o
17344	# files that make .init and .fini sections work.
17345	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17346      else
17347	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17348      fi
17349      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17350      hardcode_direct_GCJ=yes
17351      hardcode_minus_L_GCJ=yes
17352      hardcode_shlibpath_var_GCJ=no
17353      ;;
17354
17355    sysv4)
17356      case $host_vendor in
17357	sni)
17358	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17359	  hardcode_direct_GCJ=yes # is this really true???
17360	;;
17361	siemens)
17362	  ## LD is ld it makes a PLAMLIB
17363	  ## CC just makes a GrossModule.
17364	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17365	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17366	  hardcode_direct_GCJ=no
17367        ;;
17368	motorola)
17369	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17370	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17371	;;
17372      esac
17373      runpath_var='LD_RUN_PATH'
17374      hardcode_shlibpath_var_GCJ=no
17375      ;;
17376
17377    sysv4.3*)
17378      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17379      hardcode_shlibpath_var_GCJ=no
17380      export_dynamic_flag_spec_GCJ='-Bexport'
17381      ;;
17382
17383    sysv4*MP*)
17384      if test -d /usr/nec; then
17385	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17386	hardcode_shlibpath_var_GCJ=no
17387	runpath_var=LD_RUN_PATH
17388	hardcode_runpath_var=yes
17389	ld_shlibs_GCJ=yes
17390      fi
17391      ;;
17392
17393    sysv4.2uw2*)
17394      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17395      hardcode_direct_GCJ=yes
17396      hardcode_minus_L_GCJ=no
17397      hardcode_shlibpath_var_GCJ=no
17398      hardcode_runpath_var=yes
17399      runpath_var=LD_RUN_PATH
17400      ;;
17401
17402   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17403      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17404      if test "$GCC" = yes; then
17405	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17406      else
17407	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17408      fi
17409      runpath_var='LD_RUN_PATH'
17410      hardcode_shlibpath_var_GCJ=no
17411      ;;
17412
17413    sysv5*)
17414      no_undefined_flag_GCJ=' -z text'
17415      # $CC -shared without GNU ld will not create a library from C++
17416      # object files and a static libstdc++, better avoid it by now
17417      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17418      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17419  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17420      hardcode_libdir_flag_spec_GCJ=
17421      hardcode_shlibpath_var_GCJ=no
17422      runpath_var='LD_RUN_PATH'
17423      ;;
17424
17425    uts4*)
17426      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17427      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17428      hardcode_shlibpath_var_GCJ=no
17429      ;;
17430
17431    *)
17432      ld_shlibs_GCJ=no
17433      ;;
17434    esac
17435  fi
17436
17437echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17438echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17439test "$ld_shlibs_GCJ" = no && can_build_shared=no
17440
17441variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17442if test "$GCC" = yes; then
17443  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17444fi
17445
17446#
17447# Do we need to explicitly link libc?
17448#
17449case "x$archive_cmds_need_lc_GCJ" in
17450x|xyes)
17451  # Assume -lc should be added
17452  archive_cmds_need_lc_GCJ=yes
17453
17454  if test "$enable_shared" = yes && test "$GCC" = yes; then
17455    case $archive_cmds_GCJ in
17456    *'~'*)
17457      # FIXME: we may have to deal with multi-command sequences.
17458      ;;
17459    '$CC '*)
17460      # Test whether the compiler implicitly links with -lc since on some
17461      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17462      # to ld, don't add -lc before -lgcc.
17463      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17464echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17465      $rm conftest*
17466      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17467
17468      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469  (eval $ac_compile) 2>&5
17470  ac_status=$?
17471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472  (exit $ac_status); } 2>conftest.err; then
17473        soname=conftest
17474        lib=conftest
17475        libobjs=conftest.$ac_objext
17476        deplibs=
17477        wl=$lt_prog_compiler_wl_GCJ
17478        compiler_flags=-v
17479        linker_flags=-v
17480        verstring=
17481        output_objdir=.
17482        libname=conftest
17483        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17484        allow_undefined_flag_GCJ=
17485        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17486  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17487  ac_status=$?
17488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489  (exit $ac_status); }
17490        then
17491	  archive_cmds_need_lc_GCJ=no
17492        else
17493	  archive_cmds_need_lc_GCJ=yes
17494        fi
17495        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17496      else
17497        cat conftest.err 1>&5
17498      fi
17499      $rm conftest*
17500      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17501echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17502      ;;
17503    esac
17504  fi
17505  ;;
17506esac
17507
17508echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17509echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17510library_names_spec=
17511libname_spec='lib$name'
17512soname_spec=
17513shrext=".so"
17514postinstall_cmds=
17515postuninstall_cmds=
17516finish_cmds=
17517finish_eval=
17518shlibpath_var=
17519shlibpath_overrides_runpath=unknown
17520version_type=none
17521dynamic_linker="$host_os ld.so"
17522sys_lib_dlsearch_path_spec="/lib /usr/lib"
17523if test "$GCC" = yes; then
17524  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17525  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17526    # if the path contains ";" then we assume it to be the separator
17527    # otherwise default to the standard path separator (i.e. ":") - it is
17528    # assumed that no part of a normal pathname contains ";" but that should
17529    # okay in the real world where ";" in dirpaths is itself problematic.
17530    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17531  else
17532    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17533  fi
17534else
17535  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17536fi
17537need_lib_prefix=unknown
17538hardcode_into_libs=no
17539
17540# when you set need_version to no, make sure it does not cause -set_version
17541# flags to be left without arguments
17542need_version=unknown
17543
17544case $host_os in
17545aix3*)
17546  version_type=linux
17547  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17548  shlibpath_var=LIBPATH
17549
17550  # AIX 3 has no versioning support, so we append a major version to the name.
17551  soname_spec='${libname}${release}${shared_ext}$major'
17552  ;;
17553
17554aix4* | aix5*)
17555  version_type=linux
17556  need_lib_prefix=no
17557  need_version=no
17558  hardcode_into_libs=yes
17559  if test "$host_cpu" = ia64; then
17560    # AIX 5 supports IA64
17561    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17562    shlibpath_var=LD_LIBRARY_PATH
17563  else
17564    # With GCC up to 2.95.x, collect2 would create an import file
17565    # for dependence libraries.  The import file would start with
17566    # the line `#! .'.  This would cause the generated library to
17567    # depend on `.', always an invalid library.  This was fixed in
17568    # development snapshots of GCC prior to 3.0.
17569    case $host_os in
17570      aix4 | aix4.[01] | aix4.[01].*)
17571      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17572	   echo ' yes '
17573	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17574	:
17575      else
17576	can_build_shared=no
17577      fi
17578      ;;
17579    esac
17580    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17581    # soname into executable. Probably we can add versioning support to
17582    # collect2, so additional links can be useful in future.
17583    if test "$aix_use_runtimelinking" = yes; then
17584      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17585      # instead of lib<name>.a to let people know that these are not
17586      # typical AIX shared libraries.
17587      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588    else
17589      # We preserve .a as extension for shared libraries through AIX4.2
17590      # and later when we are not doing run time linking.
17591      library_names_spec='${libname}${release}.a $libname.a'
17592      soname_spec='${libname}${release}${shared_ext}$major'
17593    fi
17594    shlibpath_var=LIBPATH
17595  fi
17596  ;;
17597
17598amigaos*)
17599  library_names_spec='$libname.ixlibrary $libname.a'
17600  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17601  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'
17602  ;;
17603
17604beos*)
17605  library_names_spec='${libname}${shared_ext}'
17606  dynamic_linker="$host_os ld.so"
17607  shlibpath_var=LIBRARY_PATH
17608  ;;
17609
17610bsdi4*)
17611  version_type=linux
17612  need_version=no
17613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17614  soname_spec='${libname}${release}${shared_ext}$major'
17615  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17616  shlibpath_var=LD_LIBRARY_PATH
17617  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17618  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17619  # the default ld.so.conf also contains /usr/contrib/lib and
17620  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17621  # libtool to hard-code these into programs
17622  ;;
17623
17624cygwin* | mingw* | pw32*)
17625  version_type=windows
17626  shrext=".dll"
17627  need_version=no
17628  need_lib_prefix=no
17629
17630  case $GCC,$host_os in
17631  yes,cygwin* | yes,mingw* | yes,pw32*)
17632    library_names_spec='$libname.dll.a'
17633    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17634    postinstall_cmds='base_file=`basename \${file}`~
17635      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17636      dldir=$destdir/`dirname \$dlpath`~
17637      test -d \$dldir || mkdir -p \$dldir~
17638      $install_prog $dir/$dlname \$dldir/$dlname'
17639    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17640      dlpath=$dir/\$dldll~
17641       $rm \$dlpath'
17642    shlibpath_overrides_runpath=yes
17643
17644    case $host_os in
17645    cygwin*)
17646      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17647      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17648      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17649      ;;
17650    mingw*)
17651      # MinGW DLLs use traditional 'lib' prefix
17652      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17653      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17654      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17655        # It is most probably a Windows format PATH printed by
17656        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17657        # path with ; separators, and with drive letters. We can handle the
17658        # drive letters (cygwin fileutils understands them), so leave them,
17659        # especially as we might pass files found there to a mingw objdump,
17660        # which wouldn't understand a cygwinified path. Ahh.
17661        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17662      else
17663        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17664      fi
17665      ;;
17666    pw32*)
17667      # pw32 DLLs use 'pw' prefix rather than 'lib'
17668      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17669      ;;
17670    esac
17671    ;;
17672
17673  *)
17674    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17675    ;;
17676  esac
17677  dynamic_linker='Win32 ld.exe'
17678  # FIXME: first we should search . and the directory the executable is in
17679  shlibpath_var=PATH
17680  ;;
17681
17682darwin* | rhapsody*)
17683  dynamic_linker="$host_os dyld"
17684  version_type=darwin
17685  need_lib_prefix=no
17686  need_version=no
17687  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17688  soname_spec='${libname}${release}${major}$shared_ext'
17689  shlibpath_overrides_runpath=yes
17690  shlibpath_var=DYLD_LIBRARY_PATH
17691  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17692  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17693  if test "$GCC" = yes; then
17694    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17695  else
17696    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17697  fi
17698  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17699  ;;
17700
17701dgux*)
17702  version_type=linux
17703  need_lib_prefix=no
17704  need_version=no
17705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17706  soname_spec='${libname}${release}${shared_ext}$major'
17707  shlibpath_var=LD_LIBRARY_PATH
17708  ;;
17709
17710freebsd1*)
17711  dynamic_linker=no
17712  ;;
17713
17714kfreebsd*-gnu)
17715  version_type=linux
17716  need_lib_prefix=no
17717  need_version=no
17718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17719  soname_spec='${libname}${release}${shared_ext}$major'
17720  shlibpath_var=LD_LIBRARY_PATH
17721  shlibpath_overrides_runpath=no
17722  hardcode_into_libs=yes
17723  dynamic_linker='GNU ld.so'
17724  ;;
17725
17726freebsd*)
17727  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17728  version_type=freebsd-$objformat
17729  case $version_type in
17730    freebsd-elf*)
17731      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17732      need_version=no
17733      need_lib_prefix=no
17734      ;;
17735    freebsd-*)
17736      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17737      need_version=yes
17738      ;;
17739  esac
17740  shlibpath_var=LD_LIBRARY_PATH
17741  case $host_os in
17742  freebsd2*)
17743    shlibpath_overrides_runpath=yes
17744    ;;
17745  freebsd3.01* | freebsdelf3.01*)
17746    shlibpath_overrides_runpath=yes
17747    hardcode_into_libs=yes
17748    ;;
17749  *) # from 3.2 on
17750    shlibpath_overrides_runpath=no
17751    hardcode_into_libs=yes
17752    ;;
17753  esac
17754  ;;
17755
17756gnu*)
17757  version_type=linux
17758  need_lib_prefix=no
17759  need_version=no
17760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17761  soname_spec='${libname}${release}${shared_ext}$major'
17762  shlibpath_var=LD_LIBRARY_PATH
17763  hardcode_into_libs=yes
17764  ;;
17765
17766hpux9* | hpux10* | hpux11*)
17767  # Give a soname corresponding to the major version so that dld.sl refuses to
17768  # link against other versions.
17769  version_type=sunos
17770  need_lib_prefix=no
17771  need_version=no
17772  case "$host_cpu" in
17773  ia64*)
17774    shrext='.so'
17775    hardcode_into_libs=yes
17776    dynamic_linker="$host_os dld.so"
17777    shlibpath_var=LD_LIBRARY_PATH
17778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17780    soname_spec='${libname}${release}${shared_ext}$major'
17781    if test "X$HPUX_IA64_MODE" = X32; then
17782      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17783    else
17784      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17785    fi
17786    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17787    ;;
17788   hppa*64*)
17789     shrext='.sl'
17790     hardcode_into_libs=yes
17791     dynamic_linker="$host_os dld.sl"
17792     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17793     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795     soname_spec='${libname}${release}${shared_ext}$major'
17796     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17797     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17798     ;;
17799   *)
17800    shrext='.sl'
17801    dynamic_linker="$host_os dld.sl"
17802    shlibpath_var=SHLIB_PATH
17803    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17805    soname_spec='${libname}${release}${shared_ext}$major'
17806    ;;
17807  esac
17808  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17809  postinstall_cmds='chmod 555 $lib'
17810  ;;
17811
17812irix5* | irix6* | nonstopux*)
17813  case $host_os in
17814    nonstopux*) version_type=nonstopux ;;
17815    *)
17816	if test "$lt_cv_prog_gnu_ld" = yes; then
17817		version_type=linux
17818	else
17819		version_type=irix
17820	fi ;;
17821  esac
17822  need_lib_prefix=no
17823  need_version=no
17824  soname_spec='${libname}${release}${shared_ext}$major'
17825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17826  case $host_os in
17827  irix5* | nonstopux*)
17828    libsuff= shlibsuff=
17829    ;;
17830  *)
17831    case $LD in # libtool.m4 will add one of these switches to LD
17832    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17833      libsuff= shlibsuff= libmagic=32-bit;;
17834    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17835      libsuff=32 shlibsuff=N32 libmagic=N32;;
17836    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17837      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17838    *) libsuff= shlibsuff= libmagic=never-match;;
17839    esac
17840    ;;
17841  esac
17842  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17843  shlibpath_overrides_runpath=no
17844  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17845  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17846  hardcode_into_libs=yes
17847  ;;
17848
17849# No shared lib support for Linux oldld, aout, or coff.
17850linux*oldld* | linux*aout* | linux*coff*)
17851  dynamic_linker=no
17852  ;;
17853
17854# This must be Linux ELF.
17855linux*)
17856  version_type=linux
17857  need_lib_prefix=no
17858  need_version=no
17859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17860  soname_spec='${libname}${release}${shared_ext}$major'
17861  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17862  shlibpath_var=LD_LIBRARY_PATH
17863  shlibpath_overrides_runpath=no
17864  # This implies no fast_install, which is unacceptable.
17865  # Some rework will be needed to allow for fast_install
17866  # before this can be enabled.
17867  hardcode_into_libs=yes
17868
17869  # Append ld.so.conf contents to the search path
17870  if test -f /etc/ld.so.conf; then
17871    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17872    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17873  fi
17874
17875  # We used to test for /lib/ld.so.1 and disable shared libraries on
17876  # powerpc, because MkLinux only supported shared libraries with the
17877  # GNU dynamic linker.  Since this was broken with cross compilers,
17878  # most powerpc-linux boxes support dynamic linking these days and
17879  # people can always --disable-shared, the test was removed, and we
17880  # assume the GNU/Linux dynamic linker is in use.
17881  dynamic_linker='GNU/Linux ld.so'
17882  ;;
17883
17884knetbsd*-gnu)
17885  version_type=linux
17886  need_lib_prefix=no
17887  need_version=no
17888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17889  soname_spec='${libname}${release}${shared_ext}$major'
17890  shlibpath_var=LD_LIBRARY_PATH
17891  shlibpath_overrides_runpath=no
17892  hardcode_into_libs=yes
17893  dynamic_linker='GNU ld.so'
17894  ;;
17895
17896netbsd*)
17897  version_type=sunos
17898  need_lib_prefix=no
17899  need_version=no
17900  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17901    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17902    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17903    dynamic_linker='NetBSD (a.out) ld.so'
17904  else
17905    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17906    soname_spec='${libname}${release}${shared_ext}$major'
17907    dynamic_linker='NetBSD ld.elf_so'
17908  fi
17909  shlibpath_var=LD_LIBRARY_PATH
17910  shlibpath_overrides_runpath=yes
17911  hardcode_into_libs=yes
17912  ;;
17913
17914newsos6)
17915  version_type=linux
17916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917  shlibpath_var=LD_LIBRARY_PATH
17918  shlibpath_overrides_runpath=yes
17919  ;;
17920
17921nto-qnx*)
17922  version_type=linux
17923  need_lib_prefix=no
17924  need_version=no
17925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17926  soname_spec='${libname}${release}${shared_ext}$major'
17927  shlibpath_var=LD_LIBRARY_PATH
17928  shlibpath_overrides_runpath=yes
17929  ;;
17930
17931openbsd*)
17932  version_type=sunos
17933  need_lib_prefix=no
17934  need_version=yes
17935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17936  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17937  shlibpath_var=LD_LIBRARY_PATH
17938  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17939    case $host_os in
17940      openbsd2.[89] | openbsd2.[89].*)
17941	shlibpath_overrides_runpath=no
17942	;;
17943      *)
17944	shlibpath_overrides_runpath=yes
17945	;;
17946      esac
17947  else
17948    shlibpath_overrides_runpath=yes
17949  fi
17950  ;;
17951
17952os2*)
17953  libname_spec='$name'
17954  shrext=".dll"
17955  need_lib_prefix=no
17956  library_names_spec='$libname${shared_ext} $libname.a'
17957  dynamic_linker='OS/2 ld.exe'
17958  shlibpath_var=LIBPATH
17959  ;;
17960
17961osf3* | osf4* | osf5*)
17962  version_type=osf
17963  need_lib_prefix=no
17964  need_version=no
17965  soname_spec='${libname}${release}${shared_ext}$major'
17966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967  shlibpath_var=LD_LIBRARY_PATH
17968  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17969  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17970  ;;
17971
17972sco3.2v5*)
17973  version_type=osf
17974  soname_spec='${libname}${release}${shared_ext}$major'
17975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17976  shlibpath_var=LD_LIBRARY_PATH
17977  ;;
17978
17979solaris*)
17980  version_type=linux
17981  need_lib_prefix=no
17982  need_version=no
17983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984  soname_spec='${libname}${release}${shared_ext}$major'
17985  shlibpath_var=LD_LIBRARY_PATH
17986  shlibpath_overrides_runpath=yes
17987  hardcode_into_libs=yes
17988  # ldd complains unless libraries are executable
17989  postinstall_cmds='chmod +x $lib'
17990  ;;
17991
17992sunos4*)
17993  version_type=sunos
17994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17995  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17996  shlibpath_var=LD_LIBRARY_PATH
17997  shlibpath_overrides_runpath=yes
17998  if test "$with_gnu_ld" = yes; then
17999    need_lib_prefix=no
18000  fi
18001  need_version=yes
18002  ;;
18003
18004sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18005  version_type=linux
18006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18007  soname_spec='${libname}${release}${shared_ext}$major'
18008  shlibpath_var=LD_LIBRARY_PATH
18009  case $host_vendor in
18010    sni)
18011      shlibpath_overrides_runpath=no
18012      need_lib_prefix=no
18013      export_dynamic_flag_spec='${wl}-Blargedynsym'
18014      runpath_var=LD_RUN_PATH
18015      ;;
18016    siemens)
18017      need_lib_prefix=no
18018      ;;
18019    motorola)
18020      need_lib_prefix=no
18021      need_version=no
18022      shlibpath_overrides_runpath=no
18023      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18024      ;;
18025  esac
18026  ;;
18027
18028sysv4*MP*)
18029  if test -d /usr/nec ;then
18030    version_type=linux
18031    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18032    soname_spec='$libname${shared_ext}.$major'
18033    shlibpath_var=LD_LIBRARY_PATH
18034  fi
18035  ;;
18036
18037uts4*)
18038  version_type=linux
18039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18040  soname_spec='${libname}${release}${shared_ext}$major'
18041  shlibpath_var=LD_LIBRARY_PATH
18042  ;;
18043
18044*)
18045  dynamic_linker=no
18046  ;;
18047esac
18048echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18049echo "${ECHO_T}$dynamic_linker" >&6
18050test "$dynamic_linker" = no && can_build_shared=no
18051
18052echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18053echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18054hardcode_action_GCJ=
18055if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18056   test -n "$runpath_var GCJ" || \
18057   test "X$hardcode_automatic_GCJ"="Xyes" ; then
18058
18059  # We can hardcode non-existant directories.
18060  if test "$hardcode_direct_GCJ" != no &&
18061     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18062     # have to relink, otherwise we might link with an installed library
18063     # when we should be linking with a yet-to-be-installed one
18064     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18065     test "$hardcode_minus_L_GCJ" != no; then
18066    # Linking always hardcodes the temporary library directory.
18067    hardcode_action_GCJ=relink
18068  else
18069    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18070    hardcode_action_GCJ=immediate
18071  fi
18072else
18073  # We cannot hardcode anything, or else we can only hardcode existing
18074  # directories.
18075  hardcode_action_GCJ=unsupported
18076fi
18077echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18078echo "${ECHO_T}$hardcode_action_GCJ" >&6
18079
18080if test "$hardcode_action_GCJ" = relink; then
18081  # Fast installation is not supported
18082  enable_fast_install=no
18083elif test "$shlibpath_overrides_runpath" = yes ||
18084     test "$enable_shared" = no; then
18085  # Fast installation is not necessary
18086  enable_fast_install=needless
18087fi
18088
18089striplib=
18090old_striplib=
18091echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18092echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18093if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18094  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18095  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18096  echo "$as_me:$LINENO: result: yes" >&5
18097echo "${ECHO_T}yes" >&6
18098else
18099# FIXME - insert some real tests, host_os isn't really good enough
18100  case $host_os in
18101   darwin*)
18102       if test -n "$STRIP" ; then
18103         striplib="$STRIP -x"
18104         echo "$as_me:$LINENO: result: yes" >&5
18105echo "${ECHO_T}yes" >&6
18106       else
18107  echo "$as_me:$LINENO: result: no" >&5
18108echo "${ECHO_T}no" >&6
18109fi
18110       ;;
18111   *)
18112  echo "$as_me:$LINENO: result: no" >&5
18113echo "${ECHO_T}no" >&6
18114    ;;
18115  esac
18116fi
18117
18118if test "x$enable_dlopen" != xyes; then
18119  enable_dlopen=unknown
18120  enable_dlopen_self=unknown
18121  enable_dlopen_self_static=unknown
18122else
18123  lt_cv_dlopen=no
18124  lt_cv_dlopen_libs=
18125
18126  case $host_os in
18127  beos*)
18128    lt_cv_dlopen="load_add_on"
18129    lt_cv_dlopen_libs=
18130    lt_cv_dlopen_self=yes
18131    ;;
18132
18133  mingw* | pw32*)
18134    lt_cv_dlopen="LoadLibrary"
18135    lt_cv_dlopen_libs=
18136   ;;
18137
18138  cygwin*)
18139    lt_cv_dlopen="dlopen"
18140    lt_cv_dlopen_libs=
18141   ;;
18142
18143  darwin*)
18144  # if libdl is installed we need to link against it
18145    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18146echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18147if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18148  echo $ECHO_N "(cached) $ECHO_C" >&6
18149else
18150  ac_check_lib_save_LIBS=$LIBS
18151LIBS="-ldl  $LIBS"
18152cat >conftest.$ac_ext <<_ACEOF
18153/* confdefs.h.  */
18154_ACEOF
18155cat confdefs.h >>conftest.$ac_ext
18156cat >>conftest.$ac_ext <<_ACEOF
18157/* end confdefs.h.  */
18158
18159/* Override any gcc2 internal prototype to avoid an error.  */
18160#ifdef __cplusplus
18161extern "C"
18162#endif
18163/* We use char because int might match the return type of a gcc2
18164   builtin and then its argument prototype would still apply.  */
18165char dlopen ();
18166int
18167main ()
18168{
18169dlopen ();
18170  ;
18171  return 0;
18172}
18173_ACEOF
18174rm -f conftest.$ac_objext conftest$ac_exeext
18175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18176  (eval $ac_link) 2>conftest.er1
18177  ac_status=$?
18178  grep -v '^ *+' conftest.er1 >conftest.err
18179  rm -f conftest.er1
18180  cat conftest.err >&5
18181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182  (exit $ac_status); } &&
18183	 { ac_try='test -z "$ac_c_werror_flag"
18184			 || test ! -s conftest.err'
18185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186  (eval $ac_try) 2>&5
18187  ac_status=$?
18188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189  (exit $ac_status); }; } &&
18190	 { ac_try='test -s conftest$ac_exeext'
18191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192  (eval $ac_try) 2>&5
18193  ac_status=$?
18194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195  (exit $ac_status); }; }; then
18196  ac_cv_lib_dl_dlopen=yes
18197else
18198  echo "$as_me: failed program was:" >&5
18199sed 's/^/| /' conftest.$ac_ext >&5
18200
18201ac_cv_lib_dl_dlopen=no
18202fi
18203rm -f conftest.err conftest.$ac_objext \
18204      conftest$ac_exeext conftest.$ac_ext
18205LIBS=$ac_check_lib_save_LIBS
18206fi
18207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18209if test $ac_cv_lib_dl_dlopen = yes; then
18210  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18211else
18212
18213    lt_cv_dlopen="dyld"
18214    lt_cv_dlopen_libs=
18215    lt_cv_dlopen_self=yes
18216
18217fi
18218
18219   ;;
18220
18221  *)
18222    echo "$as_me:$LINENO: checking for shl_load" >&5
18223echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18224if test "${ac_cv_func_shl_load+set}" = set; then
18225  echo $ECHO_N "(cached) $ECHO_C" >&6
18226else
18227  cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h.  */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h.  */
18233/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18234   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18235#define shl_load innocuous_shl_load
18236
18237/* System header to define __stub macros and hopefully few prototypes,
18238    which can conflict with char shl_load (); below.
18239    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18240    <limits.h> exists even on freestanding compilers.  */
18241
18242#ifdef __STDC__
18243# include <limits.h>
18244#else
18245# include <assert.h>
18246#endif
18247
18248#undef shl_load
18249
18250/* Override any gcc2 internal prototype to avoid an error.  */
18251#ifdef __cplusplus
18252extern "C"
18253{
18254#endif
18255/* We use char because int might match the return type of a gcc2
18256   builtin and then its argument prototype would still apply.  */
18257char shl_load ();
18258/* The GNU C library defines this for functions which it implements
18259    to always fail with ENOSYS.  Some functions are actually named
18260    something starting with __ and the normal name is an alias.  */
18261#if defined (__stub_shl_load) || defined (__stub___shl_load)
18262choke me
18263#else
18264char (*f) () = shl_load;
18265#endif
18266#ifdef __cplusplus
18267}
18268#endif
18269
18270int
18271main ()
18272{
18273return f != shl_load;
18274  ;
18275  return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext conftest$ac_exeext
18279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18280  (eval $ac_link) 2>conftest.er1
18281  ac_status=$?
18282  grep -v '^ *+' conftest.er1 >conftest.err
18283  rm -f conftest.er1
18284  cat conftest.err >&5
18285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286  (exit $ac_status); } &&
18287	 { ac_try='test -z "$ac_c_werror_flag"
18288			 || test ! -s conftest.err'
18289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290  (eval $ac_try) 2>&5
18291  ac_status=$?
18292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293  (exit $ac_status); }; } &&
18294	 { ac_try='test -s conftest$ac_exeext'
18295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296  (eval $ac_try) 2>&5
18297  ac_status=$?
18298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299  (exit $ac_status); }; }; then
18300  ac_cv_func_shl_load=yes
18301else
18302  echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305ac_cv_func_shl_load=no
18306fi
18307rm -f conftest.err conftest.$ac_objext \
18308      conftest$ac_exeext conftest.$ac_ext
18309fi
18310echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18311echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18312if test $ac_cv_func_shl_load = yes; then
18313  lt_cv_dlopen="shl_load"
18314else
18315  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18316echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18317if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18318  echo $ECHO_N "(cached) $ECHO_C" >&6
18319else
18320  ac_check_lib_save_LIBS=$LIBS
18321LIBS="-ldld  $LIBS"
18322cat >conftest.$ac_ext <<_ACEOF
18323/* confdefs.h.  */
18324_ACEOF
18325cat confdefs.h >>conftest.$ac_ext
18326cat >>conftest.$ac_ext <<_ACEOF
18327/* end confdefs.h.  */
18328
18329/* Override any gcc2 internal prototype to avoid an error.  */
18330#ifdef __cplusplus
18331extern "C"
18332#endif
18333/* We use char because int might match the return type of a gcc2
18334   builtin and then its argument prototype would still apply.  */
18335char shl_load ();
18336int
18337main ()
18338{
18339shl_load ();
18340  ;
18341  return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext conftest$ac_exeext
18345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18346  (eval $ac_link) 2>conftest.er1
18347  ac_status=$?
18348  grep -v '^ *+' conftest.er1 >conftest.err
18349  rm -f conftest.er1
18350  cat conftest.err >&5
18351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352  (exit $ac_status); } &&
18353	 { ac_try='test -z "$ac_c_werror_flag"
18354			 || test ! -s conftest.err'
18355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356  (eval $ac_try) 2>&5
18357  ac_status=$?
18358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359  (exit $ac_status); }; } &&
18360	 { ac_try='test -s conftest$ac_exeext'
18361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362  (eval $ac_try) 2>&5
18363  ac_status=$?
18364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365  (exit $ac_status); }; }; then
18366  ac_cv_lib_dld_shl_load=yes
18367else
18368  echo "$as_me: failed program was:" >&5
18369sed 's/^/| /' conftest.$ac_ext >&5
18370
18371ac_cv_lib_dld_shl_load=no
18372fi
18373rm -f conftest.err conftest.$ac_objext \
18374      conftest$ac_exeext conftest.$ac_ext
18375LIBS=$ac_check_lib_save_LIBS
18376fi
18377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18378echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18379if test $ac_cv_lib_dld_shl_load = yes; then
18380  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18381else
18382  echo "$as_me:$LINENO: checking for dlopen" >&5
18383echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18384if test "${ac_cv_func_dlopen+set}" = set; then
18385  echo $ECHO_N "(cached) $ECHO_C" >&6
18386else
18387  cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h.  */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h.  */
18393/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18395#define dlopen innocuous_dlopen
18396
18397/* System header to define __stub macros and hopefully few prototypes,
18398    which can conflict with char dlopen (); below.
18399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18400    <limits.h> exists even on freestanding compilers.  */
18401
18402#ifdef __STDC__
18403# include <limits.h>
18404#else
18405# include <assert.h>
18406#endif
18407
18408#undef dlopen
18409
18410/* Override any gcc2 internal prototype to avoid an error.  */
18411#ifdef __cplusplus
18412extern "C"
18413{
18414#endif
18415/* We use char because int might match the return type of a gcc2
18416   builtin and then its argument prototype would still apply.  */
18417char dlopen ();
18418/* The GNU C library defines this for functions which it implements
18419    to always fail with ENOSYS.  Some functions are actually named
18420    something starting with __ and the normal name is an alias.  */
18421#if defined (__stub_dlopen) || defined (__stub___dlopen)
18422choke me
18423#else
18424char (*f) () = dlopen;
18425#endif
18426#ifdef __cplusplus
18427}
18428#endif
18429
18430int
18431main ()
18432{
18433return f != dlopen;
18434  ;
18435  return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext conftest$ac_exeext
18439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18440  (eval $ac_link) 2>conftest.er1
18441  ac_status=$?
18442  grep -v '^ *+' conftest.er1 >conftest.err
18443  rm -f conftest.er1
18444  cat conftest.err >&5
18445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446  (exit $ac_status); } &&
18447	 { ac_try='test -z "$ac_c_werror_flag"
18448			 || test ! -s conftest.err'
18449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450  (eval $ac_try) 2>&5
18451  ac_status=$?
18452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); }; } &&
18454	 { ac_try='test -s conftest$ac_exeext'
18455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456  (eval $ac_try) 2>&5
18457  ac_status=$?
18458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459  (exit $ac_status); }; }; then
18460  ac_cv_func_dlopen=yes
18461else
18462  echo "$as_me: failed program was:" >&5
18463sed 's/^/| /' conftest.$ac_ext >&5
18464
18465ac_cv_func_dlopen=no
18466fi
18467rm -f conftest.err conftest.$ac_objext \
18468      conftest$ac_exeext conftest.$ac_ext
18469fi
18470echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18471echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18472if test $ac_cv_func_dlopen = yes; then
18473  lt_cv_dlopen="dlopen"
18474else
18475  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18478  echo $ECHO_N "(cached) $ECHO_C" >&6
18479else
18480  ac_check_lib_save_LIBS=$LIBS
18481LIBS="-ldl  $LIBS"
18482cat >conftest.$ac_ext <<_ACEOF
18483/* confdefs.h.  */
18484_ACEOF
18485cat confdefs.h >>conftest.$ac_ext
18486cat >>conftest.$ac_ext <<_ACEOF
18487/* end confdefs.h.  */
18488
18489/* Override any gcc2 internal prototype to avoid an error.  */
18490#ifdef __cplusplus
18491extern "C"
18492#endif
18493/* We use char because int might match the return type of a gcc2
18494   builtin and then its argument prototype would still apply.  */
18495char dlopen ();
18496int
18497main ()
18498{
18499dlopen ();
18500  ;
18501  return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext conftest$ac_exeext
18505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18506  (eval $ac_link) 2>conftest.er1
18507  ac_status=$?
18508  grep -v '^ *+' conftest.er1 >conftest.err
18509  rm -f conftest.er1
18510  cat conftest.err >&5
18511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512  (exit $ac_status); } &&
18513	 { ac_try='test -z "$ac_c_werror_flag"
18514			 || test ! -s conftest.err'
18515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516  (eval $ac_try) 2>&5
18517  ac_status=$?
18518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519  (exit $ac_status); }; } &&
18520	 { ac_try='test -s conftest$ac_exeext'
18521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522  (eval $ac_try) 2>&5
18523  ac_status=$?
18524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525  (exit $ac_status); }; }; then
18526  ac_cv_lib_dl_dlopen=yes
18527else
18528  echo "$as_me: failed program was:" >&5
18529sed 's/^/| /' conftest.$ac_ext >&5
18530
18531ac_cv_lib_dl_dlopen=no
18532fi
18533rm -f conftest.err conftest.$ac_objext \
18534      conftest$ac_exeext conftest.$ac_ext
18535LIBS=$ac_check_lib_save_LIBS
18536fi
18537echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18538echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18539if test $ac_cv_lib_dl_dlopen = yes; then
18540  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18541else
18542  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18543echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18544if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18545  echo $ECHO_N "(cached) $ECHO_C" >&6
18546else
18547  ac_check_lib_save_LIBS=$LIBS
18548LIBS="-lsvld  $LIBS"
18549cat >conftest.$ac_ext <<_ACEOF
18550/* confdefs.h.  */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h.  */
18555
18556/* Override any gcc2 internal prototype to avoid an error.  */
18557#ifdef __cplusplus
18558extern "C"
18559#endif
18560/* We use char because int might match the return type of a gcc2
18561   builtin and then its argument prototype would still apply.  */
18562char dlopen ();
18563int
18564main ()
18565{
18566dlopen ();
18567  ;
18568  return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext conftest$ac_exeext
18572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18573  (eval $ac_link) 2>conftest.er1
18574  ac_status=$?
18575  grep -v '^ *+' conftest.er1 >conftest.err
18576  rm -f conftest.er1
18577  cat conftest.err >&5
18578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579  (exit $ac_status); } &&
18580	 { ac_try='test -z "$ac_c_werror_flag"
18581			 || test ! -s conftest.err'
18582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583  (eval $ac_try) 2>&5
18584  ac_status=$?
18585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586  (exit $ac_status); }; } &&
18587	 { ac_try='test -s conftest$ac_exeext'
18588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18589  (eval $ac_try) 2>&5
18590  ac_status=$?
18591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592  (exit $ac_status); }; }; then
18593  ac_cv_lib_svld_dlopen=yes
18594else
18595  echo "$as_me: failed program was:" >&5
18596sed 's/^/| /' conftest.$ac_ext >&5
18597
18598ac_cv_lib_svld_dlopen=no
18599fi
18600rm -f conftest.err conftest.$ac_objext \
18601      conftest$ac_exeext conftest.$ac_ext
18602LIBS=$ac_check_lib_save_LIBS
18603fi
18604echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18605echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18606if test $ac_cv_lib_svld_dlopen = yes; then
18607  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18608else
18609  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18610echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18611if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18612  echo $ECHO_N "(cached) $ECHO_C" >&6
18613else
18614  ac_check_lib_save_LIBS=$LIBS
18615LIBS="-ldld  $LIBS"
18616cat >conftest.$ac_ext <<_ACEOF
18617/* confdefs.h.  */
18618_ACEOF
18619cat confdefs.h >>conftest.$ac_ext
18620cat >>conftest.$ac_ext <<_ACEOF
18621/* end confdefs.h.  */
18622
18623/* Override any gcc2 internal prototype to avoid an error.  */
18624#ifdef __cplusplus
18625extern "C"
18626#endif
18627/* We use char because int might match the return type of a gcc2
18628   builtin and then its argument prototype would still apply.  */
18629char dld_link ();
18630int
18631main ()
18632{
18633dld_link ();
18634  ;
18635  return 0;
18636}
18637_ACEOF
18638rm -f conftest.$ac_objext conftest$ac_exeext
18639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18640  (eval $ac_link) 2>conftest.er1
18641  ac_status=$?
18642  grep -v '^ *+' conftest.er1 >conftest.err
18643  rm -f conftest.er1
18644  cat conftest.err >&5
18645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646  (exit $ac_status); } &&
18647	 { ac_try='test -z "$ac_c_werror_flag"
18648			 || test ! -s conftest.err'
18649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650  (eval $ac_try) 2>&5
18651  ac_status=$?
18652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653  (exit $ac_status); }; } &&
18654	 { ac_try='test -s conftest$ac_exeext'
18655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656  (eval $ac_try) 2>&5
18657  ac_status=$?
18658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659  (exit $ac_status); }; }; then
18660  ac_cv_lib_dld_dld_link=yes
18661else
18662  echo "$as_me: failed program was:" >&5
18663sed 's/^/| /' conftest.$ac_ext >&5
18664
18665ac_cv_lib_dld_dld_link=no
18666fi
18667rm -f conftest.err conftest.$ac_objext \
18668      conftest$ac_exeext conftest.$ac_ext
18669LIBS=$ac_check_lib_save_LIBS
18670fi
18671echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18672echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18673if test $ac_cv_lib_dld_dld_link = yes; then
18674  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18675fi
18676
18677
18678fi
18679
18680
18681fi
18682
18683
18684fi
18685
18686
18687fi
18688
18689
18690fi
18691
18692    ;;
18693  esac
18694
18695  if test "x$lt_cv_dlopen" != xno; then
18696    enable_dlopen=yes
18697  else
18698    enable_dlopen=no
18699  fi
18700
18701  case $lt_cv_dlopen in
18702  dlopen)
18703    save_CPPFLAGS="$CPPFLAGS"
18704    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18705
18706    save_LDFLAGS="$LDFLAGS"
18707    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18708
18709    save_LIBS="$LIBS"
18710    LIBS="$lt_cv_dlopen_libs $LIBS"
18711
18712    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18713echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18714if test "${lt_cv_dlopen_self+set}" = set; then
18715  echo $ECHO_N "(cached) $ECHO_C" >&6
18716else
18717  	  if test "$cross_compiling" = yes; then :
18718  lt_cv_dlopen_self=cross
18719else
18720  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18721  lt_status=$lt_dlunknown
18722  cat > conftest.$ac_ext <<EOF
18723#line 18723 "configure"
18724#include "confdefs.h"
18725
18726#if HAVE_DLFCN_H
18727#include <dlfcn.h>
18728#endif
18729
18730#include <stdio.h>
18731
18732#ifdef RTLD_GLOBAL
18733#  define LT_DLGLOBAL		RTLD_GLOBAL
18734#else
18735#  ifdef DL_GLOBAL
18736#    define LT_DLGLOBAL		DL_GLOBAL
18737#  else
18738#    define LT_DLGLOBAL		0
18739#  endif
18740#endif
18741
18742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18743   find out it does not work in some platform. */
18744#ifndef LT_DLLAZY_OR_NOW
18745#  ifdef RTLD_LAZY
18746#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18747#  else
18748#    ifdef DL_LAZY
18749#      define LT_DLLAZY_OR_NOW		DL_LAZY
18750#    else
18751#      ifdef RTLD_NOW
18752#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18753#      else
18754#        ifdef DL_NOW
18755#          define LT_DLLAZY_OR_NOW	DL_NOW
18756#        else
18757#          define LT_DLLAZY_OR_NOW	0
18758#        endif
18759#      endif
18760#    endif
18761#  endif
18762#endif
18763
18764#ifdef __cplusplus
18765extern "C" void exit (int);
18766#endif
18767
18768void fnord() { int i=42;}
18769int main ()
18770{
18771  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18772  int status = $lt_dlunknown;
18773
18774  if (self)
18775    {
18776      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18777      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18778      /* dlclose (self); */
18779    }
18780
18781    exit (status);
18782}
18783EOF
18784  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785  (eval $ac_link) 2>&5
18786  ac_status=$?
18787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18789    (./conftest; exit; ) 2>/dev/null
18790    lt_status=$?
18791    case x$lt_status in
18792      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18793      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18794      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18795    esac
18796  else :
18797    # compilation failed
18798    lt_cv_dlopen_self=no
18799  fi
18800fi
18801rm -fr conftest*
18802
18803
18804fi
18805echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18806echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18807
18808    if test "x$lt_cv_dlopen_self" = xyes; then
18809      LDFLAGS="$LDFLAGS $link_static_flag"
18810      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18811echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18812if test "${lt_cv_dlopen_self_static+set}" = set; then
18813  echo $ECHO_N "(cached) $ECHO_C" >&6
18814else
18815  	  if test "$cross_compiling" = yes; then :
18816  lt_cv_dlopen_self_static=cross
18817else
18818  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18819  lt_status=$lt_dlunknown
18820  cat > conftest.$ac_ext <<EOF
18821#line 18821 "configure"
18822#include "confdefs.h"
18823
18824#if HAVE_DLFCN_H
18825#include <dlfcn.h>
18826#endif
18827
18828#include <stdio.h>
18829
18830#ifdef RTLD_GLOBAL
18831#  define LT_DLGLOBAL		RTLD_GLOBAL
18832#else
18833#  ifdef DL_GLOBAL
18834#    define LT_DLGLOBAL		DL_GLOBAL
18835#  else
18836#    define LT_DLGLOBAL		0
18837#  endif
18838#endif
18839
18840/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18841   find out it does not work in some platform. */
18842#ifndef LT_DLLAZY_OR_NOW
18843#  ifdef RTLD_LAZY
18844#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18845#  else
18846#    ifdef DL_LAZY
18847#      define LT_DLLAZY_OR_NOW		DL_LAZY
18848#    else
18849#      ifdef RTLD_NOW
18850#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18851#      else
18852#        ifdef DL_NOW
18853#          define LT_DLLAZY_OR_NOW	DL_NOW
18854#        else
18855#          define LT_DLLAZY_OR_NOW	0
18856#        endif
18857#      endif
18858#    endif
18859#  endif
18860#endif
18861
18862#ifdef __cplusplus
18863extern "C" void exit (int);
18864#endif
18865
18866void fnord() { int i=42;}
18867int main ()
18868{
18869  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18870  int status = $lt_dlunknown;
18871
18872  if (self)
18873    {
18874      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18875      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18876      /* dlclose (self); */
18877    }
18878
18879    exit (status);
18880}
18881EOF
18882  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883  (eval $ac_link) 2>&5
18884  ac_status=$?
18885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18887    (./conftest; exit; ) 2>/dev/null
18888    lt_status=$?
18889    case x$lt_status in
18890      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18891      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18892      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18893    esac
18894  else :
18895    # compilation failed
18896    lt_cv_dlopen_self_static=no
18897  fi
18898fi
18899rm -fr conftest*
18900
18901
18902fi
18903echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18904echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18905    fi
18906
18907    CPPFLAGS="$save_CPPFLAGS"
18908    LDFLAGS="$save_LDFLAGS"
18909    LIBS="$save_LIBS"
18910    ;;
18911  esac
18912
18913  case $lt_cv_dlopen_self in
18914  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18915  *) enable_dlopen_self=unknown ;;
18916  esac
18917
18918  case $lt_cv_dlopen_self_static in
18919  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18920  *) enable_dlopen_self_static=unknown ;;
18921  esac
18922fi
18923
18924
18925# The else clause should only fire when bootstrapping the
18926# libtool distribution, otherwise you forgot to ship ltmain.sh
18927# with your package, and you will get complaints that there are
18928# no rules to generate ltmain.sh.
18929if test -f "$ltmain"; then
18930  # See if we are running on zsh, and set the options which allow our commands through
18931  # without removal of \ escapes.
18932  if test -n "${ZSH_VERSION+set}" ; then
18933    setopt NO_GLOB_SUBST
18934  fi
18935  # Now quote all the things that may contain metacharacters while being
18936  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18937  # variables and quote the copies for generation of the libtool script.
18938  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18939    SED SHELL STRIP \
18940    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18941    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18942    deplibs_check_method reload_flag reload_cmds need_locks \
18943    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18944    lt_cv_sys_global_symbol_to_c_name_address \
18945    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18946    old_postinstall_cmds old_postuninstall_cmds \
18947    compiler_GCJ \
18948    CC_GCJ \
18949    LD_GCJ \
18950    lt_prog_compiler_wl_GCJ \
18951    lt_prog_compiler_pic_GCJ \
18952    lt_prog_compiler_static_GCJ \
18953    lt_prog_compiler_no_builtin_flag_GCJ \
18954    export_dynamic_flag_spec_GCJ \
18955    thread_safe_flag_spec_GCJ \
18956    whole_archive_flag_spec_GCJ \
18957    enable_shared_with_static_runtimes_GCJ \
18958    old_archive_cmds_GCJ \
18959    old_archive_from_new_cmds_GCJ \
18960    predep_objects_GCJ \
18961    postdep_objects_GCJ \
18962    predeps_GCJ \
18963    postdeps_GCJ \
18964    compiler_lib_search_path_GCJ \
18965    archive_cmds_GCJ \
18966    archive_expsym_cmds_GCJ \
18967    postinstall_cmds_GCJ \
18968    postuninstall_cmds_GCJ \
18969    old_archive_from_expsyms_cmds_GCJ \
18970    allow_undefined_flag_GCJ \
18971    no_undefined_flag_GCJ \
18972    export_symbols_cmds_GCJ \
18973    hardcode_libdir_flag_spec_GCJ \
18974    hardcode_libdir_flag_spec_ld_GCJ \
18975    hardcode_libdir_separator_GCJ \
18976    hardcode_automatic_GCJ \
18977    module_cmds_GCJ \
18978    module_expsym_cmds_GCJ \
18979    lt_cv_prog_compiler_c_o_GCJ \
18980    exclude_expsyms_GCJ \
18981    include_expsyms_GCJ; do
18982
18983    case $var in
18984    old_archive_cmds_GCJ | \
18985    old_archive_from_new_cmds_GCJ | \
18986    archive_cmds_GCJ | \
18987    archive_expsym_cmds_GCJ | \
18988    module_cmds_GCJ | \
18989    module_expsym_cmds_GCJ | \
18990    old_archive_from_expsyms_cmds_GCJ | \
18991    export_symbols_cmds_GCJ | \
18992    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18993    postinstall_cmds | postuninstall_cmds | \
18994    old_postinstall_cmds | old_postuninstall_cmds | \
18995    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18996      # Double-quote double-evaled strings.
18997      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18998      ;;
18999    *)
19000      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19001      ;;
19002    esac
19003  done
19004
19005  case $lt_echo in
19006  *'\$0 --fallback-echo"')
19007    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19008    ;;
19009  esac
19010
19011cfgfile="$ofile"
19012
19013  cat <<__EOF__ >> "$cfgfile"
19014# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19015
19016# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19017
19018# Shell to use when invoking shell scripts.
19019SHELL=$lt_SHELL
19020
19021# Whether or not to build shared libraries.
19022build_libtool_libs=$enable_shared
19023
19024# Whether or not to build static libraries.
19025build_old_libs=$enable_static
19026
19027# Whether or not to add -lc for building shared libraries.
19028build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19029
19030# Whether or not to disallow shared libs when runtime libs are static
19031allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19032
19033# Whether or not to optimize for fast installation.
19034fast_install=$enable_fast_install
19035
19036# The host system.
19037host_alias=$host_alias
19038host=$host
19039
19040# An echo program that does not interpret backslashes.
19041echo=$lt_echo
19042
19043# The archiver.
19044AR=$lt_AR
19045AR_FLAGS=$lt_AR_FLAGS
19046
19047# A C compiler.
19048LTCC=$lt_LTCC
19049
19050# A language-specific compiler.
19051CC=$lt_compiler_GCJ
19052
19053# Is the compiler the GNU C compiler?
19054with_gcc=$GCC_GCJ
19055
19056# An ERE matcher.
19057EGREP=$lt_EGREP
19058
19059# The linker used to build libraries.
19060LD=$lt_LD_GCJ
19061
19062# Whether we need hard or soft links.
19063LN_S=$lt_LN_S
19064
19065# A BSD-compatible nm program.
19066NM=$lt_NM
19067
19068# A symbol stripping program
19069STRIP=$lt_STRIP
19070
19071# Used to examine libraries when file_magic_cmd begins "file"
19072MAGIC_CMD=$MAGIC_CMD
19073
19074# Used on cygwin: DLL creation program.
19075DLLTOOL="$DLLTOOL"
19076
19077# Used on cygwin: object dumper.
19078OBJDUMP="$OBJDUMP"
19079
19080# Used on cygwin: assembler.
19081AS="$AS"
19082
19083# The name of the directory that contains temporary libtool files.
19084objdir=$objdir
19085
19086# How to create reloadable object files.
19087reload_flag=$lt_reload_flag
19088reload_cmds=$lt_reload_cmds
19089
19090# How to pass a linker flag through the compiler.
19091wl=$lt_lt_prog_compiler_wl_GCJ
19092
19093# Object file suffix (normally "o").
19094objext="$ac_objext"
19095
19096# Old archive suffix (normally "a").
19097libext="$libext"
19098
19099# Shared library suffix (normally ".so").
19100shrext='$shrext'
19101
19102# Executable file suffix (normally "").
19103exeext="$exeext"
19104
19105# Additional compiler flags for building library objects.
19106pic_flag=$lt_lt_prog_compiler_pic_GCJ
19107pic_mode=$pic_mode
19108
19109# What is the maximum length of a command?
19110max_cmd_len=$lt_cv_sys_max_cmd_len
19111
19112# Does compiler simultaneously support -c and -o options?
19113compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19114
19115# Must we lock files when doing compilation ?
19116need_locks=$lt_need_locks
19117
19118# Do we need the lib prefix for modules?
19119need_lib_prefix=$need_lib_prefix
19120
19121# Do we need a version for libraries?
19122need_version=$need_version
19123
19124# Whether dlopen is supported.
19125dlopen_support=$enable_dlopen
19126
19127# Whether dlopen of programs is supported.
19128dlopen_self=$enable_dlopen_self
19129
19130# Whether dlopen of statically linked programs is supported.
19131dlopen_self_static=$enable_dlopen_self_static
19132
19133# Compiler flag to prevent dynamic linking.
19134link_static_flag=$lt_lt_prog_compiler_static_GCJ
19135
19136# Compiler flag to turn off builtin functions.
19137no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19138
19139# Compiler flag to allow reflexive dlopens.
19140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19141
19142# Compiler flag to generate shared objects directly from archives.
19143whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19144
19145# Compiler flag to generate thread-safe objects.
19146thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19147
19148# Library versioning type.
19149version_type=$version_type
19150
19151# Format of library name prefix.
19152libname_spec=$lt_libname_spec
19153
19154# List of archive names.  First name is the real one, the rest are links.
19155# The last name is the one that the linker finds with -lNAME.
19156library_names_spec=$lt_library_names_spec
19157
19158# The coded name of the library, if different from the real name.
19159soname_spec=$lt_soname_spec
19160
19161# Commands used to build and install an old-style archive.
19162RANLIB=$lt_RANLIB
19163old_archive_cmds=$lt_old_archive_cmds_GCJ
19164old_postinstall_cmds=$lt_old_postinstall_cmds
19165old_postuninstall_cmds=$lt_old_postuninstall_cmds
19166
19167# Create an old-style archive from a shared archive.
19168old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19169
19170# Create a temporary old-style archive to link instead of a shared archive.
19171old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19172
19173# Commands used to build and install a shared archive.
19174archive_cmds=$lt_archive_cmds_GCJ
19175archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19176postinstall_cmds=$lt_postinstall_cmds
19177postuninstall_cmds=$lt_postuninstall_cmds
19178
19179# Commands used to build a loadable module (assumed same as above if empty)
19180module_cmds=$lt_module_cmds_GCJ
19181module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19182
19183# Commands to strip libraries.
19184old_striplib=$lt_old_striplib
19185striplib=$lt_striplib
19186
19187# Dependencies to place before the objects being linked to create a
19188# shared library.
19189predep_objects=$lt_predep_objects_GCJ
19190
19191# Dependencies to place after the objects being linked to create a
19192# shared library.
19193postdep_objects=$lt_postdep_objects_GCJ
19194
19195# Dependencies to place before the objects being linked to create a
19196# shared library.
19197predeps=$lt_predeps_GCJ
19198
19199# Dependencies to place after the objects being linked to create a
19200# shared library.
19201postdeps=$lt_postdeps_GCJ
19202
19203# The library search path used internally by the compiler when linking
19204# a shared library.
19205compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19206
19207# Method to check whether dependent libraries are shared objects.
19208deplibs_check_method=$lt_deplibs_check_method
19209
19210# Command to use when deplibs_check_method == file_magic.
19211file_magic_cmd=$lt_file_magic_cmd
19212
19213# Flag that allows shared libraries with undefined symbols to be built.
19214allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19215
19216# Flag that forces no undefined symbols.
19217no_undefined_flag=$lt_no_undefined_flag_GCJ
19218
19219# Commands used to finish a libtool library installation in a directory.
19220finish_cmds=$lt_finish_cmds
19221
19222# Same as above, but a single script fragment to be evaled but not shown.
19223finish_eval=$lt_finish_eval
19224
19225# Take the output of nm and produce a listing of raw symbols and C names.
19226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19227
19228# Transform the output of nm in a proper C declaration
19229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19230
19231# Transform the output of nm in a C name address pair
19232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19233
19234# This is the shared library runtime path variable.
19235runpath_var=$runpath_var
19236
19237# This is the shared library path variable.
19238shlibpath_var=$shlibpath_var
19239
19240# Is shlibpath searched before the hard-coded library search path?
19241shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242
19243# How to hardcode a shared library path into an executable.
19244hardcode_action=$hardcode_action_GCJ
19245
19246# Whether we should hardcode library paths into libraries.
19247hardcode_into_libs=$hardcode_into_libs
19248
19249# Flag to hardcode \$libdir into a binary during linking.
19250# This must work even if \$libdir does not exist.
19251hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19252
19253# If ld is used when linking, flag to hardcode \$libdir into
19254# a binary during linking. This must work even if \$libdir does
19255# not exist.
19256hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19257
19258# Whether we need a single -rpath flag with a separated argument.
19259hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19260
19261# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19262# resulting binary.
19263hardcode_direct=$hardcode_direct_GCJ
19264
19265# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19266# resulting binary.
19267hardcode_minus_L=$hardcode_minus_L_GCJ
19268
19269# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19270# the resulting binary.
19271hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19272
19273# Set to yes if building a shared library automatically hardcodes DIR into the library
19274# and all subsequent libraries and executables linked against it.
19275hardcode_automatic=$hardcode_automatic_GCJ
19276
19277# Variables whose values should be saved in libtool wrapper scripts and
19278# restored at relink time.
19279variables_saved_for_relink="$variables_saved_for_relink"
19280
19281# Whether libtool must link a program against all its dependency libraries.
19282link_all_deplibs=$link_all_deplibs_GCJ
19283
19284# Compile-time system search path for libraries
19285sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19286
19287# Run-time system search path for libraries
19288sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19289
19290# Fix the shell variable \$srcfile for the compiler.
19291fix_srcfile_path="$fix_srcfile_path_GCJ"
19292
19293# Set to yes if exported symbols are required.
19294always_export_symbols=$always_export_symbols_GCJ
19295
19296# The commands to list exported symbols.
19297export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19298
19299# The commands to extract the exported symbol list from a shared archive.
19300extract_expsyms_cmds=$lt_extract_expsyms_cmds
19301
19302# Symbols that should not be listed in the preloaded symbols.
19303exclude_expsyms=$lt_exclude_expsyms_GCJ
19304
19305# Symbols that must always be exported.
19306include_expsyms=$lt_include_expsyms_GCJ
19307
19308# ### END LIBTOOL TAG CONFIG: $tagname
19309
19310__EOF__
19311
19312
19313else
19314  # If there is no Makefile yet, we rely on a make rule to execute
19315  # `config.status --recheck' to rerun these tests and create the
19316  # libtool script then.
19317  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19318  if test -f "$ltmain_in"; then
19319    test -f Makefile && make "$ltmain"
19320  fi
19321fi
19322
19323
19324ac_ext=c
19325ac_cpp='$CPP $CPPFLAGS'
19326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_c_compiler_gnu
19329
19330CC="$lt_save_CC"
19331
19332	else
19333	  tagname=""
19334	fi
19335	;;
19336
19337      RC)
19338
19339
19340
19341# Source file extension for RC test sources.
19342ac_ext=rc
19343
19344# Object file extension for compiled RC test sources.
19345objext=o
19346objext_RC=$objext
19347
19348# Code to be used in simple compile tests
19349lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19350
19351# Code to be used in simple link tests
19352lt_simple_link_test_code="$lt_simple_compile_test_code"
19353
19354# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19355
19356# If no C compiler was specified, use CC.
19357LTCC=${LTCC-"$CC"}
19358
19359# Allow CC to be a program name with arguments.
19360compiler=$CC
19361
19362
19363# Allow CC to be a program name with arguments.
19364lt_save_CC="$CC"
19365CC=${RC-"windres"}
19366compiler=$CC
19367compiler_RC=$CC
19368lt_cv_prog_compiler_c_o_RC=yes
19369
19370# The else clause should only fire when bootstrapping the
19371# libtool distribution, otherwise you forgot to ship ltmain.sh
19372# with your package, and you will get complaints that there are
19373# no rules to generate ltmain.sh.
19374if test -f "$ltmain"; then
19375  # See if we are running on zsh, and set the options which allow our commands through
19376  # without removal of \ escapes.
19377  if test -n "${ZSH_VERSION+set}" ; then
19378    setopt NO_GLOB_SUBST
19379  fi
19380  # Now quote all the things that may contain metacharacters while being
19381  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19382  # variables and quote the copies for generation of the libtool script.
19383  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19384    SED SHELL STRIP \
19385    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19386    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19387    deplibs_check_method reload_flag reload_cmds need_locks \
19388    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19389    lt_cv_sys_global_symbol_to_c_name_address \
19390    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19391    old_postinstall_cmds old_postuninstall_cmds \
19392    compiler_RC \
19393    CC_RC \
19394    LD_RC \
19395    lt_prog_compiler_wl_RC \
19396    lt_prog_compiler_pic_RC \
19397    lt_prog_compiler_static_RC \
19398    lt_prog_compiler_no_builtin_flag_RC \
19399    export_dynamic_flag_spec_RC \
19400    thread_safe_flag_spec_RC \
19401    whole_archive_flag_spec_RC \
19402    enable_shared_with_static_runtimes_RC \
19403    old_archive_cmds_RC \
19404    old_archive_from_new_cmds_RC \
19405    predep_objects_RC \
19406    postdep_objects_RC \
19407    predeps_RC \
19408    postdeps_RC \
19409    compiler_lib_search_path_RC \
19410    archive_cmds_RC \
19411    archive_expsym_cmds_RC \
19412    postinstall_cmds_RC \
19413    postuninstall_cmds_RC \
19414    old_archive_from_expsyms_cmds_RC \
19415    allow_undefined_flag_RC \
19416    no_undefined_flag_RC \
19417    export_symbols_cmds_RC \
19418    hardcode_libdir_flag_spec_RC \
19419    hardcode_libdir_flag_spec_ld_RC \
19420    hardcode_libdir_separator_RC \
19421    hardcode_automatic_RC \
19422    module_cmds_RC \
19423    module_expsym_cmds_RC \
19424    lt_cv_prog_compiler_c_o_RC \
19425    exclude_expsyms_RC \
19426    include_expsyms_RC; do
19427
19428    case $var in
19429    old_archive_cmds_RC | \
19430    old_archive_from_new_cmds_RC | \
19431    archive_cmds_RC | \
19432    archive_expsym_cmds_RC | \
19433    module_cmds_RC | \
19434    module_expsym_cmds_RC | \
19435    old_archive_from_expsyms_cmds_RC | \
19436    export_symbols_cmds_RC | \
19437    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19438    postinstall_cmds | postuninstall_cmds | \
19439    old_postinstall_cmds | old_postuninstall_cmds | \
19440    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19441      # Double-quote double-evaled strings.
19442      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19443      ;;
19444    *)
19445      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19446      ;;
19447    esac
19448  done
19449
19450  case $lt_echo in
19451  *'\$0 --fallback-echo"')
19452    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19453    ;;
19454  esac
19455
19456cfgfile="$ofile"
19457
19458  cat <<__EOF__ >> "$cfgfile"
19459# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19460
19461# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19462
19463# Shell to use when invoking shell scripts.
19464SHELL=$lt_SHELL
19465
19466# Whether or not to build shared libraries.
19467build_libtool_libs=$enable_shared
19468
19469# Whether or not to build static libraries.
19470build_old_libs=$enable_static
19471
19472# Whether or not to add -lc for building shared libraries.
19473build_libtool_need_lc=$archive_cmds_need_lc_RC
19474
19475# Whether or not to disallow shared libs when runtime libs are static
19476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19477
19478# Whether or not to optimize for fast installation.
19479fast_install=$enable_fast_install
19480
19481# The host system.
19482host_alias=$host_alias
19483host=$host
19484
19485# An echo program that does not interpret backslashes.
19486echo=$lt_echo
19487
19488# The archiver.
19489AR=$lt_AR
19490AR_FLAGS=$lt_AR_FLAGS
19491
19492# A C compiler.
19493LTCC=$lt_LTCC
19494
19495# A language-specific compiler.
19496CC=$lt_compiler_RC
19497
19498# Is the compiler the GNU C compiler?
19499with_gcc=$GCC_RC
19500
19501# An ERE matcher.
19502EGREP=$lt_EGREP
19503
19504# The linker used to build libraries.
19505LD=$lt_LD_RC
19506
19507# Whether we need hard or soft links.
19508LN_S=$lt_LN_S
19509
19510# A BSD-compatible nm program.
19511NM=$lt_NM
19512
19513# A symbol stripping program
19514STRIP=$lt_STRIP
19515
19516# Used to examine libraries when file_magic_cmd begins "file"
19517MAGIC_CMD=$MAGIC_CMD
19518
19519# Used on cygwin: DLL creation program.
19520DLLTOOL="$DLLTOOL"
19521
19522# Used on cygwin: object dumper.
19523OBJDUMP="$OBJDUMP"
19524
19525# Used on cygwin: assembler.
19526AS="$AS"
19527
19528# The name of the directory that contains temporary libtool files.
19529objdir=$objdir
19530
19531# How to create reloadable object files.
19532reload_flag=$lt_reload_flag
19533reload_cmds=$lt_reload_cmds
19534
19535# How to pass a linker flag through the compiler.
19536wl=$lt_lt_prog_compiler_wl_RC
19537
19538# Object file suffix (normally "o").
19539objext="$ac_objext"
19540
19541# Old archive suffix (normally "a").
19542libext="$libext"
19543
19544# Shared library suffix (normally ".so").
19545shrext='$shrext'
19546
19547# Executable file suffix (normally "").
19548exeext="$exeext"
19549
19550# Additional compiler flags for building library objects.
19551pic_flag=$lt_lt_prog_compiler_pic_RC
19552pic_mode=$pic_mode
19553
19554# What is the maximum length of a command?
19555max_cmd_len=$lt_cv_sys_max_cmd_len
19556
19557# Does compiler simultaneously support -c and -o options?
19558compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19559
19560# Must we lock files when doing compilation ?
19561need_locks=$lt_need_locks
19562
19563# Do we need the lib prefix for modules?
19564need_lib_prefix=$need_lib_prefix
19565
19566# Do we need a version for libraries?
19567need_version=$need_version
19568
19569# Whether dlopen is supported.
19570dlopen_support=$enable_dlopen
19571
19572# Whether dlopen of programs is supported.
19573dlopen_self=$enable_dlopen_self
19574
19575# Whether dlopen of statically linked programs is supported.
19576dlopen_self_static=$enable_dlopen_self_static
19577
19578# Compiler flag to prevent dynamic linking.
19579link_static_flag=$lt_lt_prog_compiler_static_RC
19580
19581# Compiler flag to turn off builtin functions.
19582no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19583
19584# Compiler flag to allow reflexive dlopens.
19585export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19586
19587# Compiler flag to generate shared objects directly from archives.
19588whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19589
19590# Compiler flag to generate thread-safe objects.
19591thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19592
19593# Library versioning type.
19594version_type=$version_type
19595
19596# Format of library name prefix.
19597libname_spec=$lt_libname_spec
19598
19599# List of archive names.  First name is the real one, the rest are links.
19600# The last name is the one that the linker finds with -lNAME.
19601library_names_spec=$lt_library_names_spec
19602
19603# The coded name of the library, if different from the real name.
19604soname_spec=$lt_soname_spec
19605
19606# Commands used to build and install an old-style archive.
19607RANLIB=$lt_RANLIB
19608old_archive_cmds=$lt_old_archive_cmds_RC
19609old_postinstall_cmds=$lt_old_postinstall_cmds
19610old_postuninstall_cmds=$lt_old_postuninstall_cmds
19611
19612# Create an old-style archive from a shared archive.
19613old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19614
19615# Create a temporary old-style archive to link instead of a shared archive.
19616old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19617
19618# Commands used to build and install a shared archive.
19619archive_cmds=$lt_archive_cmds_RC
19620archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19621postinstall_cmds=$lt_postinstall_cmds
19622postuninstall_cmds=$lt_postuninstall_cmds
19623
19624# Commands used to build a loadable module (assumed same as above if empty)
19625module_cmds=$lt_module_cmds_RC
19626module_expsym_cmds=$lt_module_expsym_cmds_RC
19627
19628# Commands to strip libraries.
19629old_striplib=$lt_old_striplib
19630striplib=$lt_striplib
19631
19632# Dependencies to place before the objects being linked to create a
19633# shared library.
19634predep_objects=$lt_predep_objects_RC
19635
19636# Dependencies to place after the objects being linked to create a
19637# shared library.
19638postdep_objects=$lt_postdep_objects_RC
19639
19640# Dependencies to place before the objects being linked to create a
19641# shared library.
19642predeps=$lt_predeps_RC
19643
19644# Dependencies to place after the objects being linked to create a
19645# shared library.
19646postdeps=$lt_postdeps_RC
19647
19648# The library search path used internally by the compiler when linking
19649# a shared library.
19650compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19651
19652# Method to check whether dependent libraries are shared objects.
19653deplibs_check_method=$lt_deplibs_check_method
19654
19655# Command to use when deplibs_check_method == file_magic.
19656file_magic_cmd=$lt_file_magic_cmd
19657
19658# Flag that allows shared libraries with undefined symbols to be built.
19659allow_undefined_flag=$lt_allow_undefined_flag_RC
19660
19661# Flag that forces no undefined symbols.
19662no_undefined_flag=$lt_no_undefined_flag_RC
19663
19664# Commands used to finish a libtool library installation in a directory.
19665finish_cmds=$lt_finish_cmds
19666
19667# Same as above, but a single script fragment to be evaled but not shown.
19668finish_eval=$lt_finish_eval
19669
19670# Take the output of nm and produce a listing of raw symbols and C names.
19671global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19672
19673# Transform the output of nm in a proper C declaration
19674global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19675
19676# Transform the output of nm in a C name address pair
19677global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19678
19679# This is the shared library runtime path variable.
19680runpath_var=$runpath_var
19681
19682# This is the shared library path variable.
19683shlibpath_var=$shlibpath_var
19684
19685# Is shlibpath searched before the hard-coded library search path?
19686shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19687
19688# How to hardcode a shared library path into an executable.
19689hardcode_action=$hardcode_action_RC
19690
19691# Whether we should hardcode library paths into libraries.
19692hardcode_into_libs=$hardcode_into_libs
19693
19694# Flag to hardcode \$libdir into a binary during linking.
19695# This must work even if \$libdir does not exist.
19696hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19697
19698# If ld is used when linking, flag to hardcode \$libdir into
19699# a binary during linking. This must work even if \$libdir does
19700# not exist.
19701hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19702
19703# Whether we need a single -rpath flag with a separated argument.
19704hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19705
19706# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19707# resulting binary.
19708hardcode_direct=$hardcode_direct_RC
19709
19710# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19711# resulting binary.
19712hardcode_minus_L=$hardcode_minus_L_RC
19713
19714# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19715# the resulting binary.
19716hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19717
19718# Set to yes if building a shared library automatically hardcodes DIR into the library
19719# and all subsequent libraries and executables linked against it.
19720hardcode_automatic=$hardcode_automatic_RC
19721
19722# Variables whose values should be saved in libtool wrapper scripts and
19723# restored at relink time.
19724variables_saved_for_relink="$variables_saved_for_relink"
19725
19726# Whether libtool must link a program against all its dependency libraries.
19727link_all_deplibs=$link_all_deplibs_RC
19728
19729# Compile-time system search path for libraries
19730sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19731
19732# Run-time system search path for libraries
19733sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19734
19735# Fix the shell variable \$srcfile for the compiler.
19736fix_srcfile_path="$fix_srcfile_path_RC"
19737
19738# Set to yes if exported symbols are required.
19739always_export_symbols=$always_export_symbols_RC
19740
19741# The commands to list exported symbols.
19742export_symbols_cmds=$lt_export_symbols_cmds_RC
19743
19744# The commands to extract the exported symbol list from a shared archive.
19745extract_expsyms_cmds=$lt_extract_expsyms_cmds
19746
19747# Symbols that should not be listed in the preloaded symbols.
19748exclude_expsyms=$lt_exclude_expsyms_RC
19749
19750# Symbols that must always be exported.
19751include_expsyms=$lt_include_expsyms_RC
19752
19753# ### END LIBTOOL TAG CONFIG: $tagname
19754
19755__EOF__
19756
19757
19758else
19759  # If there is no Makefile yet, we rely on a make rule to execute
19760  # `config.status --recheck' to rerun these tests and create the
19761  # libtool script then.
19762  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19763  if test -f "$ltmain_in"; then
19764    test -f Makefile && make "$ltmain"
19765  fi
19766fi
19767
19768
19769ac_ext=c
19770ac_cpp='$CPP $CPPFLAGS'
19771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19773ac_compiler_gnu=$ac_cv_c_compiler_gnu
19774
19775CC="$lt_save_CC"
19776
19777	;;
19778
19779      *)
19780	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19781echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19782   { (exit 1); exit 1; }; }
19783	;;
19784      esac
19785
19786      # Append the new tag name to the list of available tags.
19787      if test -n "$tagname" ; then
19788      available_tags="$available_tags $tagname"
19789    fi
19790    fi
19791  done
19792  IFS="$lt_save_ifs"
19793
19794  # Now substitute the updated list of available tags.
19795  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19796    mv "${ofile}T" "$ofile"
19797    chmod +x "$ofile"
19798  else
19799    rm -f "${ofile}T"
19800    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19801echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19802   { (exit 1); exit 1; }; }
19803  fi
19804fi
19805
19806
19807
19808# This can be used to rebuild libtool when needed
19809LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19810
19811# Always use our own libtool.
19812LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19813
19814# Prevent multiple expansion
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837WFLAGS_NOUNUSED=""
19838WFLAGS_NOIMPLICITINT=""
19839if test -z "$WFLAGS" -a "$GCC" = "yes"; then
19840  # -Wno-implicit-int for broken X11 headers
19841  # leave these out for now:
19842  #   -Wcast-align doesn't work well on alpha osf/1
19843  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
19844  #   -Wmissing-declarations -Wnested-externs
19845  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
19846  WFLAGS_NOUNUSED="-Wno-unused"
19847  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
19848fi
19849
19850
19851
19852
19853# Check whether --with-openldap or --without-openldap was given.
19854if test "${with_openldap+set}" = set; then
19855  withval="$with_openldap"
19856
19857fi;
19858
19859# Check whether --with-openldap-lib or --without-openldap-lib was given.
19860if test "${with_openldap_lib+set}" = set; then
19861  withval="$with_openldap_lib"
19862  if test "$withval" = "yes" -o "$withval" = "no"; then
19863  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5
19864echo "$as_me: error: No argument for --with-openldap-lib" >&2;}
19865   { (exit 1); exit 1; }; }
19866elif test "X$with_openldap" = "X"; then
19867  with_openldap=yes
19868fi
19869fi;
19870
19871# Check whether --with-openldap-include or --without-openldap-include was given.
19872if test "${with_openldap_include+set}" = set; then
19873  withval="$with_openldap_include"
19874  if test "$withval" = "yes" -o "$withval" = "no"; then
19875  { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5
19876echo "$as_me: error: No argument for --with-openldap-include" >&2;}
19877   { (exit 1); exit 1; }; }
19878elif test "X$with_openldap" = "X"; then
19879  with_openldap=yes
19880fi
19881fi;
19882
19883# Check whether --with-openldap-config or --without-openldap-config was given.
19884if test "${with_openldap_config+set}" = set; then
19885  withval="$with_openldap_config"
19886
19887fi;
19888
19889
19890
19891echo "$as_me:$LINENO: checking for openldap" >&5
19892echo $ECHO_N "checking for openldap... $ECHO_C" >&6
19893
19894case "$with_openldap" in
19895yes|"") d='' ;;
19896no)	d= ;;
19897*)	d="$with_openldap" ;;
19898esac
19899
19900header_dirs=
19901lib_dirs=
19902for i in $d; do
19903	if test "$with_openldap_include" = ""; then
19904		if test -d "$i/include/openldap"; then
19905			header_dirs="$header_dirs $i/include/openldap"
19906		fi
19907		if test -d "$i/include"; then
19908			header_dirs="$header_dirs $i/include"
19909		fi
19910	fi
19911	if test "$with_openldap_lib" = ""; then
19912		if test -d "$i/lib$abilibdirext"; then
19913			lib_dirs="$lib_dirs $i/lib$abilibdirext"
19914		fi
19915	fi
19916done
19917
19918if test "$with_openldap_include"; then
19919	header_dirs="$with_openldap_include $header_dirs"
19920fi
19921if test "$with_openldap_lib"; then
19922	lib_dirs="$with_openldap_lib $lib_dirs"
19923fi
19924
19925if test "$with_openldap_config" = ""; then
19926	with_openldap_config=''
19927fi
19928
19929openldap_cflags=
19930openldap_libs=
19931
19932case "$with_openldap_config" in
19933yes|no|"")
19934	;;
19935*)
19936	openldap_cflags="`$with_openldap_config --cflags 2>&1`"
19937	openldap_libs="`$with_openldap_config --libs 2>&1`"
19938	;;
19939esac
19940
19941found=no
19942if test "$with_openldap" != no; then
19943	save_CFLAGS="$CFLAGS"
19944	save_LIBS="$LIBS"
19945	if test "$openldap_cflags" -a "$openldap_libs"; then
19946		CFLAGS="$openldap_cflags $save_CFLAGS"
19947		LIBS="$openldap_libs $save_LIBS"
19948		cat >conftest.$ac_ext <<_ACEOF
19949/* confdefs.h.  */
19950_ACEOF
19951cat confdefs.h >>conftest.$ac_ext
19952cat >>conftest.$ac_ext <<_ACEOF
19953/* end confdefs.h.  */
19954#include <lber.h>
19955#include <ldap.h>
19956int
19957main ()
19958{
19959
19960  ;
19961  return 0;
19962}
19963_ACEOF
19964rm -f conftest.$ac_objext conftest$ac_exeext
19965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19966  (eval $ac_link) 2>conftest.er1
19967  ac_status=$?
19968  grep -v '^ *+' conftest.er1 >conftest.err
19969  rm -f conftest.er1
19970  cat conftest.err >&5
19971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972  (exit $ac_status); } &&
19973	 { ac_try='test -z "$ac_c_werror_flag"
19974			 || test ! -s conftest.err'
19975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976  (eval $ac_try) 2>&5
19977  ac_status=$?
19978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979  (exit $ac_status); }; } &&
19980	 { ac_try='test -s conftest$ac_exeext'
19981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982  (eval $ac_try) 2>&5
19983  ac_status=$?
19984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985  (exit $ac_status); }; }; then
19986
19987			INCLUDE_openldap="$openldap_cflags"
19988			LIB_openldap="$openldap_libs"
19989			echo "$as_me:$LINENO: result: from $with_openldap_config" >&5
19990echo "${ECHO_T}from $with_openldap_config" >&6
19991			found=yes
19992else
19993  echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996fi
19997rm -f conftest.err conftest.$ac_objext \
19998      conftest$ac_exeext conftest.$ac_ext
19999	fi
20000	if test "$found" = no; then
20001		ires= lres=
20002		for i in $header_dirs; do
20003			CFLAGS="-I$i $save_CFLAGS"
20004			cat >conftest.$ac_ext <<_ACEOF
20005/* confdefs.h.  */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h.  */
20010#include <lber.h>
20011#include <ldap.h>
20012int
20013main ()
20014{
20015
20016  ;
20017  return 0;
20018}
20019_ACEOF
20020rm -f conftest.$ac_objext
20021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022  (eval $ac_compile) 2>conftest.er1
20023  ac_status=$?
20024  grep -v '^ *+' conftest.er1 >conftest.err
20025  rm -f conftest.er1
20026  cat conftest.err >&5
20027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028  (exit $ac_status); } &&
20029	 { ac_try='test -z "$ac_c_werror_flag"
20030			 || test ! -s conftest.err'
20031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032  (eval $ac_try) 2>&5
20033  ac_status=$?
20034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035  (exit $ac_status); }; } &&
20036	 { ac_try='test -s conftest.$ac_objext'
20037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038  (eval $ac_try) 2>&5
20039  ac_status=$?
20040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041  (exit $ac_status); }; }; then
20042  ires=$i;break
20043else
20044  echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047fi
20048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20049		done
20050		for i in $lib_dirs; do
20051			LIBS="-L$i -lldap -llber  $save_LIBS"
20052			cat >conftest.$ac_ext <<_ACEOF
20053/* confdefs.h.  */
20054_ACEOF
20055cat confdefs.h >>conftest.$ac_ext
20056cat >>conftest.$ac_ext <<_ACEOF
20057/* end confdefs.h.  */
20058#include <lber.h>
20059#include <ldap.h>
20060int
20061main ()
20062{
20063
20064  ;
20065  return 0;
20066}
20067_ACEOF
20068rm -f conftest.$ac_objext conftest$ac_exeext
20069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20070  (eval $ac_link) 2>conftest.er1
20071  ac_status=$?
20072  grep -v '^ *+' conftest.er1 >conftest.err
20073  rm -f conftest.er1
20074  cat conftest.err >&5
20075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076  (exit $ac_status); } &&
20077	 { ac_try='test -z "$ac_c_werror_flag"
20078			 || test ! -s conftest.err'
20079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080  (eval $ac_try) 2>&5
20081  ac_status=$?
20082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083  (exit $ac_status); }; } &&
20084	 { ac_try='test -s conftest$ac_exeext'
20085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086  (eval $ac_try) 2>&5
20087  ac_status=$?
20088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089  (exit $ac_status); }; }; then
20090  lres=$i;break
20091else
20092  echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095fi
20096rm -f conftest.err conftest.$ac_objext \
20097      conftest$ac_exeext conftest.$ac_ext
20098		done
20099		if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then
20100			INCLUDE_openldap="-I$ires"
20101			LIB_openldap="-L$lres -lldap -llber "
20102			found=yes
20103			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20104echo "${ECHO_T}headers $ires, libraries $lres" >&6
20105		fi
20106	fi
20107	CFLAGS="$save_CFLAGS"
20108	LIBS="$save_LIBS"
20109fi
20110
20111if test "$found" = yes; then
20112
20113cat >>confdefs.h <<_ACEOF
20114#define OPENLDAP 1
20115_ACEOF
20116
20117	with_openldap=yes
20118else
20119	with_openldap=no
20120	INCLUDE_openldap=
20121	LIB_openldap=
20122	echo "$as_me:$LINENO: result: no" >&5
20123echo "${ECHO_T}no" >&6
20124fi
20125
20126
20127
20128
20129
20130
20131
20132# Check whether --with-krb4 or --without-krb4 was given.
20133if test "${with_krb4+set}" = set; then
20134  withval="$with_krb4"
20135
20136fi;
20137
20138# Check whether --with-krb4-lib or --without-krb4-lib was given.
20139if test "${with_krb4_lib+set}" = set; then
20140  withval="$with_krb4_lib"
20141  if test "$withval" = "yes" -o "$withval" = "no"; then
20142  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5
20143echo "$as_me: error: No argument for --with-krb4-lib" >&2;}
20144   { (exit 1); exit 1; }; }
20145elif test "X$with_krb4" = "X"; then
20146  with_krb4=yes
20147fi
20148fi;
20149
20150# Check whether --with-krb4-include or --without-krb4-include was given.
20151if test "${with_krb4_include+set}" = set; then
20152  withval="$with_krb4_include"
20153  if test "$withval" = "yes" -o "$withval" = "no"; then
20154  { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5
20155echo "$as_me: error: No argument for --with-krb4-include" >&2;}
20156   { (exit 1); exit 1; }; }
20157elif test "X$with_krb4" = "X"; then
20158  with_krb4=yes
20159fi
20160fi;
20161
20162# Check whether --with-krb4-config or --without-krb4-config was given.
20163if test "${with_krb4_config+set}" = set; then
20164  withval="$with_krb4_config"
20165
20166fi;
20167
20168
20169
20170echo "$as_me:$LINENO: checking for krb4" >&5
20171echo $ECHO_N "checking for krb4... $ECHO_C" >&6
20172
20173case "$with_krb4" in
20174yes|"") d='/usr/athena' ;;
20175no)	d= ;;
20176*)	d="$with_krb4" ;;
20177esac
20178
20179header_dirs=
20180lib_dirs=
20181for i in $d; do
20182	if test "$with_krb4_include" = ""; then
20183		if test -d "$i/include/krb4"; then
20184			header_dirs="$header_dirs $i/include/krb4"
20185		fi
20186		if test -d "$i/include"; then
20187			header_dirs="$header_dirs $i/include"
20188		fi
20189	fi
20190	if test "$with_krb4_lib" = ""; then
20191		if test -d "$i/lib$abilibdirext"; then
20192			lib_dirs="$lib_dirs $i/lib$abilibdirext"
20193		fi
20194	fi
20195done
20196
20197if test "$with_krb4_include"; then
20198	header_dirs="$with_krb4_include $header_dirs"
20199fi
20200if test "$with_krb4_lib"; then
20201	lib_dirs="$with_krb4_lib $lib_dirs"
20202fi
20203
20204if test "$with_krb4_config" = ""; then
20205	with_krb4_config='krb4-config'
20206fi
20207
20208krb4_cflags=
20209krb4_libs=
20210
20211case "$with_krb4_config" in
20212yes|no|"")
20213	;;
20214*)
20215	krb4_cflags="`$with_krb4_config --cflags 2>&1`"
20216	krb4_libs="`$with_krb4_config --libs 2>&1`"
20217	;;
20218esac
20219
20220found=no
20221if test "$with_krb4" != no; then
20222	save_CFLAGS="$CFLAGS"
20223	save_LIBS="$LIBS"
20224	if test "$krb4_cflags" -a "$krb4_libs"; then
20225		CFLAGS="$krb4_cflags $save_CFLAGS"
20226		LIBS="$krb4_libs $save_LIBS"
20227		cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h.  */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h.  */
20233#include <krb.h>
20234int
20235main ()
20236{
20237
20238  ;
20239  return 0;
20240}
20241_ACEOF
20242rm -f conftest.$ac_objext conftest$ac_exeext
20243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20244  (eval $ac_link) 2>conftest.er1
20245  ac_status=$?
20246  grep -v '^ *+' conftest.er1 >conftest.err
20247  rm -f conftest.er1
20248  cat conftest.err >&5
20249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250  (exit $ac_status); } &&
20251	 { ac_try='test -z "$ac_c_werror_flag"
20252			 || test ! -s conftest.err'
20253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254  (eval $ac_try) 2>&5
20255  ac_status=$?
20256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257  (exit $ac_status); }; } &&
20258	 { ac_try='test -s conftest$ac_exeext'
20259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260  (eval $ac_try) 2>&5
20261  ac_status=$?
20262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263  (exit $ac_status); }; }; then
20264
20265			INCLUDE_krb4="$krb4_cflags"
20266			LIB_krb4="$krb4_libs"
20267			echo "$as_me:$LINENO: result: from $with_krb4_config" >&5
20268echo "${ECHO_T}from $with_krb4_config" >&6
20269			found=yes
20270else
20271  echo "$as_me: failed program was:" >&5
20272sed 's/^/| /' conftest.$ac_ext >&5
20273
20274fi
20275rm -f conftest.err conftest.$ac_objext \
20276      conftest$ac_exeext conftest.$ac_ext
20277	fi
20278	if test "$found" = no; then
20279		ires= lres=
20280		for i in $header_dirs; do
20281			CFLAGS="-I$i $save_CFLAGS"
20282			cat >conftest.$ac_ext <<_ACEOF
20283/* confdefs.h.  */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h.  */
20288#include <krb.h>
20289int
20290main ()
20291{
20292
20293  ;
20294  return 0;
20295}
20296_ACEOF
20297rm -f conftest.$ac_objext
20298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299  (eval $ac_compile) 2>conftest.er1
20300  ac_status=$?
20301  grep -v '^ *+' conftest.er1 >conftest.err
20302  rm -f conftest.er1
20303  cat conftest.err >&5
20304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305  (exit $ac_status); } &&
20306	 { ac_try='test -z "$ac_c_werror_flag"
20307			 || test ! -s conftest.err'
20308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309  (eval $ac_try) 2>&5
20310  ac_status=$?
20311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312  (exit $ac_status); }; } &&
20313	 { ac_try='test -s conftest.$ac_objext'
20314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315  (eval $ac_try) 2>&5
20316  ac_status=$?
20317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318  (exit $ac_status); }; }; then
20319  ires=$i;break
20320else
20321  echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324fi
20325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20326		done
20327		for i in $lib_dirs; do
20328			LIBS="-L$i -lkrb -ldes $save_LIBS"
20329			cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h.  */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h.  */
20335#include <krb.h>
20336int
20337main ()
20338{
20339
20340  ;
20341  return 0;
20342}
20343_ACEOF
20344rm -f conftest.$ac_objext conftest$ac_exeext
20345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20346  (eval $ac_link) 2>conftest.er1
20347  ac_status=$?
20348  grep -v '^ *+' conftest.er1 >conftest.err
20349  rm -f conftest.er1
20350  cat conftest.err >&5
20351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352  (exit $ac_status); } &&
20353	 { ac_try='test -z "$ac_c_werror_flag"
20354			 || test ! -s conftest.err'
20355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356  (eval $ac_try) 2>&5
20357  ac_status=$?
20358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359  (exit $ac_status); }; } &&
20360	 { ac_try='test -s conftest$ac_exeext'
20361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362  (eval $ac_try) 2>&5
20363  ac_status=$?
20364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365  (exit $ac_status); }; }; then
20366  lres=$i;break
20367else
20368  echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
20371fi
20372rm -f conftest.err conftest.$ac_objext \
20373      conftest$ac_exeext conftest.$ac_ext
20374		done
20375		if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then
20376			INCLUDE_krb4="-I$ires"
20377			LIB_krb4="-L$lres -lkrb -ldes"
20378			found=yes
20379			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
20380echo "${ECHO_T}headers $ires, libraries $lres" >&6
20381		fi
20382	fi
20383	CFLAGS="$save_CFLAGS"
20384	LIBS="$save_LIBS"
20385fi
20386
20387if test "$found" = yes; then
20388
20389cat >>confdefs.h <<_ACEOF
20390#define KRB4 1
20391_ACEOF
20392
20393	with_krb4=yes
20394else
20395	with_krb4=no
20396	INCLUDE_krb4=
20397	LIB_krb4=
20398	echo "$as_me:$LINENO: result: no" >&5
20399echo "${ECHO_T}no" >&6
20400fi
20401
20402
20403
20404
20405
20406LIB_kdb=
20407if test "$with_krb4" != "no"; then
20408	save_CFLAGS="$CFLAGS"
20409	CFLAGS="$CFLAGS $INCLUDE_krb4"
20410	save_LIBS="$LIBS"
20411	LIBS="$LIB_krb4 $LIBS"
20412	EXTRA_LIB45=lib45.a
20413
20414	echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5
20415echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6
20416if test "${ac_cv_func_krb_put_int_four+set}" = set; then
20417  echo $ECHO_N "(cached) $ECHO_C" >&6
20418else
20419  cat >conftest.$ac_ext <<_ACEOF
20420/* confdefs.h.  */
20421_ACEOF
20422cat confdefs.h >>conftest.$ac_ext
20423cat >>conftest.$ac_ext <<_ACEOF
20424/* end confdefs.h.  */
20425#include <krb.h>
20426int
20427main ()
20428{
20429
20430		char tmp[4];
20431		krb_put_int(17, tmp, 4, sizeof(tmp));
20432  ;
20433  return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext
20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20438  (eval $ac_compile) 2>conftest.er1
20439  ac_status=$?
20440  grep -v '^ *+' conftest.er1 >conftest.err
20441  rm -f conftest.er1
20442  cat conftest.err >&5
20443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444  (exit $ac_status); } &&
20445	 { ac_try='test -z "$ac_c_werror_flag"
20446			 || test ! -s conftest.err'
20447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20448  (eval $ac_try) 2>&5
20449  ac_status=$?
20450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451  (exit $ac_status); }; } &&
20452	 { ac_try='test -s conftest.$ac_objext'
20453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454  (eval $ac_try) 2>&5
20455  ac_status=$?
20456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457  (exit $ac_status); }; }; then
20458  ac_cv_func_krb_put_int_four=yes
20459else
20460  echo "$as_me: failed program was:" >&5
20461sed 's/^/| /' conftest.$ac_ext >&5
20462
20463ac_cv_func_krb_put_int_four=no
20464fi
20465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20466
20467fi
20468echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5
20469echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6
20470	if test "$ac_cv_func_krb_put_int_four" = yes; then
20471
20472cat >>confdefs.h <<\_ACEOF
20473#define HAVE_FOUR_VALUED_KRB_PUT_INT 1
20474_ACEOF
20475
20476	fi
20477
20478
20479	echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5
20480echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6
20481if test "${ac_cv_func_krb_verify_secure+set}" = set; then
20482  echo $ECHO_N "(cached) $ECHO_C" >&6
20483else
20484  cat >conftest.$ac_ext <<_ACEOF
20485/* confdefs.h.  */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h.  */
20490#include <krb.h>
20491int
20492main ()
20493{
20494
20495		int x = KRB_VERIFY_SECURE
20496  ;
20497  return 0;
20498}
20499_ACEOF
20500rm -f conftest.$ac_objext
20501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502  (eval $ac_compile) 2>conftest.er1
20503  ac_status=$?
20504  grep -v '^ *+' conftest.er1 >conftest.err
20505  rm -f conftest.er1
20506  cat conftest.err >&5
20507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508  (exit $ac_status); } &&
20509	 { ac_try='test -z "$ac_c_werror_flag"
20510			 || test ! -s conftest.err'
20511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512  (eval $ac_try) 2>&5
20513  ac_status=$?
20514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515  (exit $ac_status); }; } &&
20516	 { ac_try='test -s conftest.$ac_objext'
20517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518  (eval $ac_try) 2>&5
20519  ac_status=$?
20520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521  (exit $ac_status); }; }; then
20522  ac_cv_func_krb_verify_secure=yes
20523else
20524  echo "$as_me: failed program was:" >&5
20525sed 's/^/| /' conftest.$ac_ext >&5
20526
20527ac_cv_func_krb_verify_secure=no
20528fi
20529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530
20531fi
20532echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5
20533echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6
20534	if test "$ac_cv_func_krb_verify_secure" != yes; then
20535
20536cat >>confdefs.h <<\_ACEOF
20537#define KRB_VERIFY_SECURE 1
20538_ACEOF
20539
20540
20541cat >>confdefs.h <<\_ACEOF
20542#define KRB_VERIFY_SECURE_FAIL 2
20543_ACEOF
20544
20545	fi
20546	echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5
20547echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6
20548if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then
20549  echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551  cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h.  */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h.  */
20557#include <krb.h>
20558int
20559main ()
20560{
20561
20562		int x = KRB_VERIFY_NOT_SECURE
20563  ;
20564  return 0;
20565}
20566_ACEOF
20567rm -f conftest.$ac_objext
20568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20569  (eval $ac_compile) 2>conftest.er1
20570  ac_status=$?
20571  grep -v '^ *+' conftest.er1 >conftest.err
20572  rm -f conftest.er1
20573  cat conftest.err >&5
20574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575  (exit $ac_status); } &&
20576	 { ac_try='test -z "$ac_c_werror_flag"
20577			 || test ! -s conftest.err'
20578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579  (eval $ac_try) 2>&5
20580  ac_status=$?
20581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582  (exit $ac_status); }; } &&
20583	 { ac_try='test -s conftest.$ac_objext'
20584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20585  (eval $ac_try) 2>&5
20586  ac_status=$?
20587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588  (exit $ac_status); }; }; then
20589  ac_cv_func_krb_verify_not_secure=yes
20590else
20591  echo "$as_me: failed program was:" >&5
20592sed 's/^/| /' conftest.$ac_ext >&5
20593
20594ac_cv_func_krb_verify_not_secure=no
20595fi
20596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20597
20598fi
20599echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5
20600echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6
20601	if test "$ac_cv_func_krb_verify_not_secure" != yes; then
20602
20603cat >>confdefs.h <<\_ACEOF
20604#define KRB_VERIFY_NOT_SECURE 0
20605_ACEOF
20606
20607	fi
20608
20609
20610
20611
20612echo "$as_me:$LINENO: checking for krb_enable_debug" >&5
20613echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6
20614if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then
20615  echo $ECHO_N "(cached) $ECHO_C" >&6
20616else
20617
20618if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then
20619	ac_save_LIBS="$LIBS"
20620	for ac_lib in "" ; do
20621		case "$ac_lib" in
20622		"") ;;
20623		yes) ac_lib="" ;;
20624		no) continue ;;
20625		-l*) ;;
20626		*) ac_lib="-l$ac_lib" ;;
20627		esac
20628		LIBS=" $ac_lib  $ac_save_LIBS"
20629		cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h.  */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h.  */
20635
20636int
20637main ()
20638{
20639krb_enable_debug()
20640  ;
20641  return 0;
20642}
20643_ACEOF
20644rm -f conftest.$ac_objext conftest$ac_exeext
20645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20646  (eval $ac_link) 2>conftest.er1
20647  ac_status=$?
20648  grep -v '^ *+' conftest.er1 >conftest.err
20649  rm -f conftest.er1
20650  cat conftest.err >&5
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } &&
20653	 { ac_try='test -z "$ac_c_werror_flag"
20654			 || test ! -s conftest.err'
20655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656  (eval $ac_try) 2>&5
20657  ac_status=$?
20658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659  (exit $ac_status); }; } &&
20660	 { ac_try='test -s conftest$ac_exeext'
20661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20662  (eval $ac_try) 2>&5
20663  ac_status=$?
20664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20665  (exit $ac_status); }; }; then
20666  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
20667else
20668  echo "$as_me: failed program was:" >&5
20669sed 's/^/| /' conftest.$ac_ext >&5
20670
20671fi
20672rm -f conftest.err conftest.$ac_objext \
20673      conftest$ac_exeext conftest.$ac_ext
20674	done
20675	eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}"
20676	LIBS="$ac_save_LIBS"
20677fi
20678
20679fi
20680
20681
20682eval "ac_res=\$ac_cv_funclib_krb_enable_debug"
20683
20684if false; then
20685
20686for ac_func in krb_enable_debug
20687do
20688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20689echo "$as_me:$LINENO: checking for $ac_func" >&5
20690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20691if eval "test \"\${$as_ac_var+set}\" = set"; then
20692  echo $ECHO_N "(cached) $ECHO_C" >&6
20693else
20694  cat >conftest.$ac_ext <<_ACEOF
20695/* confdefs.h.  */
20696_ACEOF
20697cat confdefs.h >>conftest.$ac_ext
20698cat >>conftest.$ac_ext <<_ACEOF
20699/* end confdefs.h.  */
20700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20701   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20702#define $ac_func innocuous_$ac_func
20703
20704/* System header to define __stub macros and hopefully few prototypes,
20705    which can conflict with char $ac_func (); below.
20706    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20707    <limits.h> exists even on freestanding compilers.  */
20708
20709#ifdef __STDC__
20710# include <limits.h>
20711#else
20712# include <assert.h>
20713#endif
20714
20715#undef $ac_func
20716
20717/* Override any gcc2 internal prototype to avoid an error.  */
20718#ifdef __cplusplus
20719extern "C"
20720{
20721#endif
20722/* We use char because int might match the return type of a gcc2
20723   builtin and then its argument prototype would still apply.  */
20724char $ac_func ();
20725/* The GNU C library defines this for functions which it implements
20726    to always fail with ENOSYS.  Some functions are actually named
20727    something starting with __ and the normal name is an alias.  */
20728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20729choke me
20730#else
20731char (*f) () = $ac_func;
20732#endif
20733#ifdef __cplusplus
20734}
20735#endif
20736
20737int
20738main ()
20739{
20740return f != $ac_func;
20741  ;
20742  return 0;
20743}
20744_ACEOF
20745rm -f conftest.$ac_objext conftest$ac_exeext
20746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20747  (eval $ac_link) 2>conftest.er1
20748  ac_status=$?
20749  grep -v '^ *+' conftest.er1 >conftest.err
20750  rm -f conftest.er1
20751  cat conftest.err >&5
20752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753  (exit $ac_status); } &&
20754	 { ac_try='test -z "$ac_c_werror_flag"
20755			 || test ! -s conftest.err'
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); }; } &&
20761	 { ac_try='test -s conftest$ac_exeext'
20762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763  (eval $ac_try) 2>&5
20764  ac_status=$?
20765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766  (exit $ac_status); }; }; then
20767  eval "$as_ac_var=yes"
20768else
20769  echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772eval "$as_ac_var=no"
20773fi
20774rm -f conftest.err conftest.$ac_objext \
20775      conftest$ac_exeext conftest.$ac_ext
20776fi
20777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20779if test `eval echo '${'$as_ac_var'}'` = yes; then
20780  cat >>confdefs.h <<_ACEOF
20781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20782_ACEOF
20783
20784fi
20785done
20786
20787fi
20788# krb_enable_debug
20789eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20790eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
20791eval "LIB_krb_enable_debug=$ac_res"
20792
20793case "$ac_res" in
20794	yes)
20795	eval "ac_cv_func_krb_enable_debug=yes"
20796	eval "LIB_krb_enable_debug="
20797	cat >>confdefs.h <<_ACEOF
20798#define $ac_tr_func 1
20799_ACEOF
20800
20801	echo "$as_me:$LINENO: result: yes" >&5
20802echo "${ECHO_T}yes" >&6
20803	;;
20804	no)
20805	eval "ac_cv_func_krb_enable_debug=no"
20806	eval "LIB_krb_enable_debug="
20807	echo "$as_me:$LINENO: result: no" >&5
20808echo "${ECHO_T}no" >&6
20809	;;
20810	*)
20811	eval "ac_cv_func_krb_enable_debug=yes"
20812	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
20813	cat >>confdefs.h <<_ACEOF
20814#define $ac_tr_func 1
20815_ACEOF
20816
20817	cat >>confdefs.h <<_ACEOF
20818#define $ac_tr_lib 1
20819_ACEOF
20820
20821	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
20822echo "${ECHO_T}yes, in $ac_res" >&6
20823	;;
20824esac
20825
20826
20827if test -n "$LIB_krb_enable_debug"; then
20828	LIBS="$LIB_krb_enable_debug $LIBS"
20829fi
20830
20831
20832
20833
20834
20835echo "$as_me:$LINENO: checking for krb_disable_debug" >&5
20836echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6
20837if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then
20838  echo $ECHO_N "(cached) $ECHO_C" >&6
20839else
20840
20841if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then
20842	ac_save_LIBS="$LIBS"
20843	for ac_lib in "" ; do
20844		case "$ac_lib" in
20845		"") ;;
20846		yes) ac_lib="" ;;
20847		no) continue ;;
20848		-l*) ;;
20849		*) ac_lib="-l$ac_lib" ;;
20850		esac
20851		LIBS=" $ac_lib  $ac_save_LIBS"
20852		cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h.  */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h.  */
20858
20859int
20860main ()
20861{
20862krb_disable_debug()
20863  ;
20864  return 0;
20865}
20866_ACEOF
20867rm -f conftest.$ac_objext conftest$ac_exeext
20868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869  (eval $ac_link) 2>conftest.er1
20870  ac_status=$?
20871  grep -v '^ *+' conftest.er1 >conftest.err
20872  rm -f conftest.er1
20873  cat conftest.err >&5
20874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875  (exit $ac_status); } &&
20876	 { ac_try='test -z "$ac_c_werror_flag"
20877			 || test ! -s conftest.err'
20878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879  (eval $ac_try) 2>&5
20880  ac_status=$?
20881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882  (exit $ac_status); }; } &&
20883	 { ac_try='test -s conftest$ac_exeext'
20884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885  (eval $ac_try) 2>&5
20886  ac_status=$?
20887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888  (exit $ac_status); }; }; then
20889  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
20890else
20891  echo "$as_me: failed program was:" >&5
20892sed 's/^/| /' conftest.$ac_ext >&5
20893
20894fi
20895rm -f conftest.err conftest.$ac_objext \
20896      conftest$ac_exeext conftest.$ac_ext
20897	done
20898	eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}"
20899	LIBS="$ac_save_LIBS"
20900fi
20901
20902fi
20903
20904
20905eval "ac_res=\$ac_cv_funclib_krb_disable_debug"
20906
20907if false; then
20908
20909for ac_func in krb_disable_debug
20910do
20911as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20912echo "$as_me:$LINENO: checking for $ac_func" >&5
20913echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20914if eval "test \"\${$as_ac_var+set}\" = set"; then
20915  echo $ECHO_N "(cached) $ECHO_C" >&6
20916else
20917  cat >conftest.$ac_ext <<_ACEOF
20918/* confdefs.h.  */
20919_ACEOF
20920cat confdefs.h >>conftest.$ac_ext
20921cat >>conftest.$ac_ext <<_ACEOF
20922/* end confdefs.h.  */
20923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20924   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20925#define $ac_func innocuous_$ac_func
20926
20927/* System header to define __stub macros and hopefully few prototypes,
20928    which can conflict with char $ac_func (); below.
20929    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20930    <limits.h> exists even on freestanding compilers.  */
20931
20932#ifdef __STDC__
20933# include <limits.h>
20934#else
20935# include <assert.h>
20936#endif
20937
20938#undef $ac_func
20939
20940/* Override any gcc2 internal prototype to avoid an error.  */
20941#ifdef __cplusplus
20942extern "C"
20943{
20944#endif
20945/* We use char because int might match the return type of a gcc2
20946   builtin and then its argument prototype would still apply.  */
20947char $ac_func ();
20948/* The GNU C library defines this for functions which it implements
20949    to always fail with ENOSYS.  Some functions are actually named
20950    something starting with __ and the normal name is an alias.  */
20951#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20952choke me
20953#else
20954char (*f) () = $ac_func;
20955#endif
20956#ifdef __cplusplus
20957}
20958#endif
20959
20960int
20961main ()
20962{
20963return f != $ac_func;
20964  ;
20965  return 0;
20966}
20967_ACEOF
20968rm -f conftest.$ac_objext conftest$ac_exeext
20969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970  (eval $ac_link) 2>conftest.er1
20971  ac_status=$?
20972  grep -v '^ *+' conftest.er1 >conftest.err
20973  rm -f conftest.er1
20974  cat conftest.err >&5
20975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976  (exit $ac_status); } &&
20977	 { ac_try='test -z "$ac_c_werror_flag"
20978			 || test ! -s conftest.err'
20979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980  (eval $ac_try) 2>&5
20981  ac_status=$?
20982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983  (exit $ac_status); }; } &&
20984	 { ac_try='test -s conftest$ac_exeext'
20985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986  (eval $ac_try) 2>&5
20987  ac_status=$?
20988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989  (exit $ac_status); }; }; then
20990  eval "$as_ac_var=yes"
20991else
20992  echo "$as_me: failed program was:" >&5
20993sed 's/^/| /' conftest.$ac_ext >&5
20994
20995eval "$as_ac_var=no"
20996fi
20997rm -f conftest.err conftest.$ac_objext \
20998      conftest$ac_exeext conftest.$ac_ext
20999fi
21000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21001echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21002if test `eval echo '${'$as_ac_var'}'` = yes; then
21003  cat >>confdefs.h <<_ACEOF
21004#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21005_ACEOF
21006
21007fi
21008done
21009
21010fi
21011# krb_disable_debug
21012eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21013eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21014eval "LIB_krb_disable_debug=$ac_res"
21015
21016case "$ac_res" in
21017	yes)
21018	eval "ac_cv_func_krb_disable_debug=yes"
21019	eval "LIB_krb_disable_debug="
21020	cat >>confdefs.h <<_ACEOF
21021#define $ac_tr_func 1
21022_ACEOF
21023
21024	echo "$as_me:$LINENO: result: yes" >&5
21025echo "${ECHO_T}yes" >&6
21026	;;
21027	no)
21028	eval "ac_cv_func_krb_disable_debug=no"
21029	eval "LIB_krb_disable_debug="
21030	echo "$as_me:$LINENO: result: no" >&5
21031echo "${ECHO_T}no" >&6
21032	;;
21033	*)
21034	eval "ac_cv_func_krb_disable_debug=yes"
21035	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21036	cat >>confdefs.h <<_ACEOF
21037#define $ac_tr_func 1
21038_ACEOF
21039
21040	cat >>confdefs.h <<_ACEOF
21041#define $ac_tr_lib 1
21042_ACEOF
21043
21044	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21045echo "${ECHO_T}yes, in $ac_res" >&6
21046	;;
21047esac
21048
21049
21050if test -n "$LIB_krb_disable_debug"; then
21051	LIBS="$LIB_krb_disable_debug $LIBS"
21052fi
21053
21054
21055
21056
21057
21058echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5
21059echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6
21060if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then
21061  echo $ECHO_N "(cached) $ECHO_C" >&6
21062else
21063
21064if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then
21065	ac_save_LIBS="$LIBS"
21066	for ac_lib in "" ; do
21067		case "$ac_lib" in
21068		"") ;;
21069		yes) ac_lib="" ;;
21070		no) continue ;;
21071		-l*) ;;
21072		*) ac_lib="-l$ac_lib" ;;
21073		esac
21074		LIBS=" $ac_lib  $ac_save_LIBS"
21075		cat >conftest.$ac_ext <<_ACEOF
21076/* confdefs.h.  */
21077_ACEOF
21078cat confdefs.h >>conftest.$ac_ext
21079cat >>conftest.$ac_ext <<_ACEOF
21080/* end confdefs.h.  */
21081
21082int
21083main ()
21084{
21085krb_get_our_ip_for_realm()
21086  ;
21087  return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext conftest$ac_exeext
21091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21092  (eval $ac_link) 2>conftest.er1
21093  ac_status=$?
21094  grep -v '^ *+' conftest.er1 >conftest.err
21095  rm -f conftest.er1
21096  cat conftest.err >&5
21097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098  (exit $ac_status); } &&
21099	 { ac_try='test -z "$ac_c_werror_flag"
21100			 || test ! -s conftest.err'
21101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102  (eval $ac_try) 2>&5
21103  ac_status=$?
21104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105  (exit $ac_status); }; } &&
21106	 { ac_try='test -s conftest$ac_exeext'
21107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108  (eval $ac_try) 2>&5
21109  ac_status=$?
21110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111  (exit $ac_status); }; }; then
21112  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
21113else
21114  echo "$as_me: failed program was:" >&5
21115sed 's/^/| /' conftest.$ac_ext >&5
21116
21117fi
21118rm -f conftest.err conftest.$ac_objext \
21119      conftest$ac_exeext conftest.$ac_ext
21120	done
21121	eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}"
21122	LIBS="$ac_save_LIBS"
21123fi
21124
21125fi
21126
21127
21128eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm"
21129
21130if false; then
21131
21132for ac_func in krb_get_our_ip_for_realm
21133do
21134as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21135echo "$as_me:$LINENO: checking for $ac_func" >&5
21136echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21137if eval "test \"\${$as_ac_var+set}\" = set"; then
21138  echo $ECHO_N "(cached) $ECHO_C" >&6
21139else
21140  cat >conftest.$ac_ext <<_ACEOF
21141/* confdefs.h.  */
21142_ACEOF
21143cat confdefs.h >>conftest.$ac_ext
21144cat >>conftest.$ac_ext <<_ACEOF
21145/* end confdefs.h.  */
21146/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21147   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21148#define $ac_func innocuous_$ac_func
21149
21150/* System header to define __stub macros and hopefully few prototypes,
21151    which can conflict with char $ac_func (); below.
21152    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21153    <limits.h> exists even on freestanding compilers.  */
21154
21155#ifdef __STDC__
21156# include <limits.h>
21157#else
21158# include <assert.h>
21159#endif
21160
21161#undef $ac_func
21162
21163/* Override any gcc2 internal prototype to avoid an error.  */
21164#ifdef __cplusplus
21165extern "C"
21166{
21167#endif
21168/* We use char because int might match the return type of a gcc2
21169   builtin and then its argument prototype would still apply.  */
21170char $ac_func ();
21171/* The GNU C library defines this for functions which it implements
21172    to always fail with ENOSYS.  Some functions are actually named
21173    something starting with __ and the normal name is an alias.  */
21174#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21175choke me
21176#else
21177char (*f) () = $ac_func;
21178#endif
21179#ifdef __cplusplus
21180}
21181#endif
21182
21183int
21184main ()
21185{
21186return f != $ac_func;
21187  ;
21188  return 0;
21189}
21190_ACEOF
21191rm -f conftest.$ac_objext conftest$ac_exeext
21192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193  (eval $ac_link) 2>conftest.er1
21194  ac_status=$?
21195  grep -v '^ *+' conftest.er1 >conftest.err
21196  rm -f conftest.er1
21197  cat conftest.err >&5
21198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199  (exit $ac_status); } &&
21200	 { ac_try='test -z "$ac_c_werror_flag"
21201			 || test ! -s conftest.err'
21202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203  (eval $ac_try) 2>&5
21204  ac_status=$?
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); }; } &&
21207	 { ac_try='test -s conftest$ac_exeext'
21208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209  (eval $ac_try) 2>&5
21210  ac_status=$?
21211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212  (exit $ac_status); }; }; then
21213  eval "$as_ac_var=yes"
21214else
21215  echo "$as_me: failed program was:" >&5
21216sed 's/^/| /' conftest.$ac_ext >&5
21217
21218eval "$as_ac_var=no"
21219fi
21220rm -f conftest.err conftest.$ac_objext \
21221      conftest$ac_exeext conftest.$ac_ext
21222fi
21223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21225if test `eval echo '${'$as_ac_var'}'` = yes; then
21226  cat >>confdefs.h <<_ACEOF
21227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21228_ACEOF
21229
21230fi
21231done
21232
21233fi
21234# krb_get_our_ip_for_realm
21235eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21236eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21237eval "LIB_krb_get_our_ip_for_realm=$ac_res"
21238
21239case "$ac_res" in
21240	yes)
21241	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21242	eval "LIB_krb_get_our_ip_for_realm="
21243	cat >>confdefs.h <<_ACEOF
21244#define $ac_tr_func 1
21245_ACEOF
21246
21247	echo "$as_me:$LINENO: result: yes" >&5
21248echo "${ECHO_T}yes" >&6
21249	;;
21250	no)
21251	eval "ac_cv_func_krb_get_our_ip_for_realm=no"
21252	eval "LIB_krb_get_our_ip_for_realm="
21253	echo "$as_me:$LINENO: result: no" >&5
21254echo "${ECHO_T}no" >&6
21255	;;
21256	*)
21257	eval "ac_cv_func_krb_get_our_ip_for_realm=yes"
21258	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21259	cat >>confdefs.h <<_ACEOF
21260#define $ac_tr_func 1
21261_ACEOF
21262
21263	cat >>confdefs.h <<_ACEOF
21264#define $ac_tr_lib 1
21265_ACEOF
21266
21267	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21268echo "${ECHO_T}yes, in $ac_res" >&6
21269	;;
21270esac
21271
21272
21273if test -n "$LIB_krb_get_our_ip_for_realm"; then
21274	LIBS="$LIB_krb_get_our_ip_for_realm $LIBS"
21275fi
21276
21277
21278
21279
21280
21281echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5
21282echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6
21283if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then
21284  echo $ECHO_N "(cached) $ECHO_C" >&6
21285else
21286
21287if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then
21288	ac_save_LIBS="$LIBS"
21289	for ac_lib in "" ; do
21290		case "$ac_lib" in
21291		"") ;;
21292		yes) ac_lib="" ;;
21293		no) continue ;;
21294		-l*) ;;
21295		*) ac_lib="-l$ac_lib" ;;
21296		esac
21297		LIBS=" $ac_lib  $ac_save_LIBS"
21298		cat >conftest.$ac_ext <<_ACEOF
21299/* confdefs.h.  */
21300_ACEOF
21301cat confdefs.h >>conftest.$ac_ext
21302cat >>conftest.$ac_ext <<_ACEOF
21303/* end confdefs.h.  */
21304
21305int
21306main ()
21307{
21308krb_kdctimeofday()
21309  ;
21310  return 0;
21311}
21312_ACEOF
21313rm -f conftest.$ac_objext conftest$ac_exeext
21314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315  (eval $ac_link) 2>conftest.er1
21316  ac_status=$?
21317  grep -v '^ *+' conftest.er1 >conftest.err
21318  rm -f conftest.er1
21319  cat conftest.err >&5
21320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321  (exit $ac_status); } &&
21322	 { ac_try='test -z "$ac_c_werror_flag"
21323			 || test ! -s conftest.err'
21324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325  (eval $ac_try) 2>&5
21326  ac_status=$?
21327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328  (exit $ac_status); }; } &&
21329	 { ac_try='test -s conftest$ac_exeext'
21330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331  (eval $ac_try) 2>&5
21332  ac_status=$?
21333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334  (exit $ac_status); }; }; then
21335  eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break
21336else
21337  echo "$as_me: failed program was:" >&5
21338sed 's/^/| /' conftest.$ac_ext >&5
21339
21340fi
21341rm -f conftest.err conftest.$ac_objext \
21342      conftest$ac_exeext conftest.$ac_ext
21343	done
21344	eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}"
21345	LIBS="$ac_save_LIBS"
21346fi
21347
21348fi
21349
21350
21351eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday"
21352
21353if false; then
21354
21355for ac_func in krb_kdctimeofday
21356do
21357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21358echo "$as_me:$LINENO: checking for $ac_func" >&5
21359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21360if eval "test \"\${$as_ac_var+set}\" = set"; then
21361  echo $ECHO_N "(cached) $ECHO_C" >&6
21362else
21363  cat >conftest.$ac_ext <<_ACEOF
21364/* confdefs.h.  */
21365_ACEOF
21366cat confdefs.h >>conftest.$ac_ext
21367cat >>conftest.$ac_ext <<_ACEOF
21368/* end confdefs.h.  */
21369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21370   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21371#define $ac_func innocuous_$ac_func
21372
21373/* System header to define __stub macros and hopefully few prototypes,
21374    which can conflict with char $ac_func (); below.
21375    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376    <limits.h> exists even on freestanding compilers.  */
21377
21378#ifdef __STDC__
21379# include <limits.h>
21380#else
21381# include <assert.h>
21382#endif
21383
21384#undef $ac_func
21385
21386/* Override any gcc2 internal prototype to avoid an error.  */
21387#ifdef __cplusplus
21388extern "C"
21389{
21390#endif
21391/* We use char because int might match the return type of a gcc2
21392   builtin and then its argument prototype would still apply.  */
21393char $ac_func ();
21394/* The GNU C library defines this for functions which it implements
21395    to always fail with ENOSYS.  Some functions are actually named
21396    something starting with __ and the normal name is an alias.  */
21397#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21398choke me
21399#else
21400char (*f) () = $ac_func;
21401#endif
21402#ifdef __cplusplus
21403}
21404#endif
21405
21406int
21407main ()
21408{
21409return f != $ac_func;
21410  ;
21411  return 0;
21412}
21413_ACEOF
21414rm -f conftest.$ac_objext conftest$ac_exeext
21415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21416  (eval $ac_link) 2>conftest.er1
21417  ac_status=$?
21418  grep -v '^ *+' conftest.er1 >conftest.err
21419  rm -f conftest.er1
21420  cat conftest.err >&5
21421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422  (exit $ac_status); } &&
21423	 { ac_try='test -z "$ac_c_werror_flag"
21424			 || test ! -s conftest.err'
21425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426  (eval $ac_try) 2>&5
21427  ac_status=$?
21428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429  (exit $ac_status); }; } &&
21430	 { ac_try='test -s conftest$ac_exeext'
21431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432  (eval $ac_try) 2>&5
21433  ac_status=$?
21434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435  (exit $ac_status); }; }; then
21436  eval "$as_ac_var=yes"
21437else
21438  echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441eval "$as_ac_var=no"
21442fi
21443rm -f conftest.err conftest.$ac_objext \
21444      conftest$ac_exeext conftest.$ac_ext
21445fi
21446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21448if test `eval echo '${'$as_ac_var'}'` = yes; then
21449  cat >>confdefs.h <<_ACEOF
21450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21451_ACEOF
21452
21453fi
21454done
21455
21456fi
21457# krb_kdctimeofday
21458eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21459eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21460eval "LIB_krb_kdctimeofday=$ac_res"
21461
21462case "$ac_res" in
21463	yes)
21464	eval "ac_cv_func_krb_kdctimeofday=yes"
21465	eval "LIB_krb_kdctimeofday="
21466	cat >>confdefs.h <<_ACEOF
21467#define $ac_tr_func 1
21468_ACEOF
21469
21470	echo "$as_me:$LINENO: result: yes" >&5
21471echo "${ECHO_T}yes" >&6
21472	;;
21473	no)
21474	eval "ac_cv_func_krb_kdctimeofday=no"
21475	eval "LIB_krb_kdctimeofday="
21476	echo "$as_me:$LINENO: result: no" >&5
21477echo "${ECHO_T}no" >&6
21478	;;
21479	*)
21480	eval "ac_cv_func_krb_kdctimeofday=yes"
21481	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21482	cat >>confdefs.h <<_ACEOF
21483#define $ac_tr_func 1
21484_ACEOF
21485
21486	cat >>confdefs.h <<_ACEOF
21487#define $ac_tr_lib 1
21488_ACEOF
21489
21490	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21491echo "${ECHO_T}yes, in $ac_res" >&6
21492	;;
21493esac
21494
21495
21496if test -n "$LIB_krb_kdctimeofday"; then
21497	LIBS="$LIB_krb_kdctimeofday $LIBS"
21498fi
21499
21500
21501
21502
21503
21504
21505
21506echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5
21507echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6
21508if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then
21509  echo $ECHO_N "(cached) $ECHO_C" >&6
21510else
21511
21512if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then
21513	ac_save_LIBS="$LIBS"
21514	for ac_lib in "" ; do
21515		case "$ac_lib" in
21516		"") ;;
21517		yes) ac_lib="" ;;
21518		no) continue ;;
21519		-l*) ;;
21520		*) ac_lib="-l$ac_lib" ;;
21521		esac
21522		LIBS=" $ac_lib  $ac_save_LIBS"
21523		cat >conftest.$ac_ext <<_ACEOF
21524/* confdefs.h.  */
21525_ACEOF
21526cat confdefs.h >>conftest.$ac_ext
21527cat >>conftest.$ac_ext <<_ACEOF
21528/* end confdefs.h.  */
21529
21530int
21531main ()
21532{
21533krb_get_kdc_time_diff()
21534  ;
21535  return 0;
21536}
21537_ACEOF
21538rm -f conftest.$ac_objext conftest$ac_exeext
21539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21540  (eval $ac_link) 2>conftest.er1
21541  ac_status=$?
21542  grep -v '^ *+' conftest.er1 >conftest.err
21543  rm -f conftest.er1
21544  cat conftest.err >&5
21545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546  (exit $ac_status); } &&
21547	 { ac_try='test -z "$ac_c_werror_flag"
21548			 || test ! -s conftest.err'
21549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550  (eval $ac_try) 2>&5
21551  ac_status=$?
21552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553  (exit $ac_status); }; } &&
21554	 { ac_try='test -s conftest$ac_exeext'
21555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556  (eval $ac_try) 2>&5
21557  ac_status=$?
21558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559  (exit $ac_status); }; }; then
21560  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
21561else
21562  echo "$as_me: failed program was:" >&5
21563sed 's/^/| /' conftest.$ac_ext >&5
21564
21565fi
21566rm -f conftest.err conftest.$ac_objext \
21567      conftest$ac_exeext conftest.$ac_ext
21568	done
21569	eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}"
21570	LIBS="$ac_save_LIBS"
21571fi
21572
21573fi
21574
21575
21576eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff"
21577
21578if false; then
21579
21580for ac_func in krb_get_kdc_time_diff
21581do
21582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21583echo "$as_me:$LINENO: checking for $ac_func" >&5
21584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21585if eval "test \"\${$as_ac_var+set}\" = set"; then
21586  echo $ECHO_N "(cached) $ECHO_C" >&6
21587else
21588  cat >conftest.$ac_ext <<_ACEOF
21589/* confdefs.h.  */
21590_ACEOF
21591cat confdefs.h >>conftest.$ac_ext
21592cat >>conftest.$ac_ext <<_ACEOF
21593/* end confdefs.h.  */
21594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21595   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21596#define $ac_func innocuous_$ac_func
21597
21598/* System header to define __stub macros and hopefully few prototypes,
21599    which can conflict with char $ac_func (); below.
21600    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21601    <limits.h> exists even on freestanding compilers.  */
21602
21603#ifdef __STDC__
21604# include <limits.h>
21605#else
21606# include <assert.h>
21607#endif
21608
21609#undef $ac_func
21610
21611/* Override any gcc2 internal prototype to avoid an error.  */
21612#ifdef __cplusplus
21613extern "C"
21614{
21615#endif
21616/* We use char because int might match the return type of a gcc2
21617   builtin and then its argument prototype would still apply.  */
21618char $ac_func ();
21619/* The GNU C library defines this for functions which it implements
21620    to always fail with ENOSYS.  Some functions are actually named
21621    something starting with __ and the normal name is an alias.  */
21622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21623choke me
21624#else
21625char (*f) () = $ac_func;
21626#endif
21627#ifdef __cplusplus
21628}
21629#endif
21630
21631int
21632main ()
21633{
21634return f != $ac_func;
21635  ;
21636  return 0;
21637}
21638_ACEOF
21639rm -f conftest.$ac_objext conftest$ac_exeext
21640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21641  (eval $ac_link) 2>conftest.er1
21642  ac_status=$?
21643  grep -v '^ *+' conftest.er1 >conftest.err
21644  rm -f conftest.er1
21645  cat conftest.err >&5
21646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647  (exit $ac_status); } &&
21648	 { ac_try='test -z "$ac_c_werror_flag"
21649			 || test ! -s conftest.err'
21650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21651  (eval $ac_try) 2>&5
21652  ac_status=$?
21653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21654  (exit $ac_status); }; } &&
21655	 { ac_try='test -s conftest$ac_exeext'
21656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21657  (eval $ac_try) 2>&5
21658  ac_status=$?
21659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660  (exit $ac_status); }; }; then
21661  eval "$as_ac_var=yes"
21662else
21663  echo "$as_me: failed program was:" >&5
21664sed 's/^/| /' conftest.$ac_ext >&5
21665
21666eval "$as_ac_var=no"
21667fi
21668rm -f conftest.err conftest.$ac_objext \
21669      conftest$ac_exeext conftest.$ac_ext
21670fi
21671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21673if test `eval echo '${'$as_ac_var'}'` = yes; then
21674  cat >>confdefs.h <<_ACEOF
21675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21676_ACEOF
21677
21678fi
21679done
21680
21681fi
21682# krb_get_kdc_time_diff
21683eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21684eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
21685eval "LIB_krb_get_kdc_time_diff=$ac_res"
21686
21687case "$ac_res" in
21688	yes)
21689	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21690	eval "LIB_krb_get_kdc_time_diff="
21691	cat >>confdefs.h <<_ACEOF
21692#define $ac_tr_func 1
21693_ACEOF
21694
21695	echo "$as_me:$LINENO: result: yes" >&5
21696echo "${ECHO_T}yes" >&6
21697	;;
21698	no)
21699	eval "ac_cv_func_krb_get_kdc_time_diff=no"
21700	eval "LIB_krb_get_kdc_time_diff="
21701	echo "$as_me:$LINENO: result: no" >&5
21702echo "${ECHO_T}no" >&6
21703	;;
21704	*)
21705	eval "ac_cv_func_krb_get_kdc_time_diff=yes"
21706	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
21707	cat >>confdefs.h <<_ACEOF
21708#define $ac_tr_func 1
21709_ACEOF
21710
21711	cat >>confdefs.h <<_ACEOF
21712#define $ac_tr_lib 1
21713_ACEOF
21714
21715	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
21716echo "${ECHO_T}yes, in $ac_res" >&6
21717	;;
21718esac
21719
21720
21721if test -n "$LIB_krb_get_kdc_time_diff"; then
21722	LIBS="$LIB_krb_get_kdc_time_diff $LIBS"
21723fi
21724
21725
21726
21727	echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5
21728echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6
21729if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then
21730  echo $ECHO_N "(cached) $ECHO_C" >&6
21731else
21732  cat >conftest.$ac_ext <<_ACEOF
21733/* confdefs.h.  */
21734_ACEOF
21735cat confdefs.h >>conftest.$ac_ext
21736cat >>conftest.$ac_ext <<_ACEOF
21737/* end confdefs.h.  */
21738#include <krb.h>
21739			#include <prot.h>
21740int
21741main ()
21742{
21743
21744		char *x = KRB_SENDAUTH_VERS
21745  ;
21746  return 0;
21747}
21748_ACEOF
21749rm -f conftest.$ac_objext
21750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21751  (eval $ac_compile) 2>conftest.er1
21752  ac_status=$?
21753  grep -v '^ *+' conftest.er1 >conftest.err
21754  rm -f conftest.er1
21755  cat conftest.err >&5
21756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757  (exit $ac_status); } &&
21758	 { ac_try='test -z "$ac_c_werror_flag"
21759			 || test ! -s conftest.err'
21760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761  (eval $ac_try) 2>&5
21762  ac_status=$?
21763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764  (exit $ac_status); }; } &&
21765	 { ac_try='test -s conftest.$ac_objext'
21766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767  (eval $ac_try) 2>&5
21768  ac_status=$?
21769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770  (exit $ac_status); }; }; then
21771  ac_cv_func_krb_sendauth_vers=yes
21772else
21773  echo "$as_me: failed program was:" >&5
21774sed 's/^/| /' conftest.$ac_ext >&5
21775
21776ac_cv_func_krb_sendauth_vers=no
21777fi
21778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21779
21780fi
21781echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5
21782echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6
21783	if test "$ac_cv_func_krb_sendauth_vers" != yes; then
21784
21785cat >>confdefs.h <<\_ACEOF
21786#define KRB_SENDAUTH_VERS "AUTHV0.1"
21787_ACEOF
21788
21789	fi
21790	echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5
21791echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6
21792if test "${ac_cv_func_krb_mk_req_const+set}" = set; then
21793  echo $ECHO_N "(cached) $ECHO_C" >&6
21794else
21795  cat >conftest.$ac_ext <<_ACEOF
21796/* confdefs.h.  */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h.  */
21801#include <krb.h>
21802		int krb_mk_req(KTEXT a, const char *s, const char *i,
21803			       const char *r, int32_t checksum)
21804		{ return 17; }
21805int
21806main ()
21807{
21808
21809  ;
21810  return 0;
21811}
21812_ACEOF
21813rm -f conftest.$ac_objext
21814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21815  (eval $ac_compile) 2>conftest.er1
21816  ac_status=$?
21817  grep -v '^ *+' conftest.er1 >conftest.err
21818  rm -f conftest.er1
21819  cat conftest.err >&5
21820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821  (exit $ac_status); } &&
21822	 { ac_try='test -z "$ac_c_werror_flag"
21823			 || test ! -s conftest.err'
21824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825  (eval $ac_try) 2>&5
21826  ac_status=$?
21827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828  (exit $ac_status); }; } &&
21829	 { ac_try='test -s conftest.$ac_objext'
21830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21831  (eval $ac_try) 2>&5
21832  ac_status=$?
21833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834  (exit $ac_status); }; }; then
21835  ac_cv_func_krb_mk_req_const=yes
21836else
21837  echo "$as_me: failed program was:" >&5
21838sed 's/^/| /' conftest.$ac_ext >&5
21839
21840ac_cv_func_krb_mk_req_const=no
21841fi
21842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21843
21844fi
21845echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5
21846echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6
21847	if test "$ac_cv_func_krb_mk_req_const" = "yes"; then
21848
21849cat >>confdefs.h <<\_ACEOF
21850#define KRB_MK_REQ_CONST 1
21851_ACEOF
21852
21853	fi
21854
21855	LIBS="$save_LIBS"
21856	CFLAGS="$save_CFLAGS"
21857	LIB_kdb="-lkdb -lkrb"
21858fi
21859
21860
21861if test "$with_krb4" != "no"; then
21862  KRB4_TRUE=
21863  KRB4_FALSE='#'
21864else
21865  KRB4_TRUE='#'
21866  KRB4_FALSE=
21867fi
21868
21869
21870
21871if true; then
21872  KRB5_TRUE=
21873  KRB5_FALSE='#'
21874else
21875  KRB5_TRUE='#'
21876  KRB5_FALSE=
21877fi
21878
21879
21880
21881if true; then
21882  do_roken_rename_TRUE=
21883  do_roken_rename_FALSE='#'
21884else
21885  do_roken_rename_TRUE='#'
21886  do_roken_rename_FALSE=
21887fi
21888
21889
21890
21891cat >>confdefs.h <<\_ACEOF
21892#define KRB5 1
21893_ACEOF
21894
21895
21896crypto_lib=unknown
21897
21898
21899# Check whether --with-openssl or --without-openssl was given.
21900if test "${with_openssl+set}" = set; then
21901  withval="$with_openssl"
21902
21903fi;
21904
21905
21906# Check whether --with-openssl-lib or --without-openssl-lib was given.
21907if test "${with_openssl_lib+set}" = set; then
21908  withval="$with_openssl_lib"
21909  if test "$withval" = "yes" -o "$withval" = "no"; then
21910  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5
21911echo "$as_me: error: No argument for --with-openssl-lib" >&2;}
21912   { (exit 1); exit 1; }; }
21913elif test "X$with_openssl" = "X"; then
21914  with_openssl=yes
21915fi
21916fi;
21917
21918
21919# Check whether --with-openssl-include or --without-openssl-include was given.
21920if test "${with_openssl_include+set}" = set; then
21921  withval="$with_openssl_include"
21922  if test "$withval" = "yes" -o "$withval" = "no"; then
21923  { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5
21924echo "$as_me: error: No argument for --with-openssl-include" >&2;}
21925   { (exit 1); exit 1; }; }
21926elif test "X$with_openssl" = "X"; then
21927  with_openssl=yes
21928fi
21929fi;
21930
21931case "$with_openssl" in
21932yes)	;;
21933no)	;;
21934"")	;;
21935*)	if test "$with_openssl_include" = ""; then
21936		with_openssl_include="$with_openssl/include"
21937	fi
21938	if test "$with_openssl_lib" = ""; then
21939		with_openssl_lib="$with_openssl/lib$abilibdirext"
21940	fi
21941	;;
21942esac
21943
21944
21945DIR_des=
21946
21947echo "$as_me:$LINENO: checking for crypto library" >&5
21948echo $ECHO_N "checking for crypto library... $ECHO_C" >&6
21949
21950openssl=no
21951old_hash=no
21952
21953if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then
21954	save_CPPFLAGS="$CPPFLAGS"
21955	save_LIBS="$LIBS"
21956
21957	cdirs= clibs=
21958	for i in $LIB_krb4; do
21959		case "$i" in
21960		-L*) cdirs="$cdirs $i";;
21961		-l*) clibs="$clibs $i";;
21962		esac
21963	done
21964
21965	ires=
21966	for i in $INCLUDE_krb4; do
21967		CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
21968		for j in $cdirs; do
21969			for k in $clibs; do
21970				LIBS="$j $k $save_LIBS"
21971				cat >conftest.$ac_ext <<_ACEOF
21972/* confdefs.h.  */
21973_ACEOF
21974cat confdefs.h >>conftest.$ac_ext
21975cat >>conftest.$ac_ext <<_ACEOF
21976/* end confdefs.h.  */
21977
21978		#undef KRB5 /* makes md4.h et al unhappy */
21979		#ifdef HAVE_OPENSSL
21980		#include <openssl/md4.h>
21981		#include <openssl/md5.h>
21982		#include <openssl/sha.h>
21983		#define OPENSSL_DES_LIBDES_COMPATIBILITY
21984		#include <openssl/des.h>
21985		#include <openssl/rc4.h>
21986		#include <openssl/rand.h>
21987		#else
21988		#include <md4.h>
21989		#include <md5.h>
21990		#include <sha.h>
21991		#include <des.h>
21992		#include <rc4.h>
21993		#endif
21994		#ifdef OLD_HASH_NAMES
21995		typedef struct md4 MD4_CTX;
21996		#define MD4_Init(C) md4_init((C))
21997		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
21998		#define MD4_Final(D, C) md4_finito((C), (D))
21999		typedef struct md5 MD5_CTX;
22000		#define MD5_Init(C) md5_init((C))
22001		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22002		#define MD5_Final(D, C) md5_finito((C), (D))
22003		typedef struct sha SHA_CTX;
22004		#define SHA1_Init(C) sha_init((C))
22005		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22006		#define SHA1_Final(D, C) sha_finito((C), (D))
22007		#endif
22008
22009int
22010main ()
22011{
22012
22013		void *schedule = 0;
22014		MD4_CTX md4;
22015		MD5_CTX md5;
22016		SHA_CTX sha1;
22017
22018		MD4_Init(&md4);
22019		MD5_Init(&md5);
22020		SHA1_Init(&sha1);
22021		#ifdef HAVE_OPENSSL
22022		RAND_status();
22023		#endif
22024
22025		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22026		RC4(0, 0, 0, 0);
22027  ;
22028  return 0;
22029}
22030_ACEOF
22031rm -f conftest.$ac_objext conftest$ac_exeext
22032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22033  (eval $ac_link) 2>conftest.er1
22034  ac_status=$?
22035  grep -v '^ *+' conftest.er1 >conftest.err
22036  rm -f conftest.er1
22037  cat conftest.err >&5
22038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039  (exit $ac_status); } &&
22040	 { ac_try='test -z "$ac_c_werror_flag"
22041			 || test ! -s conftest.err'
22042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043  (eval $ac_try) 2>&5
22044  ac_status=$?
22045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046  (exit $ac_status); }; } &&
22047	 { ac_try='test -s conftest$ac_exeext'
22048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22049  (eval $ac_try) 2>&5
22050  ac_status=$?
22051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052  (exit $ac_status); }; }; then
22053  openssl=yes ires="$i" lres="$j $k"; break 3
22054else
22055  echo "$as_me: failed program was:" >&5
22056sed 's/^/| /' conftest.$ac_ext >&5
22057
22058fi
22059rm -f conftest.err conftest.$ac_objext \
22060      conftest$ac_exeext conftest.$ac_ext
22061			done
22062		done
22063		CFLAGS="$i $save_CFLAGS"
22064		for j in $cdirs; do
22065			for k in $clibs; do
22066				LIBS="$j $k $save_LIBS"
22067				cat >conftest.$ac_ext <<_ACEOF
22068/* confdefs.h.  */
22069_ACEOF
22070cat confdefs.h >>conftest.$ac_ext
22071cat >>conftest.$ac_ext <<_ACEOF
22072/* end confdefs.h.  */
22073
22074		#undef KRB5 /* makes md4.h et al unhappy */
22075		#ifdef HAVE_OPENSSL
22076		#include <openssl/md4.h>
22077		#include <openssl/md5.h>
22078		#include <openssl/sha.h>
22079		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22080		#include <openssl/des.h>
22081		#include <openssl/rc4.h>
22082		#include <openssl/rand.h>
22083		#else
22084		#include <md4.h>
22085		#include <md5.h>
22086		#include <sha.h>
22087		#include <des.h>
22088		#include <rc4.h>
22089		#endif
22090		#ifdef OLD_HASH_NAMES
22091		typedef struct md4 MD4_CTX;
22092		#define MD4_Init(C) md4_init((C))
22093		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22094		#define MD4_Final(D, C) md4_finito((C), (D))
22095		typedef struct md5 MD5_CTX;
22096		#define MD5_Init(C) md5_init((C))
22097		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22098		#define MD5_Final(D, C) md5_finito((C), (D))
22099		typedef struct sha SHA_CTX;
22100		#define SHA1_Init(C) sha_init((C))
22101		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22102		#define SHA1_Final(D, C) sha_finito((C), (D))
22103		#endif
22104
22105int
22106main ()
22107{
22108
22109		void *schedule = 0;
22110		MD4_CTX md4;
22111		MD5_CTX md5;
22112		SHA_CTX sha1;
22113
22114		MD4_Init(&md4);
22115		MD5_Init(&md5);
22116		SHA1_Init(&sha1);
22117		#ifdef HAVE_OPENSSL
22118		RAND_status();
22119		#endif
22120
22121		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22122		RC4(0, 0, 0, 0);
22123  ;
22124  return 0;
22125}
22126_ACEOF
22127rm -f conftest.$ac_objext conftest$ac_exeext
22128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22129  (eval $ac_link) 2>conftest.er1
22130  ac_status=$?
22131  grep -v '^ *+' conftest.er1 >conftest.err
22132  rm -f conftest.er1
22133  cat conftest.err >&5
22134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135  (exit $ac_status); } &&
22136	 { ac_try='test -z "$ac_c_werror_flag"
22137			 || test ! -s conftest.err'
22138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22139  (eval $ac_try) 2>&5
22140  ac_status=$?
22141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22142  (exit $ac_status); }; } &&
22143	 { ac_try='test -s conftest$ac_exeext'
22144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145  (eval $ac_try) 2>&5
22146  ac_status=$?
22147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148  (exit $ac_status); }; }; then
22149  openssl=no ires="$i" lres="$j $k"; break 3
22150else
22151  echo "$as_me: failed program was:" >&5
22152sed 's/^/| /' conftest.$ac_ext >&5
22153
22154fi
22155rm -f conftest.err conftest.$ac_objext \
22156      conftest$ac_exeext conftest.$ac_ext
22157			done
22158		done
22159		CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS"
22160		for j in $cdirs; do
22161			for k in $clibs; do
22162				LIBS="$j $k $save_LIBS"
22163				cat >conftest.$ac_ext <<_ACEOF
22164/* confdefs.h.  */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h.  */
22169
22170		#undef KRB5 /* makes md4.h et al unhappy */
22171		#ifdef HAVE_OPENSSL
22172		#include <openssl/md4.h>
22173		#include <openssl/md5.h>
22174		#include <openssl/sha.h>
22175		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22176		#include <openssl/des.h>
22177		#include <openssl/rc4.h>
22178		#include <openssl/rand.h>
22179		#else
22180		#include <md4.h>
22181		#include <md5.h>
22182		#include <sha.h>
22183		#include <des.h>
22184		#include <rc4.h>
22185		#endif
22186		#ifdef OLD_HASH_NAMES
22187		typedef struct md4 MD4_CTX;
22188		#define MD4_Init(C) md4_init((C))
22189		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22190		#define MD4_Final(D, C) md4_finito((C), (D))
22191		typedef struct md5 MD5_CTX;
22192		#define MD5_Init(C) md5_init((C))
22193		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22194		#define MD5_Final(D, C) md5_finito((C), (D))
22195		typedef struct sha SHA_CTX;
22196		#define SHA1_Init(C) sha_init((C))
22197		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22198		#define SHA1_Final(D, C) sha_finito((C), (D))
22199		#endif
22200
22201int
22202main ()
22203{
22204
22205		void *schedule = 0;
22206		MD4_CTX md4;
22207		MD5_CTX md5;
22208		SHA_CTX sha1;
22209
22210		MD4_Init(&md4);
22211		MD5_Init(&md5);
22212		SHA1_Init(&sha1);
22213		#ifdef HAVE_OPENSSL
22214		RAND_status();
22215		#endif
22216
22217		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22218		RC4(0, 0, 0, 0);
22219  ;
22220  return 0;
22221}
22222_ACEOF
22223rm -f conftest.$ac_objext conftest$ac_exeext
22224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22225  (eval $ac_link) 2>conftest.er1
22226  ac_status=$?
22227  grep -v '^ *+' conftest.er1 >conftest.err
22228  rm -f conftest.er1
22229  cat conftest.err >&5
22230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231  (exit $ac_status); } &&
22232	 { ac_try='test -z "$ac_c_werror_flag"
22233			 || test ! -s conftest.err'
22234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22235  (eval $ac_try) 2>&5
22236  ac_status=$?
22237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238  (exit $ac_status); }; } &&
22239	 { ac_try='test -s conftest$ac_exeext'
22240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241  (eval $ac_try) 2>&5
22242  ac_status=$?
22243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244  (exit $ac_status); }; }; then
22245  openssl=no ires="$i" lres="$j $k"; break 3
22246else
22247  echo "$as_me: failed program was:" >&5
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
22250fi
22251rm -f conftest.err conftest.$ac_objext \
22252      conftest$ac_exeext conftest.$ac_ext
22253			done
22254		done
22255	done
22256
22257	CFLAGS="$save_CFLAGS"
22258	LIBS="$save_LIBS"
22259	if test "$ires" -a "$lres"; then
22260		INCLUDE_des="$ires"
22261		LIB_des="$lres"
22262		crypto_lib=krb4
22263		echo "$as_me:$LINENO: result: same as krb4" >&5
22264echo "${ECHO_T}same as krb4" >&6
22265		LIB_des_a='$(LIB_des)'
22266		LIB_des_so='$(LIB_des)'
22267		LIB_des_appl='$(LIB_des)'
22268	fi
22269fi
22270
22271if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then
22272	save_CFLAGS="$CFLAGS"
22273	save_LIBS="$LIBS"
22274	INCLUDE_des=
22275	LIB_des=
22276	if test "$with_openssl_include" != ""; then
22277		INCLUDE_des="-I${with_openssl_include}"
22278	fi
22279	if test "$with_openssl_lib" != ""; then
22280		LIB_des="-L${with_openssl_lib}"
22281	fi
22282	CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
22283	saved_LIB_des="$LIB_des"
22284	for lres in "" "-lnsl -lsocket"; do
22285		LIB_des="${saved_LIB_des} -lcrypto $lres"
22286		LIB_des_a="$LIB_des"
22287		LIB_des_so="$LIB_des"
22288		LIB_des_appl="$LIB_des"
22289		LIBS="${LIBS} ${LIB_des}"
22290		cat >conftest.$ac_ext <<_ACEOF
22291/* confdefs.h.  */
22292_ACEOF
22293cat confdefs.h >>conftest.$ac_ext
22294cat >>conftest.$ac_ext <<_ACEOF
22295/* end confdefs.h.  */
22296
22297		#undef KRB5 /* makes md4.h et al unhappy */
22298		#ifdef HAVE_OPENSSL
22299		#include <openssl/md4.h>
22300		#include <openssl/md5.h>
22301		#include <openssl/sha.h>
22302		#define OPENSSL_DES_LIBDES_COMPATIBILITY
22303		#include <openssl/des.h>
22304		#include <openssl/rc4.h>
22305		#include <openssl/rand.h>
22306		#else
22307		#include <md4.h>
22308		#include <md5.h>
22309		#include <sha.h>
22310		#include <des.h>
22311		#include <rc4.h>
22312		#endif
22313		#ifdef OLD_HASH_NAMES
22314		typedef struct md4 MD4_CTX;
22315		#define MD4_Init(C) md4_init((C))
22316		#define MD4_Update(C, D, L) md4_update((C), (D), (L))
22317		#define MD4_Final(D, C) md4_finito((C), (D))
22318		typedef struct md5 MD5_CTX;
22319		#define MD5_Init(C) md5_init((C))
22320		#define MD5_Update(C, D, L) md5_update((C), (D), (L))
22321		#define MD5_Final(D, C) md5_finito((C), (D))
22322		typedef struct sha SHA_CTX;
22323		#define SHA1_Init(C) sha_init((C))
22324		#define SHA1_Update(C, D, L) sha_update((C), (D), (L))
22325		#define SHA1_Final(D, C) sha_finito((C), (D))
22326		#endif
22327
22328int
22329main ()
22330{
22331
22332		void *schedule = 0;
22333		MD4_CTX md4;
22334		MD5_CTX md5;
22335		SHA_CTX sha1;
22336
22337		MD4_Init(&md4);
22338		MD5_Init(&md5);
22339		SHA1_Init(&sha1);
22340		#ifdef HAVE_OPENSSL
22341		RAND_status();
22342		#endif
22343
22344		des_cbc_encrypt(0, 0, 0, schedule, 0, 0);
22345		RC4(0, 0, 0, 0);
22346  ;
22347  return 0;
22348}
22349_ACEOF
22350rm -f conftest.$ac_objext conftest$ac_exeext
22351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22352  (eval $ac_link) 2>conftest.er1
22353  ac_status=$?
22354  grep -v '^ *+' conftest.er1 >conftest.err
22355  rm -f conftest.er1
22356  cat conftest.err >&5
22357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22358  (exit $ac_status); } &&
22359	 { ac_try='test -z "$ac_c_werror_flag"
22360			 || test ! -s conftest.err'
22361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362  (eval $ac_try) 2>&5
22363  ac_status=$?
22364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365  (exit $ac_status); }; } &&
22366	 { ac_try='test -s conftest$ac_exeext'
22367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368  (eval $ac_try) 2>&5
22369  ac_status=$?
22370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371  (exit $ac_status); }; }; then
22372
22373			crypto_lib=libcrypto openssl=yes
22374			echo "$as_me:$LINENO: result: libcrypto" >&5
22375echo "${ECHO_T}libcrypto" >&6
22376
22377else
22378  echo "$as_me: failed program was:" >&5
22379sed 's/^/| /' conftest.$ac_ext >&5
22380
22381fi
22382rm -f conftest.err conftest.$ac_objext \
22383      conftest$ac_exeext conftest.$ac_ext
22384		if test "$crypto_lib" = libcrypto ; then
22385			break;
22386		fi
22387	done
22388	CFLAGS="$save_CFLAGS"
22389	LIBS="$save_LIBS"
22390fi
22391
22392if test "$crypto_lib" = "unknown"; then
22393
22394  DIR_des='des'
22395  LIB_des='$(top_builddir)/lib/des/libdes.la'
22396  LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a'
22397  LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so'
22398  LIB_des_appl="-ldes"
22399
22400  echo "$as_me:$LINENO: result: included libdes" >&5
22401echo "${ECHO_T}included libdes" >&6
22402
22403fi
22404
22405if test "$with_krb4" != no -a "$crypto_lib" != krb4; then
22406	{ { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features
22407required by Kerberos 5; to continue, you need to install a newer
22408Kerberos 4 or configure --without-krb4" >&5
22409echo "$as_me: error: the crypto library used by krb4 lacks features
22410required by Kerberos 5; to continue, you need to install a newer
22411Kerberos 4 or configure --without-krb4" >&2;}
22412   { (exit 1); exit 1; }; }
22413fi
22414
22415if test "$openssl" = "yes"; then
22416
22417cat >>confdefs.h <<\_ACEOF
22418#define HAVE_OPENSSL 1
22419_ACEOF
22420
22421fi
22422if test "$old_hash" = yes; then
22423
22424cat >>confdefs.h <<\_ACEOF
22425#define HAVE_OLD_HASH_NAMES 1
22426_ACEOF
22427
22428fi
22429
22430
22431if test "$openssl" = yes; then
22432  HAVE_OPENSSL_TRUE=
22433  HAVE_OPENSSL_FALSE='#'
22434else
22435  HAVE_OPENSSL_TRUE='#'
22436  HAVE_OPENSSL_FALSE=
22437fi
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447# Check whether --enable-dce or --disable-dce was given.
22448if test "${enable_dce+set}" = set; then
22449  enableval="$enable_dce"
22450
22451fi;
22452if test "$enable_dce" = yes; then
22453
22454cat >>confdefs.h <<\_ACEOF
22455#define DCE 1
22456_ACEOF
22457
22458fi
22459
22460
22461if test "$enable_dce" = yes; then
22462  DCE_TRUE=
22463  DCE_FALSE='#'
22464else
22465  DCE_TRUE='#'
22466  DCE_FALSE=
22467fi
22468
22469
22470## XXX quite horrible:
22471if test -f /etc/ibmcxx.cfg; then
22472	dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'`
22473	dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'`
22474	dpagaix_ldflags=
22475else
22476	dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce"
22477	dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r"
22478	dpagaix_ldflags="-Wl,-bI:dfspag.exp"
22479fi
22480
22481
22482
22483
22484
22485# Check whether --enable-berkeley-db or --disable-berkeley-db was given.
22486if test "${enable_berkeley_db+set}" = set; then
22487  enableval="$enable_berkeley_db"
22488
22489
22490fi;
22491
22492have_ndbm=no
22493db_type=unknown
22494
22495if test "$enable_berkeley_db" != no; then
22496
22497
22498
22499
22500
22501for ac_header in 				\
22502	db4/db.h				\
22503	db3/db.h				\
22504	db.h					\
22505	db_185.h				\
22506
22507do
22508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22509if eval "test \"\${$as_ac_Header+set}\" = set"; then
22510  echo "$as_me:$LINENO: checking for $ac_header" >&5
22511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22512if eval "test \"\${$as_ac_Header+set}\" = set"; then
22513  echo $ECHO_N "(cached) $ECHO_C" >&6
22514fi
22515echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22516echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22517else
22518  # Is the header compilable?
22519echo "$as_me:$LINENO: checking $ac_header usability" >&5
22520echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22521cat >conftest.$ac_ext <<_ACEOF
22522/* confdefs.h.  */
22523_ACEOF
22524cat confdefs.h >>conftest.$ac_ext
22525cat >>conftest.$ac_ext <<_ACEOF
22526/* end confdefs.h.  */
22527$ac_includes_default
22528#include <$ac_header>
22529_ACEOF
22530rm -f conftest.$ac_objext
22531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22532  (eval $ac_compile) 2>conftest.er1
22533  ac_status=$?
22534  grep -v '^ *+' conftest.er1 >conftest.err
22535  rm -f conftest.er1
22536  cat conftest.err >&5
22537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538  (exit $ac_status); } &&
22539	 { ac_try='test -z "$ac_c_werror_flag"
22540			 || test ! -s conftest.err'
22541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542  (eval $ac_try) 2>&5
22543  ac_status=$?
22544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545  (exit $ac_status); }; } &&
22546	 { ac_try='test -s conftest.$ac_objext'
22547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548  (eval $ac_try) 2>&5
22549  ac_status=$?
22550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551  (exit $ac_status); }; }; then
22552  ac_header_compiler=yes
22553else
22554  echo "$as_me: failed program was:" >&5
22555sed 's/^/| /' conftest.$ac_ext >&5
22556
22557ac_header_compiler=no
22558fi
22559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22560echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22561echo "${ECHO_T}$ac_header_compiler" >&6
22562
22563# Is the header present?
22564echo "$as_me:$LINENO: checking $ac_header presence" >&5
22565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22566cat >conftest.$ac_ext <<_ACEOF
22567/* confdefs.h.  */
22568_ACEOF
22569cat confdefs.h >>conftest.$ac_ext
22570cat >>conftest.$ac_ext <<_ACEOF
22571/* end confdefs.h.  */
22572#include <$ac_header>
22573_ACEOF
22574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22575  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22576  ac_status=$?
22577  grep -v '^ *+' conftest.er1 >conftest.err
22578  rm -f conftest.er1
22579  cat conftest.err >&5
22580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581  (exit $ac_status); } >/dev/null; then
22582  if test -s conftest.err; then
22583    ac_cpp_err=$ac_c_preproc_warn_flag
22584    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22585  else
22586    ac_cpp_err=
22587  fi
22588else
22589  ac_cpp_err=yes
22590fi
22591if test -z "$ac_cpp_err"; then
22592  ac_header_preproc=yes
22593else
22594  echo "$as_me: failed program was:" >&5
22595sed 's/^/| /' conftest.$ac_ext >&5
22596
22597  ac_header_preproc=no
22598fi
22599rm -f conftest.err conftest.$ac_ext
22600echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601echo "${ECHO_T}$ac_header_preproc" >&6
22602
22603# So?  What about this header?
22604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22605  yes:no: )
22606    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22610    ac_header_preproc=yes
22611    ;;
22612  no:yes:* )
22613    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22615    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22616echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22617    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22619    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22620echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22623    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22625    (
22626      cat <<\_ASBOX
22627## -------------------------------------- ##
22628## Report this to heimdal-bugs@pdc.kth.se ##
22629## -------------------------------------- ##
22630_ASBOX
22631    ) |
22632      sed "s/^/$as_me: WARNING:     /" >&2
22633    ;;
22634esac
22635echo "$as_me:$LINENO: checking for $ac_header" >&5
22636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22637if eval "test \"\${$as_ac_Header+set}\" = set"; then
22638  echo $ECHO_N "(cached) $ECHO_C" >&6
22639else
22640  eval "$as_ac_Header=\$ac_header_preproc"
22641fi
22642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22644
22645fi
22646if test `eval echo '${'$as_ac_Header'}'` = yes; then
22647  cat >>confdefs.h <<_ACEOF
22648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22649_ACEOF
22650
22651fi
22652
22653done
22654
22655
22656
22657
22658
22659
22660echo "$as_me:$LINENO: checking for db_create" >&5
22661echo $ECHO_N "checking for db_create... $ECHO_C" >&6
22662if test "${ac_cv_funclib_db_create+set}" = set; then
22663  echo $ECHO_N "(cached) $ECHO_C" >&6
22664else
22665
22666if eval "test \"\$ac_cv_func_db_create\" != yes" ; then
22667	ac_save_LIBS="$LIBS"
22668	for ac_lib in "" db4 db3 db; do
22669		case "$ac_lib" in
22670		"") ;;
22671		yes) ac_lib="" ;;
22672		no) continue ;;
22673		-l*) ;;
22674		*) ac_lib="-l$ac_lib" ;;
22675		esac
22676		LIBS=" $ac_lib  $ac_save_LIBS"
22677		cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h.  */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h.  */
22683
22684  #include <stdio.h>
22685  #ifdef HAVE_DB4_DB_H
22686  #include <db4/db.h>
22687  #elif defined(HAVE_DB3_DB_H)
22688  #include <db3/db.h>
22689  #else
22690  #include <db.h>
22691  #endif
22692
22693int
22694main ()
22695{
22696db_create(NULL, NULL, 0)
22697  ;
22698  return 0;
22699}
22700_ACEOF
22701rm -f conftest.$ac_objext conftest$ac_exeext
22702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22703  (eval $ac_link) 2>conftest.er1
22704  ac_status=$?
22705  grep -v '^ *+' conftest.er1 >conftest.err
22706  rm -f conftest.er1
22707  cat conftest.err >&5
22708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709  (exit $ac_status); } &&
22710	 { ac_try='test -z "$ac_c_werror_flag"
22711			 || test ! -s conftest.err'
22712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713  (eval $ac_try) 2>&5
22714  ac_status=$?
22715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716  (exit $ac_status); }; } &&
22717	 { ac_try='test -s conftest$ac_exeext'
22718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719  (eval $ac_try) 2>&5
22720  ac_status=$?
22721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722  (exit $ac_status); }; }; then
22723  eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break
22724else
22725  echo "$as_me: failed program was:" >&5
22726sed 's/^/| /' conftest.$ac_ext >&5
22727
22728fi
22729rm -f conftest.err conftest.$ac_objext \
22730      conftest$ac_exeext conftest.$ac_ext
22731	done
22732	eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}"
22733	LIBS="$ac_save_LIBS"
22734fi
22735
22736fi
22737
22738
22739eval "ac_res=\$ac_cv_funclib_db_create"
22740
22741if false; then
22742
22743for ac_func in db_create
22744do
22745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22746echo "$as_me:$LINENO: checking for $ac_func" >&5
22747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22748if eval "test \"\${$as_ac_var+set}\" = set"; then
22749  echo $ECHO_N "(cached) $ECHO_C" >&6
22750else
22751  cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h.  */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h.  */
22757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22758   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22759#define $ac_func innocuous_$ac_func
22760
22761/* System header to define __stub macros and hopefully few prototypes,
22762    which can conflict with char $ac_func (); below.
22763    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22764    <limits.h> exists even on freestanding compilers.  */
22765
22766#ifdef __STDC__
22767# include <limits.h>
22768#else
22769# include <assert.h>
22770#endif
22771
22772#undef $ac_func
22773
22774/* Override any gcc2 internal prototype to avoid an error.  */
22775#ifdef __cplusplus
22776extern "C"
22777{
22778#endif
22779/* We use char because int might match the return type of a gcc2
22780   builtin and then its argument prototype would still apply.  */
22781char $ac_func ();
22782/* The GNU C library defines this for functions which it implements
22783    to always fail with ENOSYS.  Some functions are actually named
22784    something starting with __ and the normal name is an alias.  */
22785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22786choke me
22787#else
22788char (*f) () = $ac_func;
22789#endif
22790#ifdef __cplusplus
22791}
22792#endif
22793
22794int
22795main ()
22796{
22797return f != $ac_func;
22798  ;
22799  return 0;
22800}
22801_ACEOF
22802rm -f conftest.$ac_objext conftest$ac_exeext
22803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22804  (eval $ac_link) 2>conftest.er1
22805  ac_status=$?
22806  grep -v '^ *+' conftest.er1 >conftest.err
22807  rm -f conftest.er1
22808  cat conftest.err >&5
22809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810  (exit $ac_status); } &&
22811	 { ac_try='test -z "$ac_c_werror_flag"
22812			 || test ! -s conftest.err'
22813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814  (eval $ac_try) 2>&5
22815  ac_status=$?
22816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817  (exit $ac_status); }; } &&
22818	 { ac_try='test -s conftest$ac_exeext'
22819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22820  (eval $ac_try) 2>&5
22821  ac_status=$?
22822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823  (exit $ac_status); }; }; then
22824  eval "$as_ac_var=yes"
22825else
22826  echo "$as_me: failed program was:" >&5
22827sed 's/^/| /' conftest.$ac_ext >&5
22828
22829eval "$as_ac_var=no"
22830fi
22831rm -f conftest.err conftest.$ac_objext \
22832      conftest$ac_exeext conftest.$ac_ext
22833fi
22834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22836if test `eval echo '${'$as_ac_var'}'` = yes; then
22837  cat >>confdefs.h <<_ACEOF
22838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22839_ACEOF
22840
22841fi
22842done
22843
22844fi
22845# db_create
22846eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22847eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
22848eval "LIB_db_create=$ac_res"
22849
22850case "$ac_res" in
22851	yes)
22852	eval "ac_cv_func_db_create=yes"
22853	eval "LIB_db_create="
22854	cat >>confdefs.h <<_ACEOF
22855#define $ac_tr_func 1
22856_ACEOF
22857
22858	echo "$as_me:$LINENO: result: yes" >&5
22859echo "${ECHO_T}yes" >&6
22860	;;
22861	no)
22862	eval "ac_cv_func_db_create=no"
22863	eval "LIB_db_create="
22864	echo "$as_me:$LINENO: result: no" >&5
22865echo "${ECHO_T}no" >&6
22866	;;
22867	*)
22868	eval "ac_cv_func_db_create=yes"
22869	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
22870	cat >>confdefs.h <<_ACEOF
22871#define $ac_tr_func 1
22872_ACEOF
22873
22874	cat >>confdefs.h <<_ACEOF
22875#define $ac_tr_lib 1
22876_ACEOF
22877
22878	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
22879echo "${ECHO_T}yes, in $ac_res" >&6
22880	;;
22881esac
22882
22883
22884
22885  if test "$ac_cv_func_db_create" = "yes"; then
22886    db_type=db3
22887    if test "$ac_cv_funclib_db_create" != "yes"; then
22888      DBLIB="$ac_cv_funclib_db_create"
22889    else
22890      DBLIB=""
22891    fi
22892
22893cat >>confdefs.h <<\_ACEOF
22894#define HAVE_DB3 1
22895_ACEOF
22896
22897  else
22898
22899
22900
22901
22902
22903echo "$as_me:$LINENO: checking for dbopen" >&5
22904echo $ECHO_N "checking for dbopen... $ECHO_C" >&6
22905if test "${ac_cv_funclib_dbopen+set}" = set; then
22906  echo $ECHO_N "(cached) $ECHO_C" >&6
22907else
22908
22909if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then
22910	ac_save_LIBS="$LIBS"
22911	for ac_lib in "" db2 db; do
22912		case "$ac_lib" in
22913		"") ;;
22914		yes) ac_lib="" ;;
22915		no) continue ;;
22916		-l*) ;;
22917		*) ac_lib="-l$ac_lib" ;;
22918		esac
22919		LIBS=" $ac_lib  $ac_save_LIBS"
22920		cat >conftest.$ac_ext <<_ACEOF
22921/* confdefs.h.  */
22922_ACEOF
22923cat confdefs.h >>conftest.$ac_ext
22924cat >>conftest.$ac_ext <<_ACEOF
22925/* end confdefs.h.  */
22926
22927    #include <stdio.h>
22928    #if defined(HAVE_DB2_DB_H)
22929    #include <db2/db.h>
22930    #elif defined(HAVE_DB_185_H)
22931    #include <db_185.h>
22932    #elif defined(HAVE_DB_H)
22933    #include <db.h>
22934    #else
22935    #error no db.h
22936    #endif
22937
22938int
22939main ()
22940{
22941dbopen(NULL, 0, 0, 0, NULL)
22942  ;
22943  return 0;
22944}
22945_ACEOF
22946rm -f conftest.$ac_objext conftest$ac_exeext
22947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22948  (eval $ac_link) 2>conftest.er1
22949  ac_status=$?
22950  grep -v '^ *+' conftest.er1 >conftest.err
22951  rm -f conftest.er1
22952  cat conftest.err >&5
22953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954  (exit $ac_status); } &&
22955	 { ac_try='test -z "$ac_c_werror_flag"
22956			 || test ! -s conftest.err'
22957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958  (eval $ac_try) 2>&5
22959  ac_status=$?
22960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961  (exit $ac_status); }; } &&
22962	 { ac_try='test -s conftest$ac_exeext'
22963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964  (eval $ac_try) 2>&5
22965  ac_status=$?
22966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967  (exit $ac_status); }; }; then
22968  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break
22969else
22970  echo "$as_me: failed program was:" >&5
22971sed 's/^/| /' conftest.$ac_ext >&5
22972
22973fi
22974rm -f conftest.err conftest.$ac_objext \
22975      conftest$ac_exeext conftest.$ac_ext
22976	done
22977	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
22978	LIBS="$ac_save_LIBS"
22979fi
22980
22981fi
22982
22983
22984eval "ac_res=\$ac_cv_funclib_dbopen"
22985
22986if false; then
22987
22988for ac_func in dbopen
22989do
22990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22991echo "$as_me:$LINENO: checking for $ac_func" >&5
22992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22993if eval "test \"\${$as_ac_var+set}\" = set"; then
22994  echo $ECHO_N "(cached) $ECHO_C" >&6
22995else
22996  cat >conftest.$ac_ext <<_ACEOF
22997/* confdefs.h.  */
22998_ACEOF
22999cat confdefs.h >>conftest.$ac_ext
23000cat >>conftest.$ac_ext <<_ACEOF
23001/* end confdefs.h.  */
23002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23004#define $ac_func innocuous_$ac_func
23005
23006/* System header to define __stub macros and hopefully few prototypes,
23007    which can conflict with char $ac_func (); below.
23008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23009    <limits.h> exists even on freestanding compilers.  */
23010
23011#ifdef __STDC__
23012# include <limits.h>
23013#else
23014# include <assert.h>
23015#endif
23016
23017#undef $ac_func
23018
23019/* Override any gcc2 internal prototype to avoid an error.  */
23020#ifdef __cplusplus
23021extern "C"
23022{
23023#endif
23024/* We use char because int might match the return type of a gcc2
23025   builtin and then its argument prototype would still apply.  */
23026char $ac_func ();
23027/* The GNU C library defines this for functions which it implements
23028    to always fail with ENOSYS.  Some functions are actually named
23029    something starting with __ and the normal name is an alias.  */
23030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23031choke me
23032#else
23033char (*f) () = $ac_func;
23034#endif
23035#ifdef __cplusplus
23036}
23037#endif
23038
23039int
23040main ()
23041{
23042return f != $ac_func;
23043  ;
23044  return 0;
23045}
23046_ACEOF
23047rm -f conftest.$ac_objext conftest$ac_exeext
23048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23049  (eval $ac_link) 2>conftest.er1
23050  ac_status=$?
23051  grep -v '^ *+' conftest.er1 >conftest.err
23052  rm -f conftest.er1
23053  cat conftest.err >&5
23054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055  (exit $ac_status); } &&
23056	 { ac_try='test -z "$ac_c_werror_flag"
23057			 || test ! -s conftest.err'
23058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059  (eval $ac_try) 2>&5
23060  ac_status=$?
23061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062  (exit $ac_status); }; } &&
23063	 { ac_try='test -s conftest$ac_exeext'
23064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065  (eval $ac_try) 2>&5
23066  ac_status=$?
23067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068  (exit $ac_status); }; }; then
23069  eval "$as_ac_var=yes"
23070else
23071  echo "$as_me: failed program was:" >&5
23072sed 's/^/| /' conftest.$ac_ext >&5
23073
23074eval "$as_ac_var=no"
23075fi
23076rm -f conftest.err conftest.$ac_objext \
23077      conftest$ac_exeext conftest.$ac_ext
23078fi
23079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23080echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23081if test `eval echo '${'$as_ac_var'}'` = yes; then
23082  cat >>confdefs.h <<_ACEOF
23083#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23084_ACEOF
23085
23086fi
23087done
23088
23089fi
23090# dbopen
23091eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23092eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23093eval "LIB_dbopen=$ac_res"
23094
23095case "$ac_res" in
23096	yes)
23097	eval "ac_cv_func_dbopen=yes"
23098	eval "LIB_dbopen="
23099	cat >>confdefs.h <<_ACEOF
23100#define $ac_tr_func 1
23101_ACEOF
23102
23103	echo "$as_me:$LINENO: result: yes" >&5
23104echo "${ECHO_T}yes" >&6
23105	;;
23106	no)
23107	eval "ac_cv_func_dbopen=no"
23108	eval "LIB_dbopen="
23109	echo "$as_me:$LINENO: result: no" >&5
23110echo "${ECHO_T}no" >&6
23111	;;
23112	*)
23113	eval "ac_cv_func_dbopen=yes"
23114	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23115	cat >>confdefs.h <<_ACEOF
23116#define $ac_tr_func 1
23117_ACEOF
23118
23119	cat >>confdefs.h <<_ACEOF
23120#define $ac_tr_lib 1
23121_ACEOF
23122
23123	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23124echo "${ECHO_T}yes, in $ac_res" >&6
23125	;;
23126esac
23127
23128
23129
23130    if test "$ac_cv_func_dbopen" = "yes"; then
23131      db_type=db1
23132      if test "$ac_cv_funclib_dbopen" != "yes"; then
23133        DBLIB="$ac_cv_funclib_dbopen"
23134      else
23135        DBLIB=""
23136      fi
23137
23138cat >>confdefs.h <<\_ACEOF
23139#define HAVE_DB1 1
23140_ACEOF
23141
23142    fi
23143  fi
23144
23145
23146  if test "$ac_cv_func_dbm_firstkey" != yes; then
23147
23148
23149echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23150echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23151if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23152  echo $ECHO_N "(cached) $ECHO_C" >&6
23153else
23154
23155if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23156	ac_save_LIBS="$LIBS"
23157	for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do
23158		case "$ac_lib" in
23159		"") ;;
23160		yes) ac_lib="" ;;
23161		no) continue ;;
23162		-l*) ;;
23163		*) ac_lib="-l$ac_lib" ;;
23164		esac
23165		LIBS=" $ac_lib  $ac_save_LIBS"
23166		cat >conftest.$ac_ext <<_ACEOF
23167/* confdefs.h.  */
23168_ACEOF
23169cat confdefs.h >>conftest.$ac_ext
23170cat >>conftest.$ac_ext <<_ACEOF
23171/* end confdefs.h.  */
23172
23173    #include <stdio.h>
23174    #define DB_DBM_HSEARCH 1
23175    #include <db.h>
23176    DBM *dbm;
23177
23178int
23179main ()
23180{
23181dbm_firstkey(NULL)
23182  ;
23183  return 0;
23184}
23185_ACEOF
23186rm -f conftest.$ac_objext conftest$ac_exeext
23187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23188  (eval $ac_link) 2>conftest.er1
23189  ac_status=$?
23190  grep -v '^ *+' conftest.er1 >conftest.err
23191  rm -f conftest.er1
23192  cat conftest.err >&5
23193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194  (exit $ac_status); } &&
23195	 { ac_try='test -z "$ac_c_werror_flag"
23196			 || test ! -s conftest.err'
23197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198  (eval $ac_try) 2>&5
23199  ac_status=$?
23200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201  (exit $ac_status); }; } &&
23202	 { ac_try='test -s conftest$ac_exeext'
23203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204  (eval $ac_try) 2>&5
23205  ac_status=$?
23206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207  (exit $ac_status); }; }; then
23208  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23209else
23210  echo "$as_me: failed program was:" >&5
23211sed 's/^/| /' conftest.$ac_ext >&5
23212
23213fi
23214rm -f conftest.err conftest.$ac_objext \
23215      conftest$ac_exeext conftest.$ac_ext
23216	done
23217	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23218	LIBS="$ac_save_LIBS"
23219fi
23220
23221fi
23222
23223
23224eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23225
23226if false; then
23227
23228for ac_func in dbm_firstkey
23229do
23230as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23231echo "$as_me:$LINENO: checking for $ac_func" >&5
23232echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23233if eval "test \"\${$as_ac_var+set}\" = set"; then
23234  echo $ECHO_N "(cached) $ECHO_C" >&6
23235else
23236  cat >conftest.$ac_ext <<_ACEOF
23237/* confdefs.h.  */
23238_ACEOF
23239cat confdefs.h >>conftest.$ac_ext
23240cat >>conftest.$ac_ext <<_ACEOF
23241/* end confdefs.h.  */
23242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23243   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23244#define $ac_func innocuous_$ac_func
23245
23246/* System header to define __stub macros and hopefully few prototypes,
23247    which can conflict with char $ac_func (); below.
23248    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23249    <limits.h> exists even on freestanding compilers.  */
23250
23251#ifdef __STDC__
23252# include <limits.h>
23253#else
23254# include <assert.h>
23255#endif
23256
23257#undef $ac_func
23258
23259/* Override any gcc2 internal prototype to avoid an error.  */
23260#ifdef __cplusplus
23261extern "C"
23262{
23263#endif
23264/* We use char because int might match the return type of a gcc2
23265   builtin and then its argument prototype would still apply.  */
23266char $ac_func ();
23267/* The GNU C library defines this for functions which it implements
23268    to always fail with ENOSYS.  Some functions are actually named
23269    something starting with __ and the normal name is an alias.  */
23270#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23271choke me
23272#else
23273char (*f) () = $ac_func;
23274#endif
23275#ifdef __cplusplus
23276}
23277#endif
23278
23279int
23280main ()
23281{
23282return f != $ac_func;
23283  ;
23284  return 0;
23285}
23286_ACEOF
23287rm -f conftest.$ac_objext conftest$ac_exeext
23288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23289  (eval $ac_link) 2>conftest.er1
23290  ac_status=$?
23291  grep -v '^ *+' conftest.er1 >conftest.err
23292  rm -f conftest.er1
23293  cat conftest.err >&5
23294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295  (exit $ac_status); } &&
23296	 { ac_try='test -z "$ac_c_werror_flag"
23297			 || test ! -s conftest.err'
23298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299  (eval $ac_try) 2>&5
23300  ac_status=$?
23301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302  (exit $ac_status); }; } &&
23303	 { ac_try='test -s conftest$ac_exeext'
23304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305  (eval $ac_try) 2>&5
23306  ac_status=$?
23307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308  (exit $ac_status); }; }; then
23309  eval "$as_ac_var=yes"
23310else
23311  echo "$as_me: failed program was:" >&5
23312sed 's/^/| /' conftest.$ac_ext >&5
23313
23314eval "$as_ac_var=no"
23315fi
23316rm -f conftest.err conftest.$ac_objext \
23317      conftest$ac_exeext conftest.$ac_ext
23318fi
23319echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23320echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23321if test `eval echo '${'$as_ac_var'}'` = yes; then
23322  cat >>confdefs.h <<_ACEOF
23323#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23324_ACEOF
23325
23326fi
23327done
23328
23329fi
23330# dbm_firstkey
23331eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23332eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23333eval "LIB_dbm_firstkey=$ac_res"
23334
23335case "$ac_res" in
23336	yes)
23337	eval "ac_cv_func_dbm_firstkey=yes"
23338	eval "LIB_dbm_firstkey="
23339	cat >>confdefs.h <<_ACEOF
23340#define $ac_tr_func 1
23341_ACEOF
23342
23343	echo "$as_me:$LINENO: result: yes" >&5
23344echo "${ECHO_T}yes" >&6
23345	;;
23346	no)
23347	eval "ac_cv_func_dbm_firstkey=no"
23348	eval "LIB_dbm_firstkey="
23349	echo "$as_me:$LINENO: result: no" >&5
23350echo "${ECHO_T}no" >&6
23351	;;
23352	*)
23353	eval "ac_cv_func_dbm_firstkey=yes"
23354	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23355	cat >>confdefs.h <<_ACEOF
23356#define $ac_tr_func 1
23357_ACEOF
23358
23359	cat >>confdefs.h <<_ACEOF
23360#define $ac_tr_lib 1
23361_ACEOF
23362
23363	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23364echo "${ECHO_T}yes, in $ac_res" >&6
23365	;;
23366esac
23367
23368
23369
23370    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23371      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23372        LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23373      else
23374        LIB_NDBM=""
23375      fi
23376
23377cat >>confdefs.h <<\_ACEOF
23378#define HAVE_DB_NDBM 1
23379_ACEOF
23380
23381
23382cat >>confdefs.h <<\_ACEOF
23383#define HAVE_NEW_DB 1
23384_ACEOF
23385
23386    else
23387      $as_unset ac_cv_func_dbm_firstkey
23388      $as_unset ac_cv_funclib_dbm_firstkey
23389    fi
23390  fi
23391
23392fi # berkeley db
23393
23394if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then
23395
23396
23397
23398for ac_header in 				\
23399	dbm.h					\
23400	ndbm.h					\
23401
23402do
23403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23404if eval "test \"\${$as_ac_Header+set}\" = set"; then
23405  echo "$as_me:$LINENO: checking for $ac_header" >&5
23406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23407if eval "test \"\${$as_ac_Header+set}\" = set"; then
23408  echo $ECHO_N "(cached) $ECHO_C" >&6
23409fi
23410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23412else
23413  # Is the header compilable?
23414echo "$as_me:$LINENO: checking $ac_header usability" >&5
23415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23416cat >conftest.$ac_ext <<_ACEOF
23417/* confdefs.h.  */
23418_ACEOF
23419cat confdefs.h >>conftest.$ac_ext
23420cat >>conftest.$ac_ext <<_ACEOF
23421/* end confdefs.h.  */
23422$ac_includes_default
23423#include <$ac_header>
23424_ACEOF
23425rm -f conftest.$ac_objext
23426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23427  (eval $ac_compile) 2>conftest.er1
23428  ac_status=$?
23429  grep -v '^ *+' conftest.er1 >conftest.err
23430  rm -f conftest.er1
23431  cat conftest.err >&5
23432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433  (exit $ac_status); } &&
23434	 { ac_try='test -z "$ac_c_werror_flag"
23435			 || test ! -s conftest.err'
23436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437  (eval $ac_try) 2>&5
23438  ac_status=$?
23439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440  (exit $ac_status); }; } &&
23441	 { ac_try='test -s conftest.$ac_objext'
23442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443  (eval $ac_try) 2>&5
23444  ac_status=$?
23445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446  (exit $ac_status); }; }; then
23447  ac_header_compiler=yes
23448else
23449  echo "$as_me: failed program was:" >&5
23450sed 's/^/| /' conftest.$ac_ext >&5
23451
23452ac_header_compiler=no
23453fi
23454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23456echo "${ECHO_T}$ac_header_compiler" >&6
23457
23458# Is the header present?
23459echo "$as_me:$LINENO: checking $ac_header presence" >&5
23460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23461cat >conftest.$ac_ext <<_ACEOF
23462/* confdefs.h.  */
23463_ACEOF
23464cat confdefs.h >>conftest.$ac_ext
23465cat >>conftest.$ac_ext <<_ACEOF
23466/* end confdefs.h.  */
23467#include <$ac_header>
23468_ACEOF
23469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23471  ac_status=$?
23472  grep -v '^ *+' conftest.er1 >conftest.err
23473  rm -f conftest.er1
23474  cat conftest.err >&5
23475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476  (exit $ac_status); } >/dev/null; then
23477  if test -s conftest.err; then
23478    ac_cpp_err=$ac_c_preproc_warn_flag
23479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23480  else
23481    ac_cpp_err=
23482  fi
23483else
23484  ac_cpp_err=yes
23485fi
23486if test -z "$ac_cpp_err"; then
23487  ac_header_preproc=yes
23488else
23489  echo "$as_me: failed program was:" >&5
23490sed 's/^/| /' conftest.$ac_ext >&5
23491
23492  ac_header_preproc=no
23493fi
23494rm -f conftest.err conftest.$ac_ext
23495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23496echo "${ECHO_T}$ac_header_preproc" >&6
23497
23498# So?  What about this header?
23499case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23500  yes:no: )
23501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23504echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23505    ac_header_preproc=yes
23506    ;;
23507  no:yes:* )
23508    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23509echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23510    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23511echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23512    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23513echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23514    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23515echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23516    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23518    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23519echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23520    (
23521      cat <<\_ASBOX
23522## -------------------------------------- ##
23523## Report this to heimdal-bugs@pdc.kth.se ##
23524## -------------------------------------- ##
23525_ASBOX
23526    ) |
23527      sed "s/^/$as_me: WARNING:     /" >&2
23528    ;;
23529esac
23530echo "$as_me:$LINENO: checking for $ac_header" >&5
23531echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23532if eval "test \"\${$as_ac_Header+set}\" = set"; then
23533  echo $ECHO_N "(cached) $ECHO_C" >&6
23534else
23535  eval "$as_ac_Header=\$ac_header_preproc"
23536fi
23537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23539
23540fi
23541if test `eval echo '${'$as_ac_Header'}'` = yes; then
23542  cat >>confdefs.h <<_ACEOF
23543#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23544_ACEOF
23545
23546fi
23547
23548done
23549
23550
23551
23552
23553
23554echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23555echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23556if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23557  echo $ECHO_N "(cached) $ECHO_C" >&6
23558else
23559
23560if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23561	ac_save_LIBS="$LIBS"
23562	for ac_lib in "" ndbm; do
23563		case "$ac_lib" in
23564		"") ;;
23565		yes) ac_lib="" ;;
23566		no) continue ;;
23567		-l*) ;;
23568		*) ac_lib="-l$ac_lib" ;;
23569		esac
23570		LIBS=" $ac_lib  $ac_save_LIBS"
23571		cat >conftest.$ac_ext <<_ACEOF
23572/* confdefs.h.  */
23573_ACEOF
23574cat confdefs.h >>conftest.$ac_ext
23575cat >>conftest.$ac_ext <<_ACEOF
23576/* end confdefs.h.  */
23577
23578  #include <stdio.h>
23579  #if defined(HAVE_NDBM_H)
23580  #include <ndbm.h>
23581  #elif defined(HAVE_DBM_H)
23582  #include <dbm.h>
23583  #endif
23584  DBM *dbm;
23585
23586int
23587main ()
23588{
23589dbm_firstkey(NULL)
23590  ;
23591  return 0;
23592}
23593_ACEOF
23594rm -f conftest.$ac_objext conftest$ac_exeext
23595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23596  (eval $ac_link) 2>conftest.er1
23597  ac_status=$?
23598  grep -v '^ *+' conftest.er1 >conftest.err
23599  rm -f conftest.er1
23600  cat conftest.err >&5
23601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602  (exit $ac_status); } &&
23603	 { ac_try='test -z "$ac_c_werror_flag"
23604			 || test ! -s conftest.err'
23605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606  (eval $ac_try) 2>&5
23607  ac_status=$?
23608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609  (exit $ac_status); }; } &&
23610	 { ac_try='test -s conftest$ac_exeext'
23611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612  (eval $ac_try) 2>&5
23613  ac_status=$?
23614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615  (exit $ac_status); }; }; then
23616  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
23617else
23618  echo "$as_me: failed program was:" >&5
23619sed 's/^/| /' conftest.$ac_ext >&5
23620
23621fi
23622rm -f conftest.err conftest.$ac_objext \
23623      conftest$ac_exeext conftest.$ac_ext
23624	done
23625	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
23626	LIBS="$ac_save_LIBS"
23627fi
23628
23629fi
23630
23631
23632eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
23633
23634if false; then
23635
23636for ac_func in dbm_firstkey
23637do
23638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23639echo "$as_me:$LINENO: checking for $ac_func" >&5
23640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23641if eval "test \"\${$as_ac_var+set}\" = set"; then
23642  echo $ECHO_N "(cached) $ECHO_C" >&6
23643else
23644  cat >conftest.$ac_ext <<_ACEOF
23645/* confdefs.h.  */
23646_ACEOF
23647cat confdefs.h >>conftest.$ac_ext
23648cat >>conftest.$ac_ext <<_ACEOF
23649/* end confdefs.h.  */
23650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23651   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23652#define $ac_func innocuous_$ac_func
23653
23654/* System header to define __stub macros and hopefully few prototypes,
23655    which can conflict with char $ac_func (); below.
23656    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23657    <limits.h> exists even on freestanding compilers.  */
23658
23659#ifdef __STDC__
23660# include <limits.h>
23661#else
23662# include <assert.h>
23663#endif
23664
23665#undef $ac_func
23666
23667/* Override any gcc2 internal prototype to avoid an error.  */
23668#ifdef __cplusplus
23669extern "C"
23670{
23671#endif
23672/* We use char because int might match the return type of a gcc2
23673   builtin and then its argument prototype would still apply.  */
23674char $ac_func ();
23675/* The GNU C library defines this for functions which it implements
23676    to always fail with ENOSYS.  Some functions are actually named
23677    something starting with __ and the normal name is an alias.  */
23678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23679choke me
23680#else
23681char (*f) () = $ac_func;
23682#endif
23683#ifdef __cplusplus
23684}
23685#endif
23686
23687int
23688main ()
23689{
23690return f != $ac_func;
23691  ;
23692  return 0;
23693}
23694_ACEOF
23695rm -f conftest.$ac_objext conftest$ac_exeext
23696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23697  (eval $ac_link) 2>conftest.er1
23698  ac_status=$?
23699  grep -v '^ *+' conftest.er1 >conftest.err
23700  rm -f conftest.er1
23701  cat conftest.err >&5
23702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703  (exit $ac_status); } &&
23704	 { ac_try='test -z "$ac_c_werror_flag"
23705			 || test ! -s conftest.err'
23706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23707  (eval $ac_try) 2>&5
23708  ac_status=$?
23709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710  (exit $ac_status); }; } &&
23711	 { ac_try='test -s conftest$ac_exeext'
23712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23713  (eval $ac_try) 2>&5
23714  ac_status=$?
23715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716  (exit $ac_status); }; }; then
23717  eval "$as_ac_var=yes"
23718else
23719  echo "$as_me: failed program was:" >&5
23720sed 's/^/| /' conftest.$ac_ext >&5
23721
23722eval "$as_ac_var=no"
23723fi
23724rm -f conftest.err conftest.$ac_objext \
23725      conftest$ac_exeext conftest.$ac_ext
23726fi
23727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23729if test `eval echo '${'$as_ac_var'}'` = yes; then
23730  cat >>confdefs.h <<_ACEOF
23731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23732_ACEOF
23733
23734fi
23735done
23736
23737fi
23738# dbm_firstkey
23739eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23740eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
23741eval "LIB_dbm_firstkey=$ac_res"
23742
23743case "$ac_res" in
23744	yes)
23745	eval "ac_cv_func_dbm_firstkey=yes"
23746	eval "LIB_dbm_firstkey="
23747	cat >>confdefs.h <<_ACEOF
23748#define $ac_tr_func 1
23749_ACEOF
23750
23751	echo "$as_me:$LINENO: result: yes" >&5
23752echo "${ECHO_T}yes" >&6
23753	;;
23754	no)
23755	eval "ac_cv_func_dbm_firstkey=no"
23756	eval "LIB_dbm_firstkey="
23757	echo "$as_me:$LINENO: result: no" >&5
23758echo "${ECHO_T}no" >&6
23759	;;
23760	*)
23761	eval "ac_cv_func_dbm_firstkey=yes"
23762	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
23763	cat >>confdefs.h <<_ACEOF
23764#define $ac_tr_func 1
23765_ACEOF
23766
23767	cat >>confdefs.h <<_ACEOF
23768#define $ac_tr_lib 1
23769_ACEOF
23770
23771	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
23772echo "${ECHO_T}yes, in $ac_res" >&6
23773	;;
23774esac
23775
23776
23777
23778  if test "$ac_cv_func_dbm_firstkey" = "yes"; then
23779    if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
23780      LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
23781    else
23782      LIB_NDBM=""
23783    fi
23784
23785cat >>confdefs.h <<\_ACEOF
23786#define HAVE_NDBM 1
23787_ACEOF
23788    have_ndbm=yes
23789    if test "$db_type" = "unknown"; then
23790      db_type=ndbm
23791      DBLIB="$LIB_NDBM"
23792    fi
23793  else
23794
23795    $as_unset ac_cv_func_dbm_firstkey
23796    $as_unset ac_cv_funclib_dbm_firstkey
23797
23798
23799for ac_header in 				\
23800	  gdbm/ndbm.h				\
23801
23802do
23803as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23804if eval "test \"\${$as_ac_Header+set}\" = set"; then
23805  echo "$as_me:$LINENO: checking for $ac_header" >&5
23806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23807if eval "test \"\${$as_ac_Header+set}\" = set"; then
23808  echo $ECHO_N "(cached) $ECHO_C" >&6
23809fi
23810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23812else
23813  # Is the header compilable?
23814echo "$as_me:$LINENO: checking $ac_header usability" >&5
23815echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23816cat >conftest.$ac_ext <<_ACEOF
23817/* confdefs.h.  */
23818_ACEOF
23819cat confdefs.h >>conftest.$ac_ext
23820cat >>conftest.$ac_ext <<_ACEOF
23821/* end confdefs.h.  */
23822$ac_includes_default
23823#include <$ac_header>
23824_ACEOF
23825rm -f conftest.$ac_objext
23826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827  (eval $ac_compile) 2>conftest.er1
23828  ac_status=$?
23829  grep -v '^ *+' conftest.er1 >conftest.err
23830  rm -f conftest.er1
23831  cat conftest.err >&5
23832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833  (exit $ac_status); } &&
23834	 { ac_try='test -z "$ac_c_werror_flag"
23835			 || test ! -s conftest.err'
23836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23837  (eval $ac_try) 2>&5
23838  ac_status=$?
23839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840  (exit $ac_status); }; } &&
23841	 { ac_try='test -s conftest.$ac_objext'
23842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23843  (eval $ac_try) 2>&5
23844  ac_status=$?
23845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846  (exit $ac_status); }; }; then
23847  ac_header_compiler=yes
23848else
23849  echo "$as_me: failed program was:" >&5
23850sed 's/^/| /' conftest.$ac_ext >&5
23851
23852ac_header_compiler=no
23853fi
23854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23855echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23856echo "${ECHO_T}$ac_header_compiler" >&6
23857
23858# Is the header present?
23859echo "$as_me:$LINENO: checking $ac_header presence" >&5
23860echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23861cat >conftest.$ac_ext <<_ACEOF
23862/* confdefs.h.  */
23863_ACEOF
23864cat confdefs.h >>conftest.$ac_ext
23865cat >>conftest.$ac_ext <<_ACEOF
23866/* end confdefs.h.  */
23867#include <$ac_header>
23868_ACEOF
23869if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23870  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23871  ac_status=$?
23872  grep -v '^ *+' conftest.er1 >conftest.err
23873  rm -f conftest.er1
23874  cat conftest.err >&5
23875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876  (exit $ac_status); } >/dev/null; then
23877  if test -s conftest.err; then
23878    ac_cpp_err=$ac_c_preproc_warn_flag
23879    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23880  else
23881    ac_cpp_err=
23882  fi
23883else
23884  ac_cpp_err=yes
23885fi
23886if test -z "$ac_cpp_err"; then
23887  ac_header_preproc=yes
23888else
23889  echo "$as_me: failed program was:" >&5
23890sed 's/^/| /' conftest.$ac_ext >&5
23891
23892  ac_header_preproc=no
23893fi
23894rm -f conftest.err conftest.$ac_ext
23895echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23896echo "${ECHO_T}$ac_header_preproc" >&6
23897
23898# So?  What about this header?
23899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23900  yes:no: )
23901    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23902echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23903    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23904echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23905    ac_header_preproc=yes
23906    ;;
23907  no:yes:* )
23908    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23909echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23910    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23911echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23912    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23913echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23914    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23915echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23916    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23918    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23919echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23920    (
23921      cat <<\_ASBOX
23922## -------------------------------------- ##
23923## Report this to heimdal-bugs@pdc.kth.se ##
23924## -------------------------------------- ##
23925_ASBOX
23926    ) |
23927      sed "s/^/$as_me: WARNING:     /" >&2
23928    ;;
23929esac
23930echo "$as_me:$LINENO: checking for $ac_header" >&5
23931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23932if eval "test \"\${$as_ac_Header+set}\" = set"; then
23933  echo $ECHO_N "(cached) $ECHO_C" >&6
23934else
23935  eval "$as_ac_Header=\$ac_header_preproc"
23936fi
23937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23938echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23939
23940fi
23941if test `eval echo '${'$as_ac_Header'}'` = yes; then
23942  cat >>confdefs.h <<_ACEOF
23943#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23944_ACEOF
23945
23946fi
23947
23948done
23949
23950
23951
23952
23953
23954echo "$as_me:$LINENO: checking for dbm_firstkey" >&5
23955echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6
23956if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then
23957  echo $ECHO_N "(cached) $ECHO_C" >&6
23958else
23959
23960if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then
23961	ac_save_LIBS="$LIBS"
23962	for ac_lib in "" gdbm; do
23963		case "$ac_lib" in
23964		"") ;;
23965		yes) ac_lib="" ;;
23966		no) continue ;;
23967		-l*) ;;
23968		*) ac_lib="-l$ac_lib" ;;
23969		esac
23970		LIBS=" $ac_lib  $ac_save_LIBS"
23971		cat >conftest.$ac_ext <<_ACEOF
23972/* confdefs.h.  */
23973_ACEOF
23974cat confdefs.h >>conftest.$ac_ext
23975cat >>conftest.$ac_ext <<_ACEOF
23976/* end confdefs.h.  */
23977
23978    #include <stdio.h>
23979    #include <gdbm/ndbm.h>
23980    DBM *dbm;
23981
23982int
23983main ()
23984{
23985dbm_firstkey(NULL)
23986  ;
23987  return 0;
23988}
23989_ACEOF
23990rm -f conftest.$ac_objext conftest$ac_exeext
23991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992  (eval $ac_link) 2>conftest.er1
23993  ac_status=$?
23994  grep -v '^ *+' conftest.er1 >conftest.err
23995  rm -f conftest.er1
23996  cat conftest.err >&5
23997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998  (exit $ac_status); } &&
23999	 { ac_try='test -z "$ac_c_werror_flag"
24000			 || test ! -s conftest.err'
24001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002  (eval $ac_try) 2>&5
24003  ac_status=$?
24004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005  (exit $ac_status); }; } &&
24006	 { ac_try='test -s conftest$ac_exeext'
24007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008  (eval $ac_try) 2>&5
24009  ac_status=$?
24010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011  (exit $ac_status); }; }; then
24012  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break
24013else
24014  echo "$as_me: failed program was:" >&5
24015sed 's/^/| /' conftest.$ac_ext >&5
24016
24017fi
24018rm -f conftest.err conftest.$ac_objext \
24019      conftest$ac_exeext conftest.$ac_ext
24020	done
24021	eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}"
24022	LIBS="$ac_save_LIBS"
24023fi
24024
24025fi
24026
24027
24028eval "ac_res=\$ac_cv_funclib_dbm_firstkey"
24029
24030if false; then
24031
24032for ac_func in dbm_firstkey
24033do
24034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035echo "$as_me:$LINENO: checking for $ac_func" >&5
24036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24037if eval "test \"\${$as_ac_var+set}\" = set"; then
24038  echo $ECHO_N "(cached) $ECHO_C" >&6
24039else
24040  cat >conftest.$ac_ext <<_ACEOF
24041/* confdefs.h.  */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h.  */
24046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24047   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24048#define $ac_func innocuous_$ac_func
24049
24050/* System header to define __stub macros and hopefully few prototypes,
24051    which can conflict with char $ac_func (); below.
24052    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24053    <limits.h> exists even on freestanding compilers.  */
24054
24055#ifdef __STDC__
24056# include <limits.h>
24057#else
24058# include <assert.h>
24059#endif
24060
24061#undef $ac_func
24062
24063/* Override any gcc2 internal prototype to avoid an error.  */
24064#ifdef __cplusplus
24065extern "C"
24066{
24067#endif
24068/* We use char because int might match the return type of a gcc2
24069   builtin and then its argument prototype would still apply.  */
24070char $ac_func ();
24071/* The GNU C library defines this for functions which it implements
24072    to always fail with ENOSYS.  Some functions are actually named
24073    something starting with __ and the normal name is an alias.  */
24074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24075choke me
24076#else
24077char (*f) () = $ac_func;
24078#endif
24079#ifdef __cplusplus
24080}
24081#endif
24082
24083int
24084main ()
24085{
24086return f != $ac_func;
24087  ;
24088  return 0;
24089}
24090_ACEOF
24091rm -f conftest.$ac_objext conftest$ac_exeext
24092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24093  (eval $ac_link) 2>conftest.er1
24094  ac_status=$?
24095  grep -v '^ *+' conftest.er1 >conftest.err
24096  rm -f conftest.er1
24097  cat conftest.err >&5
24098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099  (exit $ac_status); } &&
24100	 { ac_try='test -z "$ac_c_werror_flag"
24101			 || test ! -s conftest.err'
24102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103  (eval $ac_try) 2>&5
24104  ac_status=$?
24105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106  (exit $ac_status); }; } &&
24107	 { ac_try='test -s conftest$ac_exeext'
24108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109  (eval $ac_try) 2>&5
24110  ac_status=$?
24111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112  (exit $ac_status); }; }; then
24113  eval "$as_ac_var=yes"
24114else
24115  echo "$as_me: failed program was:" >&5
24116sed 's/^/| /' conftest.$ac_ext >&5
24117
24118eval "$as_ac_var=no"
24119fi
24120rm -f conftest.err conftest.$ac_objext \
24121      conftest$ac_exeext conftest.$ac_ext
24122fi
24123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24124echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24125if test `eval echo '${'$as_ac_var'}'` = yes; then
24126  cat >>confdefs.h <<_ACEOF
24127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24128_ACEOF
24129
24130fi
24131done
24132
24133fi
24134# dbm_firstkey
24135eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24136eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
24137eval "LIB_dbm_firstkey=$ac_res"
24138
24139case "$ac_res" in
24140	yes)
24141	eval "ac_cv_func_dbm_firstkey=yes"
24142	eval "LIB_dbm_firstkey="
24143	cat >>confdefs.h <<_ACEOF
24144#define $ac_tr_func 1
24145_ACEOF
24146
24147	echo "$as_me:$LINENO: result: yes" >&5
24148echo "${ECHO_T}yes" >&6
24149	;;
24150	no)
24151	eval "ac_cv_func_dbm_firstkey=no"
24152	eval "LIB_dbm_firstkey="
24153	echo "$as_me:$LINENO: result: no" >&5
24154echo "${ECHO_T}no" >&6
24155	;;
24156	*)
24157	eval "ac_cv_func_dbm_firstkey=yes"
24158	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
24159	cat >>confdefs.h <<_ACEOF
24160#define $ac_tr_func 1
24161_ACEOF
24162
24163	cat >>confdefs.h <<_ACEOF
24164#define $ac_tr_lib 1
24165_ACEOF
24166
24167	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
24168echo "${ECHO_T}yes, in $ac_res" >&6
24169	;;
24170esac
24171
24172
24173
24174    if test "$ac_cv_func_dbm_firstkey" = "yes"; then
24175      if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then
24176	LIB_NDBM="$ac_cv_funclib_dbm_firstkey"
24177      else
24178	LIB_NDBM=""
24179      fi
24180
24181cat >>confdefs.h <<\_ACEOF
24182#define HAVE_NDBM 1
24183_ACEOF
24184      have_ndbm=yes
24185      if test "$db_type" = "unknown"; then
24186	db_type=ndbm
24187	DBLIB="$LIB_NDBM"
24188      fi
24189    fi
24190  fi
24191
24192fi # unknown
24193
24194if test "$have_ndbm" = "yes"; then
24195  echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5
24196echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6
24197  if test "$cross_compiling" = yes; then
24198  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24199See \`config.log' for more details." >&5
24200echo "$as_me: error: cannot run test program while cross compiling
24201See \`config.log' for more details." >&2;}
24202   { (exit 1); exit 1; }; }
24203else
24204  cat >conftest.$ac_ext <<_ACEOF
24205/* confdefs.h.  */
24206_ACEOF
24207cat confdefs.h >>conftest.$ac_ext
24208cat >>conftest.$ac_ext <<_ACEOF
24209/* end confdefs.h.  */
24210
24211#include <unistd.h>
24212#include <fcntl.h>
24213#if defined(HAVE_GDBM_NDBM_H)
24214#include <gdbm/ndbm.h>
24215#elif defined(HAVE_NDBM_H)
24216#include <ndbm.h>
24217#elif defined(HAVE_DBM_H)
24218#include <dbm.h>
24219#endif
24220int main()
24221{
24222  DBM *d;
24223
24224  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
24225  if (d == NULL)
24226    return 1;
24227  dbm_close(d);
24228  return 0;
24229}
24230_ACEOF
24231rm -f conftest$ac_exeext
24232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233  (eval $ac_link) 2>&5
24234  ac_status=$?
24235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24236  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238  (eval $ac_try) 2>&5
24239  ac_status=$?
24240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241  (exit $ac_status); }; }; then
24242
24243    if test -f conftest.db; then
24244      echo "$as_me:$LINENO: result: yes" >&5
24245echo "${ECHO_T}yes" >&6
24246
24247cat >>confdefs.h <<\_ACEOF
24248#define HAVE_NEW_DB 1
24249_ACEOF
24250
24251    else
24252      echo "$as_me:$LINENO: result: no" >&5
24253echo "${ECHO_T}no" >&6
24254    fi
24255else
24256  echo "$as_me: program exited with status $ac_status" >&5
24257echo "$as_me: failed program was:" >&5
24258sed 's/^/| /' conftest.$ac_ext >&5
24259
24260( exit $ac_status )
24261echo "$as_me:$LINENO: result: no" >&5
24262echo "${ECHO_T}no" >&6
24263fi
24264rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24265fi
24266fi
24267
24268
24269
24270if test "$db_type" = db1; then
24271  HAVE_DB1_TRUE=
24272  HAVE_DB1_FALSE='#'
24273else
24274  HAVE_DB1_TRUE='#'
24275  HAVE_DB1_FALSE=
24276fi
24277
24278
24279if test "$db_type" = db3; then
24280  HAVE_DB3_TRUE=
24281  HAVE_DB3_FALSE='#'
24282else
24283  HAVE_DB3_TRUE='#'
24284  HAVE_DB3_FALSE=
24285fi
24286
24287
24288if test "$db_type" = ndbm; then
24289  HAVE_NDBM_TRUE=
24290  HAVE_NDBM_FALSE='#'
24291else
24292  HAVE_NDBM_TRUE='#'
24293  HAVE_NDBM_FALSE=
24294fi
24295
24296z=""
24297for i in $LDFLAGS; do
24298	case "$i" in
24299	-L*) z="$z $i";;
24300	esac
24301done
24302DBLIB="$z $DBLIB"
24303
24304
24305
24306
24307
24308echo "$as_me:$LINENO: checking for inline" >&5
24309echo $ECHO_N "checking for inline... $ECHO_C" >&6
24310if test "${ac_cv_c_inline+set}" = set; then
24311  echo $ECHO_N "(cached) $ECHO_C" >&6
24312else
24313  ac_cv_c_inline=no
24314for ac_kw in inline __inline__ __inline; do
24315  cat >conftest.$ac_ext <<_ACEOF
24316/* confdefs.h.  */
24317_ACEOF
24318cat confdefs.h >>conftest.$ac_ext
24319cat >>conftest.$ac_ext <<_ACEOF
24320/* end confdefs.h.  */
24321#ifndef __cplusplus
24322typedef int foo_t;
24323static $ac_kw foo_t static_foo () {return 0; }
24324$ac_kw foo_t foo () {return 0; }
24325#endif
24326
24327_ACEOF
24328rm -f conftest.$ac_objext
24329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24330  (eval $ac_compile) 2>conftest.er1
24331  ac_status=$?
24332  grep -v '^ *+' conftest.er1 >conftest.err
24333  rm -f conftest.er1
24334  cat conftest.err >&5
24335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24336  (exit $ac_status); } &&
24337	 { ac_try='test -z "$ac_c_werror_flag"
24338			 || test ! -s conftest.err'
24339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24340  (eval $ac_try) 2>&5
24341  ac_status=$?
24342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343  (exit $ac_status); }; } &&
24344	 { ac_try='test -s conftest.$ac_objext'
24345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24346  (eval $ac_try) 2>&5
24347  ac_status=$?
24348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349  (exit $ac_status); }; }; then
24350  ac_cv_c_inline=$ac_kw; break
24351else
24352  echo "$as_me: failed program was:" >&5
24353sed 's/^/| /' conftest.$ac_ext >&5
24354
24355fi
24356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24357done
24358
24359fi
24360echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24361echo "${ECHO_T}$ac_cv_c_inline" >&6
24362
24363
24364case $ac_cv_c_inline in
24365  inline | yes) ;;
24366  *)
24367    case $ac_cv_c_inline in
24368      no) ac_val=;;
24369      *) ac_val=$ac_cv_c_inline;;
24370    esac
24371    cat >>confdefs.h <<_ACEOF
24372#ifndef __cplusplus
24373#define inline $ac_val
24374#endif
24375_ACEOF
24376    ;;
24377esac
24378
24379echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24380echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24381if test "${ac_cv_c_const+set}" = set; then
24382  echo $ECHO_N "(cached) $ECHO_C" >&6
24383else
24384  cat >conftest.$ac_ext <<_ACEOF
24385/* confdefs.h.  */
24386_ACEOF
24387cat confdefs.h >>conftest.$ac_ext
24388cat >>conftest.$ac_ext <<_ACEOF
24389/* end confdefs.h.  */
24390
24391int
24392main ()
24393{
24394/* FIXME: Include the comments suggested by Paul. */
24395#ifndef __cplusplus
24396  /* Ultrix mips cc rejects this.  */
24397  typedef int charset[2];
24398  const charset x;
24399  /* SunOS 4.1.1 cc rejects this.  */
24400  char const *const *ccp;
24401  char **p;
24402  /* NEC SVR4.0.2 mips cc rejects this.  */
24403  struct point {int x, y;};
24404  static struct point const zero = {0,0};
24405  /* AIX XL C 1.02.0.0 rejects this.
24406     It does not let you subtract one const X* pointer from another in
24407     an arm of an if-expression whose if-part is not a constant
24408     expression */
24409  const char *g = "string";
24410  ccp = &g + (g ? g-g : 0);
24411  /* HPUX 7.0 cc rejects these. */
24412  ++ccp;
24413  p = (char**) ccp;
24414  ccp = (char const *const *) p;
24415  { /* SCO 3.2v4 cc rejects this.  */
24416    char *t;
24417    char const *s = 0 ? (char *) 0 : (char const *) 0;
24418
24419    *t++ = 0;
24420  }
24421  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24422    int x[] = {25, 17};
24423    const int *foo = &x[0];
24424    ++foo;
24425  }
24426  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24427    typedef const int *iptr;
24428    iptr p = 0;
24429    ++p;
24430  }
24431  { /* AIX XL C 1.02.0.0 rejects this saying
24432       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24433    struct s { int j; const int *ap[3]; };
24434    struct s *b; b->j = 5;
24435  }
24436  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24437    const int foo = 10;
24438  }
24439#endif
24440
24441  ;
24442  return 0;
24443}
24444_ACEOF
24445rm -f conftest.$ac_objext
24446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24447  (eval $ac_compile) 2>conftest.er1
24448  ac_status=$?
24449  grep -v '^ *+' conftest.er1 >conftest.err
24450  rm -f conftest.er1
24451  cat conftest.err >&5
24452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453  (exit $ac_status); } &&
24454	 { ac_try='test -z "$ac_c_werror_flag"
24455			 || test ! -s conftest.err'
24456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457  (eval $ac_try) 2>&5
24458  ac_status=$?
24459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460  (exit $ac_status); }; } &&
24461	 { ac_try='test -s conftest.$ac_objext'
24462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463  (eval $ac_try) 2>&5
24464  ac_status=$?
24465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466  (exit $ac_status); }; }; then
24467  ac_cv_c_const=yes
24468else
24469  echo "$as_me: failed program was:" >&5
24470sed 's/^/| /' conftest.$ac_ext >&5
24471
24472ac_cv_c_const=no
24473fi
24474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24475fi
24476echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24477echo "${ECHO_T}$ac_cv_c_const" >&6
24478if test $ac_cv_c_const = no; then
24479
24480cat >>confdefs.h <<\_ACEOF
24481#define const
24482_ACEOF
24483
24484fi
24485
24486echo "$as_me:$LINENO: checking for size_t" >&5
24487echo $ECHO_N "checking for size_t... $ECHO_C" >&6
24488if test "${ac_cv_type_size_t+set}" = set; then
24489  echo $ECHO_N "(cached) $ECHO_C" >&6
24490else
24491  cat >conftest.$ac_ext <<_ACEOF
24492/* confdefs.h.  */
24493_ACEOF
24494cat confdefs.h >>conftest.$ac_ext
24495cat >>conftest.$ac_ext <<_ACEOF
24496/* end confdefs.h.  */
24497$ac_includes_default
24498int
24499main ()
24500{
24501if ((size_t *) 0)
24502  return 0;
24503if (sizeof (size_t))
24504  return 0;
24505  ;
24506  return 0;
24507}
24508_ACEOF
24509rm -f conftest.$ac_objext
24510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24511  (eval $ac_compile) 2>conftest.er1
24512  ac_status=$?
24513  grep -v '^ *+' conftest.er1 >conftest.err
24514  rm -f conftest.er1
24515  cat conftest.err >&5
24516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517  (exit $ac_status); } &&
24518	 { ac_try='test -z "$ac_c_werror_flag"
24519			 || test ! -s conftest.err'
24520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521  (eval $ac_try) 2>&5
24522  ac_status=$?
24523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524  (exit $ac_status); }; } &&
24525	 { ac_try='test -s conftest.$ac_objext'
24526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527  (eval $ac_try) 2>&5
24528  ac_status=$?
24529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530  (exit $ac_status); }; }; then
24531  ac_cv_type_size_t=yes
24532else
24533  echo "$as_me: failed program was:" >&5
24534sed 's/^/| /' conftest.$ac_ext >&5
24535
24536ac_cv_type_size_t=no
24537fi
24538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24539fi
24540echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24541echo "${ECHO_T}$ac_cv_type_size_t" >&6
24542if test $ac_cv_type_size_t = yes; then
24543  :
24544else
24545
24546cat >>confdefs.h <<_ACEOF
24547#define size_t unsigned
24548_ACEOF
24549
24550fi
24551
24552echo "$as_me:$LINENO: checking for pid_t" >&5
24553echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
24554if test "${ac_cv_type_pid_t+set}" = set; then
24555  echo $ECHO_N "(cached) $ECHO_C" >&6
24556else
24557  cat >conftest.$ac_ext <<_ACEOF
24558/* confdefs.h.  */
24559_ACEOF
24560cat confdefs.h >>conftest.$ac_ext
24561cat >>conftest.$ac_ext <<_ACEOF
24562/* end confdefs.h.  */
24563$ac_includes_default
24564int
24565main ()
24566{
24567if ((pid_t *) 0)
24568  return 0;
24569if (sizeof (pid_t))
24570  return 0;
24571  ;
24572  return 0;
24573}
24574_ACEOF
24575rm -f conftest.$ac_objext
24576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24577  (eval $ac_compile) 2>conftest.er1
24578  ac_status=$?
24579  grep -v '^ *+' conftest.er1 >conftest.err
24580  rm -f conftest.er1
24581  cat conftest.err >&5
24582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583  (exit $ac_status); } &&
24584	 { ac_try='test -z "$ac_c_werror_flag"
24585			 || test ! -s conftest.err'
24586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587  (eval $ac_try) 2>&5
24588  ac_status=$?
24589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590  (exit $ac_status); }; } &&
24591	 { ac_try='test -s conftest.$ac_objext'
24592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593  (eval $ac_try) 2>&5
24594  ac_status=$?
24595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596  (exit $ac_status); }; }; then
24597  ac_cv_type_pid_t=yes
24598else
24599  echo "$as_me: failed program was:" >&5
24600sed 's/^/| /' conftest.$ac_ext >&5
24601
24602ac_cv_type_pid_t=no
24603fi
24604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24605fi
24606echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24607echo "${ECHO_T}$ac_cv_type_pid_t" >&6
24608if test $ac_cv_type_pid_t = yes; then
24609  :
24610else
24611
24612cat >>confdefs.h <<_ACEOF
24613#define pid_t int
24614_ACEOF
24615
24616fi
24617
24618echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24619echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
24620if test "${ac_cv_type_uid_t+set}" = set; then
24621  echo $ECHO_N "(cached) $ECHO_C" >&6
24622else
24623  cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h.  */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h.  */
24629#include <sys/types.h>
24630
24631_ACEOF
24632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24633  $EGREP "uid_t" >/dev/null 2>&1; then
24634  ac_cv_type_uid_t=yes
24635else
24636  ac_cv_type_uid_t=no
24637fi
24638rm -f conftest*
24639
24640fi
24641echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24642echo "${ECHO_T}$ac_cv_type_uid_t" >&6
24643if test $ac_cv_type_uid_t = no; then
24644
24645cat >>confdefs.h <<\_ACEOF
24646#define uid_t int
24647_ACEOF
24648
24649
24650cat >>confdefs.h <<\_ACEOF
24651#define gid_t int
24652_ACEOF
24653
24654fi
24655
24656
24657echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24658echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24659if test "${ac_cv_type_signal+set}" = set; then
24660  echo $ECHO_N "(cached) $ECHO_C" >&6
24661else
24662  cat >conftest.$ac_ext <<_ACEOF
24663/* confdefs.h.  */
24664_ACEOF
24665cat confdefs.h >>conftest.$ac_ext
24666cat >>conftest.$ac_ext <<_ACEOF
24667/* end confdefs.h.  */
24668#include <sys/types.h>
24669#include <signal.h>
24670#ifdef signal
24671# undef signal
24672#endif
24673#ifdef __cplusplus
24674extern "C" void (*signal (int, void (*)(int)))(int);
24675#else
24676void (*signal ()) ();
24677#endif
24678
24679int
24680main ()
24681{
24682int i;
24683  ;
24684  return 0;
24685}
24686_ACEOF
24687rm -f conftest.$ac_objext
24688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24689  (eval $ac_compile) 2>conftest.er1
24690  ac_status=$?
24691  grep -v '^ *+' conftest.er1 >conftest.err
24692  rm -f conftest.er1
24693  cat conftest.err >&5
24694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695  (exit $ac_status); } &&
24696	 { ac_try='test -z "$ac_c_werror_flag"
24697			 || test ! -s conftest.err'
24698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699  (eval $ac_try) 2>&5
24700  ac_status=$?
24701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702  (exit $ac_status); }; } &&
24703	 { ac_try='test -s conftest.$ac_objext'
24704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24705  (eval $ac_try) 2>&5
24706  ac_status=$?
24707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708  (exit $ac_status); }; }; then
24709  ac_cv_type_signal=void
24710else
24711  echo "$as_me: failed program was:" >&5
24712sed 's/^/| /' conftest.$ac_ext >&5
24713
24714ac_cv_type_signal=int
24715fi
24716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24717fi
24718echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24719echo "${ECHO_T}$ac_cv_type_signal" >&6
24720
24721cat >>confdefs.h <<_ACEOF
24722#define RETSIGTYPE $ac_cv_type_signal
24723_ACEOF
24724
24725
24726if test "$ac_cv_type_signal" = "void" ; then
24727
24728cat >>confdefs.h <<\_ACEOF
24729#define VOID_RETSIGTYPE 1
24730_ACEOF
24731
24732fi
24733
24734
24735
24736
24737echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24738echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24739if test "${ac_cv_header_time+set}" = set; then
24740  echo $ECHO_N "(cached) $ECHO_C" >&6
24741else
24742  cat >conftest.$ac_ext <<_ACEOF
24743/* confdefs.h.  */
24744_ACEOF
24745cat confdefs.h >>conftest.$ac_ext
24746cat >>conftest.$ac_ext <<_ACEOF
24747/* end confdefs.h.  */
24748#include <sys/types.h>
24749#include <sys/time.h>
24750#include <time.h>
24751
24752int
24753main ()
24754{
24755if ((struct tm *) 0)
24756return 0;
24757  ;
24758  return 0;
24759}
24760_ACEOF
24761rm -f conftest.$ac_objext
24762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24763  (eval $ac_compile) 2>conftest.er1
24764  ac_status=$?
24765  grep -v '^ *+' conftest.er1 >conftest.err
24766  rm -f conftest.er1
24767  cat conftest.err >&5
24768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769  (exit $ac_status); } &&
24770	 { ac_try='test -z "$ac_c_werror_flag"
24771			 || test ! -s conftest.err'
24772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773  (eval $ac_try) 2>&5
24774  ac_status=$?
24775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776  (exit $ac_status); }; } &&
24777	 { ac_try='test -s conftest.$ac_objext'
24778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24779  (eval $ac_try) 2>&5
24780  ac_status=$?
24781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782  (exit $ac_status); }; }; then
24783  ac_cv_header_time=yes
24784else
24785  echo "$as_me: failed program was:" >&5
24786sed 's/^/| /' conftest.$ac_ext >&5
24787
24788ac_cv_header_time=no
24789fi
24790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24791fi
24792echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24793echo "${ECHO_T}$ac_cv_header_time" >&6
24794if test $ac_cv_header_time = yes; then
24795
24796cat >>confdefs.h <<\_ACEOF
24797#define TIME_WITH_SYS_TIME 1
24798_ACEOF
24799
24800fi
24801
24802
24803
24804for ac_header in standards.h
24805do
24806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24807if eval "test \"\${$as_ac_Header+set}\" = set"; then
24808  echo "$as_me:$LINENO: checking for $ac_header" >&5
24809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24810if eval "test \"\${$as_ac_Header+set}\" = set"; then
24811  echo $ECHO_N "(cached) $ECHO_C" >&6
24812fi
24813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24815else
24816  # Is the header compilable?
24817echo "$as_me:$LINENO: checking $ac_header usability" >&5
24818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24819cat >conftest.$ac_ext <<_ACEOF
24820/* confdefs.h.  */
24821_ACEOF
24822cat confdefs.h >>conftest.$ac_ext
24823cat >>conftest.$ac_ext <<_ACEOF
24824/* end confdefs.h.  */
24825$ac_includes_default
24826#include <$ac_header>
24827_ACEOF
24828rm -f conftest.$ac_objext
24829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24830  (eval $ac_compile) 2>conftest.er1
24831  ac_status=$?
24832  grep -v '^ *+' conftest.er1 >conftest.err
24833  rm -f conftest.er1
24834  cat conftest.err >&5
24835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836  (exit $ac_status); } &&
24837	 { ac_try='test -z "$ac_c_werror_flag"
24838			 || test ! -s conftest.err'
24839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840  (eval $ac_try) 2>&5
24841  ac_status=$?
24842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843  (exit $ac_status); }; } &&
24844	 { ac_try='test -s conftest.$ac_objext'
24845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24846  (eval $ac_try) 2>&5
24847  ac_status=$?
24848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849  (exit $ac_status); }; }; then
24850  ac_header_compiler=yes
24851else
24852  echo "$as_me: failed program was:" >&5
24853sed 's/^/| /' conftest.$ac_ext >&5
24854
24855ac_header_compiler=no
24856fi
24857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24858echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24859echo "${ECHO_T}$ac_header_compiler" >&6
24860
24861# Is the header present?
24862echo "$as_me:$LINENO: checking $ac_header presence" >&5
24863echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24864cat >conftest.$ac_ext <<_ACEOF
24865/* confdefs.h.  */
24866_ACEOF
24867cat confdefs.h >>conftest.$ac_ext
24868cat >>conftest.$ac_ext <<_ACEOF
24869/* end confdefs.h.  */
24870#include <$ac_header>
24871_ACEOF
24872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24874  ac_status=$?
24875  grep -v '^ *+' conftest.er1 >conftest.err
24876  rm -f conftest.er1
24877  cat conftest.err >&5
24878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879  (exit $ac_status); } >/dev/null; then
24880  if test -s conftest.err; then
24881    ac_cpp_err=$ac_c_preproc_warn_flag
24882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24883  else
24884    ac_cpp_err=
24885  fi
24886else
24887  ac_cpp_err=yes
24888fi
24889if test -z "$ac_cpp_err"; then
24890  ac_header_preproc=yes
24891else
24892  echo "$as_me: failed program was:" >&5
24893sed 's/^/| /' conftest.$ac_ext >&5
24894
24895  ac_header_preproc=no
24896fi
24897rm -f conftest.err conftest.$ac_ext
24898echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24899echo "${ECHO_T}$ac_header_preproc" >&6
24900
24901# So?  What about this header?
24902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24903  yes:no: )
24904    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24905echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24906    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24907echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24908    ac_header_preproc=yes
24909    ;;
24910  no:yes:* )
24911    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24912echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24913    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24914echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24915    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24916echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24917    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24918echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24919    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24921    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24922echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24923    (
24924      cat <<\_ASBOX
24925## -------------------------------------- ##
24926## Report this to heimdal-bugs@pdc.kth.se ##
24927## -------------------------------------- ##
24928_ASBOX
24929    ) |
24930      sed "s/^/$as_me: WARNING:     /" >&2
24931    ;;
24932esac
24933echo "$as_me:$LINENO: checking for $ac_header" >&5
24934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24935if eval "test \"\${$as_ac_Header+set}\" = set"; then
24936  echo $ECHO_N "(cached) $ECHO_C" >&6
24937else
24938  eval "$as_ac_Header=\$ac_header_preproc"
24939fi
24940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24942
24943fi
24944if test `eval echo '${'$as_ac_Header'}'` = yes; then
24945  cat >>confdefs.h <<_ACEOF
24946#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24947_ACEOF
24948
24949fi
24950
24951done
24952
24953for i in netinet/ip.h netinet/tcp.h; do
24954
24955cv=`echo "$i" | sed 'y%./+-%__p_%'`
24956
24957echo "$as_me:$LINENO: checking for $i" >&5
24958echo $ECHO_N "checking for $i... $ECHO_C" >&6
24959if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then
24960  echo $ECHO_N "(cached) $ECHO_C" >&6
24961else
24962  cat >conftest.$ac_ext <<_ACEOF
24963/* confdefs.h.  */
24964_ACEOF
24965cat confdefs.h >>conftest.$ac_ext
24966cat >>conftest.$ac_ext <<_ACEOF
24967/* end confdefs.h.  */
24968\
24969#ifdef HAVE_STANDARDS_H
24970#include <standards.h>
24971#endif
24972#include <$i>
24973
24974_ACEOF
24975if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24976  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24977  ac_status=$?
24978  grep -v '^ *+' conftest.er1 >conftest.err
24979  rm -f conftest.er1
24980  cat conftest.err >&5
24981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982  (exit $ac_status); } >/dev/null; then
24983  if test -s conftest.err; then
24984    ac_cpp_err=$ac_c_preproc_warn_flag
24985    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24986  else
24987    ac_cpp_err=
24988  fi
24989else
24990  ac_cpp_err=yes
24991fi
24992if test -z "$ac_cpp_err"; then
24993  eval "ac_cv_header_$cv=yes"
24994else
24995  echo "$as_me: failed program was:" >&5
24996sed 's/^/| /' conftest.$ac_ext >&5
24997
24998  eval "ac_cv_header_$cv=no"
24999fi
25000rm -f conftest.err conftest.$ac_ext
25001fi
25002echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5
25003echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6
25004ac_res=`eval echo \\$ac_cv_header_$cv`
25005if test "$ac_res" = yes; then
25006	ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
25007	cat >>confdefs.h <<_ACEOF
25008#define $ac_tr_hdr 1
25009_ACEOF
25010
25011fi
25012done
25013if false;then
25014
25015
25016for ac_header in netinet/ip.h netinet/tcp.h
25017do
25018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25019if eval "test \"\${$as_ac_Header+set}\" = set"; then
25020  echo "$as_me:$LINENO: checking for $ac_header" >&5
25021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25022if eval "test \"\${$as_ac_Header+set}\" = set"; then
25023  echo $ECHO_N "(cached) $ECHO_C" >&6
25024fi
25025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25027else
25028  # Is the header compilable?
25029echo "$as_me:$LINENO: checking $ac_header usability" >&5
25030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25031cat >conftest.$ac_ext <<_ACEOF
25032/* confdefs.h.  */
25033_ACEOF
25034cat confdefs.h >>conftest.$ac_ext
25035cat >>conftest.$ac_ext <<_ACEOF
25036/* end confdefs.h.  */
25037$ac_includes_default
25038#include <$ac_header>
25039_ACEOF
25040rm -f conftest.$ac_objext
25041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25042  (eval $ac_compile) 2>conftest.er1
25043  ac_status=$?
25044  grep -v '^ *+' conftest.er1 >conftest.err
25045  rm -f conftest.er1
25046  cat conftest.err >&5
25047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048  (exit $ac_status); } &&
25049	 { ac_try='test -z "$ac_c_werror_flag"
25050			 || test ! -s conftest.err'
25051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25052  (eval $ac_try) 2>&5
25053  ac_status=$?
25054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055  (exit $ac_status); }; } &&
25056	 { ac_try='test -s conftest.$ac_objext'
25057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058  (eval $ac_try) 2>&5
25059  ac_status=$?
25060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061  (exit $ac_status); }; }; then
25062  ac_header_compiler=yes
25063else
25064  echo "$as_me: failed program was:" >&5
25065sed 's/^/| /' conftest.$ac_ext >&5
25066
25067ac_header_compiler=no
25068fi
25069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25071echo "${ECHO_T}$ac_header_compiler" >&6
25072
25073# Is the header present?
25074echo "$as_me:$LINENO: checking $ac_header presence" >&5
25075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25076cat >conftest.$ac_ext <<_ACEOF
25077/* confdefs.h.  */
25078_ACEOF
25079cat confdefs.h >>conftest.$ac_ext
25080cat >>conftest.$ac_ext <<_ACEOF
25081/* end confdefs.h.  */
25082#include <$ac_header>
25083_ACEOF
25084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25085  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25086  ac_status=$?
25087  grep -v '^ *+' conftest.er1 >conftest.err
25088  rm -f conftest.er1
25089  cat conftest.err >&5
25090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091  (exit $ac_status); } >/dev/null; then
25092  if test -s conftest.err; then
25093    ac_cpp_err=$ac_c_preproc_warn_flag
25094    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25095  else
25096    ac_cpp_err=
25097  fi
25098else
25099  ac_cpp_err=yes
25100fi
25101if test -z "$ac_cpp_err"; then
25102  ac_header_preproc=yes
25103else
25104  echo "$as_me: failed program was:" >&5
25105sed 's/^/| /' conftest.$ac_ext >&5
25106
25107  ac_header_preproc=no
25108fi
25109rm -f conftest.err conftest.$ac_ext
25110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25111echo "${ECHO_T}$ac_header_preproc" >&6
25112
25113# So?  What about this header?
25114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25115  yes:no: )
25116    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25118    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25120    ac_header_preproc=yes
25121    ;;
25122  no:yes:* )
25123    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25125    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25126echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25127    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25129    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25130echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25131    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25133    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25135    (
25136      cat <<\_ASBOX
25137## -------------------------------------- ##
25138## Report this to heimdal-bugs@pdc.kth.se ##
25139## -------------------------------------- ##
25140_ASBOX
25141    ) |
25142      sed "s/^/$as_me: WARNING:     /" >&2
25143    ;;
25144esac
25145echo "$as_me:$LINENO: checking for $ac_header" >&5
25146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25147if eval "test \"\${$as_ac_Header+set}\" = set"; then
25148  echo $ECHO_N "(cached) $ECHO_C" >&6
25149else
25150  eval "$as_ac_Header=\$ac_header_preproc"
25151fi
25152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25154
25155fi
25156if test `eval echo '${'$as_ac_Header'}'` = yes; then
25157  cat >>confdefs.h <<_ACEOF
25158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25159_ACEOF
25160
25161fi
25162
25163done
25164
25165fi
25166
25167
25168
25169
25170for ac_func in getlogin setlogin
25171do
25172as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25173echo "$as_me:$LINENO: checking for $ac_func" >&5
25174echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25175if eval "test \"\${$as_ac_var+set}\" = set"; then
25176  echo $ECHO_N "(cached) $ECHO_C" >&6
25177else
25178  cat >conftest.$ac_ext <<_ACEOF
25179/* confdefs.h.  */
25180_ACEOF
25181cat confdefs.h >>conftest.$ac_ext
25182cat >>conftest.$ac_ext <<_ACEOF
25183/* end confdefs.h.  */
25184/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25186#define $ac_func innocuous_$ac_func
25187
25188/* System header to define __stub macros and hopefully few prototypes,
25189    which can conflict with char $ac_func (); below.
25190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25191    <limits.h> exists even on freestanding compilers.  */
25192
25193#ifdef __STDC__
25194# include <limits.h>
25195#else
25196# include <assert.h>
25197#endif
25198
25199#undef $ac_func
25200
25201/* Override any gcc2 internal prototype to avoid an error.  */
25202#ifdef __cplusplus
25203extern "C"
25204{
25205#endif
25206/* We use char because int might match the return type of a gcc2
25207   builtin and then its argument prototype would still apply.  */
25208char $ac_func ();
25209/* The GNU C library defines this for functions which it implements
25210    to always fail with ENOSYS.  Some functions are actually named
25211    something starting with __ and the normal name is an alias.  */
25212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25213choke me
25214#else
25215char (*f) () = $ac_func;
25216#endif
25217#ifdef __cplusplus
25218}
25219#endif
25220
25221int
25222main ()
25223{
25224return f != $ac_func;
25225  ;
25226  return 0;
25227}
25228_ACEOF
25229rm -f conftest.$ac_objext conftest$ac_exeext
25230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25231  (eval $ac_link) 2>conftest.er1
25232  ac_status=$?
25233  grep -v '^ *+' conftest.er1 >conftest.err
25234  rm -f conftest.er1
25235  cat conftest.err >&5
25236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237  (exit $ac_status); } &&
25238	 { ac_try='test -z "$ac_c_werror_flag"
25239			 || test ! -s conftest.err'
25240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241  (eval $ac_try) 2>&5
25242  ac_status=$?
25243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244  (exit $ac_status); }; } &&
25245	 { ac_try='test -s conftest$ac_exeext'
25246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247  (eval $ac_try) 2>&5
25248  ac_status=$?
25249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250  (exit $ac_status); }; }; then
25251  eval "$as_ac_var=yes"
25252else
25253  echo "$as_me: failed program was:" >&5
25254sed 's/^/| /' conftest.$ac_ext >&5
25255
25256eval "$as_ac_var=no"
25257fi
25258rm -f conftest.err conftest.$ac_objext \
25259      conftest$ac_exeext conftest.$ac_ext
25260fi
25261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25263if test `eval echo '${'$as_ac_var'}'` = yes; then
25264  cat >>confdefs.h <<_ACEOF
25265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25266_ACEOF
25267
25268fi
25269done
25270
25271if test "$ac_cv_func_getlogin" = yes; then
25272echo "$as_me:$LINENO: checking if getlogin is posix" >&5
25273echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6
25274if test "${ac_cv_func_getlogin_posix+set}" = set; then
25275  echo $ECHO_N "(cached) $ECHO_C" >&6
25276else
25277
25278if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
25279	ac_cv_func_getlogin_posix=no
25280else
25281	ac_cv_func_getlogin_posix=yes
25282fi
25283
25284fi
25285echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5
25286echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6
25287if test "$ac_cv_func_getlogin_posix" = yes; then
25288
25289cat >>confdefs.h <<\_ACEOF
25290#define POSIX_GETLOGIN 1
25291_ACEOF
25292
25293fi
25294fi
25295
25296
25297
25298for ac_header in stdlib.h unistd.h
25299do
25300as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25301if eval "test \"\${$as_ac_Header+set}\" = set"; then
25302  echo "$as_me:$LINENO: checking for $ac_header" >&5
25303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25304if eval "test \"\${$as_ac_Header+set}\" = set"; then
25305  echo $ECHO_N "(cached) $ECHO_C" >&6
25306fi
25307echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25308echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25309else
25310  # Is the header compilable?
25311echo "$as_me:$LINENO: checking $ac_header usability" >&5
25312echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25313cat >conftest.$ac_ext <<_ACEOF
25314/* confdefs.h.  */
25315_ACEOF
25316cat confdefs.h >>conftest.$ac_ext
25317cat >>conftest.$ac_ext <<_ACEOF
25318/* end confdefs.h.  */
25319$ac_includes_default
25320#include <$ac_header>
25321_ACEOF
25322rm -f conftest.$ac_objext
25323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25324  (eval $ac_compile) 2>conftest.er1
25325  ac_status=$?
25326  grep -v '^ *+' conftest.er1 >conftest.err
25327  rm -f conftest.er1
25328  cat conftest.err >&5
25329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330  (exit $ac_status); } &&
25331	 { ac_try='test -z "$ac_c_werror_flag"
25332			 || test ! -s conftest.err'
25333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334  (eval $ac_try) 2>&5
25335  ac_status=$?
25336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337  (exit $ac_status); }; } &&
25338	 { ac_try='test -s conftest.$ac_objext'
25339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340  (eval $ac_try) 2>&5
25341  ac_status=$?
25342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343  (exit $ac_status); }; }; then
25344  ac_header_compiler=yes
25345else
25346  echo "$as_me: failed program was:" >&5
25347sed 's/^/| /' conftest.$ac_ext >&5
25348
25349ac_header_compiler=no
25350fi
25351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25353echo "${ECHO_T}$ac_header_compiler" >&6
25354
25355# Is the header present?
25356echo "$as_me:$LINENO: checking $ac_header presence" >&5
25357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25358cat >conftest.$ac_ext <<_ACEOF
25359/* confdefs.h.  */
25360_ACEOF
25361cat confdefs.h >>conftest.$ac_ext
25362cat >>conftest.$ac_ext <<_ACEOF
25363/* end confdefs.h.  */
25364#include <$ac_header>
25365_ACEOF
25366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25367  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25368  ac_status=$?
25369  grep -v '^ *+' conftest.er1 >conftest.err
25370  rm -f conftest.er1
25371  cat conftest.err >&5
25372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373  (exit $ac_status); } >/dev/null; then
25374  if test -s conftest.err; then
25375    ac_cpp_err=$ac_c_preproc_warn_flag
25376    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25377  else
25378    ac_cpp_err=
25379  fi
25380else
25381  ac_cpp_err=yes
25382fi
25383if test -z "$ac_cpp_err"; then
25384  ac_header_preproc=yes
25385else
25386  echo "$as_me: failed program was:" >&5
25387sed 's/^/| /' conftest.$ac_ext >&5
25388
25389  ac_header_preproc=no
25390fi
25391rm -f conftest.err conftest.$ac_ext
25392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25393echo "${ECHO_T}$ac_header_preproc" >&6
25394
25395# So?  What about this header?
25396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25397  yes:no: )
25398    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25400    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25402    ac_header_preproc=yes
25403    ;;
25404  no:yes:* )
25405    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25407    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25408echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25409    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25411    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25412echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25413    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25415    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25417    (
25418      cat <<\_ASBOX
25419## -------------------------------------- ##
25420## Report this to heimdal-bugs@pdc.kth.se ##
25421## -------------------------------------- ##
25422_ASBOX
25423    ) |
25424      sed "s/^/$as_me: WARNING:     /" >&2
25425    ;;
25426esac
25427echo "$as_me:$LINENO: checking for $ac_header" >&5
25428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25429if eval "test \"\${$as_ac_Header+set}\" = set"; then
25430  echo $ECHO_N "(cached) $ECHO_C" >&6
25431else
25432  eval "$as_ac_Header=\$ac_header_preproc"
25433fi
25434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25436
25437fi
25438if test `eval echo '${'$as_ac_Header'}'` = yes; then
25439  cat >>confdefs.h <<_ACEOF
25440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25441_ACEOF
25442
25443fi
25444
25445done
25446
25447
25448for ac_func in getpagesize
25449do
25450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25451echo "$as_me:$LINENO: checking for $ac_func" >&5
25452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25453if eval "test \"\${$as_ac_var+set}\" = set"; then
25454  echo $ECHO_N "(cached) $ECHO_C" >&6
25455else
25456  cat >conftest.$ac_ext <<_ACEOF
25457/* confdefs.h.  */
25458_ACEOF
25459cat confdefs.h >>conftest.$ac_ext
25460cat >>conftest.$ac_ext <<_ACEOF
25461/* end confdefs.h.  */
25462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25463   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25464#define $ac_func innocuous_$ac_func
25465
25466/* System header to define __stub macros and hopefully few prototypes,
25467    which can conflict with char $ac_func (); below.
25468    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25469    <limits.h> exists even on freestanding compilers.  */
25470
25471#ifdef __STDC__
25472# include <limits.h>
25473#else
25474# include <assert.h>
25475#endif
25476
25477#undef $ac_func
25478
25479/* Override any gcc2 internal prototype to avoid an error.  */
25480#ifdef __cplusplus
25481extern "C"
25482{
25483#endif
25484/* We use char because int might match the return type of a gcc2
25485   builtin and then its argument prototype would still apply.  */
25486char $ac_func ();
25487/* The GNU C library defines this for functions which it implements
25488    to always fail with ENOSYS.  Some functions are actually named
25489    something starting with __ and the normal name is an alias.  */
25490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25491choke me
25492#else
25493char (*f) () = $ac_func;
25494#endif
25495#ifdef __cplusplus
25496}
25497#endif
25498
25499int
25500main ()
25501{
25502return f != $ac_func;
25503  ;
25504  return 0;
25505}
25506_ACEOF
25507rm -f conftest.$ac_objext conftest$ac_exeext
25508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25509  (eval $ac_link) 2>conftest.er1
25510  ac_status=$?
25511  grep -v '^ *+' conftest.er1 >conftest.err
25512  rm -f conftest.er1
25513  cat conftest.err >&5
25514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515  (exit $ac_status); } &&
25516	 { ac_try='test -z "$ac_c_werror_flag"
25517			 || test ! -s conftest.err'
25518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519  (eval $ac_try) 2>&5
25520  ac_status=$?
25521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522  (exit $ac_status); }; } &&
25523	 { ac_try='test -s conftest$ac_exeext'
25524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25525  (eval $ac_try) 2>&5
25526  ac_status=$?
25527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528  (exit $ac_status); }; }; then
25529  eval "$as_ac_var=yes"
25530else
25531  echo "$as_me: failed program was:" >&5
25532sed 's/^/| /' conftest.$ac_ext >&5
25533
25534eval "$as_ac_var=no"
25535fi
25536rm -f conftest.err conftest.$ac_objext \
25537      conftest$ac_exeext conftest.$ac_ext
25538fi
25539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25540echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25541if test `eval echo '${'$as_ac_var'}'` = yes; then
25542  cat >>confdefs.h <<_ACEOF
25543#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25544_ACEOF
25545
25546fi
25547done
25548
25549echo "$as_me:$LINENO: checking for working mmap" >&5
25550echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
25551if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
25552  echo $ECHO_N "(cached) $ECHO_C" >&6
25553else
25554  if test "$cross_compiling" = yes; then
25555  ac_cv_func_mmap_fixed_mapped=no
25556else
25557  cat >conftest.$ac_ext <<_ACEOF
25558/* confdefs.h.  */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h.  */
25563$ac_includes_default
25564/* malloc might have been renamed as rpl_malloc. */
25565#undef malloc
25566
25567/* Thanks to Mike Haertel and Jim Avera for this test.
25568   Here is a matrix of mmap possibilities:
25569	mmap private not fixed
25570	mmap private fixed at somewhere currently unmapped
25571	mmap private fixed at somewhere already mapped
25572	mmap shared not fixed
25573	mmap shared fixed at somewhere currently unmapped
25574	mmap shared fixed at somewhere already mapped
25575   For private mappings, we should verify that changes cannot be read()
25576   back from the file, nor mmap's back from the file at a different
25577   address.  (There have been systems where private was not correctly
25578   implemented like the infamous i386 svr4.0, and systems where the
25579   VM page cache was not coherent with the file system buffer cache
25580   like early versions of FreeBSD and possibly contemporary NetBSD.)
25581   For shared mappings, we should conversely verify that changes get
25582   propagated back to all the places they're supposed to be.
25583
25584   Grep wants private fixed already mapped.
25585   The main things grep needs to know about mmap are:
25586   * does it exist and is it safe to write into the mmap'd area
25587   * how to use it (BSD variants)  */
25588
25589#include <fcntl.h>
25590#include <sys/mman.h>
25591
25592#if !STDC_HEADERS && !HAVE_STDLIB_H
25593char *malloc ();
25594#endif
25595
25596/* This mess was copied from the GNU getpagesize.h.  */
25597#if !HAVE_GETPAGESIZE
25598/* Assume that all systems that can run configure have sys/param.h.  */
25599# if !HAVE_SYS_PARAM_H
25600#  define HAVE_SYS_PARAM_H 1
25601# endif
25602
25603# ifdef _SC_PAGESIZE
25604#  define getpagesize() sysconf(_SC_PAGESIZE)
25605# else /* no _SC_PAGESIZE */
25606#  if HAVE_SYS_PARAM_H
25607#   include <sys/param.h>
25608#   ifdef EXEC_PAGESIZE
25609#    define getpagesize() EXEC_PAGESIZE
25610#   else /* no EXEC_PAGESIZE */
25611#    ifdef NBPG
25612#     define getpagesize() NBPG * CLSIZE
25613#     ifndef CLSIZE
25614#      define CLSIZE 1
25615#     endif /* no CLSIZE */
25616#    else /* no NBPG */
25617#     ifdef NBPC
25618#      define getpagesize() NBPC
25619#     else /* no NBPC */
25620#      ifdef PAGESIZE
25621#       define getpagesize() PAGESIZE
25622#      endif /* PAGESIZE */
25623#     endif /* no NBPC */
25624#    endif /* no NBPG */
25625#   endif /* no EXEC_PAGESIZE */
25626#  else /* no HAVE_SYS_PARAM_H */
25627#   define getpagesize() 8192	/* punt totally */
25628#  endif /* no HAVE_SYS_PARAM_H */
25629# endif /* no _SC_PAGESIZE */
25630
25631#endif /* no HAVE_GETPAGESIZE */
25632
25633int
25634main ()
25635{
25636  char *data, *data2, *data3;
25637  int i, pagesize;
25638  int fd;
25639
25640  pagesize = getpagesize ();
25641
25642  /* First, make a file with some known garbage in it. */
25643  data = (char *) malloc (pagesize);
25644  if (!data)
25645    exit (1);
25646  for (i = 0; i < pagesize; ++i)
25647    *(data + i) = rand ();
25648  umask (0);
25649  fd = creat ("conftest.mmap", 0600);
25650  if (fd < 0)
25651    exit (1);
25652  if (write (fd, data, pagesize) != pagesize)
25653    exit (1);
25654  close (fd);
25655
25656  /* Next, try to mmap the file at a fixed address which already has
25657     something else allocated at it.  If we can, also make sure that
25658     we see the same garbage.  */
25659  fd = open ("conftest.mmap", O_RDWR);
25660  if (fd < 0)
25661    exit (1);
25662  data2 = (char *) malloc (2 * pagesize);
25663  if (!data2)
25664    exit (1);
25665  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
25666  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25667		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
25668    exit (1);
25669  for (i = 0; i < pagesize; ++i)
25670    if (*(data + i) != *(data2 + i))
25671      exit (1);
25672
25673  /* Finally, make sure that changes to the mapped area do not
25674     percolate back to the file as seen by read().  (This is a bug on
25675     some variants of i386 svr4.0.)  */
25676  for (i = 0; i < pagesize; ++i)
25677    *(data2 + i) = *(data2 + i) + 1;
25678  data3 = (char *) malloc (pagesize);
25679  if (!data3)
25680    exit (1);
25681  if (read (fd, data3, pagesize) != pagesize)
25682    exit (1);
25683  for (i = 0; i < pagesize; ++i)
25684    if (*(data + i) != *(data3 + i))
25685      exit (1);
25686  close (fd);
25687  exit (0);
25688}
25689_ACEOF
25690rm -f conftest$ac_exeext
25691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25692  (eval $ac_link) 2>&5
25693  ac_status=$?
25694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697  (eval $ac_try) 2>&5
25698  ac_status=$?
25699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700  (exit $ac_status); }; }; then
25701  ac_cv_func_mmap_fixed_mapped=yes
25702else
25703  echo "$as_me: program exited with status $ac_status" >&5
25704echo "$as_me: failed program was:" >&5
25705sed 's/^/| /' conftest.$ac_ext >&5
25706
25707( exit $ac_status )
25708ac_cv_func_mmap_fixed_mapped=no
25709fi
25710rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25711fi
25712fi
25713echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
25714echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
25715if test $ac_cv_func_mmap_fixed_mapped = yes; then
25716
25717cat >>confdefs.h <<\_ACEOF
25718#define HAVE_MMAP 1
25719_ACEOF
25720
25721fi
25722rm -f conftest.mmap
25723
25724
25725echo "$as_me:$LINENO: checking if realloc if broken" >&5
25726echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6
25727if test "${ac_cv_func_realloc_broken+set}" = set; then
25728  echo $ECHO_N "(cached) $ECHO_C" >&6
25729else
25730
25731ac_cv_func_realloc_broken=no
25732if test "$cross_compiling" = yes; then
25733  :
25734else
25735  cat >conftest.$ac_ext <<_ACEOF
25736/* confdefs.h.  */
25737_ACEOF
25738cat confdefs.h >>conftest.$ac_ext
25739cat >>conftest.$ac_ext <<_ACEOF
25740/* end confdefs.h.  */
25741
25742#include <stddef.h>
25743#include <stdlib.h>
25744
25745int main()
25746{
25747	return realloc(NULL, 17) == NULL;
25748}
25749
25750_ACEOF
25751rm -f conftest$ac_exeext
25752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25753  (eval $ac_link) 2>&5
25754  ac_status=$?
25755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758  (eval $ac_try) 2>&5
25759  ac_status=$?
25760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761  (exit $ac_status); }; }; then
25762  :
25763else
25764  echo "$as_me: program exited with status $ac_status" >&5
25765echo "$as_me: failed program was:" >&5
25766sed 's/^/| /' conftest.$ac_ext >&5
25767
25768( exit $ac_status )
25769ac_cv_func_realloc_broken=yes
25770fi
25771rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25772fi
25773
25774fi
25775echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5
25776echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6
25777if test "$ac_cv_func_realloc_broken" = yes ; then
25778
25779cat >>confdefs.h <<\_ACEOF
25780#define BROKEN_REALLOC 1
25781_ACEOF
25782
25783fi
25784
25785
25786
25787
25788
25789
25790
25791DIR_roken=roken
25792LIB_roken='$(top_builddir)/lib/roken/libroken.la'
25793INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken'
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808WFLAGS_NOUNUSED=""
25809WFLAGS_NOIMPLICITINT=""
25810if test -z "$WFLAGS" -a "$GCC" = "yes"; then
25811  # -Wno-implicit-int for broken X11 headers
25812  # leave these out for now:
25813  #   -Wcast-align doesn't work well on alpha osf/1
25814  #   -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast
25815  #   -Wmissing-declarations -Wnested-externs
25816  WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs"
25817  WFLAGS_NOUNUSED="-Wno-unused"
25818  WFLAGS_NOIMPLICITINT="-Wno-implicit-int"
25819fi
25820
25821
25822
25823
25824
25825
25826
25827
25828cv=`echo "ssize_t" | sed 'y%./+- %__p__%'`
25829echo "$as_me:$LINENO: checking for ssize_t" >&5
25830echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25831if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25832  echo $ECHO_N "(cached) $ECHO_C" >&6
25833else
25834  cat >conftest.$ac_ext <<_ACEOF
25835/* confdefs.h.  */
25836_ACEOF
25837cat confdefs.h >>conftest.$ac_ext
25838cat >>conftest.$ac_ext <<_ACEOF
25839/* end confdefs.h.  */
25840#include <sys/types.h>
25841#if STDC_HEADERS
25842#include <stdlib.h>
25843#include <stddef.h>
25844#endif
25845#include <unistd.h>
25846int
25847main ()
25848{
25849ssize_t foo;
25850  ;
25851  return 0;
25852}
25853_ACEOF
25854rm -f conftest.$ac_objext
25855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25856  (eval $ac_compile) 2>conftest.er1
25857  ac_status=$?
25858  grep -v '^ *+' conftest.er1 >conftest.err
25859  rm -f conftest.er1
25860  cat conftest.err >&5
25861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862  (exit $ac_status); } &&
25863	 { ac_try='test -z "$ac_c_werror_flag"
25864			 || test ! -s conftest.err'
25865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866  (eval $ac_try) 2>&5
25867  ac_status=$?
25868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869  (exit $ac_status); }; } &&
25870	 { ac_try='test -s conftest.$ac_objext'
25871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872  (eval $ac_try) 2>&5
25873  ac_status=$?
25874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875  (exit $ac_status); }; }; then
25876  eval "ac_cv_type_$cv=yes"
25877else
25878  echo "$as_me: failed program was:" >&5
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
25881eval "ac_cv_type_$cv=no"
25882fi
25883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25884fi
25885ac_foo=`eval echo \\$ac_cv_type_$cv`
25886echo "$as_me:$LINENO: result: $ac_foo" >&5
25887echo "${ECHO_T}$ac_foo" >&6
25888if test "$ac_foo" = yes; then
25889  ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
25890if false; then
25891	echo "$as_me:$LINENO: checking for ssize_t" >&5
25892echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
25893if test "${ac_cv_type_ssize_t+set}" = set; then
25894  echo $ECHO_N "(cached) $ECHO_C" >&6
25895else
25896  cat >conftest.$ac_ext <<_ACEOF
25897/* confdefs.h.  */
25898_ACEOF
25899cat confdefs.h >>conftest.$ac_ext
25900cat >>conftest.$ac_ext <<_ACEOF
25901/* end confdefs.h.  */
25902$ac_includes_default
25903int
25904main ()
25905{
25906if ((ssize_t *) 0)
25907  return 0;
25908if (sizeof (ssize_t))
25909  return 0;
25910  ;
25911  return 0;
25912}
25913_ACEOF
25914rm -f conftest.$ac_objext
25915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25916  (eval $ac_compile) 2>conftest.er1
25917  ac_status=$?
25918  grep -v '^ *+' conftest.er1 >conftest.err
25919  rm -f conftest.er1
25920  cat conftest.err >&5
25921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922  (exit $ac_status); } &&
25923	 { ac_try='test -z "$ac_c_werror_flag"
25924			 || test ! -s conftest.err'
25925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25926  (eval $ac_try) 2>&5
25927  ac_status=$?
25928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929  (exit $ac_status); }; } &&
25930	 { ac_try='test -s conftest.$ac_objext'
25931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932  (eval $ac_try) 2>&5
25933  ac_status=$?
25934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935  (exit $ac_status); }; }; then
25936  ac_cv_type_ssize_t=yes
25937else
25938  echo "$as_me: failed program was:" >&5
25939sed 's/^/| /' conftest.$ac_ext >&5
25940
25941ac_cv_type_ssize_t=no
25942fi
25943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25944fi
25945echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25946echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
25947if test $ac_cv_type_ssize_t = yes; then
25948
25949cat >>confdefs.h <<_ACEOF
25950#define HAVE_SSIZE_T 1
25951_ACEOF
25952
25953
25954fi
25955
25956fi
25957
25958cat >>confdefs.h <<_ACEOF
25959#define $ac_tr_hdr 1
25960_ACEOF
25961
25962fi
25963
25964
25965
25966
25967
25968cv=`echo "long long" | sed 'y%./+- %__p__%'`
25969echo "$as_me:$LINENO: checking for long long" >&5
25970echo $ECHO_N "checking for long long... $ECHO_C" >&6
25971if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
25972  echo $ECHO_N "(cached) $ECHO_C" >&6
25973else
25974  cat >conftest.$ac_ext <<_ACEOF
25975/* confdefs.h.  */
25976_ACEOF
25977cat confdefs.h >>conftest.$ac_ext
25978cat >>conftest.$ac_ext <<_ACEOF
25979/* end confdefs.h.  */
25980#include <sys/types.h>
25981#if STDC_HEADERS
25982#include <stdlib.h>
25983#include <stddef.h>
25984#endif
25985
25986int
25987main ()
25988{
25989long long foo;
25990  ;
25991  return 0;
25992}
25993_ACEOF
25994rm -f conftest.$ac_objext
25995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25996  (eval $ac_compile) 2>conftest.er1
25997  ac_status=$?
25998  grep -v '^ *+' conftest.er1 >conftest.err
25999  rm -f conftest.er1
26000  cat conftest.err >&5
26001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002  (exit $ac_status); } &&
26003	 { ac_try='test -z "$ac_c_werror_flag"
26004			 || test ! -s conftest.err'
26005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006  (eval $ac_try) 2>&5
26007  ac_status=$?
26008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009  (exit $ac_status); }; } &&
26010	 { ac_try='test -s conftest.$ac_objext'
26011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012  (eval $ac_try) 2>&5
26013  ac_status=$?
26014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015  (exit $ac_status); }; }; then
26016  eval "ac_cv_type_$cv=yes"
26017else
26018  echo "$as_me: failed program was:" >&5
26019sed 's/^/| /' conftest.$ac_ext >&5
26020
26021eval "ac_cv_type_$cv=no"
26022fi
26023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26024fi
26025ac_foo=`eval echo \\$ac_cv_type_$cv`
26026echo "$as_me:$LINENO: result: $ac_foo" >&5
26027echo "${ECHO_T}$ac_foo" >&6
26028if test "$ac_foo" = yes; then
26029  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
26030if false; then
26031	echo "$as_me:$LINENO: checking for long long" >&5
26032echo $ECHO_N "checking for long long... $ECHO_C" >&6
26033if test "${ac_cv_type_long_long+set}" = set; then
26034  echo $ECHO_N "(cached) $ECHO_C" >&6
26035else
26036  cat >conftest.$ac_ext <<_ACEOF
26037/* confdefs.h.  */
26038_ACEOF
26039cat confdefs.h >>conftest.$ac_ext
26040cat >>conftest.$ac_ext <<_ACEOF
26041/* end confdefs.h.  */
26042$ac_includes_default
26043int
26044main ()
26045{
26046if ((long long *) 0)
26047  return 0;
26048if (sizeof (long long))
26049  return 0;
26050  ;
26051  return 0;
26052}
26053_ACEOF
26054rm -f conftest.$ac_objext
26055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26056  (eval $ac_compile) 2>conftest.er1
26057  ac_status=$?
26058  grep -v '^ *+' conftest.er1 >conftest.err
26059  rm -f conftest.er1
26060  cat conftest.err >&5
26061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062  (exit $ac_status); } &&
26063	 { ac_try='test -z "$ac_c_werror_flag"
26064			 || test ! -s conftest.err'
26065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26066  (eval $ac_try) 2>&5
26067  ac_status=$?
26068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069  (exit $ac_status); }; } &&
26070	 { ac_try='test -s conftest.$ac_objext'
26071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26072  (eval $ac_try) 2>&5
26073  ac_status=$?
26074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26075  (exit $ac_status); }; }; then
26076  ac_cv_type_long_long=yes
26077else
26078  echo "$as_me: failed program was:" >&5
26079sed 's/^/| /' conftest.$ac_ext >&5
26080
26081ac_cv_type_long_long=no
26082fi
26083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26084fi
26085echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
26086echo "${ECHO_T}$ac_cv_type_long_long" >&6
26087if test $ac_cv_type_long_long = yes; then
26088
26089cat >>confdefs.h <<_ACEOF
26090#define HAVE_LONG_LONG 1
26091_ACEOF
26092
26093
26094fi
26095
26096fi
26097
26098cat >>confdefs.h <<_ACEOF
26099#define $ac_tr_hdr 1
26100_ACEOF
26101
26102fi
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155for ac_header in \
26156	arpa/inet.h				\
26157	arpa/nameser.h				\
26158	config.h				\
26159	crypt.h					\
26160	dirent.h				\
26161	errno.h					\
26162	err.h					\
26163	fcntl.h					\
26164	grp.h					\
26165	ifaddrs.h				\
26166	net/if.h				\
26167	netdb.h					\
26168	netinet/in.h				\
26169	netinet/in6.h				\
26170	netinet/in_systm.h			\
26171	netinet6/in6.h				\
26172	netinet6/in6_var.h			\
26173	paths.h					\
26174	pwd.h					\
26175	resolv.h				\
26176	rpcsvc/ypclnt.h				\
26177	shadow.h				\
26178	sys/bswap.h				\
26179	sys/ioctl.h				\
26180	sys/mman.h				\
26181	sys/param.h				\
26182	sys/proc.h				\
26183	sys/resource.h				\
26184	sys/socket.h				\
26185	sys/sockio.h				\
26186	sys/stat.h				\
26187	sys/sysctl.h				\
26188	sys/time.h				\
26189	sys/tty.h				\
26190	sys/types.h				\
26191	sys/uio.h				\
26192	sys/utsname.h				\
26193	sys/wait.h				\
26194	syslog.h				\
26195	termios.h				\
26196	unistd.h				\
26197	userconf.h				\
26198	usersec.h				\
26199	util.h					\
26200	vis.h					\
26201
26202do
26203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26204if eval "test \"\${$as_ac_Header+set}\" = set"; then
26205  echo "$as_me:$LINENO: checking for $ac_header" >&5
26206echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26207if eval "test \"\${$as_ac_Header+set}\" = set"; then
26208  echo $ECHO_N "(cached) $ECHO_C" >&6
26209fi
26210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26212else
26213  # Is the header compilable?
26214echo "$as_me:$LINENO: checking $ac_header usability" >&5
26215echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26216cat >conftest.$ac_ext <<_ACEOF
26217/* confdefs.h.  */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h.  */
26222$ac_includes_default
26223#include <$ac_header>
26224_ACEOF
26225rm -f conftest.$ac_objext
26226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26227  (eval $ac_compile) 2>conftest.er1
26228  ac_status=$?
26229  grep -v '^ *+' conftest.er1 >conftest.err
26230  rm -f conftest.er1
26231  cat conftest.err >&5
26232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26233  (exit $ac_status); } &&
26234	 { ac_try='test -z "$ac_c_werror_flag"
26235			 || test ! -s conftest.err'
26236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237  (eval $ac_try) 2>&5
26238  ac_status=$?
26239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240  (exit $ac_status); }; } &&
26241	 { ac_try='test -s conftest.$ac_objext'
26242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26243  (eval $ac_try) 2>&5
26244  ac_status=$?
26245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246  (exit $ac_status); }; }; then
26247  ac_header_compiler=yes
26248else
26249  echo "$as_me: failed program was:" >&5
26250sed 's/^/| /' conftest.$ac_ext >&5
26251
26252ac_header_compiler=no
26253fi
26254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26255echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26256echo "${ECHO_T}$ac_header_compiler" >&6
26257
26258# Is the header present?
26259echo "$as_me:$LINENO: checking $ac_header presence" >&5
26260echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26261cat >conftest.$ac_ext <<_ACEOF
26262/* confdefs.h.  */
26263_ACEOF
26264cat confdefs.h >>conftest.$ac_ext
26265cat >>conftest.$ac_ext <<_ACEOF
26266/* end confdefs.h.  */
26267#include <$ac_header>
26268_ACEOF
26269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26271  ac_status=$?
26272  grep -v '^ *+' conftest.er1 >conftest.err
26273  rm -f conftest.er1
26274  cat conftest.err >&5
26275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276  (exit $ac_status); } >/dev/null; then
26277  if test -s conftest.err; then
26278    ac_cpp_err=$ac_c_preproc_warn_flag
26279    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26280  else
26281    ac_cpp_err=
26282  fi
26283else
26284  ac_cpp_err=yes
26285fi
26286if test -z "$ac_cpp_err"; then
26287  ac_header_preproc=yes
26288else
26289  echo "$as_me: failed program was:" >&5
26290sed 's/^/| /' conftest.$ac_ext >&5
26291
26292  ac_header_preproc=no
26293fi
26294rm -f conftest.err conftest.$ac_ext
26295echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26296echo "${ECHO_T}$ac_header_preproc" >&6
26297
26298# So?  What about this header?
26299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26300  yes:no: )
26301    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26302echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26303    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26304echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26305    ac_header_preproc=yes
26306    ;;
26307  no:yes:* )
26308    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26309echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26310    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26311echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26312    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26313echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26314    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26315echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26316    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26317echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26318    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26319echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26320    (
26321      cat <<\_ASBOX
26322## -------------------------------------- ##
26323## Report this to heimdal-bugs@pdc.kth.se ##
26324## -------------------------------------- ##
26325_ASBOX
26326    ) |
26327      sed "s/^/$as_me: WARNING:     /" >&2
26328    ;;
26329esac
26330echo "$as_me:$LINENO: checking for $ac_header" >&5
26331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26332if eval "test \"\${$as_ac_Header+set}\" = set"; then
26333  echo $ECHO_N "(cached) $ECHO_C" >&6
26334else
26335  eval "$as_ac_Header=\$ac_header_preproc"
26336fi
26337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26339
26340fi
26341if test `eval echo '${'$as_ac_Header'}'` = yes; then
26342  cat >>confdefs.h <<_ACEOF
26343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26344_ACEOF
26345
26346fi
26347
26348done
26349
26350
26351
26352
26353
26354
26355if test "$ac_cv_header_err_h" = yes; then
26356  have_err_h_TRUE=
26357  have_err_h_FALSE='#'
26358else
26359  have_err_h_TRUE='#'
26360  have_err_h_FALSE=
26361fi
26362
26363
26364
26365if test "$ac_cv_header_fnmatch_h" = yes; then
26366  have_fnmatch_h_TRUE=
26367  have_fnmatch_h_FALSE='#'
26368else
26369  have_fnmatch_h_TRUE='#'
26370  have_fnmatch_h_FALSE=
26371fi
26372
26373
26374
26375if test "$ac_cv_header_ifaddrs_h" = yes; then
26376  have_ifaddrs_h_TRUE=
26377  have_ifaddrs_h_FALSE='#'
26378else
26379  have_ifaddrs_h_TRUE='#'
26380  have_ifaddrs_h_FALSE=
26381fi
26382
26383
26384
26385if test "$ac_cv_header_vis_h" = yes; then
26386  have_vis_h_TRUE=
26387  have_vis_h_FALSE='#'
26388else
26389  have_vis_h_TRUE='#'
26390  have_vis_h_FALSE=
26391fi
26392
26393
26394
26395
26396
26397
26398
26399echo "$as_me:$LINENO: checking for socket" >&5
26400echo $ECHO_N "checking for socket... $ECHO_C" >&6
26401if test "${ac_cv_funclib_socket+set}" = set; then
26402  echo $ECHO_N "(cached) $ECHO_C" >&6
26403else
26404
26405if eval "test \"\$ac_cv_func_socket\" != yes" ; then
26406	ac_save_LIBS="$LIBS"
26407	for ac_lib in "" socket; do
26408		case "$ac_lib" in
26409		"") ;;
26410		yes) ac_lib="" ;;
26411		no) continue ;;
26412		-l*) ;;
26413		*) ac_lib="-l$ac_lib" ;;
26414		esac
26415		LIBS=" $ac_lib  $ac_save_LIBS"
26416		cat >conftest.$ac_ext <<_ACEOF
26417/* confdefs.h.  */
26418_ACEOF
26419cat confdefs.h >>conftest.$ac_ext
26420cat >>conftest.$ac_ext <<_ACEOF
26421/* end confdefs.h.  */
26422
26423int
26424main ()
26425{
26426socket()
26427  ;
26428  return 0;
26429}
26430_ACEOF
26431rm -f conftest.$ac_objext conftest$ac_exeext
26432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26433  (eval $ac_link) 2>conftest.er1
26434  ac_status=$?
26435  grep -v '^ *+' conftest.er1 >conftest.err
26436  rm -f conftest.er1
26437  cat conftest.err >&5
26438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439  (exit $ac_status); } &&
26440	 { ac_try='test -z "$ac_c_werror_flag"
26441			 || test ! -s conftest.err'
26442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26443  (eval $ac_try) 2>&5
26444  ac_status=$?
26445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446  (exit $ac_status); }; } &&
26447	 { ac_try='test -s conftest$ac_exeext'
26448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449  (eval $ac_try) 2>&5
26450  ac_status=$?
26451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452  (exit $ac_status); }; }; then
26453  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
26454else
26455  echo "$as_me: failed program was:" >&5
26456sed 's/^/| /' conftest.$ac_ext >&5
26457
26458fi
26459rm -f conftest.err conftest.$ac_objext \
26460      conftest$ac_exeext conftest.$ac_ext
26461	done
26462	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
26463	LIBS="$ac_save_LIBS"
26464fi
26465
26466fi
26467
26468
26469eval "ac_res=\$ac_cv_funclib_socket"
26470
26471if false; then
26472
26473for ac_func in socket
26474do
26475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26476echo "$as_me:$LINENO: checking for $ac_func" >&5
26477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26478if eval "test \"\${$as_ac_var+set}\" = set"; then
26479  echo $ECHO_N "(cached) $ECHO_C" >&6
26480else
26481  cat >conftest.$ac_ext <<_ACEOF
26482/* confdefs.h.  */
26483_ACEOF
26484cat confdefs.h >>conftest.$ac_ext
26485cat >>conftest.$ac_ext <<_ACEOF
26486/* end confdefs.h.  */
26487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26489#define $ac_func innocuous_$ac_func
26490
26491/* System header to define __stub macros and hopefully few prototypes,
26492    which can conflict with char $ac_func (); below.
26493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26494    <limits.h> exists even on freestanding compilers.  */
26495
26496#ifdef __STDC__
26497# include <limits.h>
26498#else
26499# include <assert.h>
26500#endif
26501
26502#undef $ac_func
26503
26504/* Override any gcc2 internal prototype to avoid an error.  */
26505#ifdef __cplusplus
26506extern "C"
26507{
26508#endif
26509/* We use char because int might match the return type of a gcc2
26510   builtin and then its argument prototype would still apply.  */
26511char $ac_func ();
26512/* The GNU C library defines this for functions which it implements
26513    to always fail with ENOSYS.  Some functions are actually named
26514    something starting with __ and the normal name is an alias.  */
26515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26516choke me
26517#else
26518char (*f) () = $ac_func;
26519#endif
26520#ifdef __cplusplus
26521}
26522#endif
26523
26524int
26525main ()
26526{
26527return f != $ac_func;
26528  ;
26529  return 0;
26530}
26531_ACEOF
26532rm -f conftest.$ac_objext conftest$ac_exeext
26533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26534  (eval $ac_link) 2>conftest.er1
26535  ac_status=$?
26536  grep -v '^ *+' conftest.er1 >conftest.err
26537  rm -f conftest.er1
26538  cat conftest.err >&5
26539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540  (exit $ac_status); } &&
26541	 { ac_try='test -z "$ac_c_werror_flag"
26542			 || test ! -s conftest.err'
26543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544  (eval $ac_try) 2>&5
26545  ac_status=$?
26546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547  (exit $ac_status); }; } &&
26548	 { ac_try='test -s conftest$ac_exeext'
26549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26550  (eval $ac_try) 2>&5
26551  ac_status=$?
26552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553  (exit $ac_status); }; }; then
26554  eval "$as_ac_var=yes"
26555else
26556  echo "$as_me: failed program was:" >&5
26557sed 's/^/| /' conftest.$ac_ext >&5
26558
26559eval "$as_ac_var=no"
26560fi
26561rm -f conftest.err conftest.$ac_objext \
26562      conftest$ac_exeext conftest.$ac_ext
26563fi
26564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26566if test `eval echo '${'$as_ac_var'}'` = yes; then
26567  cat >>confdefs.h <<_ACEOF
26568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26569_ACEOF
26570
26571fi
26572done
26573
26574fi
26575# socket
26576eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26577eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26578eval "LIB_socket=$ac_res"
26579
26580case "$ac_res" in
26581	yes)
26582	eval "ac_cv_func_socket=yes"
26583	eval "LIB_socket="
26584	cat >>confdefs.h <<_ACEOF
26585#define $ac_tr_func 1
26586_ACEOF
26587
26588	echo "$as_me:$LINENO: result: yes" >&5
26589echo "${ECHO_T}yes" >&6
26590	;;
26591	no)
26592	eval "ac_cv_func_socket=no"
26593	eval "LIB_socket="
26594	echo "$as_me:$LINENO: result: no" >&5
26595echo "${ECHO_T}no" >&6
26596	;;
26597	*)
26598	eval "ac_cv_func_socket=yes"
26599	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26600	cat >>confdefs.h <<_ACEOF
26601#define $ac_tr_func 1
26602_ACEOF
26603
26604	cat >>confdefs.h <<_ACEOF
26605#define $ac_tr_lib 1
26606_ACEOF
26607
26608	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26609echo "${ECHO_T}yes, in $ac_res" >&6
26610	;;
26611esac
26612
26613
26614if test -n "$LIB_socket"; then
26615	LIBS="$LIB_socket $LIBS"
26616fi
26617
26618
26619
26620
26621
26622echo "$as_me:$LINENO: checking for gethostbyname" >&5
26623echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26624if test "${ac_cv_funclib_gethostbyname+set}" = set; then
26625  echo $ECHO_N "(cached) $ECHO_C" >&6
26626else
26627
26628if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then
26629	ac_save_LIBS="$LIBS"
26630	for ac_lib in "" nsl; do
26631		case "$ac_lib" in
26632		"") ;;
26633		yes) ac_lib="" ;;
26634		no) continue ;;
26635		-l*) ;;
26636		*) ac_lib="-l$ac_lib" ;;
26637		esac
26638		LIBS=" $ac_lib  $ac_save_LIBS"
26639		cat >conftest.$ac_ext <<_ACEOF
26640/* confdefs.h.  */
26641_ACEOF
26642cat confdefs.h >>conftest.$ac_ext
26643cat >>conftest.$ac_ext <<_ACEOF
26644/* end confdefs.h.  */
26645
26646int
26647main ()
26648{
26649gethostbyname()
26650  ;
26651  return 0;
26652}
26653_ACEOF
26654rm -f conftest.$ac_objext conftest$ac_exeext
26655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26656  (eval $ac_link) 2>conftest.er1
26657  ac_status=$?
26658  grep -v '^ *+' conftest.er1 >conftest.err
26659  rm -f conftest.er1
26660  cat conftest.err >&5
26661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662  (exit $ac_status); } &&
26663	 { ac_try='test -z "$ac_c_werror_flag"
26664			 || test ! -s conftest.err'
26665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26666  (eval $ac_try) 2>&5
26667  ac_status=$?
26668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669  (exit $ac_status); }; } &&
26670	 { ac_try='test -s conftest$ac_exeext'
26671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672  (eval $ac_try) 2>&5
26673  ac_status=$?
26674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675  (exit $ac_status); }; }; then
26676  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
26677else
26678  echo "$as_me: failed program was:" >&5
26679sed 's/^/| /' conftest.$ac_ext >&5
26680
26681fi
26682rm -f conftest.err conftest.$ac_objext \
26683      conftest$ac_exeext conftest.$ac_ext
26684	done
26685	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
26686	LIBS="$ac_save_LIBS"
26687fi
26688
26689fi
26690
26691
26692eval "ac_res=\$ac_cv_funclib_gethostbyname"
26693
26694if false; then
26695
26696for ac_func in gethostbyname
26697do
26698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26699echo "$as_me:$LINENO: checking for $ac_func" >&5
26700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26701if eval "test \"\${$as_ac_var+set}\" = set"; then
26702  echo $ECHO_N "(cached) $ECHO_C" >&6
26703else
26704  cat >conftest.$ac_ext <<_ACEOF
26705/* confdefs.h.  */
26706_ACEOF
26707cat confdefs.h >>conftest.$ac_ext
26708cat >>conftest.$ac_ext <<_ACEOF
26709/* end confdefs.h.  */
26710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26712#define $ac_func innocuous_$ac_func
26713
26714/* System header to define __stub macros and hopefully few prototypes,
26715    which can conflict with char $ac_func (); below.
26716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26717    <limits.h> exists even on freestanding compilers.  */
26718
26719#ifdef __STDC__
26720# include <limits.h>
26721#else
26722# include <assert.h>
26723#endif
26724
26725#undef $ac_func
26726
26727/* Override any gcc2 internal prototype to avoid an error.  */
26728#ifdef __cplusplus
26729extern "C"
26730{
26731#endif
26732/* We use char because int might match the return type of a gcc2
26733   builtin and then its argument prototype would still apply.  */
26734char $ac_func ();
26735/* The GNU C library defines this for functions which it implements
26736    to always fail with ENOSYS.  Some functions are actually named
26737    something starting with __ and the normal name is an alias.  */
26738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26739choke me
26740#else
26741char (*f) () = $ac_func;
26742#endif
26743#ifdef __cplusplus
26744}
26745#endif
26746
26747int
26748main ()
26749{
26750return f != $ac_func;
26751  ;
26752  return 0;
26753}
26754_ACEOF
26755rm -f conftest.$ac_objext conftest$ac_exeext
26756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26757  (eval $ac_link) 2>conftest.er1
26758  ac_status=$?
26759  grep -v '^ *+' conftest.er1 >conftest.err
26760  rm -f conftest.er1
26761  cat conftest.err >&5
26762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763  (exit $ac_status); } &&
26764	 { ac_try='test -z "$ac_c_werror_flag"
26765			 || test ! -s conftest.err'
26766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767  (eval $ac_try) 2>&5
26768  ac_status=$?
26769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770  (exit $ac_status); }; } &&
26771	 { ac_try='test -s conftest$ac_exeext'
26772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26773  (eval $ac_try) 2>&5
26774  ac_status=$?
26775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776  (exit $ac_status); }; }; then
26777  eval "$as_ac_var=yes"
26778else
26779  echo "$as_me: failed program was:" >&5
26780sed 's/^/| /' conftest.$ac_ext >&5
26781
26782eval "$as_ac_var=no"
26783fi
26784rm -f conftest.err conftest.$ac_objext \
26785      conftest$ac_exeext conftest.$ac_ext
26786fi
26787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26788echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26789if test `eval echo '${'$as_ac_var'}'` = yes; then
26790  cat >>confdefs.h <<_ACEOF
26791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26792_ACEOF
26793
26794fi
26795done
26796
26797fi
26798# gethostbyname
26799eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26800eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
26801eval "LIB_gethostbyname=$ac_res"
26802
26803case "$ac_res" in
26804	yes)
26805	eval "ac_cv_func_gethostbyname=yes"
26806	eval "LIB_gethostbyname="
26807	cat >>confdefs.h <<_ACEOF
26808#define $ac_tr_func 1
26809_ACEOF
26810
26811	echo "$as_me:$LINENO: result: yes" >&5
26812echo "${ECHO_T}yes" >&6
26813	;;
26814	no)
26815	eval "ac_cv_func_gethostbyname=no"
26816	eval "LIB_gethostbyname="
26817	echo "$as_me:$LINENO: result: no" >&5
26818echo "${ECHO_T}no" >&6
26819	;;
26820	*)
26821	eval "ac_cv_func_gethostbyname=yes"
26822	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
26823	cat >>confdefs.h <<_ACEOF
26824#define $ac_tr_func 1
26825_ACEOF
26826
26827	cat >>confdefs.h <<_ACEOF
26828#define $ac_tr_lib 1
26829_ACEOF
26830
26831	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
26832echo "${ECHO_T}yes, in $ac_res" >&6
26833	;;
26834esac
26835
26836
26837if test -n "$LIB_gethostbyname"; then
26838	LIBS="$LIB_gethostbyname $LIBS"
26839fi
26840
26841
26842
26843
26844
26845echo "$as_me:$LINENO: checking for syslog" >&5
26846echo $ECHO_N "checking for syslog... $ECHO_C" >&6
26847if test "${ac_cv_funclib_syslog+set}" = set; then
26848  echo $ECHO_N "(cached) $ECHO_C" >&6
26849else
26850
26851if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
26852	ac_save_LIBS="$LIBS"
26853	for ac_lib in "" syslog; do
26854		case "$ac_lib" in
26855		"") ;;
26856		yes) ac_lib="" ;;
26857		no) continue ;;
26858		-l*) ;;
26859		*) ac_lib="-l$ac_lib" ;;
26860		esac
26861		LIBS=" $ac_lib  $ac_save_LIBS"
26862		cat >conftest.$ac_ext <<_ACEOF
26863/* confdefs.h.  */
26864_ACEOF
26865cat confdefs.h >>conftest.$ac_ext
26866cat >>conftest.$ac_ext <<_ACEOF
26867/* end confdefs.h.  */
26868
26869int
26870main ()
26871{
26872syslog()
26873  ;
26874  return 0;
26875}
26876_ACEOF
26877rm -f conftest.$ac_objext conftest$ac_exeext
26878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26879  (eval $ac_link) 2>conftest.er1
26880  ac_status=$?
26881  grep -v '^ *+' conftest.er1 >conftest.err
26882  rm -f conftest.er1
26883  cat conftest.err >&5
26884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885  (exit $ac_status); } &&
26886	 { ac_try='test -z "$ac_c_werror_flag"
26887			 || test ! -s conftest.err'
26888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26889  (eval $ac_try) 2>&5
26890  ac_status=$?
26891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26892  (exit $ac_status); }; } &&
26893	 { ac_try='test -s conftest$ac_exeext'
26894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895  (eval $ac_try) 2>&5
26896  ac_status=$?
26897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898  (exit $ac_status); }; }; then
26899  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
26900else
26901  echo "$as_me: failed program was:" >&5
26902sed 's/^/| /' conftest.$ac_ext >&5
26903
26904fi
26905rm -f conftest.err conftest.$ac_objext \
26906      conftest$ac_exeext conftest.$ac_ext
26907	done
26908	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
26909	LIBS="$ac_save_LIBS"
26910fi
26911
26912fi
26913
26914
26915eval "ac_res=\$ac_cv_funclib_syslog"
26916
26917if false; then
26918
26919for ac_func in syslog
26920do
26921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26922echo "$as_me:$LINENO: checking for $ac_func" >&5
26923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26924if eval "test \"\${$as_ac_var+set}\" = set"; then
26925  echo $ECHO_N "(cached) $ECHO_C" >&6
26926else
26927  cat >conftest.$ac_ext <<_ACEOF
26928/* confdefs.h.  */
26929_ACEOF
26930cat confdefs.h >>conftest.$ac_ext
26931cat >>conftest.$ac_ext <<_ACEOF
26932/* end confdefs.h.  */
26933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26935#define $ac_func innocuous_$ac_func
26936
26937/* System header to define __stub macros and hopefully few prototypes,
26938    which can conflict with char $ac_func (); below.
26939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26940    <limits.h> exists even on freestanding compilers.  */
26941
26942#ifdef __STDC__
26943# include <limits.h>
26944#else
26945# include <assert.h>
26946#endif
26947
26948#undef $ac_func
26949
26950/* Override any gcc2 internal prototype to avoid an error.  */
26951#ifdef __cplusplus
26952extern "C"
26953{
26954#endif
26955/* We use char because int might match the return type of a gcc2
26956   builtin and then its argument prototype would still apply.  */
26957char $ac_func ();
26958/* The GNU C library defines this for functions which it implements
26959    to always fail with ENOSYS.  Some functions are actually named
26960    something starting with __ and the normal name is an alias.  */
26961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26962choke me
26963#else
26964char (*f) () = $ac_func;
26965#endif
26966#ifdef __cplusplus
26967}
26968#endif
26969
26970int
26971main ()
26972{
26973return f != $ac_func;
26974  ;
26975  return 0;
26976}
26977_ACEOF
26978rm -f conftest.$ac_objext conftest$ac_exeext
26979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26980  (eval $ac_link) 2>conftest.er1
26981  ac_status=$?
26982  grep -v '^ *+' conftest.er1 >conftest.err
26983  rm -f conftest.er1
26984  cat conftest.err >&5
26985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986  (exit $ac_status); } &&
26987	 { ac_try='test -z "$ac_c_werror_flag"
26988			 || test ! -s conftest.err'
26989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990  (eval $ac_try) 2>&5
26991  ac_status=$?
26992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993  (exit $ac_status); }; } &&
26994	 { ac_try='test -s conftest$ac_exeext'
26995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26996  (eval $ac_try) 2>&5
26997  ac_status=$?
26998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999  (exit $ac_status); }; }; then
27000  eval "$as_ac_var=yes"
27001else
27002  echo "$as_me: failed program was:" >&5
27003sed 's/^/| /' conftest.$ac_ext >&5
27004
27005eval "$as_ac_var=no"
27006fi
27007rm -f conftest.err conftest.$ac_objext \
27008      conftest$ac_exeext conftest.$ac_ext
27009fi
27010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27011echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27012if test `eval echo '${'$as_ac_var'}'` = yes; then
27013  cat >>confdefs.h <<_ACEOF
27014#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27015_ACEOF
27016
27017fi
27018done
27019
27020fi
27021# syslog
27022eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27023eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27024eval "LIB_syslog=$ac_res"
27025
27026case "$ac_res" in
27027	yes)
27028	eval "ac_cv_func_syslog=yes"
27029	eval "LIB_syslog="
27030	cat >>confdefs.h <<_ACEOF
27031#define $ac_tr_func 1
27032_ACEOF
27033
27034	echo "$as_me:$LINENO: result: yes" >&5
27035echo "${ECHO_T}yes" >&6
27036	;;
27037	no)
27038	eval "ac_cv_func_syslog=no"
27039	eval "LIB_syslog="
27040	echo "$as_me:$LINENO: result: no" >&5
27041echo "${ECHO_T}no" >&6
27042	;;
27043	*)
27044	eval "ac_cv_func_syslog=yes"
27045	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27046	cat >>confdefs.h <<_ACEOF
27047#define $ac_tr_func 1
27048_ACEOF
27049
27050	cat >>confdefs.h <<_ACEOF
27051#define $ac_tr_lib 1
27052_ACEOF
27053
27054	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27055echo "${ECHO_T}yes, in $ac_res" >&6
27056	;;
27057esac
27058
27059
27060if test -n "$LIB_syslog"; then
27061	LIBS="$LIB_syslog $LIBS"
27062fi
27063
27064
27065
27066
27067# Check whether --with-ipv6 or --without-ipv6 was given.
27068if test "${with_ipv6+set}" = set; then
27069  withval="$with_ipv6"
27070
27071if test "$withval" = "no"; then
27072	ac_cv_lib_ipv6=no
27073fi
27074fi;
27075save_CFLAGS="${CFLAGS}"
27076echo "$as_me:$LINENO: checking for IPv6 stack type" >&5
27077echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6
27078if test "${v6type+set}" = set; then
27079  echo $ECHO_N "(cached) $ECHO_C" >&6
27080else
27081  v6type=unknown
27082v6lib=none
27083
27084for i in v6d toshiba kame inria zeta linux; do
27085	case $i in
27086	v6d)
27087		cat >conftest.$ac_ext <<_ACEOF
27088/* confdefs.h.  */
27089_ACEOF
27090cat confdefs.h >>conftest.$ac_ext
27091cat >>conftest.$ac_ext <<_ACEOF
27092/* end confdefs.h.  */
27093
27094#include </usr/local/v6/include/sys/types.h>
27095#ifdef __V6D__
27096yes
27097#endif
27098_ACEOF
27099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27100  $EGREP "yes" >/dev/null 2>&1; then
27101  v6type=$i; v6lib=v6;
27102			v6libdir=/usr/local/v6/lib;
27103			CFLAGS="-I/usr/local/v6/include $CFLAGS"
27104fi
27105rm -f conftest*
27106
27107		;;
27108	toshiba)
27109		cat >conftest.$ac_ext <<_ACEOF
27110/* confdefs.h.  */
27111_ACEOF
27112cat confdefs.h >>conftest.$ac_ext
27113cat >>conftest.$ac_ext <<_ACEOF
27114/* end confdefs.h.  */
27115
27116#include <sys/param.h>
27117#ifdef _TOSHIBA_INET6
27118yes
27119#endif
27120_ACEOF
27121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27122  $EGREP "yes" >/dev/null 2>&1; then
27123  v6type=$i; v6lib=inet6;
27124			v6libdir=/usr/local/v6/lib;
27125			CFLAGS="-DINET6 $CFLAGS"
27126fi
27127rm -f conftest*
27128
27129		;;
27130	kame)
27131		cat >conftest.$ac_ext <<_ACEOF
27132/* confdefs.h.  */
27133_ACEOF
27134cat confdefs.h >>conftest.$ac_ext
27135cat >>conftest.$ac_ext <<_ACEOF
27136/* end confdefs.h.  */
27137
27138#include <netinet/in.h>
27139#ifdef __KAME__
27140yes
27141#endif
27142_ACEOF
27143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27144  $EGREP "yes" >/dev/null 2>&1; then
27145  v6type=$i; v6lib=inet6;
27146			v6libdir=/usr/local/v6/lib;
27147			CFLAGS="-DINET6 $CFLAGS"
27148fi
27149rm -f conftest*
27150
27151		;;
27152	inria)
27153		cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h.  */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h.  */
27159
27160#include <netinet/in.h>
27161#ifdef IPV6_INRIA_VERSION
27162yes
27163#endif
27164_ACEOF
27165if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27166  $EGREP "yes" >/dev/null 2>&1; then
27167  v6type=$i; CFLAGS="-DINET6 $CFLAGS"
27168fi
27169rm -f conftest*
27170
27171		;;
27172	zeta)
27173		cat >conftest.$ac_ext <<_ACEOF
27174/* confdefs.h.  */
27175_ACEOF
27176cat confdefs.h >>conftest.$ac_ext
27177cat >>conftest.$ac_ext <<_ACEOF
27178/* end confdefs.h.  */
27179
27180#include <sys/param.h>
27181#ifdef _ZETA_MINAMI_INET6
27182yes
27183#endif
27184_ACEOF
27185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27186  $EGREP "yes" >/dev/null 2>&1; then
27187  v6type=$i; v6lib=inet6;
27188			v6libdir=/usr/local/v6/lib;
27189			CFLAGS="-DINET6 $CFLAGS"
27190fi
27191rm -f conftest*
27192
27193		;;
27194	linux)
27195		if test -d /usr/inet6; then
27196			v6type=$i
27197			v6lib=inet6
27198			v6libdir=/usr/inet6
27199			CFLAGS="-DINET6 $CFLAGS"
27200		fi
27201		;;
27202	esac
27203	if test "$v6type" != "unknown"; then
27204		break
27205	fi
27206done
27207
27208if test "$v6lib" != "none"; then
27209	for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do
27210		if test -d $dir -a -f $dir/lib$v6lib.a; then
27211			LIBS="-L$dir -l$v6lib $LIBS"
27212			break
27213		fi
27214	done
27215fi
27216
27217fi
27218echo "$as_me:$LINENO: result: $v6type" >&5
27219echo "${ECHO_T}$v6type" >&6
27220
27221echo "$as_me:$LINENO: checking for IPv6" >&5
27222echo $ECHO_N "checking for IPv6... $ECHO_C" >&6
27223if test "${ac_cv_lib_ipv6+set}" = set; then
27224  echo $ECHO_N "(cached) $ECHO_C" >&6
27225else
27226
27227cat >conftest.$ac_ext <<_ACEOF
27228/* confdefs.h.  */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h.  */
27233
27234#ifdef HAVE_SYS_TYPES_H
27235#include <sys/types.h>
27236#endif
27237#ifdef HAVE_SYS_SOCKET_H
27238#include <sys/socket.h>
27239#endif
27240#ifdef HAVE_NETINET_IN_H
27241#include <netinet/in.h>
27242#endif
27243#ifdef HAVE_NETINET_IN6_H
27244#include <netinet/in6.h>
27245#endif
27246
27247int
27248main ()
27249{
27250
27251 struct sockaddr_in6 sin6;
27252 int s;
27253
27254 s = socket(AF_INET6, SOCK_DGRAM, 0);
27255
27256 sin6.sin6_family = AF_INET6;
27257 sin6.sin6_port = htons(17);
27258 sin6.sin6_addr = in6addr_any;
27259 bind(s, (struct sockaddr *)&sin6, sizeof(sin6));
27260
27261  ;
27262  return 0;
27263}
27264_ACEOF
27265rm -f conftest.$ac_objext conftest$ac_exeext
27266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27267  (eval $ac_link) 2>conftest.er1
27268  ac_status=$?
27269  grep -v '^ *+' conftest.er1 >conftest.err
27270  rm -f conftest.er1
27271  cat conftest.err >&5
27272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27273  (exit $ac_status); } &&
27274	 { ac_try='test -z "$ac_c_werror_flag"
27275			 || test ! -s conftest.err'
27276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27277  (eval $ac_try) 2>&5
27278  ac_status=$?
27279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280  (exit $ac_status); }; } &&
27281	 { ac_try='test -s conftest$ac_exeext'
27282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27283  (eval $ac_try) 2>&5
27284  ac_status=$?
27285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286  (exit $ac_status); }; }; then
27287  ac_cv_lib_ipv6=yes
27288else
27289  echo "$as_me: failed program was:" >&5
27290sed 's/^/| /' conftest.$ac_ext >&5
27291
27292ac_cv_lib_ipv6=no
27293fi
27294rm -f conftest.err conftest.$ac_objext \
27295      conftest$ac_exeext conftest.$ac_ext
27296fi
27297echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5
27298echo "${ECHO_T}$ac_cv_lib_ipv6" >&6
27299if test "$ac_cv_lib_ipv6" = yes; then
27300
27301cat >>confdefs.h <<\_ACEOF
27302#define HAVE_IPV6 1
27303_ACEOF
27304
27305else
27306  CFLAGS="${save_CFLAGS}"
27307fi
27308
27309if test "$ac_cv_lib_ipv6" = yes; then
27310	echo "$as_me:$LINENO: checking for in6addr_loopback" >&5
27311echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6
27312if test "${ac_cv_var_in6addr_loopback+set}" = set; then
27313  echo $ECHO_N "(cached) $ECHO_C" >&6
27314else
27315
27316	cat >conftest.$ac_ext <<_ACEOF
27317/* confdefs.h.  */
27318_ACEOF
27319cat confdefs.h >>conftest.$ac_ext
27320cat >>conftest.$ac_ext <<_ACEOF
27321/* end confdefs.h.  */
27322
27323#ifdef HAVE_SYS_TYPES_H
27324#include <sys/types.h>
27325#endif
27326#ifdef HAVE_SYS_SOCKET_H
27327#include <sys/socket.h>
27328#endif
27329#ifdef HAVE_NETINET_IN_H
27330#include <netinet/in.h>
27331#endif
27332#ifdef HAVE_NETINET_IN6_H
27333#include <netinet/in6.h>
27334#endif
27335int
27336main ()
27337{
27338
27339struct sockaddr_in6 sin6;
27340sin6.sin6_addr = in6addr_loopback;
27341
27342  ;
27343  return 0;
27344}
27345_ACEOF
27346rm -f conftest.$ac_objext conftest$ac_exeext
27347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27348  (eval $ac_link) 2>conftest.er1
27349  ac_status=$?
27350  grep -v '^ *+' conftest.er1 >conftest.err
27351  rm -f conftest.er1
27352  cat conftest.err >&5
27353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354  (exit $ac_status); } &&
27355	 { ac_try='test -z "$ac_c_werror_flag"
27356			 || test ! -s conftest.err'
27357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358  (eval $ac_try) 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  ac_cv_var_in6addr_loopback=yes
27369else
27370  echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
27373ac_cv_var_in6addr_loopback=no
27374fi
27375rm -f conftest.err conftest.$ac_objext \
27376      conftest$ac_exeext conftest.$ac_ext
27377fi
27378echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5
27379echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6
27380	if test "$ac_cv_var_in6addr_loopback" = yes; then
27381
27382cat >>confdefs.h <<\_ACEOF
27383#define HAVE_IN6ADDR_LOOPBACK 1
27384_ACEOF
27385
27386	fi
27387fi
27388
27389
27390
27391
27392
27393
27394echo "$as_me:$LINENO: checking for gethostbyname2" >&5
27395echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6
27396if test "${ac_cv_funclib_gethostbyname2+set}" = set; then
27397  echo $ECHO_N "(cached) $ECHO_C" >&6
27398else
27399
27400if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then
27401	ac_save_LIBS="$LIBS"
27402	for ac_lib in "" inet6 ip6; do
27403		case "$ac_lib" in
27404		"") ;;
27405		yes) ac_lib="" ;;
27406		no) continue ;;
27407		-l*) ;;
27408		*) ac_lib="-l$ac_lib" ;;
27409		esac
27410		LIBS=" $ac_lib  $ac_save_LIBS"
27411		cat >conftest.$ac_ext <<_ACEOF
27412/* confdefs.h.  */
27413_ACEOF
27414cat confdefs.h >>conftest.$ac_ext
27415cat >>conftest.$ac_ext <<_ACEOF
27416/* end confdefs.h.  */
27417
27418int
27419main ()
27420{
27421gethostbyname2()
27422  ;
27423  return 0;
27424}
27425_ACEOF
27426rm -f conftest.$ac_objext conftest$ac_exeext
27427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27428  (eval $ac_link) 2>conftest.er1
27429  ac_status=$?
27430  grep -v '^ *+' conftest.er1 >conftest.err
27431  rm -f conftest.er1
27432  cat conftest.err >&5
27433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434  (exit $ac_status); } &&
27435	 { ac_try='test -z "$ac_c_werror_flag"
27436			 || test ! -s conftest.err'
27437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438  (eval $ac_try) 2>&5
27439  ac_status=$?
27440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441  (exit $ac_status); }; } &&
27442	 { ac_try='test -s conftest$ac_exeext'
27443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444  (eval $ac_try) 2>&5
27445  ac_status=$?
27446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447  (exit $ac_status); }; }; then
27448  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break
27449else
27450  echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
27453fi
27454rm -f conftest.err conftest.$ac_objext \
27455      conftest$ac_exeext conftest.$ac_ext
27456	done
27457	eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}"
27458	LIBS="$ac_save_LIBS"
27459fi
27460
27461fi
27462
27463
27464eval "ac_res=\$ac_cv_funclib_gethostbyname2"
27465
27466if false; then
27467
27468for ac_func in gethostbyname2
27469do
27470as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27471echo "$as_me:$LINENO: checking for $ac_func" >&5
27472echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27473if eval "test \"\${$as_ac_var+set}\" = set"; then
27474  echo $ECHO_N "(cached) $ECHO_C" >&6
27475else
27476  cat >conftest.$ac_ext <<_ACEOF
27477/* confdefs.h.  */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h.  */
27482/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27484#define $ac_func innocuous_$ac_func
27485
27486/* System header to define __stub macros and hopefully few prototypes,
27487    which can conflict with char $ac_func (); below.
27488    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489    <limits.h> exists even on freestanding compilers.  */
27490
27491#ifdef __STDC__
27492# include <limits.h>
27493#else
27494# include <assert.h>
27495#endif
27496
27497#undef $ac_func
27498
27499/* Override any gcc2 internal prototype to avoid an error.  */
27500#ifdef __cplusplus
27501extern "C"
27502{
27503#endif
27504/* We use char because int might match the return type of a gcc2
27505   builtin and then its argument prototype would still apply.  */
27506char $ac_func ();
27507/* The GNU C library defines this for functions which it implements
27508    to always fail with ENOSYS.  Some functions are actually named
27509    something starting with __ and the normal name is an alias.  */
27510#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27511choke me
27512#else
27513char (*f) () = $ac_func;
27514#endif
27515#ifdef __cplusplus
27516}
27517#endif
27518
27519int
27520main ()
27521{
27522return f != $ac_func;
27523  ;
27524  return 0;
27525}
27526_ACEOF
27527rm -f conftest.$ac_objext conftest$ac_exeext
27528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529  (eval $ac_link) 2>conftest.er1
27530  ac_status=$?
27531  grep -v '^ *+' conftest.er1 >conftest.err
27532  rm -f conftest.er1
27533  cat conftest.err >&5
27534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535  (exit $ac_status); } &&
27536	 { ac_try='test -z "$ac_c_werror_flag"
27537			 || test ! -s conftest.err'
27538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539  (eval $ac_try) 2>&5
27540  ac_status=$?
27541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542  (exit $ac_status); }; } &&
27543	 { ac_try='test -s conftest$ac_exeext'
27544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545  (eval $ac_try) 2>&5
27546  ac_status=$?
27547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548  (exit $ac_status); }; }; then
27549  eval "$as_ac_var=yes"
27550else
27551  echo "$as_me: failed program was:" >&5
27552sed 's/^/| /' conftest.$ac_ext >&5
27553
27554eval "$as_ac_var=no"
27555fi
27556rm -f conftest.err conftest.$ac_objext \
27557      conftest$ac_exeext conftest.$ac_ext
27558fi
27559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27560echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27561if test `eval echo '${'$as_ac_var'}'` = yes; then
27562  cat >>confdefs.h <<_ACEOF
27563#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27564_ACEOF
27565
27566fi
27567done
27568
27569fi
27570# gethostbyname2
27571eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27572eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27573eval "LIB_gethostbyname2=$ac_res"
27574
27575case "$ac_res" in
27576	yes)
27577	eval "ac_cv_func_gethostbyname2=yes"
27578	eval "LIB_gethostbyname2="
27579	cat >>confdefs.h <<_ACEOF
27580#define $ac_tr_func 1
27581_ACEOF
27582
27583	echo "$as_me:$LINENO: result: yes" >&5
27584echo "${ECHO_T}yes" >&6
27585	;;
27586	no)
27587	eval "ac_cv_func_gethostbyname2=no"
27588	eval "LIB_gethostbyname2="
27589	echo "$as_me:$LINENO: result: no" >&5
27590echo "${ECHO_T}no" >&6
27591	;;
27592	*)
27593	eval "ac_cv_func_gethostbyname2=yes"
27594	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27595	cat >>confdefs.h <<_ACEOF
27596#define $ac_tr_func 1
27597_ACEOF
27598
27599	cat >>confdefs.h <<_ACEOF
27600#define $ac_tr_lib 1
27601_ACEOF
27602
27603	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27604echo "${ECHO_T}yes, in $ac_res" >&6
27605	;;
27606esac
27607
27608
27609if test -n "$LIB_gethostbyname2"; then
27610	LIBS="$LIB_gethostbyname2 $LIBS"
27611fi
27612
27613
27614
27615
27616
27617
27618echo "$as_me:$LINENO: checking for res_search" >&5
27619echo $ECHO_N "checking for res_search... $ECHO_C" >&6
27620if test "${ac_cv_funclib_res_search+set}" = set; then
27621  echo $ECHO_N "(cached) $ECHO_C" >&6
27622else
27623
27624if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
27625	ac_save_LIBS="$LIBS"
27626	for ac_lib in "" resolv; do
27627		case "$ac_lib" in
27628		"") ;;
27629		yes) ac_lib="" ;;
27630		no) continue ;;
27631		-l*) ;;
27632		*) ac_lib="-l$ac_lib" ;;
27633		esac
27634		LIBS=" $ac_lib  $ac_save_LIBS"
27635		cat >conftest.$ac_ext <<_ACEOF
27636/* confdefs.h.  */
27637_ACEOF
27638cat confdefs.h >>conftest.$ac_ext
27639cat >>conftest.$ac_ext <<_ACEOF
27640/* end confdefs.h.  */
27641
27642#include <stdio.h>
27643#ifdef HAVE_SYS_TYPES_H
27644#include <sys/types.h>
27645#endif
27646#ifdef HAVE_NETINET_IN_H
27647#include <netinet/in.h>
27648#endif
27649#ifdef HAVE_ARPA_NAMESER_H
27650#include <arpa/nameser.h>
27651#endif
27652#ifdef HAVE_RESOLV_H
27653#include <resolv.h>
27654#endif
27655
27656int
27657main ()
27658{
27659res_search(0,0,0,0,0)
27660  ;
27661  return 0;
27662}
27663_ACEOF
27664rm -f conftest.$ac_objext conftest$ac_exeext
27665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666  (eval $ac_link) 2>conftest.er1
27667  ac_status=$?
27668  grep -v '^ *+' conftest.er1 >conftest.err
27669  rm -f conftest.er1
27670  cat conftest.err >&5
27671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672  (exit $ac_status); } &&
27673	 { ac_try='test -z "$ac_c_werror_flag"
27674			 || test ! -s conftest.err'
27675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676  (eval $ac_try) 2>&5
27677  ac_status=$?
27678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679  (exit $ac_status); }; } &&
27680	 { ac_try='test -s conftest$ac_exeext'
27681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682  (eval $ac_try) 2>&5
27683  ac_status=$?
27684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685  (exit $ac_status); }; }; then
27686  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
27687else
27688  echo "$as_me: failed program was:" >&5
27689sed 's/^/| /' conftest.$ac_ext >&5
27690
27691fi
27692rm -f conftest.err conftest.$ac_objext \
27693      conftest$ac_exeext conftest.$ac_ext
27694	done
27695	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
27696	LIBS="$ac_save_LIBS"
27697fi
27698
27699fi
27700
27701
27702eval "ac_res=\$ac_cv_funclib_res_search"
27703
27704if false; then
27705
27706for ac_func in res_search
27707do
27708as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27709echo "$as_me:$LINENO: checking for $ac_func" >&5
27710echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27711if eval "test \"\${$as_ac_var+set}\" = set"; then
27712  echo $ECHO_N "(cached) $ECHO_C" >&6
27713else
27714  cat >conftest.$ac_ext <<_ACEOF
27715/* confdefs.h.  */
27716_ACEOF
27717cat confdefs.h >>conftest.$ac_ext
27718cat >>conftest.$ac_ext <<_ACEOF
27719/* end confdefs.h.  */
27720/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27722#define $ac_func innocuous_$ac_func
27723
27724/* System header to define __stub macros and hopefully few prototypes,
27725    which can conflict with char $ac_func (); below.
27726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27727    <limits.h> exists even on freestanding compilers.  */
27728
27729#ifdef __STDC__
27730# include <limits.h>
27731#else
27732# include <assert.h>
27733#endif
27734
27735#undef $ac_func
27736
27737/* Override any gcc2 internal prototype to avoid an error.  */
27738#ifdef __cplusplus
27739extern "C"
27740{
27741#endif
27742/* We use char because int might match the return type of a gcc2
27743   builtin and then its argument prototype would still apply.  */
27744char $ac_func ();
27745/* The GNU C library defines this for functions which it implements
27746    to always fail with ENOSYS.  Some functions are actually named
27747    something starting with __ and the normal name is an alias.  */
27748#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27749choke me
27750#else
27751char (*f) () = $ac_func;
27752#endif
27753#ifdef __cplusplus
27754}
27755#endif
27756
27757int
27758main ()
27759{
27760return f != $ac_func;
27761  ;
27762  return 0;
27763}
27764_ACEOF
27765rm -f conftest.$ac_objext conftest$ac_exeext
27766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27767  (eval $ac_link) 2>conftest.er1
27768  ac_status=$?
27769  grep -v '^ *+' conftest.er1 >conftest.err
27770  rm -f conftest.er1
27771  cat conftest.err >&5
27772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773  (exit $ac_status); } &&
27774	 { ac_try='test -z "$ac_c_werror_flag"
27775			 || test ! -s conftest.err'
27776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27777  (eval $ac_try) 2>&5
27778  ac_status=$?
27779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780  (exit $ac_status); }; } &&
27781	 { ac_try='test -s conftest$ac_exeext'
27782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27783  (eval $ac_try) 2>&5
27784  ac_status=$?
27785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786  (exit $ac_status); }; }; then
27787  eval "$as_ac_var=yes"
27788else
27789  echo "$as_me: failed program was:" >&5
27790sed 's/^/| /' conftest.$ac_ext >&5
27791
27792eval "$as_ac_var=no"
27793fi
27794rm -f conftest.err conftest.$ac_objext \
27795      conftest$ac_exeext conftest.$ac_ext
27796fi
27797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27798echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27799if test `eval echo '${'$as_ac_var'}'` = yes; then
27800  cat >>confdefs.h <<_ACEOF
27801#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27802_ACEOF
27803
27804fi
27805done
27806
27807fi
27808# res_search
27809eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27810eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
27811eval "LIB_res_search=$ac_res"
27812
27813case "$ac_res" in
27814	yes)
27815	eval "ac_cv_func_res_search=yes"
27816	eval "LIB_res_search="
27817	cat >>confdefs.h <<_ACEOF
27818#define $ac_tr_func 1
27819_ACEOF
27820
27821	echo "$as_me:$LINENO: result: yes" >&5
27822echo "${ECHO_T}yes" >&6
27823	;;
27824	no)
27825	eval "ac_cv_func_res_search=no"
27826	eval "LIB_res_search="
27827	echo "$as_me:$LINENO: result: no" >&5
27828echo "${ECHO_T}no" >&6
27829	;;
27830	*)
27831	eval "ac_cv_func_res_search=yes"
27832	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
27833	cat >>confdefs.h <<_ACEOF
27834#define $ac_tr_func 1
27835_ACEOF
27836
27837	cat >>confdefs.h <<_ACEOF
27838#define $ac_tr_lib 1
27839_ACEOF
27840
27841	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
27842echo "${ECHO_T}yes, in $ac_res" >&6
27843	;;
27844esac
27845
27846
27847if test -n "$LIB_res_search"; then
27848	LIBS="$LIB_res_search $LIBS"
27849fi
27850
27851
27852
27853
27854
27855
27856echo "$as_me:$LINENO: checking for res_nsearch" >&5
27857echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6
27858if test "${ac_cv_funclib_res_nsearch+set}" = set; then
27859  echo $ECHO_N "(cached) $ECHO_C" >&6
27860else
27861
27862if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then
27863	ac_save_LIBS="$LIBS"
27864	for ac_lib in "" resolv; do
27865		case "$ac_lib" in
27866		"") ;;
27867		yes) ac_lib="" ;;
27868		no) continue ;;
27869		-l*) ;;
27870		*) ac_lib="-l$ac_lib" ;;
27871		esac
27872		LIBS=" $ac_lib  $ac_save_LIBS"
27873		cat >conftest.$ac_ext <<_ACEOF
27874/* confdefs.h.  */
27875_ACEOF
27876cat confdefs.h >>conftest.$ac_ext
27877cat >>conftest.$ac_ext <<_ACEOF
27878/* end confdefs.h.  */
27879
27880#include <stdio.h>
27881#ifdef HAVE_SYS_TYPES_H
27882#include <sys/types.h>
27883#endif
27884#ifdef HAVE_NETINET_IN_H
27885#include <netinet/in.h>
27886#endif
27887#ifdef HAVE_ARPA_NAMESER_H
27888#include <arpa/nameser.h>
27889#endif
27890#ifdef HAVE_RESOLV_H
27891#include <resolv.h>
27892#endif
27893
27894int
27895main ()
27896{
27897res_nsearch(0,0,0,0,0,0)
27898  ;
27899  return 0;
27900}
27901_ACEOF
27902rm -f conftest.$ac_objext conftest$ac_exeext
27903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27904  (eval $ac_link) 2>conftest.er1
27905  ac_status=$?
27906  grep -v '^ *+' conftest.er1 >conftest.err
27907  rm -f conftest.er1
27908  cat conftest.err >&5
27909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910  (exit $ac_status); } &&
27911	 { ac_try='test -z "$ac_c_werror_flag"
27912			 || test ! -s conftest.err'
27913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914  (eval $ac_try) 2>&5
27915  ac_status=$?
27916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917  (exit $ac_status); }; } &&
27918	 { ac_try='test -s conftest$ac_exeext'
27919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27920  (eval $ac_try) 2>&5
27921  ac_status=$?
27922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923  (exit $ac_status); }; }; then
27924  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break
27925else
27926  echo "$as_me: failed program was:" >&5
27927sed 's/^/| /' conftest.$ac_ext >&5
27928
27929fi
27930rm -f conftest.err conftest.$ac_objext \
27931      conftest$ac_exeext conftest.$ac_ext
27932	done
27933	eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}"
27934	LIBS="$ac_save_LIBS"
27935fi
27936
27937fi
27938
27939
27940eval "ac_res=\$ac_cv_funclib_res_nsearch"
27941
27942if false; then
27943
27944for ac_func in res_nsearch
27945do
27946as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27947echo "$as_me:$LINENO: checking for $ac_func" >&5
27948echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27949if eval "test \"\${$as_ac_var+set}\" = set"; then
27950  echo $ECHO_N "(cached) $ECHO_C" >&6
27951else
27952  cat >conftest.$ac_ext <<_ACEOF
27953/* confdefs.h.  */
27954_ACEOF
27955cat confdefs.h >>conftest.$ac_ext
27956cat >>conftest.$ac_ext <<_ACEOF
27957/* end confdefs.h.  */
27958/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27960#define $ac_func innocuous_$ac_func
27961
27962/* System header to define __stub macros and hopefully few prototypes,
27963    which can conflict with char $ac_func (); below.
27964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27965    <limits.h> exists even on freestanding compilers.  */
27966
27967#ifdef __STDC__
27968# include <limits.h>
27969#else
27970# include <assert.h>
27971#endif
27972
27973#undef $ac_func
27974
27975/* Override any gcc2 internal prototype to avoid an error.  */
27976#ifdef __cplusplus
27977extern "C"
27978{
27979#endif
27980/* We use char because int might match the return type of a gcc2
27981   builtin and then its argument prototype would still apply.  */
27982char $ac_func ();
27983/* The GNU C library defines this for functions which it implements
27984    to always fail with ENOSYS.  Some functions are actually named
27985    something starting with __ and the normal name is an alias.  */
27986#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27987choke me
27988#else
27989char (*f) () = $ac_func;
27990#endif
27991#ifdef __cplusplus
27992}
27993#endif
27994
27995int
27996main ()
27997{
27998return f != $ac_func;
27999  ;
28000  return 0;
28001}
28002_ACEOF
28003rm -f conftest.$ac_objext conftest$ac_exeext
28004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28005  (eval $ac_link) 2>conftest.er1
28006  ac_status=$?
28007  grep -v '^ *+' conftest.er1 >conftest.err
28008  rm -f conftest.er1
28009  cat conftest.err >&5
28010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011  (exit $ac_status); } &&
28012	 { ac_try='test -z "$ac_c_werror_flag"
28013			 || test ! -s conftest.err'
28014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28015  (eval $ac_try) 2>&5
28016  ac_status=$?
28017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018  (exit $ac_status); }; } &&
28019	 { ac_try='test -s conftest$ac_exeext'
28020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28021  (eval $ac_try) 2>&5
28022  ac_status=$?
28023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024  (exit $ac_status); }; }; then
28025  eval "$as_ac_var=yes"
28026else
28027  echo "$as_me: failed program was:" >&5
28028sed 's/^/| /' conftest.$ac_ext >&5
28029
28030eval "$as_ac_var=no"
28031fi
28032rm -f conftest.err conftest.$ac_objext \
28033      conftest$ac_exeext conftest.$ac_ext
28034fi
28035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28036echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28037if test `eval echo '${'$as_ac_var'}'` = yes; then
28038  cat >>confdefs.h <<_ACEOF
28039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28040_ACEOF
28041
28042fi
28043done
28044
28045fi
28046# res_nsearch
28047eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28048eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28049eval "LIB_res_nsearch=$ac_res"
28050
28051case "$ac_res" in
28052	yes)
28053	eval "ac_cv_func_res_nsearch=yes"
28054	eval "LIB_res_nsearch="
28055	cat >>confdefs.h <<_ACEOF
28056#define $ac_tr_func 1
28057_ACEOF
28058
28059	echo "$as_me:$LINENO: result: yes" >&5
28060echo "${ECHO_T}yes" >&6
28061	;;
28062	no)
28063	eval "ac_cv_func_res_nsearch=no"
28064	eval "LIB_res_nsearch="
28065	echo "$as_me:$LINENO: result: no" >&5
28066echo "${ECHO_T}no" >&6
28067	;;
28068	*)
28069	eval "ac_cv_func_res_nsearch=yes"
28070	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28071	cat >>confdefs.h <<_ACEOF
28072#define $ac_tr_func 1
28073_ACEOF
28074
28075	cat >>confdefs.h <<_ACEOF
28076#define $ac_tr_lib 1
28077_ACEOF
28078
28079	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28080echo "${ECHO_T}yes, in $ac_res" >&6
28081	;;
28082esac
28083
28084
28085if test -n "$LIB_res_nsearch"; then
28086	LIBS="$LIB_res_nsearch $LIBS"
28087fi
28088
28089
28090
28091
28092
28093
28094echo "$as_me:$LINENO: checking for dn_expand" >&5
28095echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6
28096if test "${ac_cv_funclib_dn_expand+set}" = set; then
28097  echo $ECHO_N "(cached) $ECHO_C" >&6
28098else
28099
28100if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
28101	ac_save_LIBS="$LIBS"
28102	for ac_lib in "" resolv; do
28103		case "$ac_lib" in
28104		"") ;;
28105		yes) ac_lib="" ;;
28106		no) continue ;;
28107		-l*) ;;
28108		*) ac_lib="-l$ac_lib" ;;
28109		esac
28110		LIBS=" $ac_lib  $ac_save_LIBS"
28111		cat >conftest.$ac_ext <<_ACEOF
28112/* confdefs.h.  */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h.  */
28117
28118#include <stdio.h>
28119#ifdef HAVE_SYS_TYPES_H
28120#include <sys/types.h>
28121#endif
28122#ifdef HAVE_NETINET_IN_H
28123#include <netinet/in.h>
28124#endif
28125#ifdef HAVE_ARPA_NAMESER_H
28126#include <arpa/nameser.h>
28127#endif
28128#ifdef HAVE_RESOLV_H
28129#include <resolv.h>
28130#endif
28131
28132int
28133main ()
28134{
28135dn_expand(0,0,0,0,0)
28136  ;
28137  return 0;
28138}
28139_ACEOF
28140rm -f conftest.$ac_objext conftest$ac_exeext
28141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28142  (eval $ac_link) 2>conftest.er1
28143  ac_status=$?
28144  grep -v '^ *+' conftest.er1 >conftest.err
28145  rm -f conftest.er1
28146  cat conftest.err >&5
28147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148  (exit $ac_status); } &&
28149	 { ac_try='test -z "$ac_c_werror_flag"
28150			 || test ! -s conftest.err'
28151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152  (eval $ac_try) 2>&5
28153  ac_status=$?
28154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155  (exit $ac_status); }; } &&
28156	 { ac_try='test -s conftest$ac_exeext'
28157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158  (eval $ac_try) 2>&5
28159  ac_status=$?
28160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161  (exit $ac_status); }; }; then
28162  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
28163else
28164  echo "$as_me: failed program was:" >&5
28165sed 's/^/| /' conftest.$ac_ext >&5
28166
28167fi
28168rm -f conftest.err conftest.$ac_objext \
28169      conftest$ac_exeext conftest.$ac_ext
28170	done
28171	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
28172	LIBS="$ac_save_LIBS"
28173fi
28174
28175fi
28176
28177
28178eval "ac_res=\$ac_cv_funclib_dn_expand"
28179
28180if false; then
28181
28182for ac_func in dn_expand
28183do
28184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28185echo "$as_me:$LINENO: checking for $ac_func" >&5
28186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28187if eval "test \"\${$as_ac_var+set}\" = set"; then
28188  echo $ECHO_N "(cached) $ECHO_C" >&6
28189else
28190  cat >conftest.$ac_ext <<_ACEOF
28191/* confdefs.h.  */
28192_ACEOF
28193cat confdefs.h >>conftest.$ac_ext
28194cat >>conftest.$ac_ext <<_ACEOF
28195/* end confdefs.h.  */
28196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28197   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28198#define $ac_func innocuous_$ac_func
28199
28200/* System header to define __stub macros and hopefully few prototypes,
28201    which can conflict with char $ac_func (); below.
28202    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28203    <limits.h> exists even on freestanding compilers.  */
28204
28205#ifdef __STDC__
28206# include <limits.h>
28207#else
28208# include <assert.h>
28209#endif
28210
28211#undef $ac_func
28212
28213/* Override any gcc2 internal prototype to avoid an error.  */
28214#ifdef __cplusplus
28215extern "C"
28216{
28217#endif
28218/* We use char because int might match the return type of a gcc2
28219   builtin and then its argument prototype would still apply.  */
28220char $ac_func ();
28221/* The GNU C library defines this for functions which it implements
28222    to always fail with ENOSYS.  Some functions are actually named
28223    something starting with __ and the normal name is an alias.  */
28224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28225choke me
28226#else
28227char (*f) () = $ac_func;
28228#endif
28229#ifdef __cplusplus
28230}
28231#endif
28232
28233int
28234main ()
28235{
28236return f != $ac_func;
28237  ;
28238  return 0;
28239}
28240_ACEOF
28241rm -f conftest.$ac_objext conftest$ac_exeext
28242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28243  (eval $ac_link) 2>conftest.er1
28244  ac_status=$?
28245  grep -v '^ *+' conftest.er1 >conftest.err
28246  rm -f conftest.er1
28247  cat conftest.err >&5
28248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249  (exit $ac_status); } &&
28250	 { ac_try='test -z "$ac_c_werror_flag"
28251			 || test ! -s conftest.err'
28252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28253  (eval $ac_try) 2>&5
28254  ac_status=$?
28255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28256  (exit $ac_status); }; } &&
28257	 { ac_try='test -s conftest$ac_exeext'
28258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259  (eval $ac_try) 2>&5
28260  ac_status=$?
28261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262  (exit $ac_status); }; }; then
28263  eval "$as_ac_var=yes"
28264else
28265  echo "$as_me: failed program was:" >&5
28266sed 's/^/| /' conftest.$ac_ext >&5
28267
28268eval "$as_ac_var=no"
28269fi
28270rm -f conftest.err conftest.$ac_objext \
28271      conftest$ac_exeext conftest.$ac_ext
28272fi
28273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28275if test `eval echo '${'$as_ac_var'}'` = yes; then
28276  cat >>confdefs.h <<_ACEOF
28277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28278_ACEOF
28279
28280fi
28281done
28282
28283fi
28284# dn_expand
28285eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28286eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
28287eval "LIB_dn_expand=$ac_res"
28288
28289case "$ac_res" in
28290	yes)
28291	eval "ac_cv_func_dn_expand=yes"
28292	eval "LIB_dn_expand="
28293	cat >>confdefs.h <<_ACEOF
28294#define $ac_tr_func 1
28295_ACEOF
28296
28297	echo "$as_me:$LINENO: result: yes" >&5
28298echo "${ECHO_T}yes" >&6
28299	;;
28300	no)
28301	eval "ac_cv_func_dn_expand=no"
28302	eval "LIB_dn_expand="
28303	echo "$as_me:$LINENO: result: no" >&5
28304echo "${ECHO_T}no" >&6
28305	;;
28306	*)
28307	eval "ac_cv_func_dn_expand=yes"
28308	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
28309	cat >>confdefs.h <<_ACEOF
28310#define $ac_tr_func 1
28311_ACEOF
28312
28313	cat >>confdefs.h <<_ACEOF
28314#define $ac_tr_lib 1
28315_ACEOF
28316
28317	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
28318echo "${ECHO_T}yes, in $ac_res" >&6
28319	;;
28320esac
28321
28322
28323if test -n "$LIB_dn_expand"; then
28324	LIBS="$LIB_dn_expand $LIBS"
28325fi
28326
28327
28328
28329echo "$as_me:$LINENO: checking for _res" >&5
28330echo $ECHO_N "checking for _res... $ECHO_C" >&6
28331if test "${ac_cv_var__res+set}" = set; then
28332  echo $ECHO_N "(cached) $ECHO_C" >&6
28333else
28334
28335
28336	cat >conftest.$ac_ext <<_ACEOF
28337/* confdefs.h.  */
28338_ACEOF
28339cat confdefs.h >>conftest.$ac_ext
28340cat >>conftest.$ac_ext <<_ACEOF
28341/* end confdefs.h.  */
28342#include <stdio.h>
28343#ifdef HAVE_SYS_TYPES_H
28344#include <sys/types.h>
28345#endif
28346#ifdef HAVE_NETINET_IN_H
28347#include <netinet/in.h>
28348#endif
28349#ifdef HAVE_ARPA_NAMESER_H
28350#include <arpa/nameser.h>
28351#endif
28352#ifdef HAVE_RESOLV_H
28353#include <resolv.h>
28354#endif
28355	void * foo() { return &_res; }
28356int
28357main ()
28358{
28359foo()
28360  ;
28361  return 0;
28362}
28363_ACEOF
28364rm -f conftest.$ac_objext conftest$ac_exeext
28365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28366  (eval $ac_link) 2>conftest.er1
28367  ac_status=$?
28368  grep -v '^ *+' conftest.er1 >conftest.err
28369  rm -f conftest.er1
28370  cat conftest.err >&5
28371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372  (exit $ac_status); } &&
28373	 { ac_try='test -z "$ac_c_werror_flag"
28374			 || test ! -s conftest.err'
28375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28376  (eval $ac_try) 2>&5
28377  ac_status=$?
28378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379  (exit $ac_status); }; } &&
28380	 { ac_try='test -s conftest$ac_exeext'
28381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382  (eval $ac_try) 2>&5
28383  ac_status=$?
28384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385  (exit $ac_status); }; }; then
28386  ac_cv_var__res=yes
28387else
28388  echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391ac_cv_var__res=no
28392fi
28393rm -f conftest.err conftest.$ac_objext \
28394      conftest$ac_exeext conftest.$ac_ext
28395if test "$ac_cv_var__res" != yes ; then
28396cat >conftest.$ac_ext <<_ACEOF
28397/* confdefs.h.  */
28398_ACEOF
28399cat confdefs.h >>conftest.$ac_ext
28400cat >>conftest.$ac_ext <<_ACEOF
28401/* end confdefs.h.  */
28402extern int _res;
28403int foo() { return _res; }
28404int
28405main ()
28406{
28407foo()
28408  ;
28409  return 0;
28410}
28411_ACEOF
28412rm -f conftest.$ac_objext conftest$ac_exeext
28413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28414  (eval $ac_link) 2>conftest.er1
28415  ac_status=$?
28416  grep -v '^ *+' conftest.er1 >conftest.err
28417  rm -f conftest.er1
28418  cat conftest.err >&5
28419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420  (exit $ac_status); } &&
28421	 { ac_try='test -z "$ac_c_werror_flag"
28422			 || test ! -s conftest.err'
28423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424  (eval $ac_try) 2>&5
28425  ac_status=$?
28426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427  (exit $ac_status); }; } &&
28428	 { ac_try='test -s conftest$ac_exeext'
28429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430  (eval $ac_try) 2>&5
28431  ac_status=$?
28432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433  (exit $ac_status); }; }; then
28434  ac_cv_var__res=yes
28435else
28436  echo "$as_me: failed program was:" >&5
28437sed 's/^/| /' conftest.$ac_ext >&5
28438
28439ac_cv_var__res=no
28440fi
28441rm -f conftest.err conftest.$ac_objext \
28442      conftest$ac_exeext conftest.$ac_ext
28443fi
28444
28445fi
28446
28447ac_foo=`eval echo \\$ac_cv_var__res`
28448echo "$as_me:$LINENO: result: $ac_foo" >&5
28449echo "${ECHO_T}$ac_foo" >&6
28450if test "$ac_foo" = yes; then
28451
28452cat >>confdefs.h <<_ACEOF
28453#define HAVE__RES 1
28454_ACEOF
28455
28456
28457echo "$as_me:$LINENO: checking if _res is properly declared" >&5
28458echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6
28459if test "${ac_cv_var__res_declaration+set}" = set; then
28460  echo $ECHO_N "(cached) $ECHO_C" >&6
28461else
28462
28463cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h.  */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h.  */
28469#include <stdio.h>
28470#ifdef HAVE_SYS_TYPES_H
28471#include <sys/types.h>
28472#endif
28473#ifdef HAVE_NETINET_IN_H
28474#include <netinet/in.h>
28475#endif
28476#ifdef HAVE_ARPA_NAMESER_H
28477#include <arpa/nameser.h>
28478#endif
28479#ifdef HAVE_RESOLV_H
28480#include <resolv.h>
28481#endif
28482extern struct { int foo; } _res;
28483int
28484main ()
28485{
28486_res.foo = 1;
28487  ;
28488  return 0;
28489}
28490_ACEOF
28491rm -f conftest.$ac_objext
28492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28493  (eval $ac_compile) 2>conftest.er1
28494  ac_status=$?
28495  grep -v '^ *+' conftest.er1 >conftest.err
28496  rm -f conftest.er1
28497  cat conftest.err >&5
28498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499  (exit $ac_status); } &&
28500	 { ac_try='test -z "$ac_c_werror_flag"
28501			 || test ! -s conftest.err'
28502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503  (eval $ac_try) 2>&5
28504  ac_status=$?
28505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506  (exit $ac_status); }; } &&
28507	 { ac_try='test -s conftest.$ac_objext'
28508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509  (eval $ac_try) 2>&5
28510  ac_status=$?
28511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512  (exit $ac_status); }; }; then
28513  eval "ac_cv_var__res_declaration=no"
28514else
28515  echo "$as_me: failed program was:" >&5
28516sed 's/^/| /' conftest.$ac_ext >&5
28517
28518eval "ac_cv_var__res_declaration=yes"
28519fi
28520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28521
28522fi
28523
28524
28525
28526
28527echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5
28528echo "${ECHO_T}$ac_cv_var__res_declaration" >&6
28529if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then
28530
28531cat >>confdefs.h <<\_ACEOF
28532#define HAVE__RES_DECLARATION 1
28533_ACEOF
28534
28535fi
28536
28537
28538fi
28539
28540
28541
28542
28543echo "$as_me:$LINENO: checking for working snprintf" >&5
28544echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
28545if test "${ac_cv_func_snprintf_working+set}" = set; then
28546  echo $ECHO_N "(cached) $ECHO_C" >&6
28547else
28548  ac_cv_func_snprintf_working=yes
28549if test "$cross_compiling" = yes; then
28550  :
28551else
28552  cat >conftest.$ac_ext <<_ACEOF
28553/* confdefs.h.  */
28554_ACEOF
28555cat confdefs.h >>conftest.$ac_ext
28556cat >>conftest.$ac_ext <<_ACEOF
28557/* end confdefs.h.  */
28558
28559#include <stdio.h>
28560#include <string.h>
28561int main()
28562{
28563	char foo[3];
28564	snprintf(foo, 2, "12");
28565	return strcmp(foo, "1");
28566}
28567_ACEOF
28568rm -f conftest$ac_exeext
28569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570  (eval $ac_link) 2>&5
28571  ac_status=$?
28572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575  (eval $ac_try) 2>&5
28576  ac_status=$?
28577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578  (exit $ac_status); }; }; then
28579  :
28580else
28581  echo "$as_me: program exited with status $ac_status" >&5
28582echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585( exit $ac_status )
28586ac_cv_func_snprintf_working=no
28587fi
28588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28589fi
28590fi
28591echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5
28592echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6
28593
28594if test "$ac_cv_func_snprintf_working" = yes; then
28595
28596cat >>confdefs.h <<_ACEOF
28597#define HAVE_SNPRINTF 1
28598_ACEOF
28599
28600fi
28601if test "$ac_cv_func_snprintf_working" = yes; then
28602
28603if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then
28604echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5
28605echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6
28606if test "${ac_cv_func_snprintf_noproto+set}" = set; then
28607  echo $ECHO_N "(cached) $ECHO_C" >&6
28608else
28609  cat >conftest.$ac_ext <<_ACEOF
28610/* confdefs.h.  */
28611_ACEOF
28612cat confdefs.h >>conftest.$ac_ext
28613cat >>conftest.$ac_ext <<_ACEOF
28614/* end confdefs.h.  */
28615#include <stdio.h>
28616int
28617main ()
28618{
28619struct foo { int foo; } xx;
28620extern int snprintf (struct foo*);
28621snprintf(&xx);
28622
28623  ;
28624  return 0;
28625}
28626_ACEOF
28627rm -f conftest.$ac_objext
28628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28629  (eval $ac_compile) 2>conftest.er1
28630  ac_status=$?
28631  grep -v '^ *+' conftest.er1 >conftest.err
28632  rm -f conftest.er1
28633  cat conftest.err >&5
28634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635  (exit $ac_status); } &&
28636	 { ac_try='test -z "$ac_c_werror_flag"
28637			 || test ! -s conftest.err'
28638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28639  (eval $ac_try) 2>&5
28640  ac_status=$?
28641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28642  (exit $ac_status); }; } &&
28643	 { ac_try='test -s conftest.$ac_objext'
28644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28645  (eval $ac_try) 2>&5
28646  ac_status=$?
28647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28648  (exit $ac_status); }; }; then
28649  eval "ac_cv_func_snprintf_noproto=yes"
28650else
28651  echo "$as_me: failed program was:" >&5
28652sed 's/^/| /' conftest.$ac_ext >&5
28653
28654eval "ac_cv_func_snprintf_noproto=no"
28655fi
28656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28657fi
28658echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5
28659echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6
28660if test "$ac_cv_func_snprintf_noproto" = yes; then
28661
28662cat >>confdefs.h <<\_ACEOF
28663#define NEED_SNPRINTF_PROTO 1
28664_ACEOF
28665
28666fi
28667fi
28668
28669fi
28670
28671
28672echo "$as_me:$LINENO: checking for working vsnprintf" >&5
28673echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
28674if test "${ac_cv_func_vsnprintf_working+set}" = set; then
28675  echo $ECHO_N "(cached) $ECHO_C" >&6
28676else
28677  ac_cv_func_vsnprintf_working=yes
28678if test "$cross_compiling" = yes; then
28679  :
28680else
28681  cat >conftest.$ac_ext <<_ACEOF
28682/* confdefs.h.  */
28683_ACEOF
28684cat confdefs.h >>conftest.$ac_ext
28685cat >>conftest.$ac_ext <<_ACEOF
28686/* end confdefs.h.  */
28687
28688#include <stdio.h>
28689#include <string.h>
28690#include <stdarg.h>
28691
28692int foo(int num, ...)
28693{
28694	char bar[3];
28695	va_list arg;
28696	va_start(arg, num);
28697	vsnprintf(bar, 2, "%s", arg);
28698	va_end(arg);
28699	return strcmp(bar, "1");
28700}
28701
28702
28703int main()
28704{
28705	return foo(0, "12");
28706}
28707_ACEOF
28708rm -f conftest$ac_exeext
28709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710  (eval $ac_link) 2>&5
28711  ac_status=$?
28712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715  (eval $ac_try) 2>&5
28716  ac_status=$?
28717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718  (exit $ac_status); }; }; then
28719  :
28720else
28721  echo "$as_me: program exited with status $ac_status" >&5
28722echo "$as_me: failed program was:" >&5
28723sed 's/^/| /' conftest.$ac_ext >&5
28724
28725( exit $ac_status )
28726ac_cv_func_vsnprintf_working=no
28727fi
28728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28729fi
28730fi
28731echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5
28732echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6
28733
28734if test "$ac_cv_func_vsnprintf_working" = yes; then
28735
28736cat >>confdefs.h <<_ACEOF
28737#define HAVE_VSNPRINTF 1
28738_ACEOF
28739
28740fi
28741if test "$ac_cv_func_vsnprintf_working" = yes; then
28742
28743if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then
28744echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5
28745echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6
28746if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then
28747  echo $ECHO_N "(cached) $ECHO_C" >&6
28748else
28749  cat >conftest.$ac_ext <<_ACEOF
28750/* confdefs.h.  */
28751_ACEOF
28752cat confdefs.h >>conftest.$ac_ext
28753cat >>conftest.$ac_ext <<_ACEOF
28754/* end confdefs.h.  */
28755#include <stdio.h>
28756int
28757main ()
28758{
28759struct foo { int foo; } xx;
28760extern int vsnprintf (struct foo*);
28761vsnprintf(&xx);
28762
28763  ;
28764  return 0;
28765}
28766_ACEOF
28767rm -f conftest.$ac_objext
28768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28769  (eval $ac_compile) 2>conftest.er1
28770  ac_status=$?
28771  grep -v '^ *+' conftest.er1 >conftest.err
28772  rm -f conftest.er1
28773  cat conftest.err >&5
28774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775  (exit $ac_status); } &&
28776	 { ac_try='test -z "$ac_c_werror_flag"
28777			 || test ! -s conftest.err'
28778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779  (eval $ac_try) 2>&5
28780  ac_status=$?
28781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782  (exit $ac_status); }; } &&
28783	 { ac_try='test -s conftest.$ac_objext'
28784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785  (eval $ac_try) 2>&5
28786  ac_status=$?
28787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788  (exit $ac_status); }; }; then
28789  eval "ac_cv_func_vsnprintf_noproto=yes"
28790else
28791  echo "$as_me: failed program was:" >&5
28792sed 's/^/| /' conftest.$ac_ext >&5
28793
28794eval "ac_cv_func_vsnprintf_noproto=no"
28795fi
28796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28797fi
28798echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5
28799echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6
28800if test "$ac_cv_func_vsnprintf_noproto" = yes; then
28801
28802cat >>confdefs.h <<\_ACEOF
28803#define NEED_VSNPRINTF_PROTO 1
28804_ACEOF
28805
28806fi
28807fi
28808
28809fi
28810
28811
28812
28813echo "$as_me:$LINENO: checking for working glob" >&5
28814echo $ECHO_N "checking for working glob... $ECHO_C" >&6
28815if test "${ac_cv_func_glob_working+set}" = set; then
28816  echo $ECHO_N "(cached) $ECHO_C" >&6
28817else
28818  ac_cv_func_glob_working=yes
28819cat >conftest.$ac_ext <<_ACEOF
28820/* confdefs.h.  */
28821_ACEOF
28822cat confdefs.h >>conftest.$ac_ext
28823cat >>conftest.$ac_ext <<_ACEOF
28824/* end confdefs.h.  */
28825
28826#include <stdio.h>
28827#include <glob.h>
28828int
28829main ()
28830{
28831
28832glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE|
28833#ifdef GLOB_MAXPATH
28834GLOB_MAXPATH
28835#else
28836GLOB_LIMIT
28837#endif
28838,
28839NULL, NULL);
28840
28841  ;
28842  return 0;
28843}
28844_ACEOF
28845rm -f conftest.$ac_objext conftest$ac_exeext
28846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28847  (eval $ac_link) 2>conftest.er1
28848  ac_status=$?
28849  grep -v '^ *+' conftest.er1 >conftest.err
28850  rm -f conftest.er1
28851  cat conftest.err >&5
28852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853  (exit $ac_status); } &&
28854	 { ac_try='test -z "$ac_c_werror_flag"
28855			 || test ! -s conftest.err'
28856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28857  (eval $ac_try) 2>&5
28858  ac_status=$?
28859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28860  (exit $ac_status); }; } &&
28861	 { ac_try='test -s conftest$ac_exeext'
28862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28863  (eval $ac_try) 2>&5
28864  ac_status=$?
28865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866  (exit $ac_status); }; }; then
28867  :
28868else
28869  echo "$as_me: failed program was:" >&5
28870sed 's/^/| /' conftest.$ac_ext >&5
28871
28872ac_cv_func_glob_working=no
28873fi
28874rm -f conftest.err conftest.$ac_objext \
28875      conftest$ac_exeext conftest.$ac_ext
28876fi
28877echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5
28878echo "${ECHO_T}$ac_cv_func_glob_working" >&6
28879
28880if test "$ac_cv_func_glob_working" = yes; then
28881
28882cat >>confdefs.h <<\_ACEOF
28883#define HAVE_GLOB 1
28884_ACEOF
28885
28886fi
28887if test "$ac_cv_func_glob_working" = yes; then
28888
28889if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then
28890echo "$as_me:$LINENO: checking if glob needs a prototype" >&5
28891echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6
28892if test "${ac_cv_func_glob_noproto+set}" = set; then
28893  echo $ECHO_N "(cached) $ECHO_C" >&6
28894else
28895  cat >conftest.$ac_ext <<_ACEOF
28896/* confdefs.h.  */
28897_ACEOF
28898cat confdefs.h >>conftest.$ac_ext
28899cat >>conftest.$ac_ext <<_ACEOF
28900/* end confdefs.h.  */
28901#include <stdio.h>
28902#include <glob.h>
28903int
28904main ()
28905{
28906struct foo { int foo; } xx;
28907extern int glob (struct foo*);
28908glob(&xx);
28909
28910  ;
28911  return 0;
28912}
28913_ACEOF
28914rm -f conftest.$ac_objext
28915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28916  (eval $ac_compile) 2>conftest.er1
28917  ac_status=$?
28918  grep -v '^ *+' conftest.er1 >conftest.err
28919  rm -f conftest.er1
28920  cat conftest.err >&5
28921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922  (exit $ac_status); } &&
28923	 { ac_try='test -z "$ac_c_werror_flag"
28924			 || test ! -s conftest.err'
28925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926  (eval $ac_try) 2>&5
28927  ac_status=$?
28928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929  (exit $ac_status); }; } &&
28930	 { ac_try='test -s conftest.$ac_objext'
28931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932  (eval $ac_try) 2>&5
28933  ac_status=$?
28934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935  (exit $ac_status); }; }; then
28936  eval "ac_cv_func_glob_noproto=yes"
28937else
28938  echo "$as_me: failed program was:" >&5
28939sed 's/^/| /' conftest.$ac_ext >&5
28940
28941eval "ac_cv_func_glob_noproto=no"
28942fi
28943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28944fi
28945echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5
28946echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6
28947if test "$ac_cv_func_glob_noproto" = yes; then
28948
28949cat >>confdefs.h <<\_ACEOF
28950#define NEED_GLOB_PROTO 1
28951_ACEOF
28952
28953fi
28954fi
28955
28956fi
28957
28958if test "$ac_cv_func_glob_working" != yes; then
28959	case $LIBOBJS in
28960    "glob.$ac_objext"   | \
28961  *" glob.$ac_objext"   | \
28962    "glob.$ac_objext "* | \
28963  *" glob.$ac_objext "* ) ;;
28964  *) LIBOBJS="$LIBOBJS glob.$ac_objext" ;;
28965esac
28966
28967fi
28968
28969
28970if test "$ac_cv_func_glob_working" = yes; then
28971  have_glob_h_TRUE=
28972  have_glob_h_FALSE='#'
28973else
28974  have_glob_h_TRUE='#'
28975  have_glob_h_FALSE=
28976fi
28977
28978
28979
28980
28981
28982
28983
28984
28985
28986
28987
28988
28989
28990
28991
28992
28993
28994
28995
28996
28997
28998
28999
29000
29001
29002
29003
29004
29005
29006for ac_func in 				\
29007	asnprintf				\
29008	asprintf				\
29009	atexit					\
29010	cgetent					\
29011	getconfattr				\
29012	getprogname				\
29013	getrlimit				\
29014	getspnam				\
29015	initstate				\
29016	issetugid				\
29017	on_exit					\
29018	random					\
29019	setprogname				\
29020	setstate				\
29021	strsvis					\
29022	strunvis				\
29023	strvis					\
29024	strvisx					\
29025	svis					\
29026	sysconf					\
29027	sysctl					\
29028	uname					\
29029	unvis					\
29030	vasnprintf				\
29031	vasprintf				\
29032	vis					\
29033
29034do
29035as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29036echo "$as_me:$LINENO: checking for $ac_func" >&5
29037echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29038if eval "test \"\${$as_ac_var+set}\" = set"; then
29039  echo $ECHO_N "(cached) $ECHO_C" >&6
29040else
29041  cat >conftest.$ac_ext <<_ACEOF
29042/* confdefs.h.  */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h.  */
29047/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29048   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29049#define $ac_func innocuous_$ac_func
29050
29051/* System header to define __stub macros and hopefully few prototypes,
29052    which can conflict with char $ac_func (); below.
29053    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29054    <limits.h> exists even on freestanding compilers.  */
29055
29056#ifdef __STDC__
29057# include <limits.h>
29058#else
29059# include <assert.h>
29060#endif
29061
29062#undef $ac_func
29063
29064/* Override any gcc2 internal prototype to avoid an error.  */
29065#ifdef __cplusplus
29066extern "C"
29067{
29068#endif
29069/* We use char because int might match the return type of a gcc2
29070   builtin and then its argument prototype would still apply.  */
29071char $ac_func ();
29072/* The GNU C library defines this for functions which it implements
29073    to always fail with ENOSYS.  Some functions are actually named
29074    something starting with __ and the normal name is an alias.  */
29075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29076choke me
29077#else
29078char (*f) () = $ac_func;
29079#endif
29080#ifdef __cplusplus
29081}
29082#endif
29083
29084int
29085main ()
29086{
29087return f != $ac_func;
29088  ;
29089  return 0;
29090}
29091_ACEOF
29092rm -f conftest.$ac_objext conftest$ac_exeext
29093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29094  (eval $ac_link) 2>conftest.er1
29095  ac_status=$?
29096  grep -v '^ *+' conftest.er1 >conftest.err
29097  rm -f conftest.er1
29098  cat conftest.err >&5
29099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100  (exit $ac_status); } &&
29101	 { ac_try='test -z "$ac_c_werror_flag"
29102			 || test ! -s conftest.err'
29103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29104  (eval $ac_try) 2>&5
29105  ac_status=$?
29106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107  (exit $ac_status); }; } &&
29108	 { ac_try='test -s conftest$ac_exeext'
29109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29110  (eval $ac_try) 2>&5
29111  ac_status=$?
29112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113  (exit $ac_status); }; }; then
29114  eval "$as_ac_var=yes"
29115else
29116  echo "$as_me: failed program was:" >&5
29117sed 's/^/| /' conftest.$ac_ext >&5
29118
29119eval "$as_ac_var=no"
29120fi
29121rm -f conftest.err conftest.$ac_objext \
29122      conftest$ac_exeext conftest.$ac_ext
29123fi
29124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29125echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29126if test `eval echo '${'$as_ac_var'}'` = yes; then
29127  cat >>confdefs.h <<_ACEOF
29128#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29129_ACEOF
29130
29131fi
29132done
29133
29134
29135if test "$ac_cv_func_cgetent" = no; then
29136	case $LIBOBJS in
29137    "getcap.$ac_objext"   | \
29138  *" getcap.$ac_objext"   | \
29139    "getcap.$ac_objext "* | \
29140  *" getcap.$ac_objext "* ) ;;
29141  *) LIBOBJS="$LIBOBJS getcap.$ac_objext" ;;
29142esac
29143
29144fi
29145
29146
29147
29148
29149
29150
29151
29152
29153echo "$as_me:$LINENO: checking for getsockopt" >&5
29154echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6
29155if test "${ac_cv_funclib_getsockopt+set}" = set; then
29156  echo $ECHO_N "(cached) $ECHO_C" >&6
29157else
29158
29159if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
29160	ac_save_LIBS="$LIBS"
29161	for ac_lib in "" ; do
29162		case "$ac_lib" in
29163		"") ;;
29164		yes) ac_lib="" ;;
29165		no) continue ;;
29166		-l*) ;;
29167		*) ac_lib="-l$ac_lib" ;;
29168		esac
29169		LIBS=" $ac_lib  $ac_save_LIBS"
29170		cat >conftest.$ac_ext <<_ACEOF
29171/* confdefs.h.  */
29172_ACEOF
29173cat confdefs.h >>conftest.$ac_ext
29174cat >>conftest.$ac_ext <<_ACEOF
29175/* end confdefs.h.  */
29176#ifdef HAVE_SYS_TYPES_H
29177#include <sys/types.h>
29178#endif
29179#ifdef HAVE_SYS_SOCKET_H
29180#include <sys/socket.h>
29181#endif
29182int
29183main ()
29184{
29185getsockopt(0,0,0,0,0)
29186  ;
29187  return 0;
29188}
29189_ACEOF
29190rm -f conftest.$ac_objext conftest$ac_exeext
29191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192  (eval $ac_link) 2>conftest.er1
29193  ac_status=$?
29194  grep -v '^ *+' conftest.er1 >conftest.err
29195  rm -f conftest.er1
29196  cat conftest.err >&5
29197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198  (exit $ac_status); } &&
29199	 { ac_try='test -z "$ac_c_werror_flag"
29200			 || test ! -s conftest.err'
29201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202  (eval $ac_try) 2>&5
29203  ac_status=$?
29204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205  (exit $ac_status); }; } &&
29206	 { ac_try='test -s conftest$ac_exeext'
29207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208  (eval $ac_try) 2>&5
29209  ac_status=$?
29210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211  (exit $ac_status); }; }; then
29212  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
29213else
29214  echo "$as_me: failed program was:" >&5
29215sed 's/^/| /' conftest.$ac_ext >&5
29216
29217fi
29218rm -f conftest.err conftest.$ac_objext \
29219      conftest$ac_exeext conftest.$ac_ext
29220	done
29221	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
29222	LIBS="$ac_save_LIBS"
29223fi
29224
29225fi
29226
29227
29228eval "ac_res=\$ac_cv_funclib_getsockopt"
29229
29230if false; then
29231
29232for ac_func in getsockopt
29233do
29234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29235echo "$as_me:$LINENO: checking for $ac_func" >&5
29236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29237if eval "test \"\${$as_ac_var+set}\" = set"; then
29238  echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240  cat >conftest.$ac_ext <<_ACEOF
29241/* confdefs.h.  */
29242_ACEOF
29243cat confdefs.h >>conftest.$ac_ext
29244cat >>conftest.$ac_ext <<_ACEOF
29245/* end confdefs.h.  */
29246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29247   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29248#define $ac_func innocuous_$ac_func
29249
29250/* System header to define __stub macros and hopefully few prototypes,
29251    which can conflict with char $ac_func (); below.
29252    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29253    <limits.h> exists even on freestanding compilers.  */
29254
29255#ifdef __STDC__
29256# include <limits.h>
29257#else
29258# include <assert.h>
29259#endif
29260
29261#undef $ac_func
29262
29263/* Override any gcc2 internal prototype to avoid an error.  */
29264#ifdef __cplusplus
29265extern "C"
29266{
29267#endif
29268/* We use char because int might match the return type of a gcc2
29269   builtin and then its argument prototype would still apply.  */
29270char $ac_func ();
29271/* The GNU C library defines this for functions which it implements
29272    to always fail with ENOSYS.  Some functions are actually named
29273    something starting with __ and the normal name is an alias.  */
29274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29275choke me
29276#else
29277char (*f) () = $ac_func;
29278#endif
29279#ifdef __cplusplus
29280}
29281#endif
29282
29283int
29284main ()
29285{
29286return f != $ac_func;
29287  ;
29288  return 0;
29289}
29290_ACEOF
29291rm -f conftest.$ac_objext conftest$ac_exeext
29292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29293  (eval $ac_link) 2>conftest.er1
29294  ac_status=$?
29295  grep -v '^ *+' conftest.er1 >conftest.err
29296  rm -f conftest.er1
29297  cat conftest.err >&5
29298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299  (exit $ac_status); } &&
29300	 { ac_try='test -z "$ac_c_werror_flag"
29301			 || test ! -s conftest.err'
29302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29303  (eval $ac_try) 2>&5
29304  ac_status=$?
29305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306  (exit $ac_status); }; } &&
29307	 { ac_try='test -s conftest$ac_exeext'
29308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309  (eval $ac_try) 2>&5
29310  ac_status=$?
29311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312  (exit $ac_status); }; }; then
29313  eval "$as_ac_var=yes"
29314else
29315  echo "$as_me: failed program was:" >&5
29316sed 's/^/| /' conftest.$ac_ext >&5
29317
29318eval "$as_ac_var=no"
29319fi
29320rm -f conftest.err conftest.$ac_objext \
29321      conftest$ac_exeext conftest.$ac_ext
29322fi
29323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29325if test `eval echo '${'$as_ac_var'}'` = yes; then
29326  cat >>confdefs.h <<_ACEOF
29327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29328_ACEOF
29329
29330fi
29331done
29332
29333fi
29334# getsockopt
29335eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29336eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29337eval "LIB_getsockopt=$ac_res"
29338
29339case "$ac_res" in
29340	yes)
29341	eval "ac_cv_func_getsockopt=yes"
29342	eval "LIB_getsockopt="
29343	cat >>confdefs.h <<_ACEOF
29344#define $ac_tr_func 1
29345_ACEOF
29346
29347	echo "$as_me:$LINENO: result: yes" >&5
29348echo "${ECHO_T}yes" >&6
29349	;;
29350	no)
29351	eval "ac_cv_func_getsockopt=no"
29352	eval "LIB_getsockopt="
29353	echo "$as_me:$LINENO: result: no" >&5
29354echo "${ECHO_T}no" >&6
29355	;;
29356	*)
29357	eval "ac_cv_func_getsockopt=yes"
29358	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29359	cat >>confdefs.h <<_ACEOF
29360#define $ac_tr_func 1
29361_ACEOF
29362
29363	cat >>confdefs.h <<_ACEOF
29364#define $ac_tr_lib 1
29365_ACEOF
29366
29367	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29368echo "${ECHO_T}yes, in $ac_res" >&6
29369	;;
29370esac
29371
29372
29373
29374
29375
29376echo "$as_me:$LINENO: checking for setsockopt" >&5
29377echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
29378if test "${ac_cv_funclib_setsockopt+set}" = set; then
29379  echo $ECHO_N "(cached) $ECHO_C" >&6
29380else
29381
29382if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
29383	ac_save_LIBS="$LIBS"
29384	for ac_lib in "" ; do
29385		case "$ac_lib" in
29386		"") ;;
29387		yes) ac_lib="" ;;
29388		no) continue ;;
29389		-l*) ;;
29390		*) ac_lib="-l$ac_lib" ;;
29391		esac
29392		LIBS=" $ac_lib  $ac_save_LIBS"
29393		cat >conftest.$ac_ext <<_ACEOF
29394/* confdefs.h.  */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h.  */
29399#ifdef HAVE_SYS_TYPES_H
29400#include <sys/types.h>
29401#endif
29402#ifdef HAVE_SYS_SOCKET_H
29403#include <sys/socket.h>
29404#endif
29405int
29406main ()
29407{
29408setsockopt(0,0,0,0,0)
29409  ;
29410  return 0;
29411}
29412_ACEOF
29413rm -f conftest.$ac_objext conftest$ac_exeext
29414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29415  (eval $ac_link) 2>conftest.er1
29416  ac_status=$?
29417  grep -v '^ *+' conftest.er1 >conftest.err
29418  rm -f conftest.er1
29419  cat conftest.err >&5
29420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421  (exit $ac_status); } &&
29422	 { ac_try='test -z "$ac_c_werror_flag"
29423			 || test ! -s conftest.err'
29424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425  (eval $ac_try) 2>&5
29426  ac_status=$?
29427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428  (exit $ac_status); }; } &&
29429	 { ac_try='test -s conftest$ac_exeext'
29430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431  (eval $ac_try) 2>&5
29432  ac_status=$?
29433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434  (exit $ac_status); }; }; then
29435  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
29436else
29437  echo "$as_me: failed program was:" >&5
29438sed 's/^/| /' conftest.$ac_ext >&5
29439
29440fi
29441rm -f conftest.err conftest.$ac_objext \
29442      conftest$ac_exeext conftest.$ac_ext
29443	done
29444	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
29445	LIBS="$ac_save_LIBS"
29446fi
29447
29448fi
29449
29450
29451eval "ac_res=\$ac_cv_funclib_setsockopt"
29452
29453if false; then
29454
29455for ac_func in setsockopt
29456do
29457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29458echo "$as_me:$LINENO: checking for $ac_func" >&5
29459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29460if eval "test \"\${$as_ac_var+set}\" = set"; then
29461  echo $ECHO_N "(cached) $ECHO_C" >&6
29462else
29463  cat >conftest.$ac_ext <<_ACEOF
29464/* confdefs.h.  */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h.  */
29469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29470   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29471#define $ac_func innocuous_$ac_func
29472
29473/* System header to define __stub macros and hopefully few prototypes,
29474    which can conflict with char $ac_func (); below.
29475    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29476    <limits.h> exists even on freestanding compilers.  */
29477
29478#ifdef __STDC__
29479# include <limits.h>
29480#else
29481# include <assert.h>
29482#endif
29483
29484#undef $ac_func
29485
29486/* Override any gcc2 internal prototype to avoid an error.  */
29487#ifdef __cplusplus
29488extern "C"
29489{
29490#endif
29491/* We use char because int might match the return type of a gcc2
29492   builtin and then its argument prototype would still apply.  */
29493char $ac_func ();
29494/* The GNU C library defines this for functions which it implements
29495    to always fail with ENOSYS.  Some functions are actually named
29496    something starting with __ and the normal name is an alias.  */
29497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29498choke me
29499#else
29500char (*f) () = $ac_func;
29501#endif
29502#ifdef __cplusplus
29503}
29504#endif
29505
29506int
29507main ()
29508{
29509return f != $ac_func;
29510  ;
29511  return 0;
29512}
29513_ACEOF
29514rm -f conftest.$ac_objext conftest$ac_exeext
29515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29516  (eval $ac_link) 2>conftest.er1
29517  ac_status=$?
29518  grep -v '^ *+' conftest.er1 >conftest.err
29519  rm -f conftest.er1
29520  cat conftest.err >&5
29521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522  (exit $ac_status); } &&
29523	 { ac_try='test -z "$ac_c_werror_flag"
29524			 || test ! -s conftest.err'
29525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29526  (eval $ac_try) 2>&5
29527  ac_status=$?
29528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529  (exit $ac_status); }; } &&
29530	 { ac_try='test -s conftest$ac_exeext'
29531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29532  (eval $ac_try) 2>&5
29533  ac_status=$?
29534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535  (exit $ac_status); }; }; then
29536  eval "$as_ac_var=yes"
29537else
29538  echo "$as_me: failed program was:" >&5
29539sed 's/^/| /' conftest.$ac_ext >&5
29540
29541eval "$as_ac_var=no"
29542fi
29543rm -f conftest.err conftest.$ac_objext \
29544      conftest$ac_exeext conftest.$ac_ext
29545fi
29546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29547echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29548if test `eval echo '${'$as_ac_var'}'` = yes; then
29549  cat >>confdefs.h <<_ACEOF
29550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29551_ACEOF
29552
29553fi
29554done
29555
29556fi
29557# setsockopt
29558eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29559eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29560eval "LIB_setsockopt=$ac_res"
29561
29562case "$ac_res" in
29563	yes)
29564	eval "ac_cv_func_setsockopt=yes"
29565	eval "LIB_setsockopt="
29566	cat >>confdefs.h <<_ACEOF
29567#define $ac_tr_func 1
29568_ACEOF
29569
29570	echo "$as_me:$LINENO: result: yes" >&5
29571echo "${ECHO_T}yes" >&6
29572	;;
29573	no)
29574	eval "ac_cv_func_setsockopt=no"
29575	eval "LIB_setsockopt="
29576	echo "$as_me:$LINENO: result: no" >&5
29577echo "${ECHO_T}no" >&6
29578	;;
29579	*)
29580	eval "ac_cv_func_setsockopt=yes"
29581	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29582	cat >>confdefs.h <<_ACEOF
29583#define $ac_tr_func 1
29584_ACEOF
29585
29586	cat >>confdefs.h <<_ACEOF
29587#define $ac_tr_lib 1
29588_ACEOF
29589
29590	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29591echo "${ECHO_T}yes, in $ac_res" >&6
29592	;;
29593esac
29594
29595
29596
29597
29598
29599
29600
29601echo "$as_me:$LINENO: checking for hstrerror" >&5
29602echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
29603if test "${ac_cv_funclib_hstrerror+set}" = set; then
29604  echo $ECHO_N "(cached) $ECHO_C" >&6
29605else
29606
29607if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
29608	ac_save_LIBS="$LIBS"
29609	for ac_lib in "" resolv; do
29610		case "$ac_lib" in
29611		"") ;;
29612		yes) ac_lib="" ;;
29613		no) continue ;;
29614		-l*) ;;
29615		*) ac_lib="-l$ac_lib" ;;
29616		esac
29617		LIBS=" $ac_lib  $ac_save_LIBS"
29618		cat >conftest.$ac_ext <<_ACEOF
29619/* confdefs.h.  */
29620_ACEOF
29621cat confdefs.h >>conftest.$ac_ext
29622cat >>conftest.$ac_ext <<_ACEOF
29623/* end confdefs.h.  */
29624#ifdef HAVE_NETDB_H
29625#include <netdb.h>
29626#endif
29627int
29628main ()
29629{
29630hstrerror(17)
29631  ;
29632  return 0;
29633}
29634_ACEOF
29635rm -f conftest.$ac_objext conftest$ac_exeext
29636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29637  (eval $ac_link) 2>conftest.er1
29638  ac_status=$?
29639  grep -v '^ *+' conftest.er1 >conftest.err
29640  rm -f conftest.er1
29641  cat conftest.err >&5
29642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643  (exit $ac_status); } &&
29644	 { ac_try='test -z "$ac_c_werror_flag"
29645			 || test ! -s conftest.err'
29646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647  (eval $ac_try) 2>&5
29648  ac_status=$?
29649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650  (exit $ac_status); }; } &&
29651	 { ac_try='test -s conftest$ac_exeext'
29652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653  (eval $ac_try) 2>&5
29654  ac_status=$?
29655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656  (exit $ac_status); }; }; then
29657  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
29658else
29659  echo "$as_me: failed program was:" >&5
29660sed 's/^/| /' conftest.$ac_ext >&5
29661
29662fi
29663rm -f conftest.err conftest.$ac_objext \
29664      conftest$ac_exeext conftest.$ac_ext
29665	done
29666	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
29667	LIBS="$ac_save_LIBS"
29668fi
29669
29670fi
29671
29672
29673eval "ac_res=\$ac_cv_funclib_hstrerror"
29674
29675if false; then
29676
29677for ac_func in hstrerror
29678do
29679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29680echo "$as_me:$LINENO: checking for $ac_func" >&5
29681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29682if eval "test \"\${$as_ac_var+set}\" = set"; then
29683  echo $ECHO_N "(cached) $ECHO_C" >&6
29684else
29685  cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h.  */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h.  */
29691/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29692   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29693#define $ac_func innocuous_$ac_func
29694
29695/* System header to define __stub macros and hopefully few prototypes,
29696    which can conflict with char $ac_func (); below.
29697    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29698    <limits.h> exists even on freestanding compilers.  */
29699
29700#ifdef __STDC__
29701# include <limits.h>
29702#else
29703# include <assert.h>
29704#endif
29705
29706#undef $ac_func
29707
29708/* Override any gcc2 internal prototype to avoid an error.  */
29709#ifdef __cplusplus
29710extern "C"
29711{
29712#endif
29713/* We use char because int might match the return type of a gcc2
29714   builtin and then its argument prototype would still apply.  */
29715char $ac_func ();
29716/* The GNU C library defines this for functions which it implements
29717    to always fail with ENOSYS.  Some functions are actually named
29718    something starting with __ and the normal name is an alias.  */
29719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29720choke me
29721#else
29722char (*f) () = $ac_func;
29723#endif
29724#ifdef __cplusplus
29725}
29726#endif
29727
29728int
29729main ()
29730{
29731return f != $ac_func;
29732  ;
29733  return 0;
29734}
29735_ACEOF
29736rm -f conftest.$ac_objext conftest$ac_exeext
29737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29738  (eval $ac_link) 2>conftest.er1
29739  ac_status=$?
29740  grep -v '^ *+' conftest.er1 >conftest.err
29741  rm -f conftest.er1
29742  cat conftest.err >&5
29743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744  (exit $ac_status); } &&
29745	 { ac_try='test -z "$ac_c_werror_flag"
29746			 || test ! -s conftest.err'
29747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29748  (eval $ac_try) 2>&5
29749  ac_status=$?
29750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751  (exit $ac_status); }; } &&
29752	 { ac_try='test -s conftest$ac_exeext'
29753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29754  (eval $ac_try) 2>&5
29755  ac_status=$?
29756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29757  (exit $ac_status); }; }; then
29758  eval "$as_ac_var=yes"
29759else
29760  echo "$as_me: failed program was:" >&5
29761sed 's/^/| /' conftest.$ac_ext >&5
29762
29763eval "$as_ac_var=no"
29764fi
29765rm -f conftest.err conftest.$ac_objext \
29766      conftest$ac_exeext conftest.$ac_ext
29767fi
29768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29770if test `eval echo '${'$as_ac_var'}'` = yes; then
29771  cat >>confdefs.h <<_ACEOF
29772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29773_ACEOF
29774
29775fi
29776done
29777
29778fi
29779# hstrerror
29780eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29781eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
29782eval "LIB_hstrerror=$ac_res"
29783
29784case "$ac_res" in
29785	yes)
29786	eval "ac_cv_func_hstrerror=yes"
29787	eval "LIB_hstrerror="
29788	cat >>confdefs.h <<_ACEOF
29789#define $ac_tr_func 1
29790_ACEOF
29791
29792	echo "$as_me:$LINENO: result: yes" >&5
29793echo "${ECHO_T}yes" >&6
29794	;;
29795	no)
29796	eval "ac_cv_func_hstrerror=no"
29797	eval "LIB_hstrerror="
29798	echo "$as_me:$LINENO: result: no" >&5
29799echo "${ECHO_T}no" >&6
29800	;;
29801	*)
29802	eval "ac_cv_func_hstrerror=yes"
29803	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
29804	cat >>confdefs.h <<_ACEOF
29805#define $ac_tr_func 1
29806_ACEOF
29807
29808	cat >>confdefs.h <<_ACEOF
29809#define $ac_tr_lib 1
29810_ACEOF
29811
29812	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
29813echo "${ECHO_T}yes, in $ac_res" >&6
29814	;;
29815esac
29816
29817
29818if test -n "$LIB_hstrerror"; then
29819	LIBS="$LIB_hstrerror $LIBS"
29820fi
29821
29822if eval "test \"$ac_cv_func_hstrerror\" != yes"; then
29823	case $LIBOBJS in
29824    "hstrerror.$ac_objext"   | \
29825  *" hstrerror.$ac_objext"   | \
29826    "hstrerror.$ac_objext "* | \
29827  *" hstrerror.$ac_objext "* ) ;;
29828  *) LIBOBJS="$LIBOBJS hstrerror.$ac_objext" ;;
29829esac
29830
29831fi
29832
29833
29834if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then
29835echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5
29836echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6
29837if test "${ac_cv_func_hstrerror_noproto+set}" = set; then
29838  echo $ECHO_N "(cached) $ECHO_C" >&6
29839else
29840  cat >conftest.$ac_ext <<_ACEOF
29841/* confdefs.h.  */
29842_ACEOF
29843cat confdefs.h >>conftest.$ac_ext
29844cat >>conftest.$ac_ext <<_ACEOF
29845/* end confdefs.h.  */
29846
29847#ifdef HAVE_NETDB_H
29848#include <netdb.h>
29849#endif
29850int
29851main ()
29852{
29853struct foo { int foo; } xx;
29854extern int hstrerror (struct foo*);
29855hstrerror(&xx);
29856
29857  ;
29858  return 0;
29859}
29860_ACEOF
29861rm -f conftest.$ac_objext
29862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29863  (eval $ac_compile) 2>conftest.er1
29864  ac_status=$?
29865  grep -v '^ *+' conftest.er1 >conftest.err
29866  rm -f conftest.er1
29867  cat conftest.err >&5
29868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869  (exit $ac_status); } &&
29870	 { ac_try='test -z "$ac_c_werror_flag"
29871			 || test ! -s conftest.err'
29872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29873  (eval $ac_try) 2>&5
29874  ac_status=$?
29875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29876  (exit $ac_status); }; } &&
29877	 { ac_try='test -s conftest.$ac_objext'
29878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29879  (eval $ac_try) 2>&5
29880  ac_status=$?
29881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882  (exit $ac_status); }; }; then
29883  eval "ac_cv_func_hstrerror_noproto=yes"
29884else
29885  echo "$as_me: failed program was:" >&5
29886sed 's/^/| /' conftest.$ac_ext >&5
29887
29888eval "ac_cv_func_hstrerror_noproto=no"
29889fi
29890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29891fi
29892echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5
29893echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6
29894if test "$ac_cv_func_hstrerror_noproto" = yes; then
29895
29896cat >>confdefs.h <<\_ACEOF
29897#define NEED_HSTRERROR_PROTO 1
29898_ACEOF
29899
29900fi
29901fi
29902
29903
29904
29905if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then
29906echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5
29907echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6
29908if test "${ac_cv_func_asprintf_noproto+set}" = set; then
29909  echo $ECHO_N "(cached) $ECHO_C" >&6
29910else
29911  cat >conftest.$ac_ext <<_ACEOF
29912/* confdefs.h.  */
29913_ACEOF
29914cat confdefs.h >>conftest.$ac_ext
29915cat >>conftest.$ac_ext <<_ACEOF
29916/* end confdefs.h.  */
29917
29918	#include <stdio.h>
29919	#include <string.h>
29920int
29921main ()
29922{
29923struct foo { int foo; } xx;
29924extern int asprintf (struct foo*);
29925asprintf(&xx);
29926
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>conftest.er1
29934  ac_status=$?
29935  grep -v '^ *+' conftest.er1 >conftest.err
29936  rm -f conftest.er1
29937  cat conftest.err >&5
29938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939  (exit $ac_status); } &&
29940	 { ac_try='test -z "$ac_c_werror_flag"
29941			 || test ! -s conftest.err'
29942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943  (eval $ac_try) 2>&5
29944  ac_status=$?
29945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946  (exit $ac_status); }; } &&
29947	 { ac_try='test -s conftest.$ac_objext'
29948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949  (eval $ac_try) 2>&5
29950  ac_status=$?
29951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952  (exit $ac_status); }; }; then
29953  eval "ac_cv_func_asprintf_noproto=yes"
29954else
29955  echo "$as_me: failed program was:" >&5
29956sed 's/^/| /' conftest.$ac_ext >&5
29957
29958eval "ac_cv_func_asprintf_noproto=no"
29959fi
29960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29961fi
29962echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5
29963echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6
29964if test "$ac_cv_func_asprintf_noproto" = yes; then
29965
29966cat >>confdefs.h <<\_ACEOF
29967#define NEED_ASPRINTF_PROTO 1
29968_ACEOF
29969
29970fi
29971fi
29972
29973if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then
29974echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5
29975echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6
29976if test "${ac_cv_func_vasprintf_noproto+set}" = set; then
29977  echo $ECHO_N "(cached) $ECHO_C" >&6
29978else
29979  cat >conftest.$ac_ext <<_ACEOF
29980/* confdefs.h.  */
29981_ACEOF
29982cat confdefs.h >>conftest.$ac_ext
29983cat >>conftest.$ac_ext <<_ACEOF
29984/* end confdefs.h.  */
29985
29986	#include <stdio.h>
29987	#include <string.h>
29988int
29989main ()
29990{
29991struct foo { int foo; } xx;
29992extern int vasprintf (struct foo*);
29993vasprintf(&xx);
29994
29995  ;
29996  return 0;
29997}
29998_ACEOF
29999rm -f conftest.$ac_objext
30000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30001  (eval $ac_compile) 2>conftest.er1
30002  ac_status=$?
30003  grep -v '^ *+' conftest.er1 >conftest.err
30004  rm -f conftest.er1
30005  cat conftest.err >&5
30006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007  (exit $ac_status); } &&
30008	 { ac_try='test -z "$ac_c_werror_flag"
30009			 || test ! -s conftest.err'
30010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011  (eval $ac_try) 2>&5
30012  ac_status=$?
30013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014  (exit $ac_status); }; } &&
30015	 { ac_try='test -s conftest.$ac_objext'
30016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017  (eval $ac_try) 2>&5
30018  ac_status=$?
30019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020  (exit $ac_status); }; }; then
30021  eval "ac_cv_func_vasprintf_noproto=yes"
30022else
30023  echo "$as_me: failed program was:" >&5
30024sed 's/^/| /' conftest.$ac_ext >&5
30025
30026eval "ac_cv_func_vasprintf_noproto=no"
30027fi
30028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30029fi
30030echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5
30031echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6
30032if test "$ac_cv_func_vasprintf_noproto" = yes; then
30033
30034cat >>confdefs.h <<\_ACEOF
30035#define NEED_VASPRINTF_PROTO 1
30036_ACEOF
30037
30038fi
30039fi
30040
30041if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then
30042echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5
30043echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6
30044if test "${ac_cv_func_asnprintf_noproto+set}" = set; then
30045  echo $ECHO_N "(cached) $ECHO_C" >&6
30046else
30047  cat >conftest.$ac_ext <<_ACEOF
30048/* confdefs.h.  */
30049_ACEOF
30050cat confdefs.h >>conftest.$ac_ext
30051cat >>conftest.$ac_ext <<_ACEOF
30052/* end confdefs.h.  */
30053
30054	#include <stdio.h>
30055	#include <string.h>
30056int
30057main ()
30058{
30059struct foo { int foo; } xx;
30060extern int asnprintf (struct foo*);
30061asnprintf(&xx);
30062
30063  ;
30064  return 0;
30065}
30066_ACEOF
30067rm -f conftest.$ac_objext
30068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30069  (eval $ac_compile) 2>conftest.er1
30070  ac_status=$?
30071  grep -v '^ *+' conftest.er1 >conftest.err
30072  rm -f conftest.er1
30073  cat conftest.err >&5
30074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075  (exit $ac_status); } &&
30076	 { ac_try='test -z "$ac_c_werror_flag"
30077			 || test ! -s conftest.err'
30078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30079  (eval $ac_try) 2>&5
30080  ac_status=$?
30081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082  (exit $ac_status); }; } &&
30083	 { ac_try='test -s conftest.$ac_objext'
30084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30085  (eval $ac_try) 2>&5
30086  ac_status=$?
30087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30088  (exit $ac_status); }; }; then
30089  eval "ac_cv_func_asnprintf_noproto=yes"
30090else
30091  echo "$as_me: failed program was:" >&5
30092sed 's/^/| /' conftest.$ac_ext >&5
30093
30094eval "ac_cv_func_asnprintf_noproto=no"
30095fi
30096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30097fi
30098echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5
30099echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6
30100if test "$ac_cv_func_asnprintf_noproto" = yes; then
30101
30102cat >>confdefs.h <<\_ACEOF
30103#define NEED_ASNPRINTF_PROTO 1
30104_ACEOF
30105
30106fi
30107fi
30108
30109if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then
30110echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5
30111echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6
30112if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then
30113  echo $ECHO_N "(cached) $ECHO_C" >&6
30114else
30115  cat >conftest.$ac_ext <<_ACEOF
30116/* confdefs.h.  */
30117_ACEOF
30118cat confdefs.h >>conftest.$ac_ext
30119cat >>conftest.$ac_ext <<_ACEOF
30120/* end confdefs.h.  */
30121
30122	#include <stdio.h>
30123	#include <string.h>
30124int
30125main ()
30126{
30127struct foo { int foo; } xx;
30128extern int vasnprintf (struct foo*);
30129vasnprintf(&xx);
30130
30131  ;
30132  return 0;
30133}
30134_ACEOF
30135rm -f conftest.$ac_objext
30136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30137  (eval $ac_compile) 2>conftest.er1
30138  ac_status=$?
30139  grep -v '^ *+' conftest.er1 >conftest.err
30140  rm -f conftest.er1
30141  cat conftest.err >&5
30142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30143  (exit $ac_status); } &&
30144	 { ac_try='test -z "$ac_c_werror_flag"
30145			 || test ! -s conftest.err'
30146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147  (eval $ac_try) 2>&5
30148  ac_status=$?
30149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150  (exit $ac_status); }; } &&
30151	 { ac_try='test -s conftest.$ac_objext'
30152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30153  (eval $ac_try) 2>&5
30154  ac_status=$?
30155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156  (exit $ac_status); }; }; then
30157  eval "ac_cv_func_vasnprintf_noproto=yes"
30158else
30159  echo "$as_me: failed program was:" >&5
30160sed 's/^/| /' conftest.$ac_ext >&5
30161
30162eval "ac_cv_func_vasnprintf_noproto=no"
30163fi
30164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30165fi
30166echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5
30167echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6
30168if test "$ac_cv_func_vasnprintf_noproto" = yes; then
30169
30170cat >>confdefs.h <<\_ACEOF
30171#define NEED_VASNPRINTF_PROTO 1
30172_ACEOF
30173
30174fi
30175fi
30176
30177
30178
30179
30180
30181echo "$as_me:$LINENO: checking for bswap16" >&5
30182echo $ECHO_N "checking for bswap16... $ECHO_C" >&6
30183if test "${ac_cv_funclib_bswap16+set}" = set; then
30184  echo $ECHO_N "(cached) $ECHO_C" >&6
30185else
30186
30187if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then
30188	ac_save_LIBS="$LIBS"
30189	for ac_lib in "" ; do
30190		case "$ac_lib" in
30191		"") ;;
30192		yes) ac_lib="" ;;
30193		no) continue ;;
30194		-l*) ;;
30195		*) ac_lib="-l$ac_lib" ;;
30196		esac
30197		LIBS=" $ac_lib  $ac_save_LIBS"
30198		cat >conftest.$ac_ext <<_ACEOF
30199/* confdefs.h.  */
30200_ACEOF
30201cat confdefs.h >>conftest.$ac_ext
30202cat >>conftest.$ac_ext <<_ACEOF
30203/* end confdefs.h.  */
30204#ifdef HAVE_SYS_BSWAP_H
30205#include <sys/bswap.h>
30206#endif
30207int
30208main ()
30209{
30210bswap16(0)
30211  ;
30212  return 0;
30213}
30214_ACEOF
30215rm -f conftest.$ac_objext conftest$ac_exeext
30216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30217  (eval $ac_link) 2>conftest.er1
30218  ac_status=$?
30219  grep -v '^ *+' conftest.er1 >conftest.err
30220  rm -f conftest.er1
30221  cat conftest.err >&5
30222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223  (exit $ac_status); } &&
30224	 { ac_try='test -z "$ac_c_werror_flag"
30225			 || test ! -s conftest.err'
30226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227  (eval $ac_try) 2>&5
30228  ac_status=$?
30229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230  (exit $ac_status); }; } &&
30231	 { ac_try='test -s conftest$ac_exeext'
30232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30233  (eval $ac_try) 2>&5
30234  ac_status=$?
30235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236  (exit $ac_status); }; }; then
30237  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break
30238else
30239  echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
30242fi
30243rm -f conftest.err conftest.$ac_objext \
30244      conftest$ac_exeext conftest.$ac_ext
30245	done
30246	eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}"
30247	LIBS="$ac_save_LIBS"
30248fi
30249
30250fi
30251
30252
30253eval "ac_res=\$ac_cv_funclib_bswap16"
30254
30255if false; then
30256
30257for ac_func in bswap16
30258do
30259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30260echo "$as_me:$LINENO: checking for $ac_func" >&5
30261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30262if eval "test \"\${$as_ac_var+set}\" = set"; then
30263  echo $ECHO_N "(cached) $ECHO_C" >&6
30264else
30265  cat >conftest.$ac_ext <<_ACEOF
30266/* confdefs.h.  */
30267_ACEOF
30268cat confdefs.h >>conftest.$ac_ext
30269cat >>conftest.$ac_ext <<_ACEOF
30270/* end confdefs.h.  */
30271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30272   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30273#define $ac_func innocuous_$ac_func
30274
30275/* System header to define __stub macros and hopefully few prototypes,
30276    which can conflict with char $ac_func (); below.
30277    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30278    <limits.h> exists even on freestanding compilers.  */
30279
30280#ifdef __STDC__
30281# include <limits.h>
30282#else
30283# include <assert.h>
30284#endif
30285
30286#undef $ac_func
30287
30288/* Override any gcc2 internal prototype to avoid an error.  */
30289#ifdef __cplusplus
30290extern "C"
30291{
30292#endif
30293/* We use char because int might match the return type of a gcc2
30294   builtin and then its argument prototype would still apply.  */
30295char $ac_func ();
30296/* The GNU C library defines this for functions which it implements
30297    to always fail with ENOSYS.  Some functions are actually named
30298    something starting with __ and the normal name is an alias.  */
30299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30300choke me
30301#else
30302char (*f) () = $ac_func;
30303#endif
30304#ifdef __cplusplus
30305}
30306#endif
30307
30308int
30309main ()
30310{
30311return f != $ac_func;
30312  ;
30313  return 0;
30314}
30315_ACEOF
30316rm -f conftest.$ac_objext conftest$ac_exeext
30317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30318  (eval $ac_link) 2>conftest.er1
30319  ac_status=$?
30320  grep -v '^ *+' conftest.er1 >conftest.err
30321  rm -f conftest.er1
30322  cat conftest.err >&5
30323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324  (exit $ac_status); } &&
30325	 { ac_try='test -z "$ac_c_werror_flag"
30326			 || test ! -s conftest.err'
30327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30328  (eval $ac_try) 2>&5
30329  ac_status=$?
30330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331  (exit $ac_status); }; } &&
30332	 { ac_try='test -s conftest$ac_exeext'
30333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334  (eval $ac_try) 2>&5
30335  ac_status=$?
30336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337  (exit $ac_status); }; }; then
30338  eval "$as_ac_var=yes"
30339else
30340  echo "$as_me: failed program was:" >&5
30341sed 's/^/| /' conftest.$ac_ext >&5
30342
30343eval "$as_ac_var=no"
30344fi
30345rm -f conftest.err conftest.$ac_objext \
30346      conftest$ac_exeext conftest.$ac_ext
30347fi
30348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30349echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30350if test `eval echo '${'$as_ac_var'}'` = yes; then
30351  cat >>confdefs.h <<_ACEOF
30352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30353_ACEOF
30354
30355fi
30356done
30357
30358fi
30359# bswap16
30360eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30361eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30362eval "LIB_bswap16=$ac_res"
30363
30364case "$ac_res" in
30365	yes)
30366	eval "ac_cv_func_bswap16=yes"
30367	eval "LIB_bswap16="
30368	cat >>confdefs.h <<_ACEOF
30369#define $ac_tr_func 1
30370_ACEOF
30371
30372	echo "$as_me:$LINENO: result: yes" >&5
30373echo "${ECHO_T}yes" >&6
30374	;;
30375	no)
30376	eval "ac_cv_func_bswap16=no"
30377	eval "LIB_bswap16="
30378	echo "$as_me:$LINENO: result: no" >&5
30379echo "${ECHO_T}no" >&6
30380	;;
30381	*)
30382	eval "ac_cv_func_bswap16=yes"
30383	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30384	cat >>confdefs.h <<_ACEOF
30385#define $ac_tr_func 1
30386_ACEOF
30387
30388	cat >>confdefs.h <<_ACEOF
30389#define $ac_tr_lib 1
30390_ACEOF
30391
30392	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30393echo "${ECHO_T}yes, in $ac_res" >&6
30394	;;
30395esac
30396
30397
30398
30399
30400
30401
30402echo "$as_me:$LINENO: checking for bswap32" >&5
30403echo $ECHO_N "checking for bswap32... $ECHO_C" >&6
30404if test "${ac_cv_funclib_bswap32+set}" = set; then
30405  echo $ECHO_N "(cached) $ECHO_C" >&6
30406else
30407
30408if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then
30409	ac_save_LIBS="$LIBS"
30410	for ac_lib in "" ; do
30411		case "$ac_lib" in
30412		"") ;;
30413		yes) ac_lib="" ;;
30414		no) continue ;;
30415		-l*) ;;
30416		*) ac_lib="-l$ac_lib" ;;
30417		esac
30418		LIBS=" $ac_lib  $ac_save_LIBS"
30419		cat >conftest.$ac_ext <<_ACEOF
30420/* confdefs.h.  */
30421_ACEOF
30422cat confdefs.h >>conftest.$ac_ext
30423cat >>conftest.$ac_ext <<_ACEOF
30424/* end confdefs.h.  */
30425#ifdef HAVE_SYS_BSWAP_H
30426#include <sys/bswap.h>
30427#endif
30428int
30429main ()
30430{
30431bswap32(0)
30432  ;
30433  return 0;
30434}
30435_ACEOF
30436rm -f conftest.$ac_objext conftest$ac_exeext
30437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30438  (eval $ac_link) 2>conftest.er1
30439  ac_status=$?
30440  grep -v '^ *+' conftest.er1 >conftest.err
30441  rm -f conftest.er1
30442  cat conftest.err >&5
30443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444  (exit $ac_status); } &&
30445	 { ac_try='test -z "$ac_c_werror_flag"
30446			 || test ! -s conftest.err'
30447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30448  (eval $ac_try) 2>&5
30449  ac_status=$?
30450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451  (exit $ac_status); }; } &&
30452	 { ac_try='test -s conftest$ac_exeext'
30453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30454  (eval $ac_try) 2>&5
30455  ac_status=$?
30456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30457  (exit $ac_status); }; }; then
30458  eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break
30459else
30460  echo "$as_me: failed program was:" >&5
30461sed 's/^/| /' conftest.$ac_ext >&5
30462
30463fi
30464rm -f conftest.err conftest.$ac_objext \
30465      conftest$ac_exeext conftest.$ac_ext
30466	done
30467	eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}"
30468	LIBS="$ac_save_LIBS"
30469fi
30470
30471fi
30472
30473
30474eval "ac_res=\$ac_cv_funclib_bswap32"
30475
30476if false; then
30477
30478for ac_func in bswap32
30479do
30480as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30481echo "$as_me:$LINENO: checking for $ac_func" >&5
30482echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30483if eval "test \"\${$as_ac_var+set}\" = set"; then
30484  echo $ECHO_N "(cached) $ECHO_C" >&6
30485else
30486  cat >conftest.$ac_ext <<_ACEOF
30487/* confdefs.h.  */
30488_ACEOF
30489cat confdefs.h >>conftest.$ac_ext
30490cat >>conftest.$ac_ext <<_ACEOF
30491/* end confdefs.h.  */
30492/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30493   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30494#define $ac_func innocuous_$ac_func
30495
30496/* System header to define __stub macros and hopefully few prototypes,
30497    which can conflict with char $ac_func (); below.
30498    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30499    <limits.h> exists even on freestanding compilers.  */
30500
30501#ifdef __STDC__
30502# include <limits.h>
30503#else
30504# include <assert.h>
30505#endif
30506
30507#undef $ac_func
30508
30509/* Override any gcc2 internal prototype to avoid an error.  */
30510#ifdef __cplusplus
30511extern "C"
30512{
30513#endif
30514/* We use char because int might match the return type of a gcc2
30515   builtin and then its argument prototype would still apply.  */
30516char $ac_func ();
30517/* The GNU C library defines this for functions which it implements
30518    to always fail with ENOSYS.  Some functions are actually named
30519    something starting with __ and the normal name is an alias.  */
30520#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30521choke me
30522#else
30523char (*f) () = $ac_func;
30524#endif
30525#ifdef __cplusplus
30526}
30527#endif
30528
30529int
30530main ()
30531{
30532return f != $ac_func;
30533  ;
30534  return 0;
30535}
30536_ACEOF
30537rm -f conftest.$ac_objext conftest$ac_exeext
30538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30539  (eval $ac_link) 2>conftest.er1
30540  ac_status=$?
30541  grep -v '^ *+' conftest.er1 >conftest.err
30542  rm -f conftest.er1
30543  cat conftest.err >&5
30544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545  (exit $ac_status); } &&
30546	 { ac_try='test -z "$ac_c_werror_flag"
30547			 || test ! -s conftest.err'
30548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30549  (eval $ac_try) 2>&5
30550  ac_status=$?
30551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552  (exit $ac_status); }; } &&
30553	 { ac_try='test -s conftest$ac_exeext'
30554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30555  (eval $ac_try) 2>&5
30556  ac_status=$?
30557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558  (exit $ac_status); }; }; then
30559  eval "$as_ac_var=yes"
30560else
30561  echo "$as_me: failed program was:" >&5
30562sed 's/^/| /' conftest.$ac_ext >&5
30563
30564eval "$as_ac_var=no"
30565fi
30566rm -f conftest.err conftest.$ac_objext \
30567      conftest$ac_exeext conftest.$ac_ext
30568fi
30569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30571if test `eval echo '${'$as_ac_var'}'` = yes; then
30572  cat >>confdefs.h <<_ACEOF
30573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30574_ACEOF
30575
30576fi
30577done
30578
30579fi
30580# bswap32
30581eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30582eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30583eval "LIB_bswap32=$ac_res"
30584
30585case "$ac_res" in
30586	yes)
30587	eval "ac_cv_func_bswap32=yes"
30588	eval "LIB_bswap32="
30589	cat >>confdefs.h <<_ACEOF
30590#define $ac_tr_func 1
30591_ACEOF
30592
30593	echo "$as_me:$LINENO: result: yes" >&5
30594echo "${ECHO_T}yes" >&6
30595	;;
30596	no)
30597	eval "ac_cv_func_bswap32=no"
30598	eval "LIB_bswap32="
30599	echo "$as_me:$LINENO: result: no" >&5
30600echo "${ECHO_T}no" >&6
30601	;;
30602	*)
30603	eval "ac_cv_func_bswap32=yes"
30604	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30605	cat >>confdefs.h <<_ACEOF
30606#define $ac_tr_func 1
30607_ACEOF
30608
30609	cat >>confdefs.h <<_ACEOF
30610#define $ac_tr_lib 1
30611_ACEOF
30612
30613	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30614echo "${ECHO_T}yes, in $ac_res" >&6
30615	;;
30616esac
30617
30618
30619
30620
30621
30622
30623echo "$as_me:$LINENO: checking for pidfile" >&5
30624echo $ECHO_N "checking for pidfile... $ECHO_C" >&6
30625if test "${ac_cv_funclib_pidfile+set}" = set; then
30626  echo $ECHO_N "(cached) $ECHO_C" >&6
30627else
30628
30629if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then
30630	ac_save_LIBS="$LIBS"
30631	for ac_lib in "" util; do
30632		case "$ac_lib" in
30633		"") ;;
30634		yes) ac_lib="" ;;
30635		no) continue ;;
30636		-l*) ;;
30637		*) ac_lib="-l$ac_lib" ;;
30638		esac
30639		LIBS=" $ac_lib  $ac_save_LIBS"
30640		cat >conftest.$ac_ext <<_ACEOF
30641/* confdefs.h.  */
30642_ACEOF
30643cat confdefs.h >>conftest.$ac_ext
30644cat >>conftest.$ac_ext <<_ACEOF
30645/* end confdefs.h.  */
30646#ifdef HAVE_UTIL_H
30647#include <util.h>
30648#endif
30649int
30650main ()
30651{
30652pidfile(0)
30653  ;
30654  return 0;
30655}
30656_ACEOF
30657rm -f conftest.$ac_objext conftest$ac_exeext
30658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30659  (eval $ac_link) 2>conftest.er1
30660  ac_status=$?
30661  grep -v '^ *+' conftest.er1 >conftest.err
30662  rm -f conftest.er1
30663  cat conftest.err >&5
30664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665  (exit $ac_status); } &&
30666	 { ac_try='test -z "$ac_c_werror_flag"
30667			 || test ! -s conftest.err'
30668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30669  (eval $ac_try) 2>&5
30670  ac_status=$?
30671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30672  (exit $ac_status); }; } &&
30673	 { ac_try='test -s conftest$ac_exeext'
30674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30675  (eval $ac_try) 2>&5
30676  ac_status=$?
30677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678  (exit $ac_status); }; }; then
30679  eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break
30680else
30681  echo "$as_me: failed program was:" >&5
30682sed 's/^/| /' conftest.$ac_ext >&5
30683
30684fi
30685rm -f conftest.err conftest.$ac_objext \
30686      conftest$ac_exeext conftest.$ac_ext
30687	done
30688	eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}"
30689	LIBS="$ac_save_LIBS"
30690fi
30691
30692fi
30693
30694
30695eval "ac_res=\$ac_cv_funclib_pidfile"
30696
30697if false; then
30698
30699for ac_func in pidfile
30700do
30701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30702echo "$as_me:$LINENO: checking for $ac_func" >&5
30703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30704if eval "test \"\${$as_ac_var+set}\" = set"; then
30705  echo $ECHO_N "(cached) $ECHO_C" >&6
30706else
30707  cat >conftest.$ac_ext <<_ACEOF
30708/* confdefs.h.  */
30709_ACEOF
30710cat confdefs.h >>conftest.$ac_ext
30711cat >>conftest.$ac_ext <<_ACEOF
30712/* end confdefs.h.  */
30713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30714   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30715#define $ac_func innocuous_$ac_func
30716
30717/* System header to define __stub macros and hopefully few prototypes,
30718    which can conflict with char $ac_func (); below.
30719    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720    <limits.h> exists even on freestanding compilers.  */
30721
30722#ifdef __STDC__
30723# include <limits.h>
30724#else
30725# include <assert.h>
30726#endif
30727
30728#undef $ac_func
30729
30730/* Override any gcc2 internal prototype to avoid an error.  */
30731#ifdef __cplusplus
30732extern "C"
30733{
30734#endif
30735/* We use char because int might match the return type of a gcc2
30736   builtin and then its argument prototype would still apply.  */
30737char $ac_func ();
30738/* The GNU C library defines this for functions which it implements
30739    to always fail with ENOSYS.  Some functions are actually named
30740    something starting with __ and the normal name is an alias.  */
30741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30742choke me
30743#else
30744char (*f) () = $ac_func;
30745#endif
30746#ifdef __cplusplus
30747}
30748#endif
30749
30750int
30751main ()
30752{
30753return f != $ac_func;
30754  ;
30755  return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext conftest$ac_exeext
30759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30760  (eval $ac_link) 2>conftest.er1
30761  ac_status=$?
30762  grep -v '^ *+' conftest.er1 >conftest.err
30763  rm -f conftest.er1
30764  cat conftest.err >&5
30765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766  (exit $ac_status); } &&
30767	 { ac_try='test -z "$ac_c_werror_flag"
30768			 || test ! -s conftest.err'
30769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770  (eval $ac_try) 2>&5
30771  ac_status=$?
30772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773  (exit $ac_status); }; } &&
30774	 { ac_try='test -s conftest$ac_exeext'
30775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776  (eval $ac_try) 2>&5
30777  ac_status=$?
30778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779  (exit $ac_status); }; }; then
30780  eval "$as_ac_var=yes"
30781else
30782  echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785eval "$as_ac_var=no"
30786fi
30787rm -f conftest.err conftest.$ac_objext \
30788      conftest$ac_exeext conftest.$ac_ext
30789fi
30790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30792if test `eval echo '${'$as_ac_var'}'` = yes; then
30793  cat >>confdefs.h <<_ACEOF
30794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30795_ACEOF
30796
30797fi
30798done
30799
30800fi
30801# pidfile
30802eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30803eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
30804eval "LIB_pidfile=$ac_res"
30805
30806case "$ac_res" in
30807	yes)
30808	eval "ac_cv_func_pidfile=yes"
30809	eval "LIB_pidfile="
30810	cat >>confdefs.h <<_ACEOF
30811#define $ac_tr_func 1
30812_ACEOF
30813
30814	echo "$as_me:$LINENO: result: yes" >&5
30815echo "${ECHO_T}yes" >&6
30816	;;
30817	no)
30818	eval "ac_cv_func_pidfile=no"
30819	eval "LIB_pidfile="
30820	echo "$as_me:$LINENO: result: no" >&5
30821echo "${ECHO_T}no" >&6
30822	;;
30823	*)
30824	eval "ac_cv_func_pidfile=yes"
30825	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
30826	cat >>confdefs.h <<_ACEOF
30827#define $ac_tr_func 1
30828_ACEOF
30829
30830	cat >>confdefs.h <<_ACEOF
30831#define $ac_tr_lib 1
30832_ACEOF
30833
30834	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
30835echo "${ECHO_T}yes, in $ac_res" >&6
30836	;;
30837esac
30838
30839
30840
30841
30842
30843
30844
30845echo "$as_me:$LINENO: checking for getaddrinfo" >&5
30846echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
30847if test "${ac_cv_funclib_getaddrinfo+set}" = set; then
30848  echo $ECHO_N "(cached) $ECHO_C" >&6
30849else
30850
30851if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then
30852	ac_save_LIBS="$LIBS"
30853	for ac_lib in "" ; do
30854		case "$ac_lib" in
30855		"") ;;
30856		yes) ac_lib="" ;;
30857		no) continue ;;
30858		-l*) ;;
30859		*) ac_lib="-l$ac_lib" ;;
30860		esac
30861		LIBS=" $ac_lib  $ac_save_LIBS"
30862		cat >conftest.$ac_ext <<_ACEOF
30863/* confdefs.h.  */
30864_ACEOF
30865cat confdefs.h >>conftest.$ac_ext
30866cat >>conftest.$ac_ext <<_ACEOF
30867/* end confdefs.h.  */
30868#ifdef HAVE_NETDB_H
30869#include <netdb.h>
30870#endif
30871int
30872main ()
30873{
30874getaddrinfo(0,0,0,0)
30875  ;
30876  return 0;
30877}
30878_ACEOF
30879rm -f conftest.$ac_objext conftest$ac_exeext
30880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30881  (eval $ac_link) 2>conftest.er1
30882  ac_status=$?
30883  grep -v '^ *+' conftest.er1 >conftest.err
30884  rm -f conftest.er1
30885  cat conftest.err >&5
30886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887  (exit $ac_status); } &&
30888	 { ac_try='test -z "$ac_c_werror_flag"
30889			 || test ! -s conftest.err'
30890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891  (eval $ac_try) 2>&5
30892  ac_status=$?
30893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894  (exit $ac_status); }; } &&
30895	 { ac_try='test -s conftest$ac_exeext'
30896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897  (eval $ac_try) 2>&5
30898  ac_status=$?
30899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900  (exit $ac_status); }; }; then
30901  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break
30902else
30903  echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906fi
30907rm -f conftest.err conftest.$ac_objext \
30908      conftest$ac_exeext conftest.$ac_ext
30909	done
30910	eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}"
30911	LIBS="$ac_save_LIBS"
30912fi
30913
30914fi
30915
30916
30917eval "ac_res=\$ac_cv_funclib_getaddrinfo"
30918
30919if false; then
30920
30921for ac_func in getaddrinfo
30922do
30923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30924echo "$as_me:$LINENO: checking for $ac_func" >&5
30925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30926if eval "test \"\${$as_ac_var+set}\" = set"; then
30927  echo $ECHO_N "(cached) $ECHO_C" >&6
30928else
30929  cat >conftest.$ac_ext <<_ACEOF
30930/* confdefs.h.  */
30931_ACEOF
30932cat confdefs.h >>conftest.$ac_ext
30933cat >>conftest.$ac_ext <<_ACEOF
30934/* end confdefs.h.  */
30935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30937#define $ac_func innocuous_$ac_func
30938
30939/* System header to define __stub macros and hopefully few prototypes,
30940    which can conflict with char $ac_func (); below.
30941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30942    <limits.h> exists even on freestanding compilers.  */
30943
30944#ifdef __STDC__
30945# include <limits.h>
30946#else
30947# include <assert.h>
30948#endif
30949
30950#undef $ac_func
30951
30952/* Override any gcc2 internal prototype to avoid an error.  */
30953#ifdef __cplusplus
30954extern "C"
30955{
30956#endif
30957/* We use char because int might match the return type of a gcc2
30958   builtin and then its argument prototype would still apply.  */
30959char $ac_func ();
30960/* The GNU C library defines this for functions which it implements
30961    to always fail with ENOSYS.  Some functions are actually named
30962    something starting with __ and the normal name is an alias.  */
30963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30964choke me
30965#else
30966char (*f) () = $ac_func;
30967#endif
30968#ifdef __cplusplus
30969}
30970#endif
30971
30972int
30973main ()
30974{
30975return f != $ac_func;
30976  ;
30977  return 0;
30978}
30979_ACEOF
30980rm -f conftest.$ac_objext conftest$ac_exeext
30981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30982  (eval $ac_link) 2>conftest.er1
30983  ac_status=$?
30984  grep -v '^ *+' conftest.er1 >conftest.err
30985  rm -f conftest.er1
30986  cat conftest.err >&5
30987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988  (exit $ac_status); } &&
30989	 { ac_try='test -z "$ac_c_werror_flag"
30990			 || test ! -s conftest.err'
30991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30992  (eval $ac_try) 2>&5
30993  ac_status=$?
30994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995  (exit $ac_status); }; } &&
30996	 { ac_try='test -s conftest$ac_exeext'
30997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30998  (eval $ac_try) 2>&5
30999  ac_status=$?
31000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001  (exit $ac_status); }; }; then
31002  eval "$as_ac_var=yes"
31003else
31004  echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007eval "$as_ac_var=no"
31008fi
31009rm -f conftest.err conftest.$ac_objext \
31010      conftest$ac_exeext conftest.$ac_ext
31011fi
31012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31013echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31014if test `eval echo '${'$as_ac_var'}'` = yes; then
31015  cat >>confdefs.h <<_ACEOF
31016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31017_ACEOF
31018
31019fi
31020done
31021
31022fi
31023# getaddrinfo
31024eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31025eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31026eval "LIB_getaddrinfo=$ac_res"
31027
31028case "$ac_res" in
31029	yes)
31030	eval "ac_cv_func_getaddrinfo=yes"
31031	eval "LIB_getaddrinfo="
31032	cat >>confdefs.h <<_ACEOF
31033#define $ac_tr_func 1
31034_ACEOF
31035
31036	echo "$as_me:$LINENO: result: yes" >&5
31037echo "${ECHO_T}yes" >&6
31038	;;
31039	no)
31040	eval "ac_cv_func_getaddrinfo=no"
31041	eval "LIB_getaddrinfo="
31042	echo "$as_me:$LINENO: result: no" >&5
31043echo "${ECHO_T}no" >&6
31044	;;
31045	*)
31046	eval "ac_cv_func_getaddrinfo=yes"
31047	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31048	cat >>confdefs.h <<_ACEOF
31049#define $ac_tr_func 1
31050_ACEOF
31051
31052	cat >>confdefs.h <<_ACEOF
31053#define $ac_tr_lib 1
31054_ACEOF
31055
31056	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31057echo "${ECHO_T}yes, in $ac_res" >&6
31058	;;
31059esac
31060
31061
31062if test -n "$LIB_getaddrinfo"; then
31063	LIBS="$LIB_getaddrinfo $LIBS"
31064fi
31065
31066if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then
31067	case $LIBOBJS in
31068    "getaddrinfo.$ac_objext"   | \
31069  *" getaddrinfo.$ac_objext"   | \
31070    "getaddrinfo.$ac_objext "* | \
31071  *" getaddrinfo.$ac_objext "* ) ;;
31072  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
31073esac
31074
31075fi
31076
31077
31078
31079
31080
31081
31082echo "$as_me:$LINENO: checking for getnameinfo" >&5
31083echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6
31084if test "${ac_cv_funclib_getnameinfo+set}" = set; then
31085  echo $ECHO_N "(cached) $ECHO_C" >&6
31086else
31087
31088if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then
31089	ac_save_LIBS="$LIBS"
31090	for ac_lib in "" ; do
31091		case "$ac_lib" in
31092		"") ;;
31093		yes) ac_lib="" ;;
31094		no) continue ;;
31095		-l*) ;;
31096		*) ac_lib="-l$ac_lib" ;;
31097		esac
31098		LIBS=" $ac_lib  $ac_save_LIBS"
31099		cat >conftest.$ac_ext <<_ACEOF
31100/* confdefs.h.  */
31101_ACEOF
31102cat confdefs.h >>conftest.$ac_ext
31103cat >>conftest.$ac_ext <<_ACEOF
31104/* end confdefs.h.  */
31105#ifdef HAVE_NETDB_H
31106#include <netdb.h>
31107#endif
31108int
31109main ()
31110{
31111getnameinfo(0,0,0,0,0,0,0)
31112  ;
31113  return 0;
31114}
31115_ACEOF
31116rm -f conftest.$ac_objext conftest$ac_exeext
31117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31118  (eval $ac_link) 2>conftest.er1
31119  ac_status=$?
31120  grep -v '^ *+' conftest.er1 >conftest.err
31121  rm -f conftest.er1
31122  cat conftest.err >&5
31123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31124  (exit $ac_status); } &&
31125	 { ac_try='test -z "$ac_c_werror_flag"
31126			 || test ! -s conftest.err'
31127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31128  (eval $ac_try) 2>&5
31129  ac_status=$?
31130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131  (exit $ac_status); }; } &&
31132	 { ac_try='test -s conftest$ac_exeext'
31133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134  (eval $ac_try) 2>&5
31135  ac_status=$?
31136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137  (exit $ac_status); }; }; then
31138  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break
31139else
31140  echo "$as_me: failed program was:" >&5
31141sed 's/^/| /' conftest.$ac_ext >&5
31142
31143fi
31144rm -f conftest.err conftest.$ac_objext \
31145      conftest$ac_exeext conftest.$ac_ext
31146	done
31147	eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}"
31148	LIBS="$ac_save_LIBS"
31149fi
31150
31151fi
31152
31153
31154eval "ac_res=\$ac_cv_funclib_getnameinfo"
31155
31156if false; then
31157
31158for ac_func in getnameinfo
31159do
31160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31161echo "$as_me:$LINENO: checking for $ac_func" >&5
31162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31163if eval "test \"\${$as_ac_var+set}\" = set"; then
31164  echo $ECHO_N "(cached) $ECHO_C" >&6
31165else
31166  cat >conftest.$ac_ext <<_ACEOF
31167/* confdefs.h.  */
31168_ACEOF
31169cat confdefs.h >>conftest.$ac_ext
31170cat >>conftest.$ac_ext <<_ACEOF
31171/* end confdefs.h.  */
31172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31173   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31174#define $ac_func innocuous_$ac_func
31175
31176/* System header to define __stub macros and hopefully few prototypes,
31177    which can conflict with char $ac_func (); below.
31178    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31179    <limits.h> exists even on freestanding compilers.  */
31180
31181#ifdef __STDC__
31182# include <limits.h>
31183#else
31184# include <assert.h>
31185#endif
31186
31187#undef $ac_func
31188
31189/* Override any gcc2 internal prototype to avoid an error.  */
31190#ifdef __cplusplus
31191extern "C"
31192{
31193#endif
31194/* We use char because int might match the return type of a gcc2
31195   builtin and then its argument prototype would still apply.  */
31196char $ac_func ();
31197/* The GNU C library defines this for functions which it implements
31198    to always fail with ENOSYS.  Some functions are actually named
31199    something starting with __ and the normal name is an alias.  */
31200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31201choke me
31202#else
31203char (*f) () = $ac_func;
31204#endif
31205#ifdef __cplusplus
31206}
31207#endif
31208
31209int
31210main ()
31211{
31212return f != $ac_func;
31213  ;
31214  return 0;
31215}
31216_ACEOF
31217rm -f conftest.$ac_objext conftest$ac_exeext
31218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31219  (eval $ac_link) 2>conftest.er1
31220  ac_status=$?
31221  grep -v '^ *+' conftest.er1 >conftest.err
31222  rm -f conftest.er1
31223  cat conftest.err >&5
31224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225  (exit $ac_status); } &&
31226	 { ac_try='test -z "$ac_c_werror_flag"
31227			 || test ! -s conftest.err'
31228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229  (eval $ac_try) 2>&5
31230  ac_status=$?
31231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232  (exit $ac_status); }; } &&
31233	 { ac_try='test -s conftest$ac_exeext'
31234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31235  (eval $ac_try) 2>&5
31236  ac_status=$?
31237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238  (exit $ac_status); }; }; then
31239  eval "$as_ac_var=yes"
31240else
31241  echo "$as_me: failed program was:" >&5
31242sed 's/^/| /' conftest.$ac_ext >&5
31243
31244eval "$as_ac_var=no"
31245fi
31246rm -f conftest.err conftest.$ac_objext \
31247      conftest$ac_exeext conftest.$ac_ext
31248fi
31249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31250echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31251if test `eval echo '${'$as_ac_var'}'` = yes; then
31252  cat >>confdefs.h <<_ACEOF
31253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31254_ACEOF
31255
31256fi
31257done
31258
31259fi
31260# getnameinfo
31261eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31262eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31263eval "LIB_getnameinfo=$ac_res"
31264
31265case "$ac_res" in
31266	yes)
31267	eval "ac_cv_func_getnameinfo=yes"
31268	eval "LIB_getnameinfo="
31269	cat >>confdefs.h <<_ACEOF
31270#define $ac_tr_func 1
31271_ACEOF
31272
31273	echo "$as_me:$LINENO: result: yes" >&5
31274echo "${ECHO_T}yes" >&6
31275	;;
31276	no)
31277	eval "ac_cv_func_getnameinfo=no"
31278	eval "LIB_getnameinfo="
31279	echo "$as_me:$LINENO: result: no" >&5
31280echo "${ECHO_T}no" >&6
31281	;;
31282	*)
31283	eval "ac_cv_func_getnameinfo=yes"
31284	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31285	cat >>confdefs.h <<_ACEOF
31286#define $ac_tr_func 1
31287_ACEOF
31288
31289	cat >>confdefs.h <<_ACEOF
31290#define $ac_tr_lib 1
31291_ACEOF
31292
31293	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31294echo "${ECHO_T}yes, in $ac_res" >&6
31295	;;
31296esac
31297
31298
31299if test -n "$LIB_getnameinfo"; then
31300	LIBS="$LIB_getnameinfo $LIBS"
31301fi
31302
31303if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then
31304	case $LIBOBJS in
31305    "getnameinfo.$ac_objext"   | \
31306  *" getnameinfo.$ac_objext"   | \
31307    "getnameinfo.$ac_objext "* | \
31308  *" getnameinfo.$ac_objext "* ) ;;
31309  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
31310esac
31311
31312fi
31313
31314
31315
31316
31317
31318
31319echo "$as_me:$LINENO: checking for freeaddrinfo" >&5
31320echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6
31321if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then
31322  echo $ECHO_N "(cached) $ECHO_C" >&6
31323else
31324
31325if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then
31326	ac_save_LIBS="$LIBS"
31327	for ac_lib in "" ; do
31328		case "$ac_lib" in
31329		"") ;;
31330		yes) ac_lib="" ;;
31331		no) continue ;;
31332		-l*) ;;
31333		*) ac_lib="-l$ac_lib" ;;
31334		esac
31335		LIBS=" $ac_lib  $ac_save_LIBS"
31336		cat >conftest.$ac_ext <<_ACEOF
31337/* confdefs.h.  */
31338_ACEOF
31339cat confdefs.h >>conftest.$ac_ext
31340cat >>conftest.$ac_ext <<_ACEOF
31341/* end confdefs.h.  */
31342#ifdef HAVE_NETDB_H
31343#include <netdb.h>
31344#endif
31345int
31346main ()
31347{
31348freeaddrinfo(0)
31349  ;
31350  return 0;
31351}
31352_ACEOF
31353rm -f conftest.$ac_objext conftest$ac_exeext
31354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31355  (eval $ac_link) 2>conftest.er1
31356  ac_status=$?
31357  grep -v '^ *+' conftest.er1 >conftest.err
31358  rm -f conftest.er1
31359  cat conftest.err >&5
31360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361  (exit $ac_status); } &&
31362	 { ac_try='test -z "$ac_c_werror_flag"
31363			 || test ! -s conftest.err'
31364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31365  (eval $ac_try) 2>&5
31366  ac_status=$?
31367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31368  (exit $ac_status); }; } &&
31369	 { ac_try='test -s conftest$ac_exeext'
31370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31371  (eval $ac_try) 2>&5
31372  ac_status=$?
31373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374  (exit $ac_status); }; }; then
31375  eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break
31376else
31377  echo "$as_me: failed program was:" >&5
31378sed 's/^/| /' conftest.$ac_ext >&5
31379
31380fi
31381rm -f conftest.err conftest.$ac_objext \
31382      conftest$ac_exeext conftest.$ac_ext
31383	done
31384	eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}"
31385	LIBS="$ac_save_LIBS"
31386fi
31387
31388fi
31389
31390
31391eval "ac_res=\$ac_cv_funclib_freeaddrinfo"
31392
31393if false; then
31394
31395for ac_func in freeaddrinfo
31396do
31397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31398echo "$as_me:$LINENO: checking for $ac_func" >&5
31399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31400if eval "test \"\${$as_ac_var+set}\" = set"; then
31401  echo $ECHO_N "(cached) $ECHO_C" >&6
31402else
31403  cat >conftest.$ac_ext <<_ACEOF
31404/* confdefs.h.  */
31405_ACEOF
31406cat confdefs.h >>conftest.$ac_ext
31407cat >>conftest.$ac_ext <<_ACEOF
31408/* end confdefs.h.  */
31409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31410   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31411#define $ac_func innocuous_$ac_func
31412
31413/* System header to define __stub macros and hopefully few prototypes,
31414    which can conflict with char $ac_func (); below.
31415    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31416    <limits.h> exists even on freestanding compilers.  */
31417
31418#ifdef __STDC__
31419# include <limits.h>
31420#else
31421# include <assert.h>
31422#endif
31423
31424#undef $ac_func
31425
31426/* Override any gcc2 internal prototype to avoid an error.  */
31427#ifdef __cplusplus
31428extern "C"
31429{
31430#endif
31431/* We use char because int might match the return type of a gcc2
31432   builtin and then its argument prototype would still apply.  */
31433char $ac_func ();
31434/* The GNU C library defines this for functions which it implements
31435    to always fail with ENOSYS.  Some functions are actually named
31436    something starting with __ and the normal name is an alias.  */
31437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31438choke me
31439#else
31440char (*f) () = $ac_func;
31441#endif
31442#ifdef __cplusplus
31443}
31444#endif
31445
31446int
31447main ()
31448{
31449return f != $ac_func;
31450  ;
31451  return 0;
31452}
31453_ACEOF
31454rm -f conftest.$ac_objext conftest$ac_exeext
31455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31456  (eval $ac_link) 2>conftest.er1
31457  ac_status=$?
31458  grep -v '^ *+' conftest.er1 >conftest.err
31459  rm -f conftest.er1
31460  cat conftest.err >&5
31461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462  (exit $ac_status); } &&
31463	 { ac_try='test -z "$ac_c_werror_flag"
31464			 || test ! -s conftest.err'
31465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466  (eval $ac_try) 2>&5
31467  ac_status=$?
31468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469  (exit $ac_status); }; } &&
31470	 { ac_try='test -s conftest$ac_exeext'
31471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472  (eval $ac_try) 2>&5
31473  ac_status=$?
31474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475  (exit $ac_status); }; }; then
31476  eval "$as_ac_var=yes"
31477else
31478  echo "$as_me: failed program was:" >&5
31479sed 's/^/| /' conftest.$ac_ext >&5
31480
31481eval "$as_ac_var=no"
31482fi
31483rm -f conftest.err conftest.$ac_objext \
31484      conftest$ac_exeext conftest.$ac_ext
31485fi
31486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31488if test `eval echo '${'$as_ac_var'}'` = yes; then
31489  cat >>confdefs.h <<_ACEOF
31490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31491_ACEOF
31492
31493fi
31494done
31495
31496fi
31497# freeaddrinfo
31498eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31499eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31500eval "LIB_freeaddrinfo=$ac_res"
31501
31502case "$ac_res" in
31503	yes)
31504	eval "ac_cv_func_freeaddrinfo=yes"
31505	eval "LIB_freeaddrinfo="
31506	cat >>confdefs.h <<_ACEOF
31507#define $ac_tr_func 1
31508_ACEOF
31509
31510	echo "$as_me:$LINENO: result: yes" >&5
31511echo "${ECHO_T}yes" >&6
31512	;;
31513	no)
31514	eval "ac_cv_func_freeaddrinfo=no"
31515	eval "LIB_freeaddrinfo="
31516	echo "$as_me:$LINENO: result: no" >&5
31517echo "${ECHO_T}no" >&6
31518	;;
31519	*)
31520	eval "ac_cv_func_freeaddrinfo=yes"
31521	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31522	cat >>confdefs.h <<_ACEOF
31523#define $ac_tr_func 1
31524_ACEOF
31525
31526	cat >>confdefs.h <<_ACEOF
31527#define $ac_tr_lib 1
31528_ACEOF
31529
31530	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31531echo "${ECHO_T}yes, in $ac_res" >&6
31532	;;
31533esac
31534
31535
31536if test -n "$LIB_freeaddrinfo"; then
31537	LIBS="$LIB_freeaddrinfo $LIBS"
31538fi
31539
31540if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then
31541	case $LIBOBJS in
31542    "freeaddrinfo.$ac_objext"   | \
31543  *" freeaddrinfo.$ac_objext"   | \
31544    "freeaddrinfo.$ac_objext "* | \
31545  *" freeaddrinfo.$ac_objext "* ) ;;
31546  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
31547esac
31548
31549fi
31550
31551
31552
31553
31554
31555
31556echo "$as_me:$LINENO: checking for gai_strerror" >&5
31557echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6
31558if test "${ac_cv_funclib_gai_strerror+set}" = set; then
31559  echo $ECHO_N "(cached) $ECHO_C" >&6
31560else
31561
31562if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then
31563	ac_save_LIBS="$LIBS"
31564	for ac_lib in "" ; do
31565		case "$ac_lib" in
31566		"") ;;
31567		yes) ac_lib="" ;;
31568		no) continue ;;
31569		-l*) ;;
31570		*) ac_lib="-l$ac_lib" ;;
31571		esac
31572		LIBS=" $ac_lib  $ac_save_LIBS"
31573		cat >conftest.$ac_ext <<_ACEOF
31574/* confdefs.h.  */
31575_ACEOF
31576cat confdefs.h >>conftest.$ac_ext
31577cat >>conftest.$ac_ext <<_ACEOF
31578/* end confdefs.h.  */
31579#ifdef HAVE_NETDB_H
31580#include <netdb.h>
31581#endif
31582int
31583main ()
31584{
31585gai_strerror(0)
31586  ;
31587  return 0;
31588}
31589_ACEOF
31590rm -f conftest.$ac_objext conftest$ac_exeext
31591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31592  (eval $ac_link) 2>conftest.er1
31593  ac_status=$?
31594  grep -v '^ *+' conftest.er1 >conftest.err
31595  rm -f conftest.er1
31596  cat conftest.err >&5
31597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598  (exit $ac_status); } &&
31599	 { ac_try='test -z "$ac_c_werror_flag"
31600			 || test ! -s conftest.err'
31601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602  (eval $ac_try) 2>&5
31603  ac_status=$?
31604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605  (exit $ac_status); }; } &&
31606	 { ac_try='test -s conftest$ac_exeext'
31607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608  (eval $ac_try) 2>&5
31609  ac_status=$?
31610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611  (exit $ac_status); }; }; then
31612  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break
31613else
31614  echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
31617fi
31618rm -f conftest.err conftest.$ac_objext \
31619      conftest$ac_exeext conftest.$ac_ext
31620	done
31621	eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}"
31622	LIBS="$ac_save_LIBS"
31623fi
31624
31625fi
31626
31627
31628eval "ac_res=\$ac_cv_funclib_gai_strerror"
31629
31630if false; then
31631
31632for ac_func in gai_strerror
31633do
31634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31635echo "$as_me:$LINENO: checking for $ac_func" >&5
31636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31637if eval "test \"\${$as_ac_var+set}\" = set"; then
31638  echo $ECHO_N "(cached) $ECHO_C" >&6
31639else
31640  cat >conftest.$ac_ext <<_ACEOF
31641/* confdefs.h.  */
31642_ACEOF
31643cat confdefs.h >>conftest.$ac_ext
31644cat >>conftest.$ac_ext <<_ACEOF
31645/* end confdefs.h.  */
31646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31647   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31648#define $ac_func innocuous_$ac_func
31649
31650/* System header to define __stub macros and hopefully few prototypes,
31651    which can conflict with char $ac_func (); below.
31652    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31653    <limits.h> exists even on freestanding compilers.  */
31654
31655#ifdef __STDC__
31656# include <limits.h>
31657#else
31658# include <assert.h>
31659#endif
31660
31661#undef $ac_func
31662
31663/* Override any gcc2 internal prototype to avoid an error.  */
31664#ifdef __cplusplus
31665extern "C"
31666{
31667#endif
31668/* We use char because int might match the return type of a gcc2
31669   builtin and then its argument prototype would still apply.  */
31670char $ac_func ();
31671/* The GNU C library defines this for functions which it implements
31672    to always fail with ENOSYS.  Some functions are actually named
31673    something starting with __ and the normal name is an alias.  */
31674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31675choke me
31676#else
31677char (*f) () = $ac_func;
31678#endif
31679#ifdef __cplusplus
31680}
31681#endif
31682
31683int
31684main ()
31685{
31686return f != $ac_func;
31687  ;
31688  return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext conftest$ac_exeext
31692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693  (eval $ac_link) 2>conftest.er1
31694  ac_status=$?
31695  grep -v '^ *+' conftest.er1 >conftest.err
31696  rm -f conftest.er1
31697  cat conftest.err >&5
31698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699  (exit $ac_status); } &&
31700	 { ac_try='test -z "$ac_c_werror_flag"
31701			 || test ! -s conftest.err'
31702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703  (eval $ac_try) 2>&5
31704  ac_status=$?
31705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706  (exit $ac_status); }; } &&
31707	 { ac_try='test -s conftest$ac_exeext'
31708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31709  (eval $ac_try) 2>&5
31710  ac_status=$?
31711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712  (exit $ac_status); }; }; then
31713  eval "$as_ac_var=yes"
31714else
31715  echo "$as_me: failed program was:" >&5
31716sed 's/^/| /' conftest.$ac_ext >&5
31717
31718eval "$as_ac_var=no"
31719fi
31720rm -f conftest.err conftest.$ac_objext \
31721      conftest$ac_exeext conftest.$ac_ext
31722fi
31723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31725if test `eval echo '${'$as_ac_var'}'` = yes; then
31726  cat >>confdefs.h <<_ACEOF
31727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31728_ACEOF
31729
31730fi
31731done
31732
31733fi
31734# gai_strerror
31735eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31736eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
31737eval "LIB_gai_strerror=$ac_res"
31738
31739case "$ac_res" in
31740	yes)
31741	eval "ac_cv_func_gai_strerror=yes"
31742	eval "LIB_gai_strerror="
31743	cat >>confdefs.h <<_ACEOF
31744#define $ac_tr_func 1
31745_ACEOF
31746
31747	echo "$as_me:$LINENO: result: yes" >&5
31748echo "${ECHO_T}yes" >&6
31749	;;
31750	no)
31751	eval "ac_cv_func_gai_strerror=no"
31752	eval "LIB_gai_strerror="
31753	echo "$as_me:$LINENO: result: no" >&5
31754echo "${ECHO_T}no" >&6
31755	;;
31756	*)
31757	eval "ac_cv_func_gai_strerror=yes"
31758	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
31759	cat >>confdefs.h <<_ACEOF
31760#define $ac_tr_func 1
31761_ACEOF
31762
31763	cat >>confdefs.h <<_ACEOF
31764#define $ac_tr_lib 1
31765_ACEOF
31766
31767	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
31768echo "${ECHO_T}yes, in $ac_res" >&6
31769	;;
31770esac
31771
31772
31773if test -n "$LIB_gai_strerror"; then
31774	LIBS="$LIB_gai_strerror $LIBS"
31775fi
31776
31777if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then
31778	case $LIBOBJS in
31779    "gai_strerror.$ac_objext"   | \
31780  *" gai_strerror.$ac_objext"   | \
31781    "gai_strerror.$ac_objext "* | \
31782  *" gai_strerror.$ac_objext "* ) ;;
31783  *) LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" ;;
31784esac
31785
31786fi
31787
31788
31789echo "$as_me:$LINENO: checking for chown" >&5
31790echo $ECHO_N "checking for chown... $ECHO_C" >&6
31791if test "${ac_cv_func_chown+set}" = set; then
31792  echo $ECHO_N "(cached) $ECHO_C" >&6
31793else
31794  cat >conftest.$ac_ext <<_ACEOF
31795/* confdefs.h.  */
31796_ACEOF
31797cat confdefs.h >>conftest.$ac_ext
31798cat >>conftest.$ac_ext <<_ACEOF
31799/* end confdefs.h.  */
31800/* Define chown to an innocuous variant, in case <limits.h> declares chown.
31801   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31802#define chown innocuous_chown
31803
31804/* System header to define __stub macros and hopefully few prototypes,
31805    which can conflict with char chown (); below.
31806    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31807    <limits.h> exists even on freestanding compilers.  */
31808
31809#ifdef __STDC__
31810# include <limits.h>
31811#else
31812# include <assert.h>
31813#endif
31814
31815#undef chown
31816
31817/* Override any gcc2 internal prototype to avoid an error.  */
31818#ifdef __cplusplus
31819extern "C"
31820{
31821#endif
31822/* We use char because int might match the return type of a gcc2
31823   builtin and then its argument prototype would still apply.  */
31824char chown ();
31825/* The GNU C library defines this for functions which it implements
31826    to always fail with ENOSYS.  Some functions are actually named
31827    something starting with __ and the normal name is an alias.  */
31828#if defined (__stub_chown) || defined (__stub___chown)
31829choke me
31830#else
31831char (*f) () = chown;
31832#endif
31833#ifdef __cplusplus
31834}
31835#endif
31836
31837int
31838main ()
31839{
31840return f != chown;
31841  ;
31842  return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext conftest$ac_exeext
31846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31847  (eval $ac_link) 2>conftest.er1
31848  ac_status=$?
31849  grep -v '^ *+' conftest.er1 >conftest.err
31850  rm -f conftest.er1
31851  cat conftest.err >&5
31852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31853  (exit $ac_status); } &&
31854	 { ac_try='test -z "$ac_c_werror_flag"
31855			 || test ! -s conftest.err'
31856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31857  (eval $ac_try) 2>&5
31858  ac_status=$?
31859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860  (exit $ac_status); }; } &&
31861	 { ac_try='test -s conftest$ac_exeext'
31862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31863  (eval $ac_try) 2>&5
31864  ac_status=$?
31865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866  (exit $ac_status); }; }; then
31867  ac_cv_func_chown=yes
31868else
31869  echo "$as_me: failed program was:" >&5
31870sed 's/^/| /' conftest.$ac_ext >&5
31871
31872ac_cv_func_chown=no
31873fi
31874rm -f conftest.err conftest.$ac_objext \
31875      conftest$ac_exeext conftest.$ac_ext
31876fi
31877echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5
31878echo "${ECHO_T}$ac_cv_func_chown" >&6
31879if test $ac_cv_func_chown = yes; then
31880
31881cat >>confdefs.h <<_ACEOF
31882#define HAVE_CHOWN 1
31883_ACEOF
31884
31885else
31886  case $LIBOBJS in
31887    "chown.$ac_objext"   | \
31888  *" chown.$ac_objext"   | \
31889    "chown.$ac_objext "* | \
31890  *" chown.$ac_objext "* ) ;;
31891  *) LIBOBJS="$LIBOBJS chown.$ac_objext" ;;
31892esac
31893
31894fi
31895echo "$as_me:$LINENO: checking for copyhostent" >&5
31896echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6
31897if test "${ac_cv_func_copyhostent+set}" = set; then
31898  echo $ECHO_N "(cached) $ECHO_C" >&6
31899else
31900  cat >conftest.$ac_ext <<_ACEOF
31901/* confdefs.h.  */
31902_ACEOF
31903cat confdefs.h >>conftest.$ac_ext
31904cat >>conftest.$ac_ext <<_ACEOF
31905/* end confdefs.h.  */
31906/* Define copyhostent to an innocuous variant, in case <limits.h> declares copyhostent.
31907   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31908#define copyhostent innocuous_copyhostent
31909
31910/* System header to define __stub macros and hopefully few prototypes,
31911    which can conflict with char copyhostent (); below.
31912    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31913    <limits.h> exists even on freestanding compilers.  */
31914
31915#ifdef __STDC__
31916# include <limits.h>
31917#else
31918# include <assert.h>
31919#endif
31920
31921#undef copyhostent
31922
31923/* Override any gcc2 internal prototype to avoid an error.  */
31924#ifdef __cplusplus
31925extern "C"
31926{
31927#endif
31928/* We use char because int might match the return type of a gcc2
31929   builtin and then its argument prototype would still apply.  */
31930char copyhostent ();
31931/* The GNU C library defines this for functions which it implements
31932    to always fail with ENOSYS.  Some functions are actually named
31933    something starting with __ and the normal name is an alias.  */
31934#if defined (__stub_copyhostent) || defined (__stub___copyhostent)
31935choke me
31936#else
31937char (*f) () = copyhostent;
31938#endif
31939#ifdef __cplusplus
31940}
31941#endif
31942
31943int
31944main ()
31945{
31946return f != copyhostent;
31947  ;
31948  return 0;
31949}
31950_ACEOF
31951rm -f conftest.$ac_objext conftest$ac_exeext
31952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31953  (eval $ac_link) 2>conftest.er1
31954  ac_status=$?
31955  grep -v '^ *+' conftest.er1 >conftest.err
31956  rm -f conftest.er1
31957  cat conftest.err >&5
31958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959  (exit $ac_status); } &&
31960	 { ac_try='test -z "$ac_c_werror_flag"
31961			 || test ! -s conftest.err'
31962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963  (eval $ac_try) 2>&5
31964  ac_status=$?
31965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966  (exit $ac_status); }; } &&
31967	 { ac_try='test -s conftest$ac_exeext'
31968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969  (eval $ac_try) 2>&5
31970  ac_status=$?
31971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972  (exit $ac_status); }; }; then
31973  ac_cv_func_copyhostent=yes
31974else
31975  echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
31978ac_cv_func_copyhostent=no
31979fi
31980rm -f conftest.err conftest.$ac_objext \
31981      conftest$ac_exeext conftest.$ac_ext
31982fi
31983echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5
31984echo "${ECHO_T}$ac_cv_func_copyhostent" >&6
31985if test $ac_cv_func_copyhostent = yes; then
31986
31987cat >>confdefs.h <<_ACEOF
31988#define HAVE_COPYHOSTENT 1
31989_ACEOF
31990
31991else
31992  case $LIBOBJS in
31993    "copyhostent.$ac_objext"   | \
31994  *" copyhostent.$ac_objext"   | \
31995    "copyhostent.$ac_objext "* | \
31996  *" copyhostent.$ac_objext "* ) ;;
31997  *) LIBOBJS="$LIBOBJS copyhostent.$ac_objext" ;;
31998esac
31999
32000fi
32001echo "$as_me:$LINENO: checking for daemon" >&5
32002echo $ECHO_N "checking for daemon... $ECHO_C" >&6
32003if test "${ac_cv_func_daemon+set}" = set; then
32004  echo $ECHO_N "(cached) $ECHO_C" >&6
32005else
32006  cat >conftest.$ac_ext <<_ACEOF
32007/* confdefs.h.  */
32008_ACEOF
32009cat confdefs.h >>conftest.$ac_ext
32010cat >>conftest.$ac_ext <<_ACEOF
32011/* end confdefs.h.  */
32012/* Define daemon to an innocuous variant, in case <limits.h> declares daemon.
32013   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32014#define daemon innocuous_daemon
32015
32016/* System header to define __stub macros and hopefully few prototypes,
32017    which can conflict with char daemon (); below.
32018    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32019    <limits.h> exists even on freestanding compilers.  */
32020
32021#ifdef __STDC__
32022# include <limits.h>
32023#else
32024# include <assert.h>
32025#endif
32026
32027#undef daemon
32028
32029/* Override any gcc2 internal prototype to avoid an error.  */
32030#ifdef __cplusplus
32031extern "C"
32032{
32033#endif
32034/* We use char because int might match the return type of a gcc2
32035   builtin and then its argument prototype would still apply.  */
32036char daemon ();
32037/* The GNU C library defines this for functions which it implements
32038    to always fail with ENOSYS.  Some functions are actually named
32039    something starting with __ and the normal name is an alias.  */
32040#if defined (__stub_daemon) || defined (__stub___daemon)
32041choke me
32042#else
32043char (*f) () = daemon;
32044#endif
32045#ifdef __cplusplus
32046}
32047#endif
32048
32049int
32050main ()
32051{
32052return f != daemon;
32053  ;
32054  return 0;
32055}
32056_ACEOF
32057rm -f conftest.$ac_objext conftest$ac_exeext
32058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32059  (eval $ac_link) 2>conftest.er1
32060  ac_status=$?
32061  grep -v '^ *+' conftest.er1 >conftest.err
32062  rm -f conftest.er1
32063  cat conftest.err >&5
32064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065  (exit $ac_status); } &&
32066	 { ac_try='test -z "$ac_c_werror_flag"
32067			 || test ! -s conftest.err'
32068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32069  (eval $ac_try) 2>&5
32070  ac_status=$?
32071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072  (exit $ac_status); }; } &&
32073	 { ac_try='test -s conftest$ac_exeext'
32074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32075  (eval $ac_try) 2>&5
32076  ac_status=$?
32077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078  (exit $ac_status); }; }; then
32079  ac_cv_func_daemon=yes
32080else
32081  echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
32084ac_cv_func_daemon=no
32085fi
32086rm -f conftest.err conftest.$ac_objext \
32087      conftest$ac_exeext conftest.$ac_ext
32088fi
32089echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5
32090echo "${ECHO_T}$ac_cv_func_daemon" >&6
32091if test $ac_cv_func_daemon = yes; then
32092
32093cat >>confdefs.h <<_ACEOF
32094#define HAVE_DAEMON 1
32095_ACEOF
32096
32097else
32098  case $LIBOBJS in
32099    "daemon.$ac_objext"   | \
32100  *" daemon.$ac_objext"   | \
32101    "daemon.$ac_objext "* | \
32102  *" daemon.$ac_objext "* ) ;;
32103  *) LIBOBJS="$LIBOBJS daemon.$ac_objext" ;;
32104esac
32105
32106fi
32107echo "$as_me:$LINENO: checking for ecalloc" >&5
32108echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6
32109if test "${ac_cv_func_ecalloc+set}" = set; then
32110  echo $ECHO_N "(cached) $ECHO_C" >&6
32111else
32112  cat >conftest.$ac_ext <<_ACEOF
32113/* confdefs.h.  */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h.  */
32118/* Define ecalloc to an innocuous variant, in case <limits.h> declares ecalloc.
32119   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32120#define ecalloc innocuous_ecalloc
32121
32122/* System header to define __stub macros and hopefully few prototypes,
32123    which can conflict with char ecalloc (); below.
32124    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32125    <limits.h> exists even on freestanding compilers.  */
32126
32127#ifdef __STDC__
32128# include <limits.h>
32129#else
32130# include <assert.h>
32131#endif
32132
32133#undef ecalloc
32134
32135/* Override any gcc2 internal prototype to avoid an error.  */
32136#ifdef __cplusplus
32137extern "C"
32138{
32139#endif
32140/* We use char because int might match the return type of a gcc2
32141   builtin and then its argument prototype would still apply.  */
32142char ecalloc ();
32143/* The GNU C library defines this for functions which it implements
32144    to always fail with ENOSYS.  Some functions are actually named
32145    something starting with __ and the normal name is an alias.  */
32146#if defined (__stub_ecalloc) || defined (__stub___ecalloc)
32147choke me
32148#else
32149char (*f) () = ecalloc;
32150#endif
32151#ifdef __cplusplus
32152}
32153#endif
32154
32155int
32156main ()
32157{
32158return f != ecalloc;
32159  ;
32160  return 0;
32161}
32162_ACEOF
32163rm -f conftest.$ac_objext conftest$ac_exeext
32164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32165  (eval $ac_link) 2>conftest.er1
32166  ac_status=$?
32167  grep -v '^ *+' conftest.er1 >conftest.err
32168  rm -f conftest.er1
32169  cat conftest.err >&5
32170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171  (exit $ac_status); } &&
32172	 { ac_try='test -z "$ac_c_werror_flag"
32173			 || test ! -s conftest.err'
32174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175  (eval $ac_try) 2>&5
32176  ac_status=$?
32177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178  (exit $ac_status); }; } &&
32179	 { ac_try='test -s conftest$ac_exeext'
32180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32181  (eval $ac_try) 2>&5
32182  ac_status=$?
32183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184  (exit $ac_status); }; }; then
32185  ac_cv_func_ecalloc=yes
32186else
32187  echo "$as_me: failed program was:" >&5
32188sed 's/^/| /' conftest.$ac_ext >&5
32189
32190ac_cv_func_ecalloc=no
32191fi
32192rm -f conftest.err conftest.$ac_objext \
32193      conftest$ac_exeext conftest.$ac_ext
32194fi
32195echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5
32196echo "${ECHO_T}$ac_cv_func_ecalloc" >&6
32197if test $ac_cv_func_ecalloc = yes; then
32198
32199cat >>confdefs.h <<_ACEOF
32200#define HAVE_ECALLOC 1
32201_ACEOF
32202
32203else
32204  case $LIBOBJS in
32205    "ecalloc.$ac_objext"   | \
32206  *" ecalloc.$ac_objext"   | \
32207    "ecalloc.$ac_objext "* | \
32208  *" ecalloc.$ac_objext "* ) ;;
32209  *) LIBOBJS="$LIBOBJS ecalloc.$ac_objext" ;;
32210esac
32211
32212fi
32213echo "$as_me:$LINENO: checking for emalloc" >&5
32214echo $ECHO_N "checking for emalloc... $ECHO_C" >&6
32215if test "${ac_cv_func_emalloc+set}" = set; then
32216  echo $ECHO_N "(cached) $ECHO_C" >&6
32217else
32218  cat >conftest.$ac_ext <<_ACEOF
32219/* confdefs.h.  */
32220_ACEOF
32221cat confdefs.h >>conftest.$ac_ext
32222cat >>conftest.$ac_ext <<_ACEOF
32223/* end confdefs.h.  */
32224/* Define emalloc to an innocuous variant, in case <limits.h> declares emalloc.
32225   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32226#define emalloc innocuous_emalloc
32227
32228/* System header to define __stub macros and hopefully few prototypes,
32229    which can conflict with char emalloc (); below.
32230    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32231    <limits.h> exists even on freestanding compilers.  */
32232
32233#ifdef __STDC__
32234# include <limits.h>
32235#else
32236# include <assert.h>
32237#endif
32238
32239#undef emalloc
32240
32241/* Override any gcc2 internal prototype to avoid an error.  */
32242#ifdef __cplusplus
32243extern "C"
32244{
32245#endif
32246/* We use char because int might match the return type of a gcc2
32247   builtin and then its argument prototype would still apply.  */
32248char emalloc ();
32249/* The GNU C library defines this for functions which it implements
32250    to always fail with ENOSYS.  Some functions are actually named
32251    something starting with __ and the normal name is an alias.  */
32252#if defined (__stub_emalloc) || defined (__stub___emalloc)
32253choke me
32254#else
32255char (*f) () = emalloc;
32256#endif
32257#ifdef __cplusplus
32258}
32259#endif
32260
32261int
32262main ()
32263{
32264return f != emalloc;
32265  ;
32266  return 0;
32267}
32268_ACEOF
32269rm -f conftest.$ac_objext conftest$ac_exeext
32270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32271  (eval $ac_link) 2>conftest.er1
32272  ac_status=$?
32273  grep -v '^ *+' conftest.er1 >conftest.err
32274  rm -f conftest.er1
32275  cat conftest.err >&5
32276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32277  (exit $ac_status); } &&
32278	 { ac_try='test -z "$ac_c_werror_flag"
32279			 || test ! -s conftest.err'
32280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32281  (eval $ac_try) 2>&5
32282  ac_status=$?
32283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32284  (exit $ac_status); }; } &&
32285	 { ac_try='test -s conftest$ac_exeext'
32286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287  (eval $ac_try) 2>&5
32288  ac_status=$?
32289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290  (exit $ac_status); }; }; then
32291  ac_cv_func_emalloc=yes
32292else
32293  echo "$as_me: failed program was:" >&5
32294sed 's/^/| /' conftest.$ac_ext >&5
32295
32296ac_cv_func_emalloc=no
32297fi
32298rm -f conftest.err conftest.$ac_objext \
32299      conftest$ac_exeext conftest.$ac_ext
32300fi
32301echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5
32302echo "${ECHO_T}$ac_cv_func_emalloc" >&6
32303if test $ac_cv_func_emalloc = yes; then
32304
32305cat >>confdefs.h <<_ACEOF
32306#define HAVE_EMALLOC 1
32307_ACEOF
32308
32309else
32310  case $LIBOBJS in
32311    "emalloc.$ac_objext"   | \
32312  *" emalloc.$ac_objext"   | \
32313    "emalloc.$ac_objext "* | \
32314  *" emalloc.$ac_objext "* ) ;;
32315  *) LIBOBJS="$LIBOBJS emalloc.$ac_objext" ;;
32316esac
32317
32318fi
32319echo "$as_me:$LINENO: checking for erealloc" >&5
32320echo $ECHO_N "checking for erealloc... $ECHO_C" >&6
32321if test "${ac_cv_func_erealloc+set}" = set; then
32322  echo $ECHO_N "(cached) $ECHO_C" >&6
32323else
32324  cat >conftest.$ac_ext <<_ACEOF
32325/* confdefs.h.  */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h.  */
32330/* Define erealloc to an innocuous variant, in case <limits.h> declares erealloc.
32331   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32332#define erealloc innocuous_erealloc
32333
32334/* System header to define __stub macros and hopefully few prototypes,
32335    which can conflict with char erealloc (); below.
32336    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32337    <limits.h> exists even on freestanding compilers.  */
32338
32339#ifdef __STDC__
32340# include <limits.h>
32341#else
32342# include <assert.h>
32343#endif
32344
32345#undef erealloc
32346
32347/* Override any gcc2 internal prototype to avoid an error.  */
32348#ifdef __cplusplus
32349extern "C"
32350{
32351#endif
32352/* We use char because int might match the return type of a gcc2
32353   builtin and then its argument prototype would still apply.  */
32354char erealloc ();
32355/* The GNU C library defines this for functions which it implements
32356    to always fail with ENOSYS.  Some functions are actually named
32357    something starting with __ and the normal name is an alias.  */
32358#if defined (__stub_erealloc) || defined (__stub___erealloc)
32359choke me
32360#else
32361char (*f) () = erealloc;
32362#endif
32363#ifdef __cplusplus
32364}
32365#endif
32366
32367int
32368main ()
32369{
32370return f != erealloc;
32371  ;
32372  return 0;
32373}
32374_ACEOF
32375rm -f conftest.$ac_objext conftest$ac_exeext
32376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32377  (eval $ac_link) 2>conftest.er1
32378  ac_status=$?
32379  grep -v '^ *+' conftest.er1 >conftest.err
32380  rm -f conftest.er1
32381  cat conftest.err >&5
32382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32383  (exit $ac_status); } &&
32384	 { ac_try='test -z "$ac_c_werror_flag"
32385			 || test ! -s conftest.err'
32386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387  (eval $ac_try) 2>&5
32388  ac_status=$?
32389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390  (exit $ac_status); }; } &&
32391	 { ac_try='test -s conftest$ac_exeext'
32392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393  (eval $ac_try) 2>&5
32394  ac_status=$?
32395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396  (exit $ac_status); }; }; then
32397  ac_cv_func_erealloc=yes
32398else
32399  echo "$as_me: failed program was:" >&5
32400sed 's/^/| /' conftest.$ac_ext >&5
32401
32402ac_cv_func_erealloc=no
32403fi
32404rm -f conftest.err conftest.$ac_objext \
32405      conftest$ac_exeext conftest.$ac_ext
32406fi
32407echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5
32408echo "${ECHO_T}$ac_cv_func_erealloc" >&6
32409if test $ac_cv_func_erealloc = yes; then
32410
32411cat >>confdefs.h <<_ACEOF
32412#define HAVE_EREALLOC 1
32413_ACEOF
32414
32415else
32416  case $LIBOBJS in
32417    "erealloc.$ac_objext"   | \
32418  *" erealloc.$ac_objext"   | \
32419    "erealloc.$ac_objext "* | \
32420  *" erealloc.$ac_objext "* ) ;;
32421  *) LIBOBJS="$LIBOBJS erealloc.$ac_objext" ;;
32422esac
32423
32424fi
32425echo "$as_me:$LINENO: checking for estrdup" >&5
32426echo $ECHO_N "checking for estrdup... $ECHO_C" >&6
32427if test "${ac_cv_func_estrdup+set}" = set; then
32428  echo $ECHO_N "(cached) $ECHO_C" >&6
32429else
32430  cat >conftest.$ac_ext <<_ACEOF
32431/* confdefs.h.  */
32432_ACEOF
32433cat confdefs.h >>conftest.$ac_ext
32434cat >>conftest.$ac_ext <<_ACEOF
32435/* end confdefs.h.  */
32436/* Define estrdup to an innocuous variant, in case <limits.h> declares estrdup.
32437   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32438#define estrdup innocuous_estrdup
32439
32440/* System header to define __stub macros and hopefully few prototypes,
32441    which can conflict with char estrdup (); below.
32442    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32443    <limits.h> exists even on freestanding compilers.  */
32444
32445#ifdef __STDC__
32446# include <limits.h>
32447#else
32448# include <assert.h>
32449#endif
32450
32451#undef estrdup
32452
32453/* Override any gcc2 internal prototype to avoid an error.  */
32454#ifdef __cplusplus
32455extern "C"
32456{
32457#endif
32458/* We use char because int might match the return type of a gcc2
32459   builtin and then its argument prototype would still apply.  */
32460char estrdup ();
32461/* The GNU C library defines this for functions which it implements
32462    to always fail with ENOSYS.  Some functions are actually named
32463    something starting with __ and the normal name is an alias.  */
32464#if defined (__stub_estrdup) || defined (__stub___estrdup)
32465choke me
32466#else
32467char (*f) () = estrdup;
32468#endif
32469#ifdef __cplusplus
32470}
32471#endif
32472
32473int
32474main ()
32475{
32476return f != estrdup;
32477  ;
32478  return 0;
32479}
32480_ACEOF
32481rm -f conftest.$ac_objext conftest$ac_exeext
32482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32483  (eval $ac_link) 2>conftest.er1
32484  ac_status=$?
32485  grep -v '^ *+' conftest.er1 >conftest.err
32486  rm -f conftest.er1
32487  cat conftest.err >&5
32488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489  (exit $ac_status); } &&
32490	 { ac_try='test -z "$ac_c_werror_flag"
32491			 || test ! -s conftest.err'
32492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493  (eval $ac_try) 2>&5
32494  ac_status=$?
32495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496  (exit $ac_status); }; } &&
32497	 { ac_try='test -s conftest$ac_exeext'
32498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499  (eval $ac_try) 2>&5
32500  ac_status=$?
32501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502  (exit $ac_status); }; }; then
32503  ac_cv_func_estrdup=yes
32504else
32505  echo "$as_me: failed program was:" >&5
32506sed 's/^/| /' conftest.$ac_ext >&5
32507
32508ac_cv_func_estrdup=no
32509fi
32510rm -f conftest.err conftest.$ac_objext \
32511      conftest$ac_exeext conftest.$ac_ext
32512fi
32513echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5
32514echo "${ECHO_T}$ac_cv_func_estrdup" >&6
32515if test $ac_cv_func_estrdup = yes; then
32516
32517cat >>confdefs.h <<_ACEOF
32518#define HAVE_ESTRDUP 1
32519_ACEOF
32520
32521else
32522  case $LIBOBJS in
32523    "estrdup.$ac_objext"   | \
32524  *" estrdup.$ac_objext"   | \
32525    "estrdup.$ac_objext "* | \
32526  *" estrdup.$ac_objext "* ) ;;
32527  *) LIBOBJS="$LIBOBJS estrdup.$ac_objext" ;;
32528esac
32529
32530fi
32531echo "$as_me:$LINENO: checking for err" >&5
32532echo $ECHO_N "checking for err... $ECHO_C" >&6
32533if test "${ac_cv_func_err+set}" = set; then
32534  echo $ECHO_N "(cached) $ECHO_C" >&6
32535else
32536  cat >conftest.$ac_ext <<_ACEOF
32537/* confdefs.h.  */
32538_ACEOF
32539cat confdefs.h >>conftest.$ac_ext
32540cat >>conftest.$ac_ext <<_ACEOF
32541/* end confdefs.h.  */
32542/* Define err to an innocuous variant, in case <limits.h> declares err.
32543   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32544#define err innocuous_err
32545
32546/* System header to define __stub macros and hopefully few prototypes,
32547    which can conflict with char err (); below.
32548    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32549    <limits.h> exists even on freestanding compilers.  */
32550
32551#ifdef __STDC__
32552# include <limits.h>
32553#else
32554# include <assert.h>
32555#endif
32556
32557#undef err
32558
32559/* Override any gcc2 internal prototype to avoid an error.  */
32560#ifdef __cplusplus
32561extern "C"
32562{
32563#endif
32564/* We use char because int might match the return type of a gcc2
32565   builtin and then its argument prototype would still apply.  */
32566char err ();
32567/* The GNU C library defines this for functions which it implements
32568    to always fail with ENOSYS.  Some functions are actually named
32569    something starting with __ and the normal name is an alias.  */
32570#if defined (__stub_err) || defined (__stub___err)
32571choke me
32572#else
32573char (*f) () = err;
32574#endif
32575#ifdef __cplusplus
32576}
32577#endif
32578
32579int
32580main ()
32581{
32582return f != err;
32583  ;
32584  return 0;
32585}
32586_ACEOF
32587rm -f conftest.$ac_objext conftest$ac_exeext
32588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32589  (eval $ac_link) 2>conftest.er1
32590  ac_status=$?
32591  grep -v '^ *+' conftest.er1 >conftest.err
32592  rm -f conftest.er1
32593  cat conftest.err >&5
32594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595  (exit $ac_status); } &&
32596	 { ac_try='test -z "$ac_c_werror_flag"
32597			 || test ! -s conftest.err'
32598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32599  (eval $ac_try) 2>&5
32600  ac_status=$?
32601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602  (exit $ac_status); }; } &&
32603	 { ac_try='test -s conftest$ac_exeext'
32604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32605  (eval $ac_try) 2>&5
32606  ac_status=$?
32607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608  (exit $ac_status); }; }; then
32609  ac_cv_func_err=yes
32610else
32611  echo "$as_me: failed program was:" >&5
32612sed 's/^/| /' conftest.$ac_ext >&5
32613
32614ac_cv_func_err=no
32615fi
32616rm -f conftest.err conftest.$ac_objext \
32617      conftest$ac_exeext conftest.$ac_ext
32618fi
32619echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5
32620echo "${ECHO_T}$ac_cv_func_err" >&6
32621if test $ac_cv_func_err = yes; then
32622
32623cat >>confdefs.h <<_ACEOF
32624#define HAVE_ERR 1
32625_ACEOF
32626
32627else
32628  case $LIBOBJS in
32629    "err.$ac_objext"   | \
32630  *" err.$ac_objext"   | \
32631    "err.$ac_objext "* | \
32632  *" err.$ac_objext "* ) ;;
32633  *) LIBOBJS="$LIBOBJS err.$ac_objext" ;;
32634esac
32635
32636fi
32637echo "$as_me:$LINENO: checking for errx" >&5
32638echo $ECHO_N "checking for errx... $ECHO_C" >&6
32639if test "${ac_cv_func_errx+set}" = set; then
32640  echo $ECHO_N "(cached) $ECHO_C" >&6
32641else
32642  cat >conftest.$ac_ext <<_ACEOF
32643/* confdefs.h.  */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h.  */
32648/* Define errx to an innocuous variant, in case <limits.h> declares errx.
32649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32650#define errx innocuous_errx
32651
32652/* System header to define __stub macros and hopefully few prototypes,
32653    which can conflict with char errx (); below.
32654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32655    <limits.h> exists even on freestanding compilers.  */
32656
32657#ifdef __STDC__
32658# include <limits.h>
32659#else
32660# include <assert.h>
32661#endif
32662
32663#undef errx
32664
32665/* Override any gcc2 internal prototype to avoid an error.  */
32666#ifdef __cplusplus
32667extern "C"
32668{
32669#endif
32670/* We use char because int might match the return type of a gcc2
32671   builtin and then its argument prototype would still apply.  */
32672char errx ();
32673/* The GNU C library defines this for functions which it implements
32674    to always fail with ENOSYS.  Some functions are actually named
32675    something starting with __ and the normal name is an alias.  */
32676#if defined (__stub_errx) || defined (__stub___errx)
32677choke me
32678#else
32679char (*f) () = errx;
32680#endif
32681#ifdef __cplusplus
32682}
32683#endif
32684
32685int
32686main ()
32687{
32688return f != errx;
32689  ;
32690  return 0;
32691}
32692_ACEOF
32693rm -f conftest.$ac_objext conftest$ac_exeext
32694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32695  (eval $ac_link) 2>conftest.er1
32696  ac_status=$?
32697  grep -v '^ *+' conftest.er1 >conftest.err
32698  rm -f conftest.er1
32699  cat conftest.err >&5
32700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701  (exit $ac_status); } &&
32702	 { ac_try='test -z "$ac_c_werror_flag"
32703			 || test ! -s conftest.err'
32704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705  (eval $ac_try) 2>&5
32706  ac_status=$?
32707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708  (exit $ac_status); }; } &&
32709	 { ac_try='test -s conftest$ac_exeext'
32710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32711  (eval $ac_try) 2>&5
32712  ac_status=$?
32713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32714  (exit $ac_status); }; }; then
32715  ac_cv_func_errx=yes
32716else
32717  echo "$as_me: failed program was:" >&5
32718sed 's/^/| /' conftest.$ac_ext >&5
32719
32720ac_cv_func_errx=no
32721fi
32722rm -f conftest.err conftest.$ac_objext \
32723      conftest$ac_exeext conftest.$ac_ext
32724fi
32725echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5
32726echo "${ECHO_T}$ac_cv_func_errx" >&6
32727if test $ac_cv_func_errx = yes; then
32728
32729cat >>confdefs.h <<_ACEOF
32730#define HAVE_ERRX 1
32731_ACEOF
32732
32733else
32734  case $LIBOBJS in
32735    "errx.$ac_objext"   | \
32736  *" errx.$ac_objext"   | \
32737    "errx.$ac_objext "* | \
32738  *" errx.$ac_objext "* ) ;;
32739  *) LIBOBJS="$LIBOBJS errx.$ac_objext" ;;
32740esac
32741
32742fi
32743echo "$as_me:$LINENO: checking for fchown" >&5
32744echo $ECHO_N "checking for fchown... $ECHO_C" >&6
32745if test "${ac_cv_func_fchown+set}" = set; then
32746  echo $ECHO_N "(cached) $ECHO_C" >&6
32747else
32748  cat >conftest.$ac_ext <<_ACEOF
32749/* confdefs.h.  */
32750_ACEOF
32751cat confdefs.h >>conftest.$ac_ext
32752cat >>conftest.$ac_ext <<_ACEOF
32753/* end confdefs.h.  */
32754/* Define fchown to an innocuous variant, in case <limits.h> declares fchown.
32755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32756#define fchown innocuous_fchown
32757
32758/* System header to define __stub macros and hopefully few prototypes,
32759    which can conflict with char fchown (); below.
32760    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32761    <limits.h> exists even on freestanding compilers.  */
32762
32763#ifdef __STDC__
32764# include <limits.h>
32765#else
32766# include <assert.h>
32767#endif
32768
32769#undef fchown
32770
32771/* Override any gcc2 internal prototype to avoid an error.  */
32772#ifdef __cplusplus
32773extern "C"
32774{
32775#endif
32776/* We use char because int might match the return type of a gcc2
32777   builtin and then its argument prototype would still apply.  */
32778char fchown ();
32779/* The GNU C library defines this for functions which it implements
32780    to always fail with ENOSYS.  Some functions are actually named
32781    something starting with __ and the normal name is an alias.  */
32782#if defined (__stub_fchown) || defined (__stub___fchown)
32783choke me
32784#else
32785char (*f) () = fchown;
32786#endif
32787#ifdef __cplusplus
32788}
32789#endif
32790
32791int
32792main ()
32793{
32794return f != fchown;
32795  ;
32796  return 0;
32797}
32798_ACEOF
32799rm -f conftest.$ac_objext conftest$ac_exeext
32800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32801  (eval $ac_link) 2>conftest.er1
32802  ac_status=$?
32803  grep -v '^ *+' conftest.er1 >conftest.err
32804  rm -f conftest.er1
32805  cat conftest.err >&5
32806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32807  (exit $ac_status); } &&
32808	 { ac_try='test -z "$ac_c_werror_flag"
32809			 || test ! -s conftest.err'
32810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32811  (eval $ac_try) 2>&5
32812  ac_status=$?
32813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814  (exit $ac_status); }; } &&
32815	 { ac_try='test -s conftest$ac_exeext'
32816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32817  (eval $ac_try) 2>&5
32818  ac_status=$?
32819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820  (exit $ac_status); }; }; then
32821  ac_cv_func_fchown=yes
32822else
32823  echo "$as_me: failed program was:" >&5
32824sed 's/^/| /' conftest.$ac_ext >&5
32825
32826ac_cv_func_fchown=no
32827fi
32828rm -f conftest.err conftest.$ac_objext \
32829      conftest$ac_exeext conftest.$ac_ext
32830fi
32831echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5
32832echo "${ECHO_T}$ac_cv_func_fchown" >&6
32833if test $ac_cv_func_fchown = yes; then
32834
32835cat >>confdefs.h <<_ACEOF
32836#define HAVE_FCHOWN 1
32837_ACEOF
32838
32839else
32840  case $LIBOBJS in
32841    "fchown.$ac_objext"   | \
32842  *" fchown.$ac_objext"   | \
32843    "fchown.$ac_objext "* | \
32844  *" fchown.$ac_objext "* ) ;;
32845  *) LIBOBJS="$LIBOBJS fchown.$ac_objext" ;;
32846esac
32847
32848fi
32849echo "$as_me:$LINENO: checking for flock" >&5
32850echo $ECHO_N "checking for flock... $ECHO_C" >&6
32851if test "${ac_cv_func_flock+set}" = set; then
32852  echo $ECHO_N "(cached) $ECHO_C" >&6
32853else
32854  cat >conftest.$ac_ext <<_ACEOF
32855/* confdefs.h.  */
32856_ACEOF
32857cat confdefs.h >>conftest.$ac_ext
32858cat >>conftest.$ac_ext <<_ACEOF
32859/* end confdefs.h.  */
32860/* Define flock to an innocuous variant, in case <limits.h> declares flock.
32861   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32862#define flock innocuous_flock
32863
32864/* System header to define __stub macros and hopefully few prototypes,
32865    which can conflict with char flock (); below.
32866    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32867    <limits.h> exists even on freestanding compilers.  */
32868
32869#ifdef __STDC__
32870# include <limits.h>
32871#else
32872# include <assert.h>
32873#endif
32874
32875#undef flock
32876
32877/* Override any gcc2 internal prototype to avoid an error.  */
32878#ifdef __cplusplus
32879extern "C"
32880{
32881#endif
32882/* We use char because int might match the return type of a gcc2
32883   builtin and then its argument prototype would still apply.  */
32884char flock ();
32885/* The GNU C library defines this for functions which it implements
32886    to always fail with ENOSYS.  Some functions are actually named
32887    something starting with __ and the normal name is an alias.  */
32888#if defined (__stub_flock) || defined (__stub___flock)
32889choke me
32890#else
32891char (*f) () = flock;
32892#endif
32893#ifdef __cplusplus
32894}
32895#endif
32896
32897int
32898main ()
32899{
32900return f != flock;
32901  ;
32902  return 0;
32903}
32904_ACEOF
32905rm -f conftest.$ac_objext conftest$ac_exeext
32906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32907  (eval $ac_link) 2>conftest.er1
32908  ac_status=$?
32909  grep -v '^ *+' conftest.er1 >conftest.err
32910  rm -f conftest.er1
32911  cat conftest.err >&5
32912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913  (exit $ac_status); } &&
32914	 { ac_try='test -z "$ac_c_werror_flag"
32915			 || test ! -s conftest.err'
32916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32917  (eval $ac_try) 2>&5
32918  ac_status=$?
32919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920  (exit $ac_status); }; } &&
32921	 { ac_try='test -s conftest$ac_exeext'
32922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32923  (eval $ac_try) 2>&5
32924  ac_status=$?
32925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926  (exit $ac_status); }; }; then
32927  ac_cv_func_flock=yes
32928else
32929  echo "$as_me: failed program was:" >&5
32930sed 's/^/| /' conftest.$ac_ext >&5
32931
32932ac_cv_func_flock=no
32933fi
32934rm -f conftest.err conftest.$ac_objext \
32935      conftest$ac_exeext conftest.$ac_ext
32936fi
32937echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5
32938echo "${ECHO_T}$ac_cv_func_flock" >&6
32939if test $ac_cv_func_flock = yes; then
32940
32941cat >>confdefs.h <<_ACEOF
32942#define HAVE_FLOCK 1
32943_ACEOF
32944
32945else
32946  case $LIBOBJS in
32947    "flock.$ac_objext"   | \
32948  *" flock.$ac_objext"   | \
32949    "flock.$ac_objext "* | \
32950  *" flock.$ac_objext "* ) ;;
32951  *) LIBOBJS="$LIBOBJS flock.$ac_objext" ;;
32952esac
32953
32954fi
32955echo "$as_me:$LINENO: checking for fnmatch" >&5
32956echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6
32957if test "${ac_cv_func_fnmatch+set}" = set; then
32958  echo $ECHO_N "(cached) $ECHO_C" >&6
32959else
32960  cat >conftest.$ac_ext <<_ACEOF
32961/* confdefs.h.  */
32962_ACEOF
32963cat confdefs.h >>conftest.$ac_ext
32964cat >>conftest.$ac_ext <<_ACEOF
32965/* end confdefs.h.  */
32966/* Define fnmatch to an innocuous variant, in case <limits.h> declares fnmatch.
32967   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32968#define fnmatch innocuous_fnmatch
32969
32970/* System header to define __stub macros and hopefully few prototypes,
32971    which can conflict with char fnmatch (); below.
32972    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32973    <limits.h> exists even on freestanding compilers.  */
32974
32975#ifdef __STDC__
32976# include <limits.h>
32977#else
32978# include <assert.h>
32979#endif
32980
32981#undef fnmatch
32982
32983/* Override any gcc2 internal prototype to avoid an error.  */
32984#ifdef __cplusplus
32985extern "C"
32986{
32987#endif
32988/* We use char because int might match the return type of a gcc2
32989   builtin and then its argument prototype would still apply.  */
32990char fnmatch ();
32991/* The GNU C library defines this for functions which it implements
32992    to always fail with ENOSYS.  Some functions are actually named
32993    something starting with __ and the normal name is an alias.  */
32994#if defined (__stub_fnmatch) || defined (__stub___fnmatch)
32995choke me
32996#else
32997char (*f) () = fnmatch;
32998#endif
32999#ifdef __cplusplus
33000}
33001#endif
33002
33003int
33004main ()
33005{
33006return f != fnmatch;
33007  ;
33008  return 0;
33009}
33010_ACEOF
33011rm -f conftest.$ac_objext conftest$ac_exeext
33012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33013  (eval $ac_link) 2>conftest.er1
33014  ac_status=$?
33015  grep -v '^ *+' conftest.er1 >conftest.err
33016  rm -f conftest.er1
33017  cat conftest.err >&5
33018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019  (exit $ac_status); } &&
33020	 { ac_try='test -z "$ac_c_werror_flag"
33021			 || test ! -s conftest.err'
33022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33023  (eval $ac_try) 2>&5
33024  ac_status=$?
33025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33026  (exit $ac_status); }; } &&
33027	 { ac_try='test -s conftest$ac_exeext'
33028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33029  (eval $ac_try) 2>&5
33030  ac_status=$?
33031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032  (exit $ac_status); }; }; then
33033  ac_cv_func_fnmatch=yes
33034else
33035  echo "$as_me: failed program was:" >&5
33036sed 's/^/| /' conftest.$ac_ext >&5
33037
33038ac_cv_func_fnmatch=no
33039fi
33040rm -f conftest.err conftest.$ac_objext \
33041      conftest$ac_exeext conftest.$ac_ext
33042fi
33043echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5
33044echo "${ECHO_T}$ac_cv_func_fnmatch" >&6
33045if test $ac_cv_func_fnmatch = yes; then
33046
33047cat >>confdefs.h <<_ACEOF
33048#define HAVE_FNMATCH 1
33049_ACEOF
33050
33051else
33052  case $LIBOBJS in
33053    "fnmatch.$ac_objext"   | \
33054  *" fnmatch.$ac_objext"   | \
33055    "fnmatch.$ac_objext "* | \
33056  *" fnmatch.$ac_objext "* ) ;;
33057  *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" ;;
33058esac
33059
33060fi
33061echo "$as_me:$LINENO: checking for freehostent" >&5
33062echo $ECHO_N "checking for freehostent... $ECHO_C" >&6
33063if test "${ac_cv_func_freehostent+set}" = set; then
33064  echo $ECHO_N "(cached) $ECHO_C" >&6
33065else
33066  cat >conftest.$ac_ext <<_ACEOF
33067/* confdefs.h.  */
33068_ACEOF
33069cat confdefs.h >>conftest.$ac_ext
33070cat >>conftest.$ac_ext <<_ACEOF
33071/* end confdefs.h.  */
33072/* Define freehostent to an innocuous variant, in case <limits.h> declares freehostent.
33073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33074#define freehostent innocuous_freehostent
33075
33076/* System header to define __stub macros and hopefully few prototypes,
33077    which can conflict with char freehostent (); below.
33078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33079    <limits.h> exists even on freestanding compilers.  */
33080
33081#ifdef __STDC__
33082# include <limits.h>
33083#else
33084# include <assert.h>
33085#endif
33086
33087#undef freehostent
33088
33089/* Override any gcc2 internal prototype to avoid an error.  */
33090#ifdef __cplusplus
33091extern "C"
33092{
33093#endif
33094/* We use char because int might match the return type of a gcc2
33095   builtin and then its argument prototype would still apply.  */
33096char freehostent ();
33097/* The GNU C library defines this for functions which it implements
33098    to always fail with ENOSYS.  Some functions are actually named
33099    something starting with __ and the normal name is an alias.  */
33100#if defined (__stub_freehostent) || defined (__stub___freehostent)
33101choke me
33102#else
33103char (*f) () = freehostent;
33104#endif
33105#ifdef __cplusplus
33106}
33107#endif
33108
33109int
33110main ()
33111{
33112return f != freehostent;
33113  ;
33114  return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext conftest$ac_exeext
33118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33119  (eval $ac_link) 2>conftest.er1
33120  ac_status=$?
33121  grep -v '^ *+' conftest.er1 >conftest.err
33122  rm -f conftest.er1
33123  cat conftest.err >&5
33124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125  (exit $ac_status); } &&
33126	 { ac_try='test -z "$ac_c_werror_flag"
33127			 || test ! -s conftest.err'
33128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33129  (eval $ac_try) 2>&5
33130  ac_status=$?
33131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132  (exit $ac_status); }; } &&
33133	 { ac_try='test -s conftest$ac_exeext'
33134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33135  (eval $ac_try) 2>&5
33136  ac_status=$?
33137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33138  (exit $ac_status); }; }; then
33139  ac_cv_func_freehostent=yes
33140else
33141  echo "$as_me: failed program was:" >&5
33142sed 's/^/| /' conftest.$ac_ext >&5
33143
33144ac_cv_func_freehostent=no
33145fi
33146rm -f conftest.err conftest.$ac_objext \
33147      conftest$ac_exeext conftest.$ac_ext
33148fi
33149echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5
33150echo "${ECHO_T}$ac_cv_func_freehostent" >&6
33151if test $ac_cv_func_freehostent = yes; then
33152
33153cat >>confdefs.h <<_ACEOF
33154#define HAVE_FREEHOSTENT 1
33155_ACEOF
33156
33157else
33158  case $LIBOBJS in
33159    "freehostent.$ac_objext"   | \
33160  *" freehostent.$ac_objext"   | \
33161    "freehostent.$ac_objext "* | \
33162  *" freehostent.$ac_objext "* ) ;;
33163  *) LIBOBJS="$LIBOBJS freehostent.$ac_objext" ;;
33164esac
33165
33166fi
33167echo "$as_me:$LINENO: checking for getcwd" >&5
33168echo $ECHO_N "checking for getcwd... $ECHO_C" >&6
33169if test "${ac_cv_func_getcwd+set}" = set; then
33170  echo $ECHO_N "(cached) $ECHO_C" >&6
33171else
33172  cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h.  */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h.  */
33178/* Define getcwd to an innocuous variant, in case <limits.h> declares getcwd.
33179   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33180#define getcwd innocuous_getcwd
33181
33182/* System header to define __stub macros and hopefully few prototypes,
33183    which can conflict with char getcwd (); below.
33184    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33185    <limits.h> exists even on freestanding compilers.  */
33186
33187#ifdef __STDC__
33188# include <limits.h>
33189#else
33190# include <assert.h>
33191#endif
33192
33193#undef getcwd
33194
33195/* Override any gcc2 internal prototype to avoid an error.  */
33196#ifdef __cplusplus
33197extern "C"
33198{
33199#endif
33200/* We use char because int might match the return type of a gcc2
33201   builtin and then its argument prototype would still apply.  */
33202char getcwd ();
33203/* The GNU C library defines this for functions which it implements
33204    to always fail with ENOSYS.  Some functions are actually named
33205    something starting with __ and the normal name is an alias.  */
33206#if defined (__stub_getcwd) || defined (__stub___getcwd)
33207choke me
33208#else
33209char (*f) () = getcwd;
33210#endif
33211#ifdef __cplusplus
33212}
33213#endif
33214
33215int
33216main ()
33217{
33218return f != getcwd;
33219  ;
33220  return 0;
33221}
33222_ACEOF
33223rm -f conftest.$ac_objext conftest$ac_exeext
33224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33225  (eval $ac_link) 2>conftest.er1
33226  ac_status=$?
33227  grep -v '^ *+' conftest.er1 >conftest.err
33228  rm -f conftest.er1
33229  cat conftest.err >&5
33230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231  (exit $ac_status); } &&
33232	 { ac_try='test -z "$ac_c_werror_flag"
33233			 || test ! -s conftest.err'
33234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33235  (eval $ac_try) 2>&5
33236  ac_status=$?
33237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238  (exit $ac_status); }; } &&
33239	 { ac_try='test -s conftest$ac_exeext'
33240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241  (eval $ac_try) 2>&5
33242  ac_status=$?
33243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244  (exit $ac_status); }; }; then
33245  ac_cv_func_getcwd=yes
33246else
33247  echo "$as_me: failed program was:" >&5
33248sed 's/^/| /' conftest.$ac_ext >&5
33249
33250ac_cv_func_getcwd=no
33251fi
33252rm -f conftest.err conftest.$ac_objext \
33253      conftest$ac_exeext conftest.$ac_ext
33254fi
33255echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5
33256echo "${ECHO_T}$ac_cv_func_getcwd" >&6
33257if test $ac_cv_func_getcwd = yes; then
33258
33259cat >>confdefs.h <<_ACEOF
33260#define HAVE_GETCWD 1
33261_ACEOF
33262
33263else
33264  case $LIBOBJS in
33265    "getcwd.$ac_objext"   | \
33266  *" getcwd.$ac_objext"   | \
33267    "getcwd.$ac_objext "* | \
33268  *" getcwd.$ac_objext "* ) ;;
33269  *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" ;;
33270esac
33271
33272fi
33273echo "$as_me:$LINENO: checking for getdtablesize" >&5
33274echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6
33275if test "${ac_cv_func_getdtablesize+set}" = set; then
33276  echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278  cat >conftest.$ac_ext <<_ACEOF
33279/* confdefs.h.  */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h.  */
33284/* Define getdtablesize to an innocuous variant, in case <limits.h> declares getdtablesize.
33285   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33286#define getdtablesize innocuous_getdtablesize
33287
33288/* System header to define __stub macros and hopefully few prototypes,
33289    which can conflict with char getdtablesize (); below.
33290    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33291    <limits.h> exists even on freestanding compilers.  */
33292
33293#ifdef __STDC__
33294# include <limits.h>
33295#else
33296# include <assert.h>
33297#endif
33298
33299#undef getdtablesize
33300
33301/* Override any gcc2 internal prototype to avoid an error.  */
33302#ifdef __cplusplus
33303extern "C"
33304{
33305#endif
33306/* We use char because int might match the return type of a gcc2
33307   builtin and then its argument prototype would still apply.  */
33308char getdtablesize ();
33309/* The GNU C library defines this for functions which it implements
33310    to always fail with ENOSYS.  Some functions are actually named
33311    something starting with __ and the normal name is an alias.  */
33312#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize)
33313choke me
33314#else
33315char (*f) () = getdtablesize;
33316#endif
33317#ifdef __cplusplus
33318}
33319#endif
33320
33321int
33322main ()
33323{
33324return f != getdtablesize;
33325  ;
33326  return 0;
33327}
33328_ACEOF
33329rm -f conftest.$ac_objext conftest$ac_exeext
33330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33331  (eval $ac_link) 2>conftest.er1
33332  ac_status=$?
33333  grep -v '^ *+' conftest.er1 >conftest.err
33334  rm -f conftest.er1
33335  cat conftest.err >&5
33336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337  (exit $ac_status); } &&
33338	 { ac_try='test -z "$ac_c_werror_flag"
33339			 || test ! -s conftest.err'
33340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33341  (eval $ac_try) 2>&5
33342  ac_status=$?
33343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344  (exit $ac_status); }; } &&
33345	 { ac_try='test -s conftest$ac_exeext'
33346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347  (eval $ac_try) 2>&5
33348  ac_status=$?
33349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350  (exit $ac_status); }; }; then
33351  ac_cv_func_getdtablesize=yes
33352else
33353  echo "$as_me: failed program was:" >&5
33354sed 's/^/| /' conftest.$ac_ext >&5
33355
33356ac_cv_func_getdtablesize=no
33357fi
33358rm -f conftest.err conftest.$ac_objext \
33359      conftest$ac_exeext conftest.$ac_ext
33360fi
33361echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5
33362echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6
33363if test $ac_cv_func_getdtablesize = yes; then
33364
33365cat >>confdefs.h <<_ACEOF
33366#define HAVE_GETDTABLESIZE 1
33367_ACEOF
33368
33369else
33370  case $LIBOBJS in
33371    "getdtablesize.$ac_objext"   | \
33372  *" getdtablesize.$ac_objext"   | \
33373    "getdtablesize.$ac_objext "* | \
33374  *" getdtablesize.$ac_objext "* ) ;;
33375  *) LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" ;;
33376esac
33377
33378fi
33379echo "$as_me:$LINENO: checking for getegid" >&5
33380echo $ECHO_N "checking for getegid... $ECHO_C" >&6
33381if test "${ac_cv_func_getegid+set}" = set; then
33382  echo $ECHO_N "(cached) $ECHO_C" >&6
33383else
33384  cat >conftest.$ac_ext <<_ACEOF
33385/* confdefs.h.  */
33386_ACEOF
33387cat confdefs.h >>conftest.$ac_ext
33388cat >>conftest.$ac_ext <<_ACEOF
33389/* end confdefs.h.  */
33390/* Define getegid to an innocuous variant, in case <limits.h> declares getegid.
33391   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33392#define getegid innocuous_getegid
33393
33394/* System header to define __stub macros and hopefully few prototypes,
33395    which can conflict with char getegid (); below.
33396    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33397    <limits.h> exists even on freestanding compilers.  */
33398
33399#ifdef __STDC__
33400# include <limits.h>
33401#else
33402# include <assert.h>
33403#endif
33404
33405#undef getegid
33406
33407/* Override any gcc2 internal prototype to avoid an error.  */
33408#ifdef __cplusplus
33409extern "C"
33410{
33411#endif
33412/* We use char because int might match the return type of a gcc2
33413   builtin and then its argument prototype would still apply.  */
33414char getegid ();
33415/* The GNU C library defines this for functions which it implements
33416    to always fail with ENOSYS.  Some functions are actually named
33417    something starting with __ and the normal name is an alias.  */
33418#if defined (__stub_getegid) || defined (__stub___getegid)
33419choke me
33420#else
33421char (*f) () = getegid;
33422#endif
33423#ifdef __cplusplus
33424}
33425#endif
33426
33427int
33428main ()
33429{
33430return f != getegid;
33431  ;
33432  return 0;
33433}
33434_ACEOF
33435rm -f conftest.$ac_objext conftest$ac_exeext
33436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33437  (eval $ac_link) 2>conftest.er1
33438  ac_status=$?
33439  grep -v '^ *+' conftest.er1 >conftest.err
33440  rm -f conftest.er1
33441  cat conftest.err >&5
33442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443  (exit $ac_status); } &&
33444	 { ac_try='test -z "$ac_c_werror_flag"
33445			 || test ! -s conftest.err'
33446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33447  (eval $ac_try) 2>&5
33448  ac_status=$?
33449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450  (exit $ac_status); }; } &&
33451	 { ac_try='test -s conftest$ac_exeext'
33452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453  (eval $ac_try) 2>&5
33454  ac_status=$?
33455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456  (exit $ac_status); }; }; then
33457  ac_cv_func_getegid=yes
33458else
33459  echo "$as_me: failed program was:" >&5
33460sed 's/^/| /' conftest.$ac_ext >&5
33461
33462ac_cv_func_getegid=no
33463fi
33464rm -f conftest.err conftest.$ac_objext \
33465      conftest$ac_exeext conftest.$ac_ext
33466fi
33467echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5
33468echo "${ECHO_T}$ac_cv_func_getegid" >&6
33469if test $ac_cv_func_getegid = yes; then
33470
33471cat >>confdefs.h <<_ACEOF
33472#define HAVE_GETEGID 1
33473_ACEOF
33474
33475else
33476  case $LIBOBJS in
33477    "getegid.$ac_objext"   | \
33478  *" getegid.$ac_objext"   | \
33479    "getegid.$ac_objext "* | \
33480  *" getegid.$ac_objext "* ) ;;
33481  *) LIBOBJS="$LIBOBJS getegid.$ac_objext" ;;
33482esac
33483
33484fi
33485echo "$as_me:$LINENO: checking for geteuid" >&5
33486echo $ECHO_N "checking for geteuid... $ECHO_C" >&6
33487if test "${ac_cv_func_geteuid+set}" = set; then
33488  echo $ECHO_N "(cached) $ECHO_C" >&6
33489else
33490  cat >conftest.$ac_ext <<_ACEOF
33491/* confdefs.h.  */
33492_ACEOF
33493cat confdefs.h >>conftest.$ac_ext
33494cat >>conftest.$ac_ext <<_ACEOF
33495/* end confdefs.h.  */
33496/* Define geteuid to an innocuous variant, in case <limits.h> declares geteuid.
33497   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33498#define geteuid innocuous_geteuid
33499
33500/* System header to define __stub macros and hopefully few prototypes,
33501    which can conflict with char geteuid (); below.
33502    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33503    <limits.h> exists even on freestanding compilers.  */
33504
33505#ifdef __STDC__
33506# include <limits.h>
33507#else
33508# include <assert.h>
33509#endif
33510
33511#undef geteuid
33512
33513/* Override any gcc2 internal prototype to avoid an error.  */
33514#ifdef __cplusplus
33515extern "C"
33516{
33517#endif
33518/* We use char because int might match the return type of a gcc2
33519   builtin and then its argument prototype would still apply.  */
33520char geteuid ();
33521/* The GNU C library defines this for functions which it implements
33522    to always fail with ENOSYS.  Some functions are actually named
33523    something starting with __ and the normal name is an alias.  */
33524#if defined (__stub_geteuid) || defined (__stub___geteuid)
33525choke me
33526#else
33527char (*f) () = geteuid;
33528#endif
33529#ifdef __cplusplus
33530}
33531#endif
33532
33533int
33534main ()
33535{
33536return f != geteuid;
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>conftest.er1
33544  ac_status=$?
33545  grep -v '^ *+' conftest.er1 >conftest.err
33546  rm -f conftest.er1
33547  cat conftest.err >&5
33548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33549  (exit $ac_status); } &&
33550	 { ac_try='test -z "$ac_c_werror_flag"
33551			 || test ! -s conftest.err'
33552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553  (eval $ac_try) 2>&5
33554  ac_status=$?
33555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556  (exit $ac_status); }; } &&
33557	 { ac_try='test -s conftest$ac_exeext'
33558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33559  (eval $ac_try) 2>&5
33560  ac_status=$?
33561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562  (exit $ac_status); }; }; then
33563  ac_cv_func_geteuid=yes
33564else
33565  echo "$as_me: failed program was:" >&5
33566sed 's/^/| /' conftest.$ac_ext >&5
33567
33568ac_cv_func_geteuid=no
33569fi
33570rm -f conftest.err conftest.$ac_objext \
33571      conftest$ac_exeext conftest.$ac_ext
33572fi
33573echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5
33574echo "${ECHO_T}$ac_cv_func_geteuid" >&6
33575if test $ac_cv_func_geteuid = yes; then
33576
33577cat >>confdefs.h <<_ACEOF
33578#define HAVE_GETEUID 1
33579_ACEOF
33580
33581else
33582  case $LIBOBJS in
33583    "geteuid.$ac_objext"   | \
33584  *" geteuid.$ac_objext"   | \
33585    "geteuid.$ac_objext "* | \
33586  *" geteuid.$ac_objext "* ) ;;
33587  *) LIBOBJS="$LIBOBJS geteuid.$ac_objext" ;;
33588esac
33589
33590fi
33591echo "$as_me:$LINENO: checking for getgid" >&5
33592echo $ECHO_N "checking for getgid... $ECHO_C" >&6
33593if test "${ac_cv_func_getgid+set}" = set; then
33594  echo $ECHO_N "(cached) $ECHO_C" >&6
33595else
33596  cat >conftest.$ac_ext <<_ACEOF
33597/* confdefs.h.  */
33598_ACEOF
33599cat confdefs.h >>conftest.$ac_ext
33600cat >>conftest.$ac_ext <<_ACEOF
33601/* end confdefs.h.  */
33602/* Define getgid to an innocuous variant, in case <limits.h> declares getgid.
33603   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33604#define getgid innocuous_getgid
33605
33606/* System header to define __stub macros and hopefully few prototypes,
33607    which can conflict with char getgid (); below.
33608    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33609    <limits.h> exists even on freestanding compilers.  */
33610
33611#ifdef __STDC__
33612# include <limits.h>
33613#else
33614# include <assert.h>
33615#endif
33616
33617#undef getgid
33618
33619/* Override any gcc2 internal prototype to avoid an error.  */
33620#ifdef __cplusplus
33621extern "C"
33622{
33623#endif
33624/* We use char because int might match the return type of a gcc2
33625   builtin and then its argument prototype would still apply.  */
33626char getgid ();
33627/* The GNU C library defines this for functions which it implements
33628    to always fail with ENOSYS.  Some functions are actually named
33629    something starting with __ and the normal name is an alias.  */
33630#if defined (__stub_getgid) || defined (__stub___getgid)
33631choke me
33632#else
33633char (*f) () = getgid;
33634#endif
33635#ifdef __cplusplus
33636}
33637#endif
33638
33639int
33640main ()
33641{
33642return f != getgid;
33643  ;
33644  return 0;
33645}
33646_ACEOF
33647rm -f conftest.$ac_objext conftest$ac_exeext
33648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33649  (eval $ac_link) 2>conftest.er1
33650  ac_status=$?
33651  grep -v '^ *+' conftest.er1 >conftest.err
33652  rm -f conftest.er1
33653  cat conftest.err >&5
33654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655  (exit $ac_status); } &&
33656	 { ac_try='test -z "$ac_c_werror_flag"
33657			 || test ! -s conftest.err'
33658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659  (eval $ac_try) 2>&5
33660  ac_status=$?
33661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662  (exit $ac_status); }; } &&
33663	 { ac_try='test -s conftest$ac_exeext'
33664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665  (eval $ac_try) 2>&5
33666  ac_status=$?
33667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668  (exit $ac_status); }; }; then
33669  ac_cv_func_getgid=yes
33670else
33671  echo "$as_me: failed program was:" >&5
33672sed 's/^/| /' conftest.$ac_ext >&5
33673
33674ac_cv_func_getgid=no
33675fi
33676rm -f conftest.err conftest.$ac_objext \
33677      conftest$ac_exeext conftest.$ac_ext
33678fi
33679echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5
33680echo "${ECHO_T}$ac_cv_func_getgid" >&6
33681if test $ac_cv_func_getgid = yes; then
33682
33683cat >>confdefs.h <<_ACEOF
33684#define HAVE_GETGID 1
33685_ACEOF
33686
33687else
33688  case $LIBOBJS in
33689    "getgid.$ac_objext"   | \
33690  *" getgid.$ac_objext"   | \
33691    "getgid.$ac_objext "* | \
33692  *" getgid.$ac_objext "* ) ;;
33693  *) LIBOBJS="$LIBOBJS getgid.$ac_objext" ;;
33694esac
33695
33696fi
33697echo "$as_me:$LINENO: checking for gethostname" >&5
33698echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
33699if test "${ac_cv_func_gethostname+set}" = set; then
33700  echo $ECHO_N "(cached) $ECHO_C" >&6
33701else
33702  cat >conftest.$ac_ext <<_ACEOF
33703/* confdefs.h.  */
33704_ACEOF
33705cat confdefs.h >>conftest.$ac_ext
33706cat >>conftest.$ac_ext <<_ACEOF
33707/* end confdefs.h.  */
33708/* Define gethostname to an innocuous variant, in case <limits.h> declares gethostname.
33709   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33710#define gethostname innocuous_gethostname
33711
33712/* System header to define __stub macros and hopefully few prototypes,
33713    which can conflict with char gethostname (); below.
33714    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33715    <limits.h> exists even on freestanding compilers.  */
33716
33717#ifdef __STDC__
33718# include <limits.h>
33719#else
33720# include <assert.h>
33721#endif
33722
33723#undef gethostname
33724
33725/* Override any gcc2 internal prototype to avoid an error.  */
33726#ifdef __cplusplus
33727extern "C"
33728{
33729#endif
33730/* We use char because int might match the return type of a gcc2
33731   builtin and then its argument prototype would still apply.  */
33732char gethostname ();
33733/* The GNU C library defines this for functions which it implements
33734    to always fail with ENOSYS.  Some functions are actually named
33735    something starting with __ and the normal name is an alias.  */
33736#if defined (__stub_gethostname) || defined (__stub___gethostname)
33737choke me
33738#else
33739char (*f) () = gethostname;
33740#endif
33741#ifdef __cplusplus
33742}
33743#endif
33744
33745int
33746main ()
33747{
33748return f != gethostname;
33749  ;
33750  return 0;
33751}
33752_ACEOF
33753rm -f conftest.$ac_objext conftest$ac_exeext
33754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33755  (eval $ac_link) 2>conftest.er1
33756  ac_status=$?
33757  grep -v '^ *+' conftest.er1 >conftest.err
33758  rm -f conftest.er1
33759  cat conftest.err >&5
33760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761  (exit $ac_status); } &&
33762	 { ac_try='test -z "$ac_c_werror_flag"
33763			 || test ! -s conftest.err'
33764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33765  (eval $ac_try) 2>&5
33766  ac_status=$?
33767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768  (exit $ac_status); }; } &&
33769	 { ac_try='test -s conftest$ac_exeext'
33770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771  (eval $ac_try) 2>&5
33772  ac_status=$?
33773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774  (exit $ac_status); }; }; then
33775  ac_cv_func_gethostname=yes
33776else
33777  echo "$as_me: failed program was:" >&5
33778sed 's/^/| /' conftest.$ac_ext >&5
33779
33780ac_cv_func_gethostname=no
33781fi
33782rm -f conftest.err conftest.$ac_objext \
33783      conftest$ac_exeext conftest.$ac_ext
33784fi
33785echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5
33786echo "${ECHO_T}$ac_cv_func_gethostname" >&6
33787if test $ac_cv_func_gethostname = yes; then
33788
33789cat >>confdefs.h <<_ACEOF
33790#define HAVE_GETHOSTNAME 1
33791_ACEOF
33792
33793else
33794  case $LIBOBJS in
33795    "gethostname.$ac_objext"   | \
33796  *" gethostname.$ac_objext"   | \
33797    "gethostname.$ac_objext "* | \
33798  *" gethostname.$ac_objext "* ) ;;
33799  *) LIBOBJS="$LIBOBJS gethostname.$ac_objext" ;;
33800esac
33801
33802fi
33803echo "$as_me:$LINENO: checking for getifaddrs" >&5
33804echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6
33805if test "${ac_cv_func_getifaddrs+set}" = set; then
33806  echo $ECHO_N "(cached) $ECHO_C" >&6
33807else
33808  cat >conftest.$ac_ext <<_ACEOF
33809/* confdefs.h.  */
33810_ACEOF
33811cat confdefs.h >>conftest.$ac_ext
33812cat >>conftest.$ac_ext <<_ACEOF
33813/* end confdefs.h.  */
33814/* Define getifaddrs to an innocuous variant, in case <limits.h> declares getifaddrs.
33815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33816#define getifaddrs innocuous_getifaddrs
33817
33818/* System header to define __stub macros and hopefully few prototypes,
33819    which can conflict with char getifaddrs (); below.
33820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33821    <limits.h> exists even on freestanding compilers.  */
33822
33823#ifdef __STDC__
33824# include <limits.h>
33825#else
33826# include <assert.h>
33827#endif
33828
33829#undef getifaddrs
33830
33831/* Override any gcc2 internal prototype to avoid an error.  */
33832#ifdef __cplusplus
33833extern "C"
33834{
33835#endif
33836/* We use char because int might match the return type of a gcc2
33837   builtin and then its argument prototype would still apply.  */
33838char getifaddrs ();
33839/* The GNU C library defines this for functions which it implements
33840    to always fail with ENOSYS.  Some functions are actually named
33841    something starting with __ and the normal name is an alias.  */
33842#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs)
33843choke me
33844#else
33845char (*f) () = getifaddrs;
33846#endif
33847#ifdef __cplusplus
33848}
33849#endif
33850
33851int
33852main ()
33853{
33854return f != getifaddrs;
33855  ;
33856  return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext conftest$ac_exeext
33860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33861  (eval $ac_link) 2>conftest.er1
33862  ac_status=$?
33863  grep -v '^ *+' conftest.er1 >conftest.err
33864  rm -f conftest.er1
33865  cat conftest.err >&5
33866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867  (exit $ac_status); } &&
33868	 { ac_try='test -z "$ac_c_werror_flag"
33869			 || test ! -s conftest.err'
33870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871  (eval $ac_try) 2>&5
33872  ac_status=$?
33873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874  (exit $ac_status); }; } &&
33875	 { ac_try='test -s conftest$ac_exeext'
33876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877  (eval $ac_try) 2>&5
33878  ac_status=$?
33879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880  (exit $ac_status); }; }; then
33881  ac_cv_func_getifaddrs=yes
33882else
33883  echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886ac_cv_func_getifaddrs=no
33887fi
33888rm -f conftest.err conftest.$ac_objext \
33889      conftest$ac_exeext conftest.$ac_ext
33890fi
33891echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5
33892echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6
33893if test $ac_cv_func_getifaddrs = yes; then
33894
33895cat >>confdefs.h <<_ACEOF
33896#define HAVE_GETIFADDRS 1
33897_ACEOF
33898
33899else
33900  case $LIBOBJS in
33901    "getifaddrs.$ac_objext"   | \
33902  *" getifaddrs.$ac_objext"   | \
33903    "getifaddrs.$ac_objext "* | \
33904  *" getifaddrs.$ac_objext "* ) ;;
33905  *) LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" ;;
33906esac
33907
33908fi
33909echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5
33910echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6
33911if test "${ac_cv_func_getipnodebyaddr+set}" = set; then
33912  echo $ECHO_N "(cached) $ECHO_C" >&6
33913else
33914  cat >conftest.$ac_ext <<_ACEOF
33915/* confdefs.h.  */
33916_ACEOF
33917cat confdefs.h >>conftest.$ac_ext
33918cat >>conftest.$ac_ext <<_ACEOF
33919/* end confdefs.h.  */
33920/* Define getipnodebyaddr to an innocuous variant, in case <limits.h> declares getipnodebyaddr.
33921   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33922#define getipnodebyaddr innocuous_getipnodebyaddr
33923
33924/* System header to define __stub macros and hopefully few prototypes,
33925    which can conflict with char getipnodebyaddr (); below.
33926    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33927    <limits.h> exists even on freestanding compilers.  */
33928
33929#ifdef __STDC__
33930# include <limits.h>
33931#else
33932# include <assert.h>
33933#endif
33934
33935#undef getipnodebyaddr
33936
33937/* Override any gcc2 internal prototype to avoid an error.  */
33938#ifdef __cplusplus
33939extern "C"
33940{
33941#endif
33942/* We use char because int might match the return type of a gcc2
33943   builtin and then its argument prototype would still apply.  */
33944char getipnodebyaddr ();
33945/* The GNU C library defines this for functions which it implements
33946    to always fail with ENOSYS.  Some functions are actually named
33947    something starting with __ and the normal name is an alias.  */
33948#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr)
33949choke me
33950#else
33951char (*f) () = getipnodebyaddr;
33952#endif
33953#ifdef __cplusplus
33954}
33955#endif
33956
33957int
33958main ()
33959{
33960return f != getipnodebyaddr;
33961  ;
33962  return 0;
33963}
33964_ACEOF
33965rm -f conftest.$ac_objext conftest$ac_exeext
33966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33967  (eval $ac_link) 2>conftest.er1
33968  ac_status=$?
33969  grep -v '^ *+' conftest.er1 >conftest.err
33970  rm -f conftest.er1
33971  cat conftest.err >&5
33972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973  (exit $ac_status); } &&
33974	 { ac_try='test -z "$ac_c_werror_flag"
33975			 || test ! -s conftest.err'
33976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33977  (eval $ac_try) 2>&5
33978  ac_status=$?
33979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980  (exit $ac_status); }; } &&
33981	 { ac_try='test -s conftest$ac_exeext'
33982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33983  (eval $ac_try) 2>&5
33984  ac_status=$?
33985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33986  (exit $ac_status); }; }; then
33987  ac_cv_func_getipnodebyaddr=yes
33988else
33989  echo "$as_me: failed program was:" >&5
33990sed 's/^/| /' conftest.$ac_ext >&5
33991
33992ac_cv_func_getipnodebyaddr=no
33993fi
33994rm -f conftest.err conftest.$ac_objext \
33995      conftest$ac_exeext conftest.$ac_ext
33996fi
33997echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5
33998echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6
33999if test $ac_cv_func_getipnodebyaddr = yes; then
34000
34001cat >>confdefs.h <<_ACEOF
34002#define HAVE_GETIPNODEBYADDR 1
34003_ACEOF
34004
34005else
34006  case $LIBOBJS in
34007    "getipnodebyaddr.$ac_objext"   | \
34008  *" getipnodebyaddr.$ac_objext"   | \
34009    "getipnodebyaddr.$ac_objext "* | \
34010  *" getipnodebyaddr.$ac_objext "* ) ;;
34011  *) LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" ;;
34012esac
34013
34014fi
34015echo "$as_me:$LINENO: checking for getipnodebyname" >&5
34016echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6
34017if test "${ac_cv_func_getipnodebyname+set}" = set; then
34018  echo $ECHO_N "(cached) $ECHO_C" >&6
34019else
34020  cat >conftest.$ac_ext <<_ACEOF
34021/* confdefs.h.  */
34022_ACEOF
34023cat confdefs.h >>conftest.$ac_ext
34024cat >>conftest.$ac_ext <<_ACEOF
34025/* end confdefs.h.  */
34026/* Define getipnodebyname to an innocuous variant, in case <limits.h> declares getipnodebyname.
34027   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34028#define getipnodebyname innocuous_getipnodebyname
34029
34030/* System header to define __stub macros and hopefully few prototypes,
34031    which can conflict with char getipnodebyname (); below.
34032    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34033    <limits.h> exists even on freestanding compilers.  */
34034
34035#ifdef __STDC__
34036# include <limits.h>
34037#else
34038# include <assert.h>
34039#endif
34040
34041#undef getipnodebyname
34042
34043/* Override any gcc2 internal prototype to avoid an error.  */
34044#ifdef __cplusplus
34045extern "C"
34046{
34047#endif
34048/* We use char because int might match the return type of a gcc2
34049   builtin and then its argument prototype would still apply.  */
34050char getipnodebyname ();
34051/* The GNU C library defines this for functions which it implements
34052    to always fail with ENOSYS.  Some functions are actually named
34053    something starting with __ and the normal name is an alias.  */
34054#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname)
34055choke me
34056#else
34057char (*f) () = getipnodebyname;
34058#endif
34059#ifdef __cplusplus
34060}
34061#endif
34062
34063int
34064main ()
34065{
34066return f != getipnodebyname;
34067  ;
34068  return 0;
34069}
34070_ACEOF
34071rm -f conftest.$ac_objext conftest$ac_exeext
34072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34073  (eval $ac_link) 2>conftest.er1
34074  ac_status=$?
34075  grep -v '^ *+' conftest.er1 >conftest.err
34076  rm -f conftest.er1
34077  cat conftest.err >&5
34078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079  (exit $ac_status); } &&
34080	 { ac_try='test -z "$ac_c_werror_flag"
34081			 || test ! -s conftest.err'
34082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083  (eval $ac_try) 2>&5
34084  ac_status=$?
34085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086  (exit $ac_status); }; } &&
34087	 { ac_try='test -s conftest$ac_exeext'
34088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089  (eval $ac_try) 2>&5
34090  ac_status=$?
34091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092  (exit $ac_status); }; }; then
34093  ac_cv_func_getipnodebyname=yes
34094else
34095  echo "$as_me: failed program was:" >&5
34096sed 's/^/| /' conftest.$ac_ext >&5
34097
34098ac_cv_func_getipnodebyname=no
34099fi
34100rm -f conftest.err conftest.$ac_objext \
34101      conftest$ac_exeext conftest.$ac_ext
34102fi
34103echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5
34104echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6
34105if test $ac_cv_func_getipnodebyname = yes; then
34106
34107cat >>confdefs.h <<_ACEOF
34108#define HAVE_GETIPNODEBYNAME 1
34109_ACEOF
34110
34111else
34112  case $LIBOBJS in
34113    "getipnodebyname.$ac_objext"   | \
34114  *" getipnodebyname.$ac_objext"   | \
34115    "getipnodebyname.$ac_objext "* | \
34116  *" getipnodebyname.$ac_objext "* ) ;;
34117  *) LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" ;;
34118esac
34119
34120fi
34121echo "$as_me:$LINENO: checking for getopt" >&5
34122echo $ECHO_N "checking for getopt... $ECHO_C" >&6
34123if test "${ac_cv_func_getopt+set}" = set; then
34124  echo $ECHO_N "(cached) $ECHO_C" >&6
34125else
34126  cat >conftest.$ac_ext <<_ACEOF
34127/* confdefs.h.  */
34128_ACEOF
34129cat confdefs.h >>conftest.$ac_ext
34130cat >>conftest.$ac_ext <<_ACEOF
34131/* end confdefs.h.  */
34132/* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
34133   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34134#define getopt innocuous_getopt
34135
34136/* System header to define __stub macros and hopefully few prototypes,
34137    which can conflict with char getopt (); below.
34138    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34139    <limits.h> exists even on freestanding compilers.  */
34140
34141#ifdef __STDC__
34142# include <limits.h>
34143#else
34144# include <assert.h>
34145#endif
34146
34147#undef getopt
34148
34149/* Override any gcc2 internal prototype to avoid an error.  */
34150#ifdef __cplusplus
34151extern "C"
34152{
34153#endif
34154/* We use char because int might match the return type of a gcc2
34155   builtin and then its argument prototype would still apply.  */
34156char getopt ();
34157/* The GNU C library defines this for functions which it implements
34158    to always fail with ENOSYS.  Some functions are actually named
34159    something starting with __ and the normal name is an alias.  */
34160#if defined (__stub_getopt) || defined (__stub___getopt)
34161choke me
34162#else
34163char (*f) () = getopt;
34164#endif
34165#ifdef __cplusplus
34166}
34167#endif
34168
34169int
34170main ()
34171{
34172return f != getopt;
34173  ;
34174  return 0;
34175}
34176_ACEOF
34177rm -f conftest.$ac_objext conftest$ac_exeext
34178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34179  (eval $ac_link) 2>conftest.er1
34180  ac_status=$?
34181  grep -v '^ *+' conftest.er1 >conftest.err
34182  rm -f conftest.er1
34183  cat conftest.err >&5
34184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185  (exit $ac_status); } &&
34186	 { ac_try='test -z "$ac_c_werror_flag"
34187			 || test ! -s conftest.err'
34188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189  (eval $ac_try) 2>&5
34190  ac_status=$?
34191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192  (exit $ac_status); }; } &&
34193	 { ac_try='test -s conftest$ac_exeext'
34194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195  (eval $ac_try) 2>&5
34196  ac_status=$?
34197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198  (exit $ac_status); }; }; then
34199  ac_cv_func_getopt=yes
34200else
34201  echo "$as_me: failed program was:" >&5
34202sed 's/^/| /' conftest.$ac_ext >&5
34203
34204ac_cv_func_getopt=no
34205fi
34206rm -f conftest.err conftest.$ac_objext \
34207      conftest$ac_exeext conftest.$ac_ext
34208fi
34209echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
34210echo "${ECHO_T}$ac_cv_func_getopt" >&6
34211if test $ac_cv_func_getopt = yes; then
34212
34213cat >>confdefs.h <<_ACEOF
34214#define HAVE_GETOPT 1
34215_ACEOF
34216
34217else
34218  case $LIBOBJS in
34219    "getopt.$ac_objext"   | \
34220  *" getopt.$ac_objext"   | \
34221    "getopt.$ac_objext "* | \
34222  *" getopt.$ac_objext "* ) ;;
34223  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
34224esac
34225
34226fi
34227echo "$as_me:$LINENO: checking for gettimeofday" >&5
34228echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
34229if test "${ac_cv_func_gettimeofday+set}" = set; then
34230  echo $ECHO_N "(cached) $ECHO_C" >&6
34231else
34232  cat >conftest.$ac_ext <<_ACEOF
34233/* confdefs.h.  */
34234_ACEOF
34235cat confdefs.h >>conftest.$ac_ext
34236cat >>conftest.$ac_ext <<_ACEOF
34237/* end confdefs.h.  */
34238/* Define gettimeofday to an innocuous variant, in case <limits.h> declares gettimeofday.
34239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34240#define gettimeofday innocuous_gettimeofday
34241
34242/* System header to define __stub macros and hopefully few prototypes,
34243    which can conflict with char gettimeofday (); below.
34244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34245    <limits.h> exists even on freestanding compilers.  */
34246
34247#ifdef __STDC__
34248# include <limits.h>
34249#else
34250# include <assert.h>
34251#endif
34252
34253#undef gettimeofday
34254
34255/* Override any gcc2 internal prototype to avoid an error.  */
34256#ifdef __cplusplus
34257extern "C"
34258{
34259#endif
34260/* We use char because int might match the return type of a gcc2
34261   builtin and then its argument prototype would still apply.  */
34262char gettimeofday ();
34263/* The GNU C library defines this for functions which it implements
34264    to always fail with ENOSYS.  Some functions are actually named
34265    something starting with __ and the normal name is an alias.  */
34266#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
34267choke me
34268#else
34269char (*f) () = gettimeofday;
34270#endif
34271#ifdef __cplusplus
34272}
34273#endif
34274
34275int
34276main ()
34277{
34278return f != gettimeofday;
34279  ;
34280  return 0;
34281}
34282_ACEOF
34283rm -f conftest.$ac_objext conftest$ac_exeext
34284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34285  (eval $ac_link) 2>conftest.er1
34286  ac_status=$?
34287  grep -v '^ *+' conftest.er1 >conftest.err
34288  rm -f conftest.er1
34289  cat conftest.err >&5
34290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34291  (exit $ac_status); } &&
34292	 { ac_try='test -z "$ac_c_werror_flag"
34293			 || test ! -s conftest.err'
34294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34295  (eval $ac_try) 2>&5
34296  ac_status=$?
34297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34298  (exit $ac_status); }; } &&
34299	 { ac_try='test -s conftest$ac_exeext'
34300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34301  (eval $ac_try) 2>&5
34302  ac_status=$?
34303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304  (exit $ac_status); }; }; then
34305  ac_cv_func_gettimeofday=yes
34306else
34307  echo "$as_me: failed program was:" >&5
34308sed 's/^/| /' conftest.$ac_ext >&5
34309
34310ac_cv_func_gettimeofday=no
34311fi
34312rm -f conftest.err conftest.$ac_objext \
34313      conftest$ac_exeext conftest.$ac_ext
34314fi
34315echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5
34316echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
34317if test $ac_cv_func_gettimeofday = yes; then
34318
34319cat >>confdefs.h <<_ACEOF
34320#define HAVE_GETTIMEOFDAY 1
34321_ACEOF
34322
34323else
34324  case $LIBOBJS in
34325    "gettimeofday.$ac_objext"   | \
34326  *" gettimeofday.$ac_objext"   | \
34327    "gettimeofday.$ac_objext "* | \
34328  *" gettimeofday.$ac_objext "* ) ;;
34329  *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" ;;
34330esac
34331
34332fi
34333echo "$as_me:$LINENO: checking for getuid" >&5
34334echo $ECHO_N "checking for getuid... $ECHO_C" >&6
34335if test "${ac_cv_func_getuid+set}" = set; then
34336  echo $ECHO_N "(cached) $ECHO_C" >&6
34337else
34338  cat >conftest.$ac_ext <<_ACEOF
34339/* confdefs.h.  */
34340_ACEOF
34341cat confdefs.h >>conftest.$ac_ext
34342cat >>conftest.$ac_ext <<_ACEOF
34343/* end confdefs.h.  */
34344/* Define getuid to an innocuous variant, in case <limits.h> declares getuid.
34345   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34346#define getuid innocuous_getuid
34347
34348/* System header to define __stub macros and hopefully few prototypes,
34349    which can conflict with char getuid (); below.
34350    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34351    <limits.h> exists even on freestanding compilers.  */
34352
34353#ifdef __STDC__
34354# include <limits.h>
34355#else
34356# include <assert.h>
34357#endif
34358
34359#undef getuid
34360
34361/* Override any gcc2 internal prototype to avoid an error.  */
34362#ifdef __cplusplus
34363extern "C"
34364{
34365#endif
34366/* We use char because int might match the return type of a gcc2
34367   builtin and then its argument prototype would still apply.  */
34368char getuid ();
34369/* The GNU C library defines this for functions which it implements
34370    to always fail with ENOSYS.  Some functions are actually named
34371    something starting with __ and the normal name is an alias.  */
34372#if defined (__stub_getuid) || defined (__stub___getuid)
34373choke me
34374#else
34375char (*f) () = getuid;
34376#endif
34377#ifdef __cplusplus
34378}
34379#endif
34380
34381int
34382main ()
34383{
34384return f != getuid;
34385  ;
34386  return 0;
34387}
34388_ACEOF
34389rm -f conftest.$ac_objext conftest$ac_exeext
34390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34391  (eval $ac_link) 2>conftest.er1
34392  ac_status=$?
34393  grep -v '^ *+' conftest.er1 >conftest.err
34394  rm -f conftest.er1
34395  cat conftest.err >&5
34396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397  (exit $ac_status); } &&
34398	 { ac_try='test -z "$ac_c_werror_flag"
34399			 || test ! -s conftest.err'
34400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34401  (eval $ac_try) 2>&5
34402  ac_status=$?
34403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404  (exit $ac_status); }; } &&
34405	 { ac_try='test -s conftest$ac_exeext'
34406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407  (eval $ac_try) 2>&5
34408  ac_status=$?
34409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410  (exit $ac_status); }; }; then
34411  ac_cv_func_getuid=yes
34412else
34413  echo "$as_me: failed program was:" >&5
34414sed 's/^/| /' conftest.$ac_ext >&5
34415
34416ac_cv_func_getuid=no
34417fi
34418rm -f conftest.err conftest.$ac_objext \
34419      conftest$ac_exeext conftest.$ac_ext
34420fi
34421echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5
34422echo "${ECHO_T}$ac_cv_func_getuid" >&6
34423if test $ac_cv_func_getuid = yes; then
34424
34425cat >>confdefs.h <<_ACEOF
34426#define HAVE_GETUID 1
34427_ACEOF
34428
34429else
34430  case $LIBOBJS in
34431    "getuid.$ac_objext"   | \
34432  *" getuid.$ac_objext"   | \
34433    "getuid.$ac_objext "* | \
34434  *" getuid.$ac_objext "* ) ;;
34435  *) LIBOBJS="$LIBOBJS getuid.$ac_objext" ;;
34436esac
34437
34438fi
34439echo "$as_me:$LINENO: checking for getusershell" >&5
34440echo $ECHO_N "checking for getusershell... $ECHO_C" >&6
34441if test "${ac_cv_func_getusershell+set}" = set; then
34442  echo $ECHO_N "(cached) $ECHO_C" >&6
34443else
34444  cat >conftest.$ac_ext <<_ACEOF
34445/* confdefs.h.  */
34446_ACEOF
34447cat confdefs.h >>conftest.$ac_ext
34448cat >>conftest.$ac_ext <<_ACEOF
34449/* end confdefs.h.  */
34450/* Define getusershell to an innocuous variant, in case <limits.h> declares getusershell.
34451   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34452#define getusershell innocuous_getusershell
34453
34454/* System header to define __stub macros and hopefully few prototypes,
34455    which can conflict with char getusershell (); below.
34456    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34457    <limits.h> exists even on freestanding compilers.  */
34458
34459#ifdef __STDC__
34460# include <limits.h>
34461#else
34462# include <assert.h>
34463#endif
34464
34465#undef getusershell
34466
34467/* Override any gcc2 internal prototype to avoid an error.  */
34468#ifdef __cplusplus
34469extern "C"
34470{
34471#endif
34472/* We use char because int might match the return type of a gcc2
34473   builtin and then its argument prototype would still apply.  */
34474char getusershell ();
34475/* The GNU C library defines this for functions which it implements
34476    to always fail with ENOSYS.  Some functions are actually named
34477    something starting with __ and the normal name is an alias.  */
34478#if defined (__stub_getusershell) || defined (__stub___getusershell)
34479choke me
34480#else
34481char (*f) () = getusershell;
34482#endif
34483#ifdef __cplusplus
34484}
34485#endif
34486
34487int
34488main ()
34489{
34490return f != getusershell;
34491  ;
34492  return 0;
34493}
34494_ACEOF
34495rm -f conftest.$ac_objext conftest$ac_exeext
34496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34497  (eval $ac_link) 2>conftest.er1
34498  ac_status=$?
34499  grep -v '^ *+' conftest.er1 >conftest.err
34500  rm -f conftest.er1
34501  cat conftest.err >&5
34502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34503  (exit $ac_status); } &&
34504	 { ac_try='test -z "$ac_c_werror_flag"
34505			 || test ! -s conftest.err'
34506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34507  (eval $ac_try) 2>&5
34508  ac_status=$?
34509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34510  (exit $ac_status); }; } &&
34511	 { ac_try='test -s conftest$ac_exeext'
34512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513  (eval $ac_try) 2>&5
34514  ac_status=$?
34515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516  (exit $ac_status); }; }; then
34517  ac_cv_func_getusershell=yes
34518else
34519  echo "$as_me: failed program was:" >&5
34520sed 's/^/| /' conftest.$ac_ext >&5
34521
34522ac_cv_func_getusershell=no
34523fi
34524rm -f conftest.err conftest.$ac_objext \
34525      conftest$ac_exeext conftest.$ac_ext
34526fi
34527echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5
34528echo "${ECHO_T}$ac_cv_func_getusershell" >&6
34529if test $ac_cv_func_getusershell = yes; then
34530
34531cat >>confdefs.h <<_ACEOF
34532#define HAVE_GETUSERSHELL 1
34533_ACEOF
34534
34535else
34536  case $LIBOBJS in
34537    "getusershell.$ac_objext"   | \
34538  *" getusershell.$ac_objext"   | \
34539    "getusershell.$ac_objext "* | \
34540  *" getusershell.$ac_objext "* ) ;;
34541  *) LIBOBJS="$LIBOBJS getusershell.$ac_objext" ;;
34542esac
34543
34544fi
34545echo "$as_me:$LINENO: checking for initgroups" >&5
34546echo $ECHO_N "checking for initgroups... $ECHO_C" >&6
34547if test "${ac_cv_func_initgroups+set}" = set; then
34548  echo $ECHO_N "(cached) $ECHO_C" >&6
34549else
34550  cat >conftest.$ac_ext <<_ACEOF
34551/* confdefs.h.  */
34552_ACEOF
34553cat confdefs.h >>conftest.$ac_ext
34554cat >>conftest.$ac_ext <<_ACEOF
34555/* end confdefs.h.  */
34556/* Define initgroups to an innocuous variant, in case <limits.h> declares initgroups.
34557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34558#define initgroups innocuous_initgroups
34559
34560/* System header to define __stub macros and hopefully few prototypes,
34561    which can conflict with char initgroups (); below.
34562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34563    <limits.h> exists even on freestanding compilers.  */
34564
34565#ifdef __STDC__
34566# include <limits.h>
34567#else
34568# include <assert.h>
34569#endif
34570
34571#undef initgroups
34572
34573/* Override any gcc2 internal prototype to avoid an error.  */
34574#ifdef __cplusplus
34575extern "C"
34576{
34577#endif
34578/* We use char because int might match the return type of a gcc2
34579   builtin and then its argument prototype would still apply.  */
34580char initgroups ();
34581/* The GNU C library defines this for functions which it implements
34582    to always fail with ENOSYS.  Some functions are actually named
34583    something starting with __ and the normal name is an alias.  */
34584#if defined (__stub_initgroups) || defined (__stub___initgroups)
34585choke me
34586#else
34587char (*f) () = initgroups;
34588#endif
34589#ifdef __cplusplus
34590}
34591#endif
34592
34593int
34594main ()
34595{
34596return f != initgroups;
34597  ;
34598  return 0;
34599}
34600_ACEOF
34601rm -f conftest.$ac_objext conftest$ac_exeext
34602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34603  (eval $ac_link) 2>conftest.er1
34604  ac_status=$?
34605  grep -v '^ *+' conftest.er1 >conftest.err
34606  rm -f conftest.er1
34607  cat conftest.err >&5
34608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609  (exit $ac_status); } &&
34610	 { ac_try='test -z "$ac_c_werror_flag"
34611			 || test ! -s conftest.err'
34612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34613  (eval $ac_try) 2>&5
34614  ac_status=$?
34615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616  (exit $ac_status); }; } &&
34617	 { ac_try='test -s conftest$ac_exeext'
34618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34619  (eval $ac_try) 2>&5
34620  ac_status=$?
34621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622  (exit $ac_status); }; }; then
34623  ac_cv_func_initgroups=yes
34624else
34625  echo "$as_me: failed program was:" >&5
34626sed 's/^/| /' conftest.$ac_ext >&5
34627
34628ac_cv_func_initgroups=no
34629fi
34630rm -f conftest.err conftest.$ac_objext \
34631      conftest$ac_exeext conftest.$ac_ext
34632fi
34633echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5
34634echo "${ECHO_T}$ac_cv_func_initgroups" >&6
34635if test $ac_cv_func_initgroups = yes; then
34636
34637cat >>confdefs.h <<_ACEOF
34638#define HAVE_INITGROUPS 1
34639_ACEOF
34640
34641else
34642  case $LIBOBJS in
34643    "initgroups.$ac_objext"   | \
34644  *" initgroups.$ac_objext"   | \
34645    "initgroups.$ac_objext "* | \
34646  *" initgroups.$ac_objext "* ) ;;
34647  *) LIBOBJS="$LIBOBJS initgroups.$ac_objext" ;;
34648esac
34649
34650fi
34651echo "$as_me:$LINENO: checking for innetgr" >&5
34652echo $ECHO_N "checking for innetgr... $ECHO_C" >&6
34653if test "${ac_cv_func_innetgr+set}" = set; then
34654  echo $ECHO_N "(cached) $ECHO_C" >&6
34655else
34656  cat >conftest.$ac_ext <<_ACEOF
34657/* confdefs.h.  */
34658_ACEOF
34659cat confdefs.h >>conftest.$ac_ext
34660cat >>conftest.$ac_ext <<_ACEOF
34661/* end confdefs.h.  */
34662/* Define innetgr to an innocuous variant, in case <limits.h> declares innetgr.
34663   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34664#define innetgr innocuous_innetgr
34665
34666/* System header to define __stub macros and hopefully few prototypes,
34667    which can conflict with char innetgr (); below.
34668    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34669    <limits.h> exists even on freestanding compilers.  */
34670
34671#ifdef __STDC__
34672# include <limits.h>
34673#else
34674# include <assert.h>
34675#endif
34676
34677#undef innetgr
34678
34679/* Override any gcc2 internal prototype to avoid an error.  */
34680#ifdef __cplusplus
34681extern "C"
34682{
34683#endif
34684/* We use char because int might match the return type of a gcc2
34685   builtin and then its argument prototype would still apply.  */
34686char innetgr ();
34687/* The GNU C library defines this for functions which it implements
34688    to always fail with ENOSYS.  Some functions are actually named
34689    something starting with __ and the normal name is an alias.  */
34690#if defined (__stub_innetgr) || defined (__stub___innetgr)
34691choke me
34692#else
34693char (*f) () = innetgr;
34694#endif
34695#ifdef __cplusplus
34696}
34697#endif
34698
34699int
34700main ()
34701{
34702return f != innetgr;
34703  ;
34704  return 0;
34705}
34706_ACEOF
34707rm -f conftest.$ac_objext conftest$ac_exeext
34708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34709  (eval $ac_link) 2>conftest.er1
34710  ac_status=$?
34711  grep -v '^ *+' conftest.er1 >conftest.err
34712  rm -f conftest.er1
34713  cat conftest.err >&5
34714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715  (exit $ac_status); } &&
34716	 { ac_try='test -z "$ac_c_werror_flag"
34717			 || test ! -s conftest.err'
34718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34719  (eval $ac_try) 2>&5
34720  ac_status=$?
34721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722  (exit $ac_status); }; } &&
34723	 { ac_try='test -s conftest$ac_exeext'
34724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725  (eval $ac_try) 2>&5
34726  ac_status=$?
34727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728  (exit $ac_status); }; }; then
34729  ac_cv_func_innetgr=yes
34730else
34731  echo "$as_me: failed program was:" >&5
34732sed 's/^/| /' conftest.$ac_ext >&5
34733
34734ac_cv_func_innetgr=no
34735fi
34736rm -f conftest.err conftest.$ac_objext \
34737      conftest$ac_exeext conftest.$ac_ext
34738fi
34739echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5
34740echo "${ECHO_T}$ac_cv_func_innetgr" >&6
34741if test $ac_cv_func_innetgr = yes; then
34742
34743cat >>confdefs.h <<_ACEOF
34744#define HAVE_INNETGR 1
34745_ACEOF
34746
34747else
34748  case $LIBOBJS in
34749    "innetgr.$ac_objext"   | \
34750  *" innetgr.$ac_objext"   | \
34751    "innetgr.$ac_objext "* | \
34752  *" innetgr.$ac_objext "* ) ;;
34753  *) LIBOBJS="$LIBOBJS innetgr.$ac_objext" ;;
34754esac
34755
34756fi
34757echo "$as_me:$LINENO: checking for iruserok" >&5
34758echo $ECHO_N "checking for iruserok... $ECHO_C" >&6
34759if test "${ac_cv_func_iruserok+set}" = set; then
34760  echo $ECHO_N "(cached) $ECHO_C" >&6
34761else
34762  cat >conftest.$ac_ext <<_ACEOF
34763/* confdefs.h.  */
34764_ACEOF
34765cat confdefs.h >>conftest.$ac_ext
34766cat >>conftest.$ac_ext <<_ACEOF
34767/* end confdefs.h.  */
34768/* Define iruserok to an innocuous variant, in case <limits.h> declares iruserok.
34769   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34770#define iruserok innocuous_iruserok
34771
34772/* System header to define __stub macros and hopefully few prototypes,
34773    which can conflict with char iruserok (); below.
34774    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34775    <limits.h> exists even on freestanding compilers.  */
34776
34777#ifdef __STDC__
34778# include <limits.h>
34779#else
34780# include <assert.h>
34781#endif
34782
34783#undef iruserok
34784
34785/* Override any gcc2 internal prototype to avoid an error.  */
34786#ifdef __cplusplus
34787extern "C"
34788{
34789#endif
34790/* We use char because int might match the return type of a gcc2
34791   builtin and then its argument prototype would still apply.  */
34792char iruserok ();
34793/* The GNU C library defines this for functions which it implements
34794    to always fail with ENOSYS.  Some functions are actually named
34795    something starting with __ and the normal name is an alias.  */
34796#if defined (__stub_iruserok) || defined (__stub___iruserok)
34797choke me
34798#else
34799char (*f) () = iruserok;
34800#endif
34801#ifdef __cplusplus
34802}
34803#endif
34804
34805int
34806main ()
34807{
34808return f != iruserok;
34809  ;
34810  return 0;
34811}
34812_ACEOF
34813rm -f conftest.$ac_objext conftest$ac_exeext
34814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34815  (eval $ac_link) 2>conftest.er1
34816  ac_status=$?
34817  grep -v '^ *+' conftest.er1 >conftest.err
34818  rm -f conftest.er1
34819  cat conftest.err >&5
34820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821  (exit $ac_status); } &&
34822	 { ac_try='test -z "$ac_c_werror_flag"
34823			 || test ! -s conftest.err'
34824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34825  (eval $ac_try) 2>&5
34826  ac_status=$?
34827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34828  (exit $ac_status); }; } &&
34829	 { ac_try='test -s conftest$ac_exeext'
34830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34831  (eval $ac_try) 2>&5
34832  ac_status=$?
34833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834  (exit $ac_status); }; }; then
34835  ac_cv_func_iruserok=yes
34836else
34837  echo "$as_me: failed program was:" >&5
34838sed 's/^/| /' conftest.$ac_ext >&5
34839
34840ac_cv_func_iruserok=no
34841fi
34842rm -f conftest.err conftest.$ac_objext \
34843      conftest$ac_exeext conftest.$ac_ext
34844fi
34845echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5
34846echo "${ECHO_T}$ac_cv_func_iruserok" >&6
34847if test $ac_cv_func_iruserok = yes; then
34848
34849cat >>confdefs.h <<_ACEOF
34850#define HAVE_IRUSEROK 1
34851_ACEOF
34852
34853else
34854  case $LIBOBJS in
34855    "iruserok.$ac_objext"   | \
34856  *" iruserok.$ac_objext"   | \
34857    "iruserok.$ac_objext "* | \
34858  *" iruserok.$ac_objext "* ) ;;
34859  *) LIBOBJS="$LIBOBJS iruserok.$ac_objext" ;;
34860esac
34861
34862fi
34863echo "$as_me:$LINENO: checking for localtime_r" >&5
34864echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
34865if test "${ac_cv_func_localtime_r+set}" = set; then
34866  echo $ECHO_N "(cached) $ECHO_C" >&6
34867else
34868  cat >conftest.$ac_ext <<_ACEOF
34869/* confdefs.h.  */
34870_ACEOF
34871cat confdefs.h >>conftest.$ac_ext
34872cat >>conftest.$ac_ext <<_ACEOF
34873/* end confdefs.h.  */
34874/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
34875   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34876#define localtime_r innocuous_localtime_r
34877
34878/* System header to define __stub macros and hopefully few prototypes,
34879    which can conflict with char localtime_r (); below.
34880    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34881    <limits.h> exists even on freestanding compilers.  */
34882
34883#ifdef __STDC__
34884# include <limits.h>
34885#else
34886# include <assert.h>
34887#endif
34888
34889#undef localtime_r
34890
34891/* Override any gcc2 internal prototype to avoid an error.  */
34892#ifdef __cplusplus
34893extern "C"
34894{
34895#endif
34896/* We use char because int might match the return type of a gcc2
34897   builtin and then its argument prototype would still apply.  */
34898char localtime_r ();
34899/* The GNU C library defines this for functions which it implements
34900    to always fail with ENOSYS.  Some functions are actually named
34901    something starting with __ and the normal name is an alias.  */
34902#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
34903choke me
34904#else
34905char (*f) () = localtime_r;
34906#endif
34907#ifdef __cplusplus
34908}
34909#endif
34910
34911int
34912main ()
34913{
34914return f != localtime_r;
34915  ;
34916  return 0;
34917}
34918_ACEOF
34919rm -f conftest.$ac_objext conftest$ac_exeext
34920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34921  (eval $ac_link) 2>conftest.er1
34922  ac_status=$?
34923  grep -v '^ *+' conftest.er1 >conftest.err
34924  rm -f conftest.er1
34925  cat conftest.err >&5
34926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927  (exit $ac_status); } &&
34928	 { ac_try='test -z "$ac_c_werror_flag"
34929			 || test ! -s conftest.err'
34930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931  (eval $ac_try) 2>&5
34932  ac_status=$?
34933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934  (exit $ac_status); }; } &&
34935	 { ac_try='test -s conftest$ac_exeext'
34936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34937  (eval $ac_try) 2>&5
34938  ac_status=$?
34939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940  (exit $ac_status); }; }; then
34941  ac_cv_func_localtime_r=yes
34942else
34943  echo "$as_me: failed program was:" >&5
34944sed 's/^/| /' conftest.$ac_ext >&5
34945
34946ac_cv_func_localtime_r=no
34947fi
34948rm -f conftest.err conftest.$ac_objext \
34949      conftest$ac_exeext conftest.$ac_ext
34950fi
34951echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
34952echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
34953if test $ac_cv_func_localtime_r = yes; then
34954
34955cat >>confdefs.h <<_ACEOF
34956#define HAVE_LOCALTIME_R 1
34957_ACEOF
34958
34959else
34960  case $LIBOBJS in
34961    "localtime_r.$ac_objext"   | \
34962  *" localtime_r.$ac_objext"   | \
34963    "localtime_r.$ac_objext "* | \
34964  *" localtime_r.$ac_objext "* ) ;;
34965  *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" ;;
34966esac
34967
34968fi
34969echo "$as_me:$LINENO: checking for lstat" >&5
34970echo $ECHO_N "checking for lstat... $ECHO_C" >&6
34971if test "${ac_cv_func_lstat+set}" = set; then
34972  echo $ECHO_N "(cached) $ECHO_C" >&6
34973else
34974  cat >conftest.$ac_ext <<_ACEOF
34975/* confdefs.h.  */
34976_ACEOF
34977cat confdefs.h >>conftest.$ac_ext
34978cat >>conftest.$ac_ext <<_ACEOF
34979/* end confdefs.h.  */
34980/* Define lstat to an innocuous variant, in case <limits.h> declares lstat.
34981   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34982#define lstat innocuous_lstat
34983
34984/* System header to define __stub macros and hopefully few prototypes,
34985    which can conflict with char lstat (); below.
34986    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34987    <limits.h> exists even on freestanding compilers.  */
34988
34989#ifdef __STDC__
34990# include <limits.h>
34991#else
34992# include <assert.h>
34993#endif
34994
34995#undef lstat
34996
34997/* Override any gcc2 internal prototype to avoid an error.  */
34998#ifdef __cplusplus
34999extern "C"
35000{
35001#endif
35002/* We use char because int might match the return type of a gcc2
35003   builtin and then its argument prototype would still apply.  */
35004char lstat ();
35005/* The GNU C library defines this for functions which it implements
35006    to always fail with ENOSYS.  Some functions are actually named
35007    something starting with __ and the normal name is an alias.  */
35008#if defined (__stub_lstat) || defined (__stub___lstat)
35009choke me
35010#else
35011char (*f) () = lstat;
35012#endif
35013#ifdef __cplusplus
35014}
35015#endif
35016
35017int
35018main ()
35019{
35020return f != lstat;
35021  ;
35022  return 0;
35023}
35024_ACEOF
35025rm -f conftest.$ac_objext conftest$ac_exeext
35026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35027  (eval $ac_link) 2>conftest.er1
35028  ac_status=$?
35029  grep -v '^ *+' conftest.er1 >conftest.err
35030  rm -f conftest.er1
35031  cat conftest.err >&5
35032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35033  (exit $ac_status); } &&
35034	 { ac_try='test -z "$ac_c_werror_flag"
35035			 || test ! -s conftest.err'
35036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35037  (eval $ac_try) 2>&5
35038  ac_status=$?
35039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35040  (exit $ac_status); }; } &&
35041	 { ac_try='test -s conftest$ac_exeext'
35042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35043  (eval $ac_try) 2>&5
35044  ac_status=$?
35045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35046  (exit $ac_status); }; }; then
35047  ac_cv_func_lstat=yes
35048else
35049  echo "$as_me: failed program was:" >&5
35050sed 's/^/| /' conftest.$ac_ext >&5
35051
35052ac_cv_func_lstat=no
35053fi
35054rm -f conftest.err conftest.$ac_objext \
35055      conftest$ac_exeext conftest.$ac_ext
35056fi
35057echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5
35058echo "${ECHO_T}$ac_cv_func_lstat" >&6
35059if test $ac_cv_func_lstat = yes; then
35060
35061cat >>confdefs.h <<_ACEOF
35062#define HAVE_LSTAT 1
35063_ACEOF
35064
35065else
35066  case $LIBOBJS in
35067    "lstat.$ac_objext"   | \
35068  *" lstat.$ac_objext"   | \
35069    "lstat.$ac_objext "* | \
35070  *" lstat.$ac_objext "* ) ;;
35071  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
35072esac
35073
35074fi
35075echo "$as_me:$LINENO: checking for memmove" >&5
35076echo $ECHO_N "checking for memmove... $ECHO_C" >&6
35077if test "${ac_cv_func_memmove+set}" = set; then
35078  echo $ECHO_N "(cached) $ECHO_C" >&6
35079else
35080  cat >conftest.$ac_ext <<_ACEOF
35081/* confdefs.h.  */
35082_ACEOF
35083cat confdefs.h >>conftest.$ac_ext
35084cat >>conftest.$ac_ext <<_ACEOF
35085/* end confdefs.h.  */
35086/* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
35087   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35088#define memmove innocuous_memmove
35089
35090/* System header to define __stub macros and hopefully few prototypes,
35091    which can conflict with char memmove (); below.
35092    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35093    <limits.h> exists even on freestanding compilers.  */
35094
35095#ifdef __STDC__
35096# include <limits.h>
35097#else
35098# include <assert.h>
35099#endif
35100
35101#undef memmove
35102
35103/* Override any gcc2 internal prototype to avoid an error.  */
35104#ifdef __cplusplus
35105extern "C"
35106{
35107#endif
35108/* We use char because int might match the return type of a gcc2
35109   builtin and then its argument prototype would still apply.  */
35110char memmove ();
35111/* The GNU C library defines this for functions which it implements
35112    to always fail with ENOSYS.  Some functions are actually named
35113    something starting with __ and the normal name is an alias.  */
35114#if defined (__stub_memmove) || defined (__stub___memmove)
35115choke me
35116#else
35117char (*f) () = memmove;
35118#endif
35119#ifdef __cplusplus
35120}
35121#endif
35122
35123int
35124main ()
35125{
35126return f != memmove;
35127  ;
35128  return 0;
35129}
35130_ACEOF
35131rm -f conftest.$ac_objext conftest$ac_exeext
35132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35133  (eval $ac_link) 2>conftest.er1
35134  ac_status=$?
35135  grep -v '^ *+' conftest.er1 >conftest.err
35136  rm -f conftest.er1
35137  cat conftest.err >&5
35138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35139  (exit $ac_status); } &&
35140	 { ac_try='test -z "$ac_c_werror_flag"
35141			 || test ! -s conftest.err'
35142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143  (eval $ac_try) 2>&5
35144  ac_status=$?
35145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146  (exit $ac_status); }; } &&
35147	 { ac_try='test -s conftest$ac_exeext'
35148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35149  (eval $ac_try) 2>&5
35150  ac_status=$?
35151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152  (exit $ac_status); }; }; then
35153  ac_cv_func_memmove=yes
35154else
35155  echo "$as_me: failed program was:" >&5
35156sed 's/^/| /' conftest.$ac_ext >&5
35157
35158ac_cv_func_memmove=no
35159fi
35160rm -f conftest.err conftest.$ac_objext \
35161      conftest$ac_exeext conftest.$ac_ext
35162fi
35163echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
35164echo "${ECHO_T}$ac_cv_func_memmove" >&6
35165if test $ac_cv_func_memmove = yes; then
35166
35167cat >>confdefs.h <<_ACEOF
35168#define HAVE_MEMMOVE 1
35169_ACEOF
35170
35171else
35172  case $LIBOBJS in
35173    "memmove.$ac_objext"   | \
35174  *" memmove.$ac_objext"   | \
35175    "memmove.$ac_objext "* | \
35176  *" memmove.$ac_objext "* ) ;;
35177  *) LIBOBJS="$LIBOBJS memmove.$ac_objext" ;;
35178esac
35179
35180fi
35181echo "$as_me:$LINENO: checking for mkstemp" >&5
35182echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
35183if test "${ac_cv_func_mkstemp+set}" = set; then
35184  echo $ECHO_N "(cached) $ECHO_C" >&6
35185else
35186  cat >conftest.$ac_ext <<_ACEOF
35187/* confdefs.h.  */
35188_ACEOF
35189cat confdefs.h >>conftest.$ac_ext
35190cat >>conftest.$ac_ext <<_ACEOF
35191/* end confdefs.h.  */
35192/* Define mkstemp to an innocuous variant, in case <limits.h> declares mkstemp.
35193   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35194#define mkstemp innocuous_mkstemp
35195
35196/* System header to define __stub macros and hopefully few prototypes,
35197    which can conflict with char mkstemp (); below.
35198    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35199    <limits.h> exists even on freestanding compilers.  */
35200
35201#ifdef __STDC__
35202# include <limits.h>
35203#else
35204# include <assert.h>
35205#endif
35206
35207#undef mkstemp
35208
35209/* Override any gcc2 internal prototype to avoid an error.  */
35210#ifdef __cplusplus
35211extern "C"
35212{
35213#endif
35214/* We use char because int might match the return type of a gcc2
35215   builtin and then its argument prototype would still apply.  */
35216char mkstemp ();
35217/* The GNU C library defines this for functions which it implements
35218    to always fail with ENOSYS.  Some functions are actually named
35219    something starting with __ and the normal name is an alias.  */
35220#if defined (__stub_mkstemp) || defined (__stub___mkstemp)
35221choke me
35222#else
35223char (*f) () = mkstemp;
35224#endif
35225#ifdef __cplusplus
35226}
35227#endif
35228
35229int
35230main ()
35231{
35232return f != mkstemp;
35233  ;
35234  return 0;
35235}
35236_ACEOF
35237rm -f conftest.$ac_objext conftest$ac_exeext
35238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35239  (eval $ac_link) 2>conftest.er1
35240  ac_status=$?
35241  grep -v '^ *+' conftest.er1 >conftest.err
35242  rm -f conftest.er1
35243  cat conftest.err >&5
35244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35245  (exit $ac_status); } &&
35246	 { ac_try='test -z "$ac_c_werror_flag"
35247			 || test ! -s conftest.err'
35248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35249  (eval $ac_try) 2>&5
35250  ac_status=$?
35251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35252  (exit $ac_status); }; } &&
35253	 { ac_try='test -s conftest$ac_exeext'
35254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35255  (eval $ac_try) 2>&5
35256  ac_status=$?
35257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258  (exit $ac_status); }; }; then
35259  ac_cv_func_mkstemp=yes
35260else
35261  echo "$as_me: failed program was:" >&5
35262sed 's/^/| /' conftest.$ac_ext >&5
35263
35264ac_cv_func_mkstemp=no
35265fi
35266rm -f conftest.err conftest.$ac_objext \
35267      conftest$ac_exeext conftest.$ac_ext
35268fi
35269echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5
35270echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
35271if test $ac_cv_func_mkstemp = yes; then
35272
35273cat >>confdefs.h <<_ACEOF
35274#define HAVE_MKSTEMP 1
35275_ACEOF
35276
35277else
35278  case $LIBOBJS in
35279    "mkstemp.$ac_objext"   | \
35280  *" mkstemp.$ac_objext"   | \
35281    "mkstemp.$ac_objext "* | \
35282  *" mkstemp.$ac_objext "* ) ;;
35283  *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;;
35284esac
35285
35286fi
35287echo "$as_me:$LINENO: checking for putenv" >&5
35288echo $ECHO_N "checking for putenv... $ECHO_C" >&6
35289if test "${ac_cv_func_putenv+set}" = set; then
35290  echo $ECHO_N "(cached) $ECHO_C" >&6
35291else
35292  cat >conftest.$ac_ext <<_ACEOF
35293/* confdefs.h.  */
35294_ACEOF
35295cat confdefs.h >>conftest.$ac_ext
35296cat >>conftest.$ac_ext <<_ACEOF
35297/* end confdefs.h.  */
35298/* Define putenv to an innocuous variant, in case <limits.h> declares putenv.
35299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35300#define putenv innocuous_putenv
35301
35302/* System header to define __stub macros and hopefully few prototypes,
35303    which can conflict with char putenv (); below.
35304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35305    <limits.h> exists even on freestanding compilers.  */
35306
35307#ifdef __STDC__
35308# include <limits.h>
35309#else
35310# include <assert.h>
35311#endif
35312
35313#undef putenv
35314
35315/* Override any gcc2 internal prototype to avoid an error.  */
35316#ifdef __cplusplus
35317extern "C"
35318{
35319#endif
35320/* We use char because int might match the return type of a gcc2
35321   builtin and then its argument prototype would still apply.  */
35322char putenv ();
35323/* The GNU C library defines this for functions which it implements
35324    to always fail with ENOSYS.  Some functions are actually named
35325    something starting with __ and the normal name is an alias.  */
35326#if defined (__stub_putenv) || defined (__stub___putenv)
35327choke me
35328#else
35329char (*f) () = putenv;
35330#endif
35331#ifdef __cplusplus
35332}
35333#endif
35334
35335int
35336main ()
35337{
35338return f != putenv;
35339  ;
35340  return 0;
35341}
35342_ACEOF
35343rm -f conftest.$ac_objext conftest$ac_exeext
35344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35345  (eval $ac_link) 2>conftest.er1
35346  ac_status=$?
35347  grep -v '^ *+' conftest.er1 >conftest.err
35348  rm -f conftest.er1
35349  cat conftest.err >&5
35350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351  (exit $ac_status); } &&
35352	 { ac_try='test -z "$ac_c_werror_flag"
35353			 || test ! -s conftest.err'
35354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355  (eval $ac_try) 2>&5
35356  ac_status=$?
35357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358  (exit $ac_status); }; } &&
35359	 { ac_try='test -s conftest$ac_exeext'
35360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361  (eval $ac_try) 2>&5
35362  ac_status=$?
35363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364  (exit $ac_status); }; }; then
35365  ac_cv_func_putenv=yes
35366else
35367  echo "$as_me: failed program was:" >&5
35368sed 's/^/| /' conftest.$ac_ext >&5
35369
35370ac_cv_func_putenv=no
35371fi
35372rm -f conftest.err conftest.$ac_objext \
35373      conftest$ac_exeext conftest.$ac_ext
35374fi
35375echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5
35376echo "${ECHO_T}$ac_cv_func_putenv" >&6
35377if test $ac_cv_func_putenv = yes; then
35378
35379cat >>confdefs.h <<_ACEOF
35380#define HAVE_PUTENV 1
35381_ACEOF
35382
35383else
35384  case $LIBOBJS in
35385    "putenv.$ac_objext"   | \
35386  *" putenv.$ac_objext"   | \
35387    "putenv.$ac_objext "* | \
35388  *" putenv.$ac_objext "* ) ;;
35389  *) LIBOBJS="$LIBOBJS putenv.$ac_objext" ;;
35390esac
35391
35392fi
35393echo "$as_me:$LINENO: checking for rcmd" >&5
35394echo $ECHO_N "checking for rcmd... $ECHO_C" >&6
35395if test "${ac_cv_func_rcmd+set}" = set; then
35396  echo $ECHO_N "(cached) $ECHO_C" >&6
35397else
35398  cat >conftest.$ac_ext <<_ACEOF
35399/* confdefs.h.  */
35400_ACEOF
35401cat confdefs.h >>conftest.$ac_ext
35402cat >>conftest.$ac_ext <<_ACEOF
35403/* end confdefs.h.  */
35404/* Define rcmd to an innocuous variant, in case <limits.h> declares rcmd.
35405   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35406#define rcmd innocuous_rcmd
35407
35408/* System header to define __stub macros and hopefully few prototypes,
35409    which can conflict with char rcmd (); below.
35410    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35411    <limits.h> exists even on freestanding compilers.  */
35412
35413#ifdef __STDC__
35414# include <limits.h>
35415#else
35416# include <assert.h>
35417#endif
35418
35419#undef rcmd
35420
35421/* Override any gcc2 internal prototype to avoid an error.  */
35422#ifdef __cplusplus
35423extern "C"
35424{
35425#endif
35426/* We use char because int might match the return type of a gcc2
35427   builtin and then its argument prototype would still apply.  */
35428char rcmd ();
35429/* The GNU C library defines this for functions which it implements
35430    to always fail with ENOSYS.  Some functions are actually named
35431    something starting with __ and the normal name is an alias.  */
35432#if defined (__stub_rcmd) || defined (__stub___rcmd)
35433choke me
35434#else
35435char (*f) () = rcmd;
35436#endif
35437#ifdef __cplusplus
35438}
35439#endif
35440
35441int
35442main ()
35443{
35444return f != rcmd;
35445  ;
35446  return 0;
35447}
35448_ACEOF
35449rm -f conftest.$ac_objext conftest$ac_exeext
35450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35451  (eval $ac_link) 2>conftest.er1
35452  ac_status=$?
35453  grep -v '^ *+' conftest.er1 >conftest.err
35454  rm -f conftest.er1
35455  cat conftest.err >&5
35456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457  (exit $ac_status); } &&
35458	 { ac_try='test -z "$ac_c_werror_flag"
35459			 || test ! -s conftest.err'
35460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35461  (eval $ac_try) 2>&5
35462  ac_status=$?
35463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464  (exit $ac_status); }; } &&
35465	 { ac_try='test -s conftest$ac_exeext'
35466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467  (eval $ac_try) 2>&5
35468  ac_status=$?
35469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35470  (exit $ac_status); }; }; then
35471  ac_cv_func_rcmd=yes
35472else
35473  echo "$as_me: failed program was:" >&5
35474sed 's/^/| /' conftest.$ac_ext >&5
35475
35476ac_cv_func_rcmd=no
35477fi
35478rm -f conftest.err conftest.$ac_objext \
35479      conftest$ac_exeext conftest.$ac_ext
35480fi
35481echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5
35482echo "${ECHO_T}$ac_cv_func_rcmd" >&6
35483if test $ac_cv_func_rcmd = yes; then
35484
35485cat >>confdefs.h <<_ACEOF
35486#define HAVE_RCMD 1
35487_ACEOF
35488
35489else
35490  case $LIBOBJS in
35491    "rcmd.$ac_objext"   | \
35492  *" rcmd.$ac_objext"   | \
35493    "rcmd.$ac_objext "* | \
35494  *" rcmd.$ac_objext "* ) ;;
35495  *) LIBOBJS="$LIBOBJS rcmd.$ac_objext" ;;
35496esac
35497
35498fi
35499echo "$as_me:$LINENO: checking for readv" >&5
35500echo $ECHO_N "checking for readv... $ECHO_C" >&6
35501if test "${ac_cv_func_readv+set}" = set; then
35502  echo $ECHO_N "(cached) $ECHO_C" >&6
35503else
35504  cat >conftest.$ac_ext <<_ACEOF
35505/* confdefs.h.  */
35506_ACEOF
35507cat confdefs.h >>conftest.$ac_ext
35508cat >>conftest.$ac_ext <<_ACEOF
35509/* end confdefs.h.  */
35510/* Define readv to an innocuous variant, in case <limits.h> declares readv.
35511   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35512#define readv innocuous_readv
35513
35514/* System header to define __stub macros and hopefully few prototypes,
35515    which can conflict with char readv (); below.
35516    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35517    <limits.h> exists even on freestanding compilers.  */
35518
35519#ifdef __STDC__
35520# include <limits.h>
35521#else
35522# include <assert.h>
35523#endif
35524
35525#undef readv
35526
35527/* Override any gcc2 internal prototype to avoid an error.  */
35528#ifdef __cplusplus
35529extern "C"
35530{
35531#endif
35532/* We use char because int might match the return type of a gcc2
35533   builtin and then its argument prototype would still apply.  */
35534char readv ();
35535/* The GNU C library defines this for functions which it implements
35536    to always fail with ENOSYS.  Some functions are actually named
35537    something starting with __ and the normal name is an alias.  */
35538#if defined (__stub_readv) || defined (__stub___readv)
35539choke me
35540#else
35541char (*f) () = readv;
35542#endif
35543#ifdef __cplusplus
35544}
35545#endif
35546
35547int
35548main ()
35549{
35550return f != readv;
35551  ;
35552  return 0;
35553}
35554_ACEOF
35555rm -f conftest.$ac_objext conftest$ac_exeext
35556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35557  (eval $ac_link) 2>conftest.er1
35558  ac_status=$?
35559  grep -v '^ *+' conftest.er1 >conftest.err
35560  rm -f conftest.er1
35561  cat conftest.err >&5
35562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563  (exit $ac_status); } &&
35564	 { ac_try='test -z "$ac_c_werror_flag"
35565			 || test ! -s conftest.err'
35566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567  (eval $ac_try) 2>&5
35568  ac_status=$?
35569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570  (exit $ac_status); }; } &&
35571	 { ac_try='test -s conftest$ac_exeext'
35572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573  (eval $ac_try) 2>&5
35574  ac_status=$?
35575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576  (exit $ac_status); }; }; then
35577  ac_cv_func_readv=yes
35578else
35579  echo "$as_me: failed program was:" >&5
35580sed 's/^/| /' conftest.$ac_ext >&5
35581
35582ac_cv_func_readv=no
35583fi
35584rm -f conftest.err conftest.$ac_objext \
35585      conftest$ac_exeext conftest.$ac_ext
35586fi
35587echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5
35588echo "${ECHO_T}$ac_cv_func_readv" >&6
35589if test $ac_cv_func_readv = yes; then
35590
35591cat >>confdefs.h <<_ACEOF
35592#define HAVE_READV 1
35593_ACEOF
35594
35595else
35596  case $LIBOBJS in
35597    "readv.$ac_objext"   | \
35598  *" readv.$ac_objext"   | \
35599    "readv.$ac_objext "* | \
35600  *" readv.$ac_objext "* ) ;;
35601  *) LIBOBJS="$LIBOBJS readv.$ac_objext" ;;
35602esac
35603
35604fi
35605echo "$as_me:$LINENO: checking for recvmsg" >&5
35606echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6
35607if test "${ac_cv_func_recvmsg+set}" = set; then
35608  echo $ECHO_N "(cached) $ECHO_C" >&6
35609else
35610  cat >conftest.$ac_ext <<_ACEOF
35611/* confdefs.h.  */
35612_ACEOF
35613cat confdefs.h >>conftest.$ac_ext
35614cat >>conftest.$ac_ext <<_ACEOF
35615/* end confdefs.h.  */
35616/* Define recvmsg to an innocuous variant, in case <limits.h> declares recvmsg.
35617   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35618#define recvmsg innocuous_recvmsg
35619
35620/* System header to define __stub macros and hopefully few prototypes,
35621    which can conflict with char recvmsg (); below.
35622    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35623    <limits.h> exists even on freestanding compilers.  */
35624
35625#ifdef __STDC__
35626# include <limits.h>
35627#else
35628# include <assert.h>
35629#endif
35630
35631#undef recvmsg
35632
35633/* Override any gcc2 internal prototype to avoid an error.  */
35634#ifdef __cplusplus
35635extern "C"
35636{
35637#endif
35638/* We use char because int might match the return type of a gcc2
35639   builtin and then its argument prototype would still apply.  */
35640char recvmsg ();
35641/* The GNU C library defines this for functions which it implements
35642    to always fail with ENOSYS.  Some functions are actually named
35643    something starting with __ and the normal name is an alias.  */
35644#if defined (__stub_recvmsg) || defined (__stub___recvmsg)
35645choke me
35646#else
35647char (*f) () = recvmsg;
35648#endif
35649#ifdef __cplusplus
35650}
35651#endif
35652
35653int
35654main ()
35655{
35656return f != recvmsg;
35657  ;
35658  return 0;
35659}
35660_ACEOF
35661rm -f conftest.$ac_objext conftest$ac_exeext
35662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35663  (eval $ac_link) 2>conftest.er1
35664  ac_status=$?
35665  grep -v '^ *+' conftest.er1 >conftest.err
35666  rm -f conftest.er1
35667  cat conftest.err >&5
35668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669  (exit $ac_status); } &&
35670	 { ac_try='test -z "$ac_c_werror_flag"
35671			 || test ! -s conftest.err'
35672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35673  (eval $ac_try) 2>&5
35674  ac_status=$?
35675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35676  (exit $ac_status); }; } &&
35677	 { ac_try='test -s conftest$ac_exeext'
35678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35679  (eval $ac_try) 2>&5
35680  ac_status=$?
35681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35682  (exit $ac_status); }; }; then
35683  ac_cv_func_recvmsg=yes
35684else
35685  echo "$as_me: failed program was:" >&5
35686sed 's/^/| /' conftest.$ac_ext >&5
35687
35688ac_cv_func_recvmsg=no
35689fi
35690rm -f conftest.err conftest.$ac_objext \
35691      conftest$ac_exeext conftest.$ac_ext
35692fi
35693echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5
35694echo "${ECHO_T}$ac_cv_func_recvmsg" >&6
35695if test $ac_cv_func_recvmsg = yes; then
35696
35697cat >>confdefs.h <<_ACEOF
35698#define HAVE_RECVMSG 1
35699_ACEOF
35700
35701else
35702  case $LIBOBJS in
35703    "recvmsg.$ac_objext"   | \
35704  *" recvmsg.$ac_objext"   | \
35705    "recvmsg.$ac_objext "* | \
35706  *" recvmsg.$ac_objext "* ) ;;
35707  *) LIBOBJS="$LIBOBJS recvmsg.$ac_objext" ;;
35708esac
35709
35710fi
35711echo "$as_me:$LINENO: checking for sendmsg" >&5
35712echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6
35713if test "${ac_cv_func_sendmsg+set}" = set; then
35714  echo $ECHO_N "(cached) $ECHO_C" >&6
35715else
35716  cat >conftest.$ac_ext <<_ACEOF
35717/* confdefs.h.  */
35718_ACEOF
35719cat confdefs.h >>conftest.$ac_ext
35720cat >>conftest.$ac_ext <<_ACEOF
35721/* end confdefs.h.  */
35722/* Define sendmsg to an innocuous variant, in case <limits.h> declares sendmsg.
35723   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35724#define sendmsg innocuous_sendmsg
35725
35726/* System header to define __stub macros and hopefully few prototypes,
35727    which can conflict with char sendmsg (); below.
35728    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35729    <limits.h> exists even on freestanding compilers.  */
35730
35731#ifdef __STDC__
35732# include <limits.h>
35733#else
35734# include <assert.h>
35735#endif
35736
35737#undef sendmsg
35738
35739/* Override any gcc2 internal prototype to avoid an error.  */
35740#ifdef __cplusplus
35741extern "C"
35742{
35743#endif
35744/* We use char because int might match the return type of a gcc2
35745   builtin and then its argument prototype would still apply.  */
35746char sendmsg ();
35747/* The GNU C library defines this for functions which it implements
35748    to always fail with ENOSYS.  Some functions are actually named
35749    something starting with __ and the normal name is an alias.  */
35750#if defined (__stub_sendmsg) || defined (__stub___sendmsg)
35751choke me
35752#else
35753char (*f) () = sendmsg;
35754#endif
35755#ifdef __cplusplus
35756}
35757#endif
35758
35759int
35760main ()
35761{
35762return f != sendmsg;
35763  ;
35764  return 0;
35765}
35766_ACEOF
35767rm -f conftest.$ac_objext conftest$ac_exeext
35768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35769  (eval $ac_link) 2>conftest.er1
35770  ac_status=$?
35771  grep -v '^ *+' conftest.er1 >conftest.err
35772  rm -f conftest.er1
35773  cat conftest.err >&5
35774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35775  (exit $ac_status); } &&
35776	 { ac_try='test -z "$ac_c_werror_flag"
35777			 || test ! -s conftest.err'
35778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35779  (eval $ac_try) 2>&5
35780  ac_status=$?
35781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35782  (exit $ac_status); }; } &&
35783	 { ac_try='test -s conftest$ac_exeext'
35784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785  (eval $ac_try) 2>&5
35786  ac_status=$?
35787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788  (exit $ac_status); }; }; then
35789  ac_cv_func_sendmsg=yes
35790else
35791  echo "$as_me: failed program was:" >&5
35792sed 's/^/| /' conftest.$ac_ext >&5
35793
35794ac_cv_func_sendmsg=no
35795fi
35796rm -f conftest.err conftest.$ac_objext \
35797      conftest$ac_exeext conftest.$ac_ext
35798fi
35799echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5
35800echo "${ECHO_T}$ac_cv_func_sendmsg" >&6
35801if test $ac_cv_func_sendmsg = yes; then
35802
35803cat >>confdefs.h <<_ACEOF
35804#define HAVE_SENDMSG 1
35805_ACEOF
35806
35807else
35808  case $LIBOBJS in
35809    "sendmsg.$ac_objext"   | \
35810  *" sendmsg.$ac_objext"   | \
35811    "sendmsg.$ac_objext "* | \
35812  *" sendmsg.$ac_objext "* ) ;;
35813  *) LIBOBJS="$LIBOBJS sendmsg.$ac_objext" ;;
35814esac
35815
35816fi
35817echo "$as_me:$LINENO: checking for setegid" >&5
35818echo $ECHO_N "checking for setegid... $ECHO_C" >&6
35819if test "${ac_cv_func_setegid+set}" = set; then
35820  echo $ECHO_N "(cached) $ECHO_C" >&6
35821else
35822  cat >conftest.$ac_ext <<_ACEOF
35823/* confdefs.h.  */
35824_ACEOF
35825cat confdefs.h >>conftest.$ac_ext
35826cat >>conftest.$ac_ext <<_ACEOF
35827/* end confdefs.h.  */
35828/* Define setegid to an innocuous variant, in case <limits.h> declares setegid.
35829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35830#define setegid innocuous_setegid
35831
35832/* System header to define __stub macros and hopefully few prototypes,
35833    which can conflict with char setegid (); below.
35834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35835    <limits.h> exists even on freestanding compilers.  */
35836
35837#ifdef __STDC__
35838# include <limits.h>
35839#else
35840# include <assert.h>
35841#endif
35842
35843#undef setegid
35844
35845/* Override any gcc2 internal prototype to avoid an error.  */
35846#ifdef __cplusplus
35847extern "C"
35848{
35849#endif
35850/* We use char because int might match the return type of a gcc2
35851   builtin and then its argument prototype would still apply.  */
35852char setegid ();
35853/* The GNU C library defines this for functions which it implements
35854    to always fail with ENOSYS.  Some functions are actually named
35855    something starting with __ and the normal name is an alias.  */
35856#if defined (__stub_setegid) || defined (__stub___setegid)
35857choke me
35858#else
35859char (*f) () = setegid;
35860#endif
35861#ifdef __cplusplus
35862}
35863#endif
35864
35865int
35866main ()
35867{
35868return f != setegid;
35869  ;
35870  return 0;
35871}
35872_ACEOF
35873rm -f conftest.$ac_objext conftest$ac_exeext
35874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35875  (eval $ac_link) 2>conftest.er1
35876  ac_status=$?
35877  grep -v '^ *+' conftest.er1 >conftest.err
35878  rm -f conftest.er1
35879  cat conftest.err >&5
35880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881  (exit $ac_status); } &&
35882	 { ac_try='test -z "$ac_c_werror_flag"
35883			 || test ! -s conftest.err'
35884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35885  (eval $ac_try) 2>&5
35886  ac_status=$?
35887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888  (exit $ac_status); }; } &&
35889	 { ac_try='test -s conftest$ac_exeext'
35890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35891  (eval $ac_try) 2>&5
35892  ac_status=$?
35893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35894  (exit $ac_status); }; }; then
35895  ac_cv_func_setegid=yes
35896else
35897  echo "$as_me: failed program was:" >&5
35898sed 's/^/| /' conftest.$ac_ext >&5
35899
35900ac_cv_func_setegid=no
35901fi
35902rm -f conftest.err conftest.$ac_objext \
35903      conftest$ac_exeext conftest.$ac_ext
35904fi
35905echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5
35906echo "${ECHO_T}$ac_cv_func_setegid" >&6
35907if test $ac_cv_func_setegid = yes; then
35908
35909cat >>confdefs.h <<_ACEOF
35910#define HAVE_SETEGID 1
35911_ACEOF
35912
35913else
35914  case $LIBOBJS in
35915    "setegid.$ac_objext"   | \
35916  *" setegid.$ac_objext"   | \
35917    "setegid.$ac_objext "* | \
35918  *" setegid.$ac_objext "* ) ;;
35919  *) LIBOBJS="$LIBOBJS setegid.$ac_objext" ;;
35920esac
35921
35922fi
35923echo "$as_me:$LINENO: checking for setenv" >&5
35924echo $ECHO_N "checking for setenv... $ECHO_C" >&6
35925if test "${ac_cv_func_setenv+set}" = set; then
35926  echo $ECHO_N "(cached) $ECHO_C" >&6
35927else
35928  cat >conftest.$ac_ext <<_ACEOF
35929/* confdefs.h.  */
35930_ACEOF
35931cat confdefs.h >>conftest.$ac_ext
35932cat >>conftest.$ac_ext <<_ACEOF
35933/* end confdefs.h.  */
35934/* Define setenv to an innocuous variant, in case <limits.h> declares setenv.
35935   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35936#define setenv innocuous_setenv
35937
35938/* System header to define __stub macros and hopefully few prototypes,
35939    which can conflict with char setenv (); below.
35940    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35941    <limits.h> exists even on freestanding compilers.  */
35942
35943#ifdef __STDC__
35944# include <limits.h>
35945#else
35946# include <assert.h>
35947#endif
35948
35949#undef setenv
35950
35951/* Override any gcc2 internal prototype to avoid an error.  */
35952#ifdef __cplusplus
35953extern "C"
35954{
35955#endif
35956/* We use char because int might match the return type of a gcc2
35957   builtin and then its argument prototype would still apply.  */
35958char setenv ();
35959/* The GNU C library defines this for functions which it implements
35960    to always fail with ENOSYS.  Some functions are actually named
35961    something starting with __ and the normal name is an alias.  */
35962#if defined (__stub_setenv) || defined (__stub___setenv)
35963choke me
35964#else
35965char (*f) () = setenv;
35966#endif
35967#ifdef __cplusplus
35968}
35969#endif
35970
35971int
35972main ()
35973{
35974return f != setenv;
35975  ;
35976  return 0;
35977}
35978_ACEOF
35979rm -f conftest.$ac_objext conftest$ac_exeext
35980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35981  (eval $ac_link) 2>conftest.er1
35982  ac_status=$?
35983  grep -v '^ *+' conftest.er1 >conftest.err
35984  rm -f conftest.er1
35985  cat conftest.err >&5
35986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35987  (exit $ac_status); } &&
35988	 { ac_try='test -z "$ac_c_werror_flag"
35989			 || test ! -s conftest.err'
35990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35991  (eval $ac_try) 2>&5
35992  ac_status=$?
35993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35994  (exit $ac_status); }; } &&
35995	 { ac_try='test -s conftest$ac_exeext'
35996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35997  (eval $ac_try) 2>&5
35998  ac_status=$?
35999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000  (exit $ac_status); }; }; then
36001  ac_cv_func_setenv=yes
36002else
36003  echo "$as_me: failed program was:" >&5
36004sed 's/^/| /' conftest.$ac_ext >&5
36005
36006ac_cv_func_setenv=no
36007fi
36008rm -f conftest.err conftest.$ac_objext \
36009      conftest$ac_exeext conftest.$ac_ext
36010fi
36011echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5
36012echo "${ECHO_T}$ac_cv_func_setenv" >&6
36013if test $ac_cv_func_setenv = yes; then
36014
36015cat >>confdefs.h <<_ACEOF
36016#define HAVE_SETENV 1
36017_ACEOF
36018
36019else
36020  case $LIBOBJS in
36021    "setenv.$ac_objext"   | \
36022  *" setenv.$ac_objext"   | \
36023    "setenv.$ac_objext "* | \
36024  *" setenv.$ac_objext "* ) ;;
36025  *) LIBOBJS="$LIBOBJS setenv.$ac_objext" ;;
36026esac
36027
36028fi
36029echo "$as_me:$LINENO: checking for seteuid" >&5
36030echo $ECHO_N "checking for seteuid... $ECHO_C" >&6
36031if test "${ac_cv_func_seteuid+set}" = set; then
36032  echo $ECHO_N "(cached) $ECHO_C" >&6
36033else
36034  cat >conftest.$ac_ext <<_ACEOF
36035/* confdefs.h.  */
36036_ACEOF
36037cat confdefs.h >>conftest.$ac_ext
36038cat >>conftest.$ac_ext <<_ACEOF
36039/* end confdefs.h.  */
36040/* Define seteuid to an innocuous variant, in case <limits.h> declares seteuid.
36041   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36042#define seteuid innocuous_seteuid
36043
36044/* System header to define __stub macros and hopefully few prototypes,
36045    which can conflict with char seteuid (); below.
36046    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36047    <limits.h> exists even on freestanding compilers.  */
36048
36049#ifdef __STDC__
36050# include <limits.h>
36051#else
36052# include <assert.h>
36053#endif
36054
36055#undef seteuid
36056
36057/* Override any gcc2 internal prototype to avoid an error.  */
36058#ifdef __cplusplus
36059extern "C"
36060{
36061#endif
36062/* We use char because int might match the return type of a gcc2
36063   builtin and then its argument prototype would still apply.  */
36064char seteuid ();
36065/* The GNU C library defines this for functions which it implements
36066    to always fail with ENOSYS.  Some functions are actually named
36067    something starting with __ and the normal name is an alias.  */
36068#if defined (__stub_seteuid) || defined (__stub___seteuid)
36069choke me
36070#else
36071char (*f) () = seteuid;
36072#endif
36073#ifdef __cplusplus
36074}
36075#endif
36076
36077int
36078main ()
36079{
36080return f != seteuid;
36081  ;
36082  return 0;
36083}
36084_ACEOF
36085rm -f conftest.$ac_objext conftest$ac_exeext
36086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36087  (eval $ac_link) 2>conftest.er1
36088  ac_status=$?
36089  grep -v '^ *+' conftest.er1 >conftest.err
36090  rm -f conftest.er1
36091  cat conftest.err >&5
36092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36093  (exit $ac_status); } &&
36094	 { ac_try='test -z "$ac_c_werror_flag"
36095			 || test ! -s conftest.err'
36096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36097  (eval $ac_try) 2>&5
36098  ac_status=$?
36099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36100  (exit $ac_status); }; } &&
36101	 { ac_try='test -s conftest$ac_exeext'
36102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36103  (eval $ac_try) 2>&5
36104  ac_status=$?
36105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36106  (exit $ac_status); }; }; then
36107  ac_cv_func_seteuid=yes
36108else
36109  echo "$as_me: failed program was:" >&5
36110sed 's/^/| /' conftest.$ac_ext >&5
36111
36112ac_cv_func_seteuid=no
36113fi
36114rm -f conftest.err conftest.$ac_objext \
36115      conftest$ac_exeext conftest.$ac_ext
36116fi
36117echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5
36118echo "${ECHO_T}$ac_cv_func_seteuid" >&6
36119if test $ac_cv_func_seteuid = yes; then
36120
36121cat >>confdefs.h <<_ACEOF
36122#define HAVE_SETEUID 1
36123_ACEOF
36124
36125else
36126  case $LIBOBJS in
36127    "seteuid.$ac_objext"   | \
36128  *" seteuid.$ac_objext"   | \
36129    "seteuid.$ac_objext "* | \
36130  *" seteuid.$ac_objext "* ) ;;
36131  *) LIBOBJS="$LIBOBJS seteuid.$ac_objext" ;;
36132esac
36133
36134fi
36135echo "$as_me:$LINENO: checking for strcasecmp" >&5
36136echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
36137if test "${ac_cv_func_strcasecmp+set}" = set; then
36138  echo $ECHO_N "(cached) $ECHO_C" >&6
36139else
36140  cat >conftest.$ac_ext <<_ACEOF
36141/* confdefs.h.  */
36142_ACEOF
36143cat confdefs.h >>conftest.$ac_ext
36144cat >>conftest.$ac_ext <<_ACEOF
36145/* end confdefs.h.  */
36146/* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
36147   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36148#define strcasecmp innocuous_strcasecmp
36149
36150/* System header to define __stub macros and hopefully few prototypes,
36151    which can conflict with char strcasecmp (); below.
36152    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36153    <limits.h> exists even on freestanding compilers.  */
36154
36155#ifdef __STDC__
36156# include <limits.h>
36157#else
36158# include <assert.h>
36159#endif
36160
36161#undef strcasecmp
36162
36163/* Override any gcc2 internal prototype to avoid an error.  */
36164#ifdef __cplusplus
36165extern "C"
36166{
36167#endif
36168/* We use char because int might match the return type of a gcc2
36169   builtin and then its argument prototype would still apply.  */
36170char strcasecmp ();
36171/* The GNU C library defines this for functions which it implements
36172    to always fail with ENOSYS.  Some functions are actually named
36173    something starting with __ and the normal name is an alias.  */
36174#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
36175choke me
36176#else
36177char (*f) () = strcasecmp;
36178#endif
36179#ifdef __cplusplus
36180}
36181#endif
36182
36183int
36184main ()
36185{
36186return f != strcasecmp;
36187  ;
36188  return 0;
36189}
36190_ACEOF
36191rm -f conftest.$ac_objext conftest$ac_exeext
36192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36193  (eval $ac_link) 2>conftest.er1
36194  ac_status=$?
36195  grep -v '^ *+' conftest.er1 >conftest.err
36196  rm -f conftest.er1
36197  cat conftest.err >&5
36198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36199  (exit $ac_status); } &&
36200	 { ac_try='test -z "$ac_c_werror_flag"
36201			 || test ! -s conftest.err'
36202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36203  (eval $ac_try) 2>&5
36204  ac_status=$?
36205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36206  (exit $ac_status); }; } &&
36207	 { ac_try='test -s conftest$ac_exeext'
36208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36209  (eval $ac_try) 2>&5
36210  ac_status=$?
36211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36212  (exit $ac_status); }; }; then
36213  ac_cv_func_strcasecmp=yes
36214else
36215  echo "$as_me: failed program was:" >&5
36216sed 's/^/| /' conftest.$ac_ext >&5
36217
36218ac_cv_func_strcasecmp=no
36219fi
36220rm -f conftest.err conftest.$ac_objext \
36221      conftest$ac_exeext conftest.$ac_ext
36222fi
36223echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
36224echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
36225if test $ac_cv_func_strcasecmp = yes; then
36226
36227cat >>confdefs.h <<_ACEOF
36228#define HAVE_STRCASECMP 1
36229_ACEOF
36230
36231else
36232  case $LIBOBJS in
36233    "strcasecmp.$ac_objext"   | \
36234  *" strcasecmp.$ac_objext"   | \
36235    "strcasecmp.$ac_objext "* | \
36236  *" strcasecmp.$ac_objext "* ) ;;
36237  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;;
36238esac
36239
36240fi
36241echo "$as_me:$LINENO: checking for strdup" >&5
36242echo $ECHO_N "checking for strdup... $ECHO_C" >&6
36243if test "${ac_cv_func_strdup+set}" = set; then
36244  echo $ECHO_N "(cached) $ECHO_C" >&6
36245else
36246  cat >conftest.$ac_ext <<_ACEOF
36247/* confdefs.h.  */
36248_ACEOF
36249cat confdefs.h >>conftest.$ac_ext
36250cat >>conftest.$ac_ext <<_ACEOF
36251/* end confdefs.h.  */
36252/* Define strdup to an innocuous variant, in case <limits.h> declares strdup.
36253   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36254#define strdup innocuous_strdup
36255
36256/* System header to define __stub macros and hopefully few prototypes,
36257    which can conflict with char strdup (); below.
36258    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36259    <limits.h> exists even on freestanding compilers.  */
36260
36261#ifdef __STDC__
36262# include <limits.h>
36263#else
36264# include <assert.h>
36265#endif
36266
36267#undef strdup
36268
36269/* Override any gcc2 internal prototype to avoid an error.  */
36270#ifdef __cplusplus
36271extern "C"
36272{
36273#endif
36274/* We use char because int might match the return type of a gcc2
36275   builtin and then its argument prototype would still apply.  */
36276char strdup ();
36277/* The GNU C library defines this for functions which it implements
36278    to always fail with ENOSYS.  Some functions are actually named
36279    something starting with __ and the normal name is an alias.  */
36280#if defined (__stub_strdup) || defined (__stub___strdup)
36281choke me
36282#else
36283char (*f) () = strdup;
36284#endif
36285#ifdef __cplusplus
36286}
36287#endif
36288
36289int
36290main ()
36291{
36292return f != strdup;
36293  ;
36294  return 0;
36295}
36296_ACEOF
36297rm -f conftest.$ac_objext conftest$ac_exeext
36298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36299  (eval $ac_link) 2>conftest.er1
36300  ac_status=$?
36301  grep -v '^ *+' conftest.er1 >conftest.err
36302  rm -f conftest.er1
36303  cat conftest.err >&5
36304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305  (exit $ac_status); } &&
36306	 { ac_try='test -z "$ac_c_werror_flag"
36307			 || test ! -s conftest.err'
36308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36309  (eval $ac_try) 2>&5
36310  ac_status=$?
36311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36312  (exit $ac_status); }; } &&
36313	 { ac_try='test -s conftest$ac_exeext'
36314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36315  (eval $ac_try) 2>&5
36316  ac_status=$?
36317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318  (exit $ac_status); }; }; then
36319  ac_cv_func_strdup=yes
36320else
36321  echo "$as_me: failed program was:" >&5
36322sed 's/^/| /' conftest.$ac_ext >&5
36323
36324ac_cv_func_strdup=no
36325fi
36326rm -f conftest.err conftest.$ac_objext \
36327      conftest$ac_exeext conftest.$ac_ext
36328fi
36329echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5
36330echo "${ECHO_T}$ac_cv_func_strdup" >&6
36331if test $ac_cv_func_strdup = yes; then
36332
36333cat >>confdefs.h <<_ACEOF
36334#define HAVE_STRDUP 1
36335_ACEOF
36336
36337else
36338  case $LIBOBJS in
36339    "strdup.$ac_objext"   | \
36340  *" strdup.$ac_objext"   | \
36341    "strdup.$ac_objext "* | \
36342  *" strdup.$ac_objext "* ) ;;
36343  *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;;
36344esac
36345
36346fi
36347echo "$as_me:$LINENO: checking for strerror" >&5
36348echo $ECHO_N "checking for strerror... $ECHO_C" >&6
36349if test "${ac_cv_func_strerror+set}" = set; then
36350  echo $ECHO_N "(cached) $ECHO_C" >&6
36351else
36352  cat >conftest.$ac_ext <<_ACEOF
36353/* confdefs.h.  */
36354_ACEOF
36355cat confdefs.h >>conftest.$ac_ext
36356cat >>conftest.$ac_ext <<_ACEOF
36357/* end confdefs.h.  */
36358/* Define strerror to an innocuous variant, in case <limits.h> declares strerror.
36359   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36360#define strerror innocuous_strerror
36361
36362/* System header to define __stub macros and hopefully few prototypes,
36363    which can conflict with char strerror (); below.
36364    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36365    <limits.h> exists even on freestanding compilers.  */
36366
36367#ifdef __STDC__
36368# include <limits.h>
36369#else
36370# include <assert.h>
36371#endif
36372
36373#undef strerror
36374
36375/* Override any gcc2 internal prototype to avoid an error.  */
36376#ifdef __cplusplus
36377extern "C"
36378{
36379#endif
36380/* We use char because int might match the return type of a gcc2
36381   builtin and then its argument prototype would still apply.  */
36382char strerror ();
36383/* The GNU C library defines this for functions which it implements
36384    to always fail with ENOSYS.  Some functions are actually named
36385    something starting with __ and the normal name is an alias.  */
36386#if defined (__stub_strerror) || defined (__stub___strerror)
36387choke me
36388#else
36389char (*f) () = strerror;
36390#endif
36391#ifdef __cplusplus
36392}
36393#endif
36394
36395int
36396main ()
36397{
36398return f != strerror;
36399  ;
36400  return 0;
36401}
36402_ACEOF
36403rm -f conftest.$ac_objext conftest$ac_exeext
36404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36405  (eval $ac_link) 2>conftest.er1
36406  ac_status=$?
36407  grep -v '^ *+' conftest.er1 >conftest.err
36408  rm -f conftest.er1
36409  cat conftest.err >&5
36410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36411  (exit $ac_status); } &&
36412	 { ac_try='test -z "$ac_c_werror_flag"
36413			 || test ! -s conftest.err'
36414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36415  (eval $ac_try) 2>&5
36416  ac_status=$?
36417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418  (exit $ac_status); }; } &&
36419	 { ac_try='test -s conftest$ac_exeext'
36420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36421  (eval $ac_try) 2>&5
36422  ac_status=$?
36423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424  (exit $ac_status); }; }; then
36425  ac_cv_func_strerror=yes
36426else
36427  echo "$as_me: failed program was:" >&5
36428sed 's/^/| /' conftest.$ac_ext >&5
36429
36430ac_cv_func_strerror=no
36431fi
36432rm -f conftest.err conftest.$ac_objext \
36433      conftest$ac_exeext conftest.$ac_ext
36434fi
36435echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5
36436echo "${ECHO_T}$ac_cv_func_strerror" >&6
36437if test $ac_cv_func_strerror = yes; then
36438
36439cat >>confdefs.h <<_ACEOF
36440#define HAVE_STRERROR 1
36441_ACEOF
36442
36443else
36444  case $LIBOBJS in
36445    "strerror.$ac_objext"   | \
36446  *" strerror.$ac_objext"   | \
36447    "strerror.$ac_objext "* | \
36448  *" strerror.$ac_objext "* ) ;;
36449  *) LIBOBJS="$LIBOBJS strerror.$ac_objext" ;;
36450esac
36451
36452fi
36453echo "$as_me:$LINENO: checking for strftime" >&5
36454echo $ECHO_N "checking for strftime... $ECHO_C" >&6
36455if test "${ac_cv_func_strftime+set}" = set; then
36456  echo $ECHO_N "(cached) $ECHO_C" >&6
36457else
36458  cat >conftest.$ac_ext <<_ACEOF
36459/* confdefs.h.  */
36460_ACEOF
36461cat confdefs.h >>conftest.$ac_ext
36462cat >>conftest.$ac_ext <<_ACEOF
36463/* end confdefs.h.  */
36464/* Define strftime to an innocuous variant, in case <limits.h> declares strftime.
36465   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36466#define strftime innocuous_strftime
36467
36468/* System header to define __stub macros and hopefully few prototypes,
36469    which can conflict with char strftime (); below.
36470    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36471    <limits.h> exists even on freestanding compilers.  */
36472
36473#ifdef __STDC__
36474# include <limits.h>
36475#else
36476# include <assert.h>
36477#endif
36478
36479#undef strftime
36480
36481/* Override any gcc2 internal prototype to avoid an error.  */
36482#ifdef __cplusplus
36483extern "C"
36484{
36485#endif
36486/* We use char because int might match the return type of a gcc2
36487   builtin and then its argument prototype would still apply.  */
36488char strftime ();
36489/* The GNU C library defines this for functions which it implements
36490    to always fail with ENOSYS.  Some functions are actually named
36491    something starting with __ and the normal name is an alias.  */
36492#if defined (__stub_strftime) || defined (__stub___strftime)
36493choke me
36494#else
36495char (*f) () = strftime;
36496#endif
36497#ifdef __cplusplus
36498}
36499#endif
36500
36501int
36502main ()
36503{
36504return f != strftime;
36505  ;
36506  return 0;
36507}
36508_ACEOF
36509rm -f conftest.$ac_objext conftest$ac_exeext
36510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36511  (eval $ac_link) 2>conftest.er1
36512  ac_status=$?
36513  grep -v '^ *+' conftest.er1 >conftest.err
36514  rm -f conftest.er1
36515  cat conftest.err >&5
36516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517  (exit $ac_status); } &&
36518	 { ac_try='test -z "$ac_c_werror_flag"
36519			 || test ! -s conftest.err'
36520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521  (eval $ac_try) 2>&5
36522  ac_status=$?
36523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524  (exit $ac_status); }; } &&
36525	 { ac_try='test -s conftest$ac_exeext'
36526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527  (eval $ac_try) 2>&5
36528  ac_status=$?
36529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530  (exit $ac_status); }; }; then
36531  ac_cv_func_strftime=yes
36532else
36533  echo "$as_me: failed program was:" >&5
36534sed 's/^/| /' conftest.$ac_ext >&5
36535
36536ac_cv_func_strftime=no
36537fi
36538rm -f conftest.err conftest.$ac_objext \
36539      conftest$ac_exeext conftest.$ac_ext
36540fi
36541echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5
36542echo "${ECHO_T}$ac_cv_func_strftime" >&6
36543if test $ac_cv_func_strftime = yes; then
36544
36545cat >>confdefs.h <<_ACEOF
36546#define HAVE_STRFTIME 1
36547_ACEOF
36548
36549else
36550  case $LIBOBJS in
36551    "strftime.$ac_objext"   | \
36552  *" strftime.$ac_objext"   | \
36553    "strftime.$ac_objext "* | \
36554  *" strftime.$ac_objext "* ) ;;
36555  *) LIBOBJS="$LIBOBJS strftime.$ac_objext" ;;
36556esac
36557
36558fi
36559echo "$as_me:$LINENO: checking for strlcat" >&5
36560echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
36561if test "${ac_cv_func_strlcat+set}" = set; then
36562  echo $ECHO_N "(cached) $ECHO_C" >&6
36563else
36564  cat >conftest.$ac_ext <<_ACEOF
36565/* confdefs.h.  */
36566_ACEOF
36567cat confdefs.h >>conftest.$ac_ext
36568cat >>conftest.$ac_ext <<_ACEOF
36569/* end confdefs.h.  */
36570/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
36571   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36572#define strlcat innocuous_strlcat
36573
36574/* System header to define __stub macros and hopefully few prototypes,
36575    which can conflict with char strlcat (); below.
36576    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36577    <limits.h> exists even on freestanding compilers.  */
36578
36579#ifdef __STDC__
36580# include <limits.h>
36581#else
36582# include <assert.h>
36583#endif
36584
36585#undef strlcat
36586
36587/* Override any gcc2 internal prototype to avoid an error.  */
36588#ifdef __cplusplus
36589extern "C"
36590{
36591#endif
36592/* We use char because int might match the return type of a gcc2
36593   builtin and then its argument prototype would still apply.  */
36594char strlcat ();
36595/* The GNU C library defines this for functions which it implements
36596    to always fail with ENOSYS.  Some functions are actually named
36597    something starting with __ and the normal name is an alias.  */
36598#if defined (__stub_strlcat) || defined (__stub___strlcat)
36599choke me
36600#else
36601char (*f) () = strlcat;
36602#endif
36603#ifdef __cplusplus
36604}
36605#endif
36606
36607int
36608main ()
36609{
36610return f != strlcat;
36611  ;
36612  return 0;
36613}
36614_ACEOF
36615rm -f conftest.$ac_objext conftest$ac_exeext
36616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36617  (eval $ac_link) 2>conftest.er1
36618  ac_status=$?
36619  grep -v '^ *+' conftest.er1 >conftest.err
36620  rm -f conftest.er1
36621  cat conftest.err >&5
36622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36623  (exit $ac_status); } &&
36624	 { ac_try='test -z "$ac_c_werror_flag"
36625			 || test ! -s conftest.err'
36626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627  (eval $ac_try) 2>&5
36628  ac_status=$?
36629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630  (exit $ac_status); }; } &&
36631	 { ac_try='test -s conftest$ac_exeext'
36632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36633  (eval $ac_try) 2>&5
36634  ac_status=$?
36635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636  (exit $ac_status); }; }; then
36637  ac_cv_func_strlcat=yes
36638else
36639  echo "$as_me: failed program was:" >&5
36640sed 's/^/| /' conftest.$ac_ext >&5
36641
36642ac_cv_func_strlcat=no
36643fi
36644rm -f conftest.err conftest.$ac_objext \
36645      conftest$ac_exeext conftest.$ac_ext
36646fi
36647echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
36648echo "${ECHO_T}$ac_cv_func_strlcat" >&6
36649if test $ac_cv_func_strlcat = yes; then
36650
36651cat >>confdefs.h <<_ACEOF
36652#define HAVE_STRLCAT 1
36653_ACEOF
36654
36655else
36656  case $LIBOBJS in
36657    "strlcat.$ac_objext"   | \
36658  *" strlcat.$ac_objext"   | \
36659    "strlcat.$ac_objext "* | \
36660  *" strlcat.$ac_objext "* ) ;;
36661  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" ;;
36662esac
36663
36664fi
36665echo "$as_me:$LINENO: checking for strlcpy" >&5
36666echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
36667if test "${ac_cv_func_strlcpy+set}" = set; then
36668  echo $ECHO_N "(cached) $ECHO_C" >&6
36669else
36670  cat >conftest.$ac_ext <<_ACEOF
36671/* confdefs.h.  */
36672_ACEOF
36673cat confdefs.h >>conftest.$ac_ext
36674cat >>conftest.$ac_ext <<_ACEOF
36675/* end confdefs.h.  */
36676/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
36677   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36678#define strlcpy innocuous_strlcpy
36679
36680/* System header to define __stub macros and hopefully few prototypes,
36681    which can conflict with char strlcpy (); below.
36682    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36683    <limits.h> exists even on freestanding compilers.  */
36684
36685#ifdef __STDC__
36686# include <limits.h>
36687#else
36688# include <assert.h>
36689#endif
36690
36691#undef strlcpy
36692
36693/* Override any gcc2 internal prototype to avoid an error.  */
36694#ifdef __cplusplus
36695extern "C"
36696{
36697#endif
36698/* We use char because int might match the return type of a gcc2
36699   builtin and then its argument prototype would still apply.  */
36700char strlcpy ();
36701/* The GNU C library defines this for functions which it implements
36702    to always fail with ENOSYS.  Some functions are actually named
36703    something starting with __ and the normal name is an alias.  */
36704#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
36705choke me
36706#else
36707char (*f) () = strlcpy;
36708#endif
36709#ifdef __cplusplus
36710}
36711#endif
36712
36713int
36714main ()
36715{
36716return f != strlcpy;
36717  ;
36718  return 0;
36719}
36720_ACEOF
36721rm -f conftest.$ac_objext conftest$ac_exeext
36722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36723  (eval $ac_link) 2>conftest.er1
36724  ac_status=$?
36725  grep -v '^ *+' conftest.er1 >conftest.err
36726  rm -f conftest.er1
36727  cat conftest.err >&5
36728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36729  (exit $ac_status); } &&
36730	 { ac_try='test -z "$ac_c_werror_flag"
36731			 || test ! -s conftest.err'
36732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36733  (eval $ac_try) 2>&5
36734  ac_status=$?
36735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36736  (exit $ac_status); }; } &&
36737	 { ac_try='test -s conftest$ac_exeext'
36738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36739  (eval $ac_try) 2>&5
36740  ac_status=$?
36741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36742  (exit $ac_status); }; }; then
36743  ac_cv_func_strlcpy=yes
36744else
36745  echo "$as_me: failed program was:" >&5
36746sed 's/^/| /' conftest.$ac_ext >&5
36747
36748ac_cv_func_strlcpy=no
36749fi
36750rm -f conftest.err conftest.$ac_objext \
36751      conftest$ac_exeext conftest.$ac_ext
36752fi
36753echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
36754echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
36755if test $ac_cv_func_strlcpy = yes; then
36756
36757cat >>confdefs.h <<_ACEOF
36758#define HAVE_STRLCPY 1
36759_ACEOF
36760
36761else
36762  case $LIBOBJS in
36763    "strlcpy.$ac_objext"   | \
36764  *" strlcpy.$ac_objext"   | \
36765    "strlcpy.$ac_objext "* | \
36766  *" strlcpy.$ac_objext "* ) ;;
36767  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" ;;
36768esac
36769
36770fi
36771echo "$as_me:$LINENO: checking for strlwr" >&5
36772echo $ECHO_N "checking for strlwr... $ECHO_C" >&6
36773if test "${ac_cv_func_strlwr+set}" = set; then
36774  echo $ECHO_N "(cached) $ECHO_C" >&6
36775else
36776  cat >conftest.$ac_ext <<_ACEOF
36777/* confdefs.h.  */
36778_ACEOF
36779cat confdefs.h >>conftest.$ac_ext
36780cat >>conftest.$ac_ext <<_ACEOF
36781/* end confdefs.h.  */
36782/* Define strlwr to an innocuous variant, in case <limits.h> declares strlwr.
36783   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36784#define strlwr innocuous_strlwr
36785
36786/* System header to define __stub macros and hopefully few prototypes,
36787    which can conflict with char strlwr (); below.
36788    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36789    <limits.h> exists even on freestanding compilers.  */
36790
36791#ifdef __STDC__
36792# include <limits.h>
36793#else
36794# include <assert.h>
36795#endif
36796
36797#undef strlwr
36798
36799/* Override any gcc2 internal prototype to avoid an error.  */
36800#ifdef __cplusplus
36801extern "C"
36802{
36803#endif
36804/* We use char because int might match the return type of a gcc2
36805   builtin and then its argument prototype would still apply.  */
36806char strlwr ();
36807/* The GNU C library defines this for functions which it implements
36808    to always fail with ENOSYS.  Some functions are actually named
36809    something starting with __ and the normal name is an alias.  */
36810#if defined (__stub_strlwr) || defined (__stub___strlwr)
36811choke me
36812#else
36813char (*f) () = strlwr;
36814#endif
36815#ifdef __cplusplus
36816}
36817#endif
36818
36819int
36820main ()
36821{
36822return f != strlwr;
36823  ;
36824  return 0;
36825}
36826_ACEOF
36827rm -f conftest.$ac_objext conftest$ac_exeext
36828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36829  (eval $ac_link) 2>conftest.er1
36830  ac_status=$?
36831  grep -v '^ *+' conftest.er1 >conftest.err
36832  rm -f conftest.er1
36833  cat conftest.err >&5
36834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835  (exit $ac_status); } &&
36836	 { ac_try='test -z "$ac_c_werror_flag"
36837			 || test ! -s conftest.err'
36838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839  (eval $ac_try) 2>&5
36840  ac_status=$?
36841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842  (exit $ac_status); }; } &&
36843	 { ac_try='test -s conftest$ac_exeext'
36844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845  (eval $ac_try) 2>&5
36846  ac_status=$?
36847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848  (exit $ac_status); }; }; then
36849  ac_cv_func_strlwr=yes
36850else
36851  echo "$as_me: failed program was:" >&5
36852sed 's/^/| /' conftest.$ac_ext >&5
36853
36854ac_cv_func_strlwr=no
36855fi
36856rm -f conftest.err conftest.$ac_objext \
36857      conftest$ac_exeext conftest.$ac_ext
36858fi
36859echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5
36860echo "${ECHO_T}$ac_cv_func_strlwr" >&6
36861if test $ac_cv_func_strlwr = yes; then
36862
36863cat >>confdefs.h <<_ACEOF
36864#define HAVE_STRLWR 1
36865_ACEOF
36866
36867else
36868  case $LIBOBJS in
36869    "strlwr.$ac_objext"   | \
36870  *" strlwr.$ac_objext"   | \
36871    "strlwr.$ac_objext "* | \
36872  *" strlwr.$ac_objext "* ) ;;
36873  *) LIBOBJS="$LIBOBJS strlwr.$ac_objext" ;;
36874esac
36875
36876fi
36877echo "$as_me:$LINENO: checking for strncasecmp" >&5
36878echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6
36879if test "${ac_cv_func_strncasecmp+set}" = set; then
36880  echo $ECHO_N "(cached) $ECHO_C" >&6
36881else
36882  cat >conftest.$ac_ext <<_ACEOF
36883/* confdefs.h.  */
36884_ACEOF
36885cat confdefs.h >>conftest.$ac_ext
36886cat >>conftest.$ac_ext <<_ACEOF
36887/* end confdefs.h.  */
36888/* Define strncasecmp to an innocuous variant, in case <limits.h> declares strncasecmp.
36889   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36890#define strncasecmp innocuous_strncasecmp
36891
36892/* System header to define __stub macros and hopefully few prototypes,
36893    which can conflict with char strncasecmp (); below.
36894    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36895    <limits.h> exists even on freestanding compilers.  */
36896
36897#ifdef __STDC__
36898# include <limits.h>
36899#else
36900# include <assert.h>
36901#endif
36902
36903#undef strncasecmp
36904
36905/* Override any gcc2 internal prototype to avoid an error.  */
36906#ifdef __cplusplus
36907extern "C"
36908{
36909#endif
36910/* We use char because int might match the return type of a gcc2
36911   builtin and then its argument prototype would still apply.  */
36912char strncasecmp ();
36913/* The GNU C library defines this for functions which it implements
36914    to always fail with ENOSYS.  Some functions are actually named
36915    something starting with __ and the normal name is an alias.  */
36916#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp)
36917choke me
36918#else
36919char (*f) () = strncasecmp;
36920#endif
36921#ifdef __cplusplus
36922}
36923#endif
36924
36925int
36926main ()
36927{
36928return f != strncasecmp;
36929  ;
36930  return 0;
36931}
36932_ACEOF
36933rm -f conftest.$ac_objext conftest$ac_exeext
36934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36935  (eval $ac_link) 2>conftest.er1
36936  ac_status=$?
36937  grep -v '^ *+' conftest.er1 >conftest.err
36938  rm -f conftest.er1
36939  cat conftest.err >&5
36940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941  (exit $ac_status); } &&
36942	 { ac_try='test -z "$ac_c_werror_flag"
36943			 || test ! -s conftest.err'
36944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36945  (eval $ac_try) 2>&5
36946  ac_status=$?
36947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36948  (exit $ac_status); }; } &&
36949	 { ac_try='test -s conftest$ac_exeext'
36950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36951  (eval $ac_try) 2>&5
36952  ac_status=$?
36953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
36954  (exit $ac_status); }; }; then
36955  ac_cv_func_strncasecmp=yes
36956else
36957  echo "$as_me: failed program was:" >&5
36958sed 's/^/| /' conftest.$ac_ext >&5
36959
36960ac_cv_func_strncasecmp=no
36961fi
36962rm -f conftest.err conftest.$ac_objext \
36963      conftest$ac_exeext conftest.$ac_ext
36964fi
36965echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5
36966echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6
36967if test $ac_cv_func_strncasecmp = yes; then
36968
36969cat >>confdefs.h <<_ACEOF
36970#define HAVE_STRNCASECMP 1
36971_ACEOF
36972
36973else
36974  case $LIBOBJS in
36975    "strncasecmp.$ac_objext"   | \
36976  *" strncasecmp.$ac_objext"   | \
36977    "strncasecmp.$ac_objext "* | \
36978  *" strncasecmp.$ac_objext "* ) ;;
36979  *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;;
36980esac
36981
36982fi
36983echo "$as_me:$LINENO: checking for strndup" >&5
36984echo $ECHO_N "checking for strndup... $ECHO_C" >&6
36985if test "${ac_cv_func_strndup+set}" = set; then
36986  echo $ECHO_N "(cached) $ECHO_C" >&6
36987else
36988  cat >conftest.$ac_ext <<_ACEOF
36989/* confdefs.h.  */
36990_ACEOF
36991cat confdefs.h >>conftest.$ac_ext
36992cat >>conftest.$ac_ext <<_ACEOF
36993/* end confdefs.h.  */
36994/* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
36995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36996#define strndup innocuous_strndup
36997
36998/* System header to define __stub macros and hopefully few prototypes,
36999    which can conflict with char strndup (); below.
37000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37001    <limits.h> exists even on freestanding compilers.  */
37002
37003#ifdef __STDC__
37004# include <limits.h>
37005#else
37006# include <assert.h>
37007#endif
37008
37009#undef strndup
37010
37011/* Override any gcc2 internal prototype to avoid an error.  */
37012#ifdef __cplusplus
37013extern "C"
37014{
37015#endif
37016/* We use char because int might match the return type of a gcc2
37017   builtin and then its argument prototype would still apply.  */
37018char strndup ();
37019/* The GNU C library defines this for functions which it implements
37020    to always fail with ENOSYS.  Some functions are actually named
37021    something starting with __ and the normal name is an alias.  */
37022#if defined (__stub_strndup) || defined (__stub___strndup)
37023choke me
37024#else
37025char (*f) () = strndup;
37026#endif
37027#ifdef __cplusplus
37028}
37029#endif
37030
37031int
37032main ()
37033{
37034return f != strndup;
37035  ;
37036  return 0;
37037}
37038_ACEOF
37039rm -f conftest.$ac_objext conftest$ac_exeext
37040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37041  (eval $ac_link) 2>conftest.er1
37042  ac_status=$?
37043  grep -v '^ *+' conftest.er1 >conftest.err
37044  rm -f conftest.er1
37045  cat conftest.err >&5
37046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047  (exit $ac_status); } &&
37048	 { ac_try='test -z "$ac_c_werror_flag"
37049			 || test ! -s conftest.err'
37050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051  (eval $ac_try) 2>&5
37052  ac_status=$?
37053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054  (exit $ac_status); }; } &&
37055	 { ac_try='test -s conftest$ac_exeext'
37056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057  (eval $ac_try) 2>&5
37058  ac_status=$?
37059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060  (exit $ac_status); }; }; then
37061  ac_cv_func_strndup=yes
37062else
37063  echo "$as_me: failed program was:" >&5
37064sed 's/^/| /' conftest.$ac_ext >&5
37065
37066ac_cv_func_strndup=no
37067fi
37068rm -f conftest.err conftest.$ac_objext \
37069      conftest$ac_exeext conftest.$ac_ext
37070fi
37071echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
37072echo "${ECHO_T}$ac_cv_func_strndup" >&6
37073if test $ac_cv_func_strndup = yes; then
37074
37075cat >>confdefs.h <<_ACEOF
37076#define HAVE_STRNDUP 1
37077_ACEOF
37078
37079else
37080  case $LIBOBJS in
37081    "strndup.$ac_objext"   | \
37082  *" strndup.$ac_objext"   | \
37083    "strndup.$ac_objext "* | \
37084  *" strndup.$ac_objext "* ) ;;
37085  *) LIBOBJS="$LIBOBJS strndup.$ac_objext" ;;
37086esac
37087
37088fi
37089echo "$as_me:$LINENO: checking for strnlen" >&5
37090echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
37091if test "${ac_cv_func_strnlen+set}" = set; then
37092  echo $ECHO_N "(cached) $ECHO_C" >&6
37093else
37094  cat >conftest.$ac_ext <<_ACEOF
37095/* confdefs.h.  */
37096_ACEOF
37097cat confdefs.h >>conftest.$ac_ext
37098cat >>conftest.$ac_ext <<_ACEOF
37099/* end confdefs.h.  */
37100/* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
37101   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37102#define strnlen innocuous_strnlen
37103
37104/* System header to define __stub macros and hopefully few prototypes,
37105    which can conflict with char strnlen (); below.
37106    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37107    <limits.h> exists even on freestanding compilers.  */
37108
37109#ifdef __STDC__
37110# include <limits.h>
37111#else
37112# include <assert.h>
37113#endif
37114
37115#undef strnlen
37116
37117/* Override any gcc2 internal prototype to avoid an error.  */
37118#ifdef __cplusplus
37119extern "C"
37120{
37121#endif
37122/* We use char because int might match the return type of a gcc2
37123   builtin and then its argument prototype would still apply.  */
37124char strnlen ();
37125/* The GNU C library defines this for functions which it implements
37126    to always fail with ENOSYS.  Some functions are actually named
37127    something starting with __ and the normal name is an alias.  */
37128#if defined (__stub_strnlen) || defined (__stub___strnlen)
37129choke me
37130#else
37131char (*f) () = strnlen;
37132#endif
37133#ifdef __cplusplus
37134}
37135#endif
37136
37137int
37138main ()
37139{
37140return f != strnlen;
37141  ;
37142  return 0;
37143}
37144_ACEOF
37145rm -f conftest.$ac_objext conftest$ac_exeext
37146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37147  (eval $ac_link) 2>conftest.er1
37148  ac_status=$?
37149  grep -v '^ *+' conftest.er1 >conftest.err
37150  rm -f conftest.er1
37151  cat conftest.err >&5
37152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37153  (exit $ac_status); } &&
37154	 { ac_try='test -z "$ac_c_werror_flag"
37155			 || test ! -s conftest.err'
37156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37157  (eval $ac_try) 2>&5
37158  ac_status=$?
37159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160  (exit $ac_status); }; } &&
37161	 { ac_try='test -s conftest$ac_exeext'
37162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37163  (eval $ac_try) 2>&5
37164  ac_status=$?
37165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37166  (exit $ac_status); }; }; then
37167  ac_cv_func_strnlen=yes
37168else
37169  echo "$as_me: failed program was:" >&5
37170sed 's/^/| /' conftest.$ac_ext >&5
37171
37172ac_cv_func_strnlen=no
37173fi
37174rm -f conftest.err conftest.$ac_objext \
37175      conftest$ac_exeext conftest.$ac_ext
37176fi
37177echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
37178echo "${ECHO_T}$ac_cv_func_strnlen" >&6
37179if test $ac_cv_func_strnlen = yes; then
37180
37181cat >>confdefs.h <<_ACEOF
37182#define HAVE_STRNLEN 1
37183_ACEOF
37184
37185else
37186  case $LIBOBJS in
37187    "strnlen.$ac_objext"   | \
37188  *" strnlen.$ac_objext"   | \
37189    "strnlen.$ac_objext "* | \
37190  *" strnlen.$ac_objext "* ) ;;
37191  *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" ;;
37192esac
37193
37194fi
37195echo "$as_me:$LINENO: checking for strptime" >&5
37196echo $ECHO_N "checking for strptime... $ECHO_C" >&6
37197if test "${ac_cv_func_strptime+set}" = set; then
37198  echo $ECHO_N "(cached) $ECHO_C" >&6
37199else
37200  cat >conftest.$ac_ext <<_ACEOF
37201/* confdefs.h.  */
37202_ACEOF
37203cat confdefs.h >>conftest.$ac_ext
37204cat >>conftest.$ac_ext <<_ACEOF
37205/* end confdefs.h.  */
37206/* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
37207   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37208#define strptime innocuous_strptime
37209
37210/* System header to define __stub macros and hopefully few prototypes,
37211    which can conflict with char strptime (); below.
37212    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37213    <limits.h> exists even on freestanding compilers.  */
37214
37215#ifdef __STDC__
37216# include <limits.h>
37217#else
37218# include <assert.h>
37219#endif
37220
37221#undef strptime
37222
37223/* Override any gcc2 internal prototype to avoid an error.  */
37224#ifdef __cplusplus
37225extern "C"
37226{
37227#endif
37228/* We use char because int might match the return type of a gcc2
37229   builtin and then its argument prototype would still apply.  */
37230char strptime ();
37231/* The GNU C library defines this for functions which it implements
37232    to always fail with ENOSYS.  Some functions are actually named
37233    something starting with __ and the normal name is an alias.  */
37234#if defined (__stub_strptime) || defined (__stub___strptime)
37235choke me
37236#else
37237char (*f) () = strptime;
37238#endif
37239#ifdef __cplusplus
37240}
37241#endif
37242
37243int
37244main ()
37245{
37246return f != strptime;
37247  ;
37248  return 0;
37249}
37250_ACEOF
37251rm -f conftest.$ac_objext conftest$ac_exeext
37252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37253  (eval $ac_link) 2>conftest.er1
37254  ac_status=$?
37255  grep -v '^ *+' conftest.er1 >conftest.err
37256  rm -f conftest.er1
37257  cat conftest.err >&5
37258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259  (exit $ac_status); } &&
37260	 { ac_try='test -z "$ac_c_werror_flag"
37261			 || test ! -s conftest.err'
37262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263  (eval $ac_try) 2>&5
37264  ac_status=$?
37265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266  (exit $ac_status); }; } &&
37267	 { ac_try='test -s conftest$ac_exeext'
37268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37269  (eval $ac_try) 2>&5
37270  ac_status=$?
37271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272  (exit $ac_status); }; }; then
37273  ac_cv_func_strptime=yes
37274else
37275  echo "$as_me: failed program was:" >&5
37276sed 's/^/| /' conftest.$ac_ext >&5
37277
37278ac_cv_func_strptime=no
37279fi
37280rm -f conftest.err conftest.$ac_objext \
37281      conftest$ac_exeext conftest.$ac_ext
37282fi
37283echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
37284echo "${ECHO_T}$ac_cv_func_strptime" >&6
37285if test $ac_cv_func_strptime = yes; then
37286
37287cat >>confdefs.h <<_ACEOF
37288#define HAVE_STRPTIME 1
37289_ACEOF
37290
37291else
37292  case $LIBOBJS in
37293    "strptime.$ac_objext"   | \
37294  *" strptime.$ac_objext"   | \
37295    "strptime.$ac_objext "* | \
37296  *" strptime.$ac_objext "* ) ;;
37297  *) LIBOBJS="$LIBOBJS strptime.$ac_objext" ;;
37298esac
37299
37300fi
37301echo "$as_me:$LINENO: checking for strsep" >&5
37302echo $ECHO_N "checking for strsep... $ECHO_C" >&6
37303if test "${ac_cv_func_strsep+set}" = set; then
37304  echo $ECHO_N "(cached) $ECHO_C" >&6
37305else
37306  cat >conftest.$ac_ext <<_ACEOF
37307/* confdefs.h.  */
37308_ACEOF
37309cat confdefs.h >>conftest.$ac_ext
37310cat >>conftest.$ac_ext <<_ACEOF
37311/* end confdefs.h.  */
37312/* Define strsep to an innocuous variant, in case <limits.h> declares strsep.
37313   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37314#define strsep innocuous_strsep
37315
37316/* System header to define __stub macros and hopefully few prototypes,
37317    which can conflict with char strsep (); below.
37318    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37319    <limits.h> exists even on freestanding compilers.  */
37320
37321#ifdef __STDC__
37322# include <limits.h>
37323#else
37324# include <assert.h>
37325#endif
37326
37327#undef strsep
37328
37329/* Override any gcc2 internal prototype to avoid an error.  */
37330#ifdef __cplusplus
37331extern "C"
37332{
37333#endif
37334/* We use char because int might match the return type of a gcc2
37335   builtin and then its argument prototype would still apply.  */
37336char strsep ();
37337/* The GNU C library defines this for functions which it implements
37338    to always fail with ENOSYS.  Some functions are actually named
37339    something starting with __ and the normal name is an alias.  */
37340#if defined (__stub_strsep) || defined (__stub___strsep)
37341choke me
37342#else
37343char (*f) () = strsep;
37344#endif
37345#ifdef __cplusplus
37346}
37347#endif
37348
37349int
37350main ()
37351{
37352return f != strsep;
37353  ;
37354  return 0;
37355}
37356_ACEOF
37357rm -f conftest.$ac_objext conftest$ac_exeext
37358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37359  (eval $ac_link) 2>conftest.er1
37360  ac_status=$?
37361  grep -v '^ *+' conftest.er1 >conftest.err
37362  rm -f conftest.er1
37363  cat conftest.err >&5
37364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365  (exit $ac_status); } &&
37366	 { ac_try='test -z "$ac_c_werror_flag"
37367			 || test ! -s conftest.err'
37368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37369  (eval $ac_try) 2>&5
37370  ac_status=$?
37371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37372  (exit $ac_status); }; } &&
37373	 { ac_try='test -s conftest$ac_exeext'
37374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37375  (eval $ac_try) 2>&5
37376  ac_status=$?
37377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378  (exit $ac_status); }; }; then
37379  ac_cv_func_strsep=yes
37380else
37381  echo "$as_me: failed program was:" >&5
37382sed 's/^/| /' conftest.$ac_ext >&5
37383
37384ac_cv_func_strsep=no
37385fi
37386rm -f conftest.err conftest.$ac_objext \
37387      conftest$ac_exeext conftest.$ac_ext
37388fi
37389echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5
37390echo "${ECHO_T}$ac_cv_func_strsep" >&6
37391if test $ac_cv_func_strsep = yes; then
37392
37393cat >>confdefs.h <<_ACEOF
37394#define HAVE_STRSEP 1
37395_ACEOF
37396
37397else
37398  case $LIBOBJS in
37399    "strsep.$ac_objext"   | \
37400  *" strsep.$ac_objext"   | \
37401    "strsep.$ac_objext "* | \
37402  *" strsep.$ac_objext "* ) ;;
37403  *) LIBOBJS="$LIBOBJS strsep.$ac_objext" ;;
37404esac
37405
37406fi
37407echo "$as_me:$LINENO: checking for strsep_copy" >&5
37408echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6
37409if test "${ac_cv_func_strsep_copy+set}" = set; then
37410  echo $ECHO_N "(cached) $ECHO_C" >&6
37411else
37412  cat >conftest.$ac_ext <<_ACEOF
37413/* confdefs.h.  */
37414_ACEOF
37415cat confdefs.h >>conftest.$ac_ext
37416cat >>conftest.$ac_ext <<_ACEOF
37417/* end confdefs.h.  */
37418/* Define strsep_copy to an innocuous variant, in case <limits.h> declares strsep_copy.
37419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37420#define strsep_copy innocuous_strsep_copy
37421
37422/* System header to define __stub macros and hopefully few prototypes,
37423    which can conflict with char strsep_copy (); below.
37424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37425    <limits.h> exists even on freestanding compilers.  */
37426
37427#ifdef __STDC__
37428# include <limits.h>
37429#else
37430# include <assert.h>
37431#endif
37432
37433#undef strsep_copy
37434
37435/* Override any gcc2 internal prototype to avoid an error.  */
37436#ifdef __cplusplus
37437extern "C"
37438{
37439#endif
37440/* We use char because int might match the return type of a gcc2
37441   builtin and then its argument prototype would still apply.  */
37442char strsep_copy ();
37443/* The GNU C library defines this for functions which it implements
37444    to always fail with ENOSYS.  Some functions are actually named
37445    something starting with __ and the normal name is an alias.  */
37446#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy)
37447choke me
37448#else
37449char (*f) () = strsep_copy;
37450#endif
37451#ifdef __cplusplus
37452}
37453#endif
37454
37455int
37456main ()
37457{
37458return f != strsep_copy;
37459  ;
37460  return 0;
37461}
37462_ACEOF
37463rm -f conftest.$ac_objext conftest$ac_exeext
37464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37465  (eval $ac_link) 2>conftest.er1
37466  ac_status=$?
37467  grep -v '^ *+' conftest.er1 >conftest.err
37468  rm -f conftest.er1
37469  cat conftest.err >&5
37470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471  (exit $ac_status); } &&
37472	 { ac_try='test -z "$ac_c_werror_flag"
37473			 || test ! -s conftest.err'
37474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475  (eval $ac_try) 2>&5
37476  ac_status=$?
37477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478  (exit $ac_status); }; } &&
37479	 { ac_try='test -s conftest$ac_exeext'
37480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481  (eval $ac_try) 2>&5
37482  ac_status=$?
37483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484  (exit $ac_status); }; }; then
37485  ac_cv_func_strsep_copy=yes
37486else
37487  echo "$as_me: failed program was:" >&5
37488sed 's/^/| /' conftest.$ac_ext >&5
37489
37490ac_cv_func_strsep_copy=no
37491fi
37492rm -f conftest.err conftest.$ac_objext \
37493      conftest$ac_exeext conftest.$ac_ext
37494fi
37495echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5
37496echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6
37497if test $ac_cv_func_strsep_copy = yes; then
37498
37499cat >>confdefs.h <<_ACEOF
37500#define HAVE_STRSEP_COPY 1
37501_ACEOF
37502
37503else
37504  case $LIBOBJS in
37505    "strsep_copy.$ac_objext"   | \
37506  *" strsep_copy.$ac_objext"   | \
37507    "strsep_copy.$ac_objext "* | \
37508  *" strsep_copy.$ac_objext "* ) ;;
37509  *) LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" ;;
37510esac
37511
37512fi
37513echo "$as_me:$LINENO: checking for strtok_r" >&5
37514echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6
37515if test "${ac_cv_func_strtok_r+set}" = set; then
37516  echo $ECHO_N "(cached) $ECHO_C" >&6
37517else
37518  cat >conftest.$ac_ext <<_ACEOF
37519/* confdefs.h.  */
37520_ACEOF
37521cat confdefs.h >>conftest.$ac_ext
37522cat >>conftest.$ac_ext <<_ACEOF
37523/* end confdefs.h.  */
37524/* Define strtok_r to an innocuous variant, in case <limits.h> declares strtok_r.
37525   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37526#define strtok_r innocuous_strtok_r
37527
37528/* System header to define __stub macros and hopefully few prototypes,
37529    which can conflict with char strtok_r (); below.
37530    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37531    <limits.h> exists even on freestanding compilers.  */
37532
37533#ifdef __STDC__
37534# include <limits.h>
37535#else
37536# include <assert.h>
37537#endif
37538
37539#undef strtok_r
37540
37541/* Override any gcc2 internal prototype to avoid an error.  */
37542#ifdef __cplusplus
37543extern "C"
37544{
37545#endif
37546/* We use char because int might match the return type of a gcc2
37547   builtin and then its argument prototype would still apply.  */
37548char strtok_r ();
37549/* The GNU C library defines this for functions which it implements
37550    to always fail with ENOSYS.  Some functions are actually named
37551    something starting with __ and the normal name is an alias.  */
37552#if defined (__stub_strtok_r) || defined (__stub___strtok_r)
37553choke me
37554#else
37555char (*f) () = strtok_r;
37556#endif
37557#ifdef __cplusplus
37558}
37559#endif
37560
37561int
37562main ()
37563{
37564return f != strtok_r;
37565  ;
37566  return 0;
37567}
37568_ACEOF
37569rm -f conftest.$ac_objext conftest$ac_exeext
37570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37571  (eval $ac_link) 2>conftest.er1
37572  ac_status=$?
37573  grep -v '^ *+' conftest.er1 >conftest.err
37574  rm -f conftest.er1
37575  cat conftest.err >&5
37576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37577  (exit $ac_status); } &&
37578	 { ac_try='test -z "$ac_c_werror_flag"
37579			 || test ! -s conftest.err'
37580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37581  (eval $ac_try) 2>&5
37582  ac_status=$?
37583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584  (exit $ac_status); }; } &&
37585	 { ac_try='test -s conftest$ac_exeext'
37586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587  (eval $ac_try) 2>&5
37588  ac_status=$?
37589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590  (exit $ac_status); }; }; then
37591  ac_cv_func_strtok_r=yes
37592else
37593  echo "$as_me: failed program was:" >&5
37594sed 's/^/| /' conftest.$ac_ext >&5
37595
37596ac_cv_func_strtok_r=no
37597fi
37598rm -f conftest.err conftest.$ac_objext \
37599      conftest$ac_exeext conftest.$ac_ext
37600fi
37601echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5
37602echo "${ECHO_T}$ac_cv_func_strtok_r" >&6
37603if test $ac_cv_func_strtok_r = yes; then
37604
37605cat >>confdefs.h <<_ACEOF
37606#define HAVE_STRTOK_R 1
37607_ACEOF
37608
37609else
37610  case $LIBOBJS in
37611    "strtok_r.$ac_objext"   | \
37612  *" strtok_r.$ac_objext"   | \
37613    "strtok_r.$ac_objext "* | \
37614  *" strtok_r.$ac_objext "* ) ;;
37615  *) LIBOBJS="$LIBOBJS strtok_r.$ac_objext" ;;
37616esac
37617
37618fi
37619echo "$as_me:$LINENO: checking for strupr" >&5
37620echo $ECHO_N "checking for strupr... $ECHO_C" >&6
37621if test "${ac_cv_func_strupr+set}" = set; then
37622  echo $ECHO_N "(cached) $ECHO_C" >&6
37623else
37624  cat >conftest.$ac_ext <<_ACEOF
37625/* confdefs.h.  */
37626_ACEOF
37627cat confdefs.h >>conftest.$ac_ext
37628cat >>conftest.$ac_ext <<_ACEOF
37629/* end confdefs.h.  */
37630/* Define strupr to an innocuous variant, in case <limits.h> declares strupr.
37631   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37632#define strupr innocuous_strupr
37633
37634/* System header to define __stub macros and hopefully few prototypes,
37635    which can conflict with char strupr (); below.
37636    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37637    <limits.h> exists even on freestanding compilers.  */
37638
37639#ifdef __STDC__
37640# include <limits.h>
37641#else
37642# include <assert.h>
37643#endif
37644
37645#undef strupr
37646
37647/* Override any gcc2 internal prototype to avoid an error.  */
37648#ifdef __cplusplus
37649extern "C"
37650{
37651#endif
37652/* We use char because int might match the return type of a gcc2
37653   builtin and then its argument prototype would still apply.  */
37654char strupr ();
37655/* The GNU C library defines this for functions which it implements
37656    to always fail with ENOSYS.  Some functions are actually named
37657    something starting with __ and the normal name is an alias.  */
37658#if defined (__stub_strupr) || defined (__stub___strupr)
37659choke me
37660#else
37661char (*f) () = strupr;
37662#endif
37663#ifdef __cplusplus
37664}
37665#endif
37666
37667int
37668main ()
37669{
37670return f != strupr;
37671  ;
37672  return 0;
37673}
37674_ACEOF
37675rm -f conftest.$ac_objext conftest$ac_exeext
37676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37677  (eval $ac_link) 2>conftest.er1
37678  ac_status=$?
37679  grep -v '^ *+' conftest.er1 >conftest.err
37680  rm -f conftest.er1
37681  cat conftest.err >&5
37682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37683  (exit $ac_status); } &&
37684	 { ac_try='test -z "$ac_c_werror_flag"
37685			 || test ! -s conftest.err'
37686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37687  (eval $ac_try) 2>&5
37688  ac_status=$?
37689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690  (exit $ac_status); }; } &&
37691	 { ac_try='test -s conftest$ac_exeext'
37692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37693  (eval $ac_try) 2>&5
37694  ac_status=$?
37695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696  (exit $ac_status); }; }; then
37697  ac_cv_func_strupr=yes
37698else
37699  echo "$as_me: failed program was:" >&5
37700sed 's/^/| /' conftest.$ac_ext >&5
37701
37702ac_cv_func_strupr=no
37703fi
37704rm -f conftest.err conftest.$ac_objext \
37705      conftest$ac_exeext conftest.$ac_ext
37706fi
37707echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5
37708echo "${ECHO_T}$ac_cv_func_strupr" >&6
37709if test $ac_cv_func_strupr = yes; then
37710
37711cat >>confdefs.h <<_ACEOF
37712#define HAVE_STRUPR 1
37713_ACEOF
37714
37715else
37716  case $LIBOBJS in
37717    "strupr.$ac_objext"   | \
37718  *" strupr.$ac_objext"   | \
37719    "strupr.$ac_objext "* | \
37720  *" strupr.$ac_objext "* ) ;;
37721  *) LIBOBJS="$LIBOBJS strupr.$ac_objext" ;;
37722esac
37723
37724fi
37725echo "$as_me:$LINENO: checking for swab" >&5
37726echo $ECHO_N "checking for swab... $ECHO_C" >&6
37727if test "${ac_cv_func_swab+set}" = set; then
37728  echo $ECHO_N "(cached) $ECHO_C" >&6
37729else
37730  cat >conftest.$ac_ext <<_ACEOF
37731/* confdefs.h.  */
37732_ACEOF
37733cat confdefs.h >>conftest.$ac_ext
37734cat >>conftest.$ac_ext <<_ACEOF
37735/* end confdefs.h.  */
37736/* Define swab to an innocuous variant, in case <limits.h> declares swab.
37737   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37738#define swab innocuous_swab
37739
37740/* System header to define __stub macros and hopefully few prototypes,
37741    which can conflict with char swab (); below.
37742    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37743    <limits.h> exists even on freestanding compilers.  */
37744
37745#ifdef __STDC__
37746# include <limits.h>
37747#else
37748# include <assert.h>
37749#endif
37750
37751#undef swab
37752
37753/* Override any gcc2 internal prototype to avoid an error.  */
37754#ifdef __cplusplus
37755extern "C"
37756{
37757#endif
37758/* We use char because int might match the return type of a gcc2
37759   builtin and then its argument prototype would still apply.  */
37760char swab ();
37761/* The GNU C library defines this for functions which it implements
37762    to always fail with ENOSYS.  Some functions are actually named
37763    something starting with __ and the normal name is an alias.  */
37764#if defined (__stub_swab) || defined (__stub___swab)
37765choke me
37766#else
37767char (*f) () = swab;
37768#endif
37769#ifdef __cplusplus
37770}
37771#endif
37772
37773int
37774main ()
37775{
37776return f != swab;
37777  ;
37778  return 0;
37779}
37780_ACEOF
37781rm -f conftest.$ac_objext conftest$ac_exeext
37782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37783  (eval $ac_link) 2>conftest.er1
37784  ac_status=$?
37785  grep -v '^ *+' conftest.er1 >conftest.err
37786  rm -f conftest.er1
37787  cat conftest.err >&5
37788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789  (exit $ac_status); } &&
37790	 { ac_try='test -z "$ac_c_werror_flag"
37791			 || test ! -s conftest.err'
37792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793  (eval $ac_try) 2>&5
37794  ac_status=$?
37795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796  (exit $ac_status); }; } &&
37797	 { ac_try='test -s conftest$ac_exeext'
37798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799  (eval $ac_try) 2>&5
37800  ac_status=$?
37801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802  (exit $ac_status); }; }; then
37803  ac_cv_func_swab=yes
37804else
37805  echo "$as_me: failed program was:" >&5
37806sed 's/^/| /' conftest.$ac_ext >&5
37807
37808ac_cv_func_swab=no
37809fi
37810rm -f conftest.err conftest.$ac_objext \
37811      conftest$ac_exeext conftest.$ac_ext
37812fi
37813echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5
37814echo "${ECHO_T}$ac_cv_func_swab" >&6
37815if test $ac_cv_func_swab = yes; then
37816
37817cat >>confdefs.h <<_ACEOF
37818#define HAVE_SWAB 1
37819_ACEOF
37820
37821else
37822  case $LIBOBJS in
37823    "swab.$ac_objext"   | \
37824  *" swab.$ac_objext"   | \
37825    "swab.$ac_objext "* | \
37826  *" swab.$ac_objext "* ) ;;
37827  *) LIBOBJS="$LIBOBJS swab.$ac_objext" ;;
37828esac
37829
37830fi
37831echo "$as_me:$LINENO: checking for unsetenv" >&5
37832echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6
37833if test "${ac_cv_func_unsetenv+set}" = set; then
37834  echo $ECHO_N "(cached) $ECHO_C" >&6
37835else
37836  cat >conftest.$ac_ext <<_ACEOF
37837/* confdefs.h.  */
37838_ACEOF
37839cat confdefs.h >>conftest.$ac_ext
37840cat >>conftest.$ac_ext <<_ACEOF
37841/* end confdefs.h.  */
37842/* Define unsetenv to an innocuous variant, in case <limits.h> declares unsetenv.
37843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37844#define unsetenv innocuous_unsetenv
37845
37846/* System header to define __stub macros and hopefully few prototypes,
37847    which can conflict with char unsetenv (); below.
37848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37849    <limits.h> exists even on freestanding compilers.  */
37850
37851#ifdef __STDC__
37852# include <limits.h>
37853#else
37854# include <assert.h>
37855#endif
37856
37857#undef unsetenv
37858
37859/* Override any gcc2 internal prototype to avoid an error.  */
37860#ifdef __cplusplus
37861extern "C"
37862{
37863#endif
37864/* We use char because int might match the return type of a gcc2
37865   builtin and then its argument prototype would still apply.  */
37866char unsetenv ();
37867/* The GNU C library defines this for functions which it implements
37868    to always fail with ENOSYS.  Some functions are actually named
37869    something starting with __ and the normal name is an alias.  */
37870#if defined (__stub_unsetenv) || defined (__stub___unsetenv)
37871choke me
37872#else
37873char (*f) () = unsetenv;
37874#endif
37875#ifdef __cplusplus
37876}
37877#endif
37878
37879int
37880main ()
37881{
37882return f != unsetenv;
37883  ;
37884  return 0;
37885}
37886_ACEOF
37887rm -f conftest.$ac_objext conftest$ac_exeext
37888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37889  (eval $ac_link) 2>conftest.er1
37890  ac_status=$?
37891  grep -v '^ *+' conftest.er1 >conftest.err
37892  rm -f conftest.er1
37893  cat conftest.err >&5
37894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895  (exit $ac_status); } &&
37896	 { ac_try='test -z "$ac_c_werror_flag"
37897			 || test ! -s conftest.err'
37898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37899  (eval $ac_try) 2>&5
37900  ac_status=$?
37901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902  (exit $ac_status); }; } &&
37903	 { ac_try='test -s conftest$ac_exeext'
37904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37905  (eval $ac_try) 2>&5
37906  ac_status=$?
37907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37908  (exit $ac_status); }; }; then
37909  ac_cv_func_unsetenv=yes
37910else
37911  echo "$as_me: failed program was:" >&5
37912sed 's/^/| /' conftest.$ac_ext >&5
37913
37914ac_cv_func_unsetenv=no
37915fi
37916rm -f conftest.err conftest.$ac_objext \
37917      conftest$ac_exeext conftest.$ac_ext
37918fi
37919echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5
37920echo "${ECHO_T}$ac_cv_func_unsetenv" >&6
37921if test $ac_cv_func_unsetenv = yes; then
37922
37923cat >>confdefs.h <<_ACEOF
37924#define HAVE_UNSETENV 1
37925_ACEOF
37926
37927else
37928  case $LIBOBJS in
37929    "unsetenv.$ac_objext"   | \
37930  *" unsetenv.$ac_objext"   | \
37931    "unsetenv.$ac_objext "* | \
37932  *" unsetenv.$ac_objext "* ) ;;
37933  *) LIBOBJS="$LIBOBJS unsetenv.$ac_objext" ;;
37934esac
37935
37936fi
37937echo "$as_me:$LINENO: checking for verr" >&5
37938echo $ECHO_N "checking for verr... $ECHO_C" >&6
37939if test "${ac_cv_func_verr+set}" = set; then
37940  echo $ECHO_N "(cached) $ECHO_C" >&6
37941else
37942  cat >conftest.$ac_ext <<_ACEOF
37943/* confdefs.h.  */
37944_ACEOF
37945cat confdefs.h >>conftest.$ac_ext
37946cat >>conftest.$ac_ext <<_ACEOF
37947/* end confdefs.h.  */
37948/* Define verr to an innocuous variant, in case <limits.h> declares verr.
37949   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37950#define verr innocuous_verr
37951
37952/* System header to define __stub macros and hopefully few prototypes,
37953    which can conflict with char verr (); below.
37954    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37955    <limits.h> exists even on freestanding compilers.  */
37956
37957#ifdef __STDC__
37958# include <limits.h>
37959#else
37960# include <assert.h>
37961#endif
37962
37963#undef verr
37964
37965/* Override any gcc2 internal prototype to avoid an error.  */
37966#ifdef __cplusplus
37967extern "C"
37968{
37969#endif
37970/* We use char because int might match the return type of a gcc2
37971   builtin and then its argument prototype would still apply.  */
37972char verr ();
37973/* The GNU C library defines this for functions which it implements
37974    to always fail with ENOSYS.  Some functions are actually named
37975    something starting with __ and the normal name is an alias.  */
37976#if defined (__stub_verr) || defined (__stub___verr)
37977choke me
37978#else
37979char (*f) () = verr;
37980#endif
37981#ifdef __cplusplus
37982}
37983#endif
37984
37985int
37986main ()
37987{
37988return f != verr;
37989  ;
37990  return 0;
37991}
37992_ACEOF
37993rm -f conftest.$ac_objext conftest$ac_exeext
37994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37995  (eval $ac_link) 2>conftest.er1
37996  ac_status=$?
37997  grep -v '^ *+' conftest.er1 >conftest.err
37998  rm -f conftest.er1
37999  cat conftest.err >&5
38000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001  (exit $ac_status); } &&
38002	 { ac_try='test -z "$ac_c_werror_flag"
38003			 || test ! -s conftest.err'
38004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005  (eval $ac_try) 2>&5
38006  ac_status=$?
38007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008  (exit $ac_status); }; } &&
38009	 { ac_try='test -s conftest$ac_exeext'
38010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38011  (eval $ac_try) 2>&5
38012  ac_status=$?
38013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38014  (exit $ac_status); }; }; then
38015  ac_cv_func_verr=yes
38016else
38017  echo "$as_me: failed program was:" >&5
38018sed 's/^/| /' conftest.$ac_ext >&5
38019
38020ac_cv_func_verr=no
38021fi
38022rm -f conftest.err conftest.$ac_objext \
38023      conftest$ac_exeext conftest.$ac_ext
38024fi
38025echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5
38026echo "${ECHO_T}$ac_cv_func_verr" >&6
38027if test $ac_cv_func_verr = yes; then
38028
38029cat >>confdefs.h <<_ACEOF
38030#define HAVE_VERR 1
38031_ACEOF
38032
38033else
38034  case $LIBOBJS in
38035    "verr.$ac_objext"   | \
38036  *" verr.$ac_objext"   | \
38037    "verr.$ac_objext "* | \
38038  *" verr.$ac_objext "* ) ;;
38039  *) LIBOBJS="$LIBOBJS verr.$ac_objext" ;;
38040esac
38041
38042fi
38043echo "$as_me:$LINENO: checking for verrx" >&5
38044echo $ECHO_N "checking for verrx... $ECHO_C" >&6
38045if test "${ac_cv_func_verrx+set}" = set; then
38046  echo $ECHO_N "(cached) $ECHO_C" >&6
38047else
38048  cat >conftest.$ac_ext <<_ACEOF
38049/* confdefs.h.  */
38050_ACEOF
38051cat confdefs.h >>conftest.$ac_ext
38052cat >>conftest.$ac_ext <<_ACEOF
38053/* end confdefs.h.  */
38054/* Define verrx to an innocuous variant, in case <limits.h> declares verrx.
38055   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38056#define verrx innocuous_verrx
38057
38058/* System header to define __stub macros and hopefully few prototypes,
38059    which can conflict with char verrx (); below.
38060    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38061    <limits.h> exists even on freestanding compilers.  */
38062
38063#ifdef __STDC__
38064# include <limits.h>
38065#else
38066# include <assert.h>
38067#endif
38068
38069#undef verrx
38070
38071/* Override any gcc2 internal prototype to avoid an error.  */
38072#ifdef __cplusplus
38073extern "C"
38074{
38075#endif
38076/* We use char because int might match the return type of a gcc2
38077   builtin and then its argument prototype would still apply.  */
38078char verrx ();
38079/* The GNU C library defines this for functions which it implements
38080    to always fail with ENOSYS.  Some functions are actually named
38081    something starting with __ and the normal name is an alias.  */
38082#if defined (__stub_verrx) || defined (__stub___verrx)
38083choke me
38084#else
38085char (*f) () = verrx;
38086#endif
38087#ifdef __cplusplus
38088}
38089#endif
38090
38091int
38092main ()
38093{
38094return f != verrx;
38095  ;
38096  return 0;
38097}
38098_ACEOF
38099rm -f conftest.$ac_objext conftest$ac_exeext
38100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38101  (eval $ac_link) 2>conftest.er1
38102  ac_status=$?
38103  grep -v '^ *+' conftest.er1 >conftest.err
38104  rm -f conftest.er1
38105  cat conftest.err >&5
38106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107  (exit $ac_status); } &&
38108	 { ac_try='test -z "$ac_c_werror_flag"
38109			 || test ! -s conftest.err'
38110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38111  (eval $ac_try) 2>&5
38112  ac_status=$?
38113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114  (exit $ac_status); }; } &&
38115	 { ac_try='test -s conftest$ac_exeext'
38116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38117  (eval $ac_try) 2>&5
38118  ac_status=$?
38119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120  (exit $ac_status); }; }; then
38121  ac_cv_func_verrx=yes
38122else
38123  echo "$as_me: failed program was:" >&5
38124sed 's/^/| /' conftest.$ac_ext >&5
38125
38126ac_cv_func_verrx=no
38127fi
38128rm -f conftest.err conftest.$ac_objext \
38129      conftest$ac_exeext conftest.$ac_ext
38130fi
38131echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5
38132echo "${ECHO_T}$ac_cv_func_verrx" >&6
38133if test $ac_cv_func_verrx = yes; then
38134
38135cat >>confdefs.h <<_ACEOF
38136#define HAVE_VERRX 1
38137_ACEOF
38138
38139else
38140  case $LIBOBJS in
38141    "verrx.$ac_objext"   | \
38142  *" verrx.$ac_objext"   | \
38143    "verrx.$ac_objext "* | \
38144  *" verrx.$ac_objext "* ) ;;
38145  *) LIBOBJS="$LIBOBJS verrx.$ac_objext" ;;
38146esac
38147
38148fi
38149echo "$as_me:$LINENO: checking for vsyslog" >&5
38150echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6
38151if test "${ac_cv_func_vsyslog+set}" = set; then
38152  echo $ECHO_N "(cached) $ECHO_C" >&6
38153else
38154  cat >conftest.$ac_ext <<_ACEOF
38155/* confdefs.h.  */
38156_ACEOF
38157cat confdefs.h >>conftest.$ac_ext
38158cat >>conftest.$ac_ext <<_ACEOF
38159/* end confdefs.h.  */
38160/* Define vsyslog to an innocuous variant, in case <limits.h> declares vsyslog.
38161   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38162#define vsyslog innocuous_vsyslog
38163
38164/* System header to define __stub macros and hopefully few prototypes,
38165    which can conflict with char vsyslog (); below.
38166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38167    <limits.h> exists even on freestanding compilers.  */
38168
38169#ifdef __STDC__
38170# include <limits.h>
38171#else
38172# include <assert.h>
38173#endif
38174
38175#undef vsyslog
38176
38177/* Override any gcc2 internal prototype to avoid an error.  */
38178#ifdef __cplusplus
38179extern "C"
38180{
38181#endif
38182/* We use char because int might match the return type of a gcc2
38183   builtin and then its argument prototype would still apply.  */
38184char vsyslog ();
38185/* The GNU C library defines this for functions which it implements
38186    to always fail with ENOSYS.  Some functions are actually named
38187    something starting with __ and the normal name is an alias.  */
38188#if defined (__stub_vsyslog) || defined (__stub___vsyslog)
38189choke me
38190#else
38191char (*f) () = vsyslog;
38192#endif
38193#ifdef __cplusplus
38194}
38195#endif
38196
38197int
38198main ()
38199{
38200return f != vsyslog;
38201  ;
38202  return 0;
38203}
38204_ACEOF
38205rm -f conftest.$ac_objext conftest$ac_exeext
38206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38207  (eval $ac_link) 2>conftest.er1
38208  ac_status=$?
38209  grep -v '^ *+' conftest.er1 >conftest.err
38210  rm -f conftest.er1
38211  cat conftest.err >&5
38212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213  (exit $ac_status); } &&
38214	 { ac_try='test -z "$ac_c_werror_flag"
38215			 || test ! -s conftest.err'
38216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217  (eval $ac_try) 2>&5
38218  ac_status=$?
38219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220  (exit $ac_status); }; } &&
38221	 { ac_try='test -s conftest$ac_exeext'
38222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38223  (eval $ac_try) 2>&5
38224  ac_status=$?
38225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226  (exit $ac_status); }; }; then
38227  ac_cv_func_vsyslog=yes
38228else
38229  echo "$as_me: failed program was:" >&5
38230sed 's/^/| /' conftest.$ac_ext >&5
38231
38232ac_cv_func_vsyslog=no
38233fi
38234rm -f conftest.err conftest.$ac_objext \
38235      conftest$ac_exeext conftest.$ac_ext
38236fi
38237echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5
38238echo "${ECHO_T}$ac_cv_func_vsyslog" >&6
38239if test $ac_cv_func_vsyslog = yes; then
38240
38241cat >>confdefs.h <<_ACEOF
38242#define HAVE_VSYSLOG 1
38243_ACEOF
38244
38245else
38246  case $LIBOBJS in
38247    "vsyslog.$ac_objext"   | \
38248  *" vsyslog.$ac_objext"   | \
38249    "vsyslog.$ac_objext "* | \
38250  *" vsyslog.$ac_objext "* ) ;;
38251  *) LIBOBJS="$LIBOBJS vsyslog.$ac_objext" ;;
38252esac
38253
38254fi
38255echo "$as_me:$LINENO: checking for vwarn" >&5
38256echo $ECHO_N "checking for vwarn... $ECHO_C" >&6
38257if test "${ac_cv_func_vwarn+set}" = set; then
38258  echo $ECHO_N "(cached) $ECHO_C" >&6
38259else
38260  cat >conftest.$ac_ext <<_ACEOF
38261/* confdefs.h.  */
38262_ACEOF
38263cat confdefs.h >>conftest.$ac_ext
38264cat >>conftest.$ac_ext <<_ACEOF
38265/* end confdefs.h.  */
38266/* Define vwarn to an innocuous variant, in case <limits.h> declares vwarn.
38267   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38268#define vwarn innocuous_vwarn
38269
38270/* System header to define __stub macros and hopefully few prototypes,
38271    which can conflict with char vwarn (); below.
38272    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38273    <limits.h> exists even on freestanding compilers.  */
38274
38275#ifdef __STDC__
38276# include <limits.h>
38277#else
38278# include <assert.h>
38279#endif
38280
38281#undef vwarn
38282
38283/* Override any gcc2 internal prototype to avoid an error.  */
38284#ifdef __cplusplus
38285extern "C"
38286{
38287#endif
38288/* We use char because int might match the return type of a gcc2
38289   builtin and then its argument prototype would still apply.  */
38290char vwarn ();
38291/* The GNU C library defines this for functions which it implements
38292    to always fail with ENOSYS.  Some functions are actually named
38293    something starting with __ and the normal name is an alias.  */
38294#if defined (__stub_vwarn) || defined (__stub___vwarn)
38295choke me
38296#else
38297char (*f) () = vwarn;
38298#endif
38299#ifdef __cplusplus
38300}
38301#endif
38302
38303int
38304main ()
38305{
38306return f != vwarn;
38307  ;
38308  return 0;
38309}
38310_ACEOF
38311rm -f conftest.$ac_objext conftest$ac_exeext
38312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38313  (eval $ac_link) 2>conftest.er1
38314  ac_status=$?
38315  grep -v '^ *+' conftest.er1 >conftest.err
38316  rm -f conftest.er1
38317  cat conftest.err >&5
38318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38319  (exit $ac_status); } &&
38320	 { ac_try='test -z "$ac_c_werror_flag"
38321			 || test ! -s conftest.err'
38322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323  (eval $ac_try) 2>&5
38324  ac_status=$?
38325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326  (exit $ac_status); }; } &&
38327	 { ac_try='test -s conftest$ac_exeext'
38328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38329  (eval $ac_try) 2>&5
38330  ac_status=$?
38331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38332  (exit $ac_status); }; }; then
38333  ac_cv_func_vwarn=yes
38334else
38335  echo "$as_me: failed program was:" >&5
38336sed 's/^/| /' conftest.$ac_ext >&5
38337
38338ac_cv_func_vwarn=no
38339fi
38340rm -f conftest.err conftest.$ac_objext \
38341      conftest$ac_exeext conftest.$ac_ext
38342fi
38343echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5
38344echo "${ECHO_T}$ac_cv_func_vwarn" >&6
38345if test $ac_cv_func_vwarn = yes; then
38346
38347cat >>confdefs.h <<_ACEOF
38348#define HAVE_VWARN 1
38349_ACEOF
38350
38351else
38352  case $LIBOBJS in
38353    "vwarn.$ac_objext"   | \
38354  *" vwarn.$ac_objext"   | \
38355    "vwarn.$ac_objext "* | \
38356  *" vwarn.$ac_objext "* ) ;;
38357  *) LIBOBJS="$LIBOBJS vwarn.$ac_objext" ;;
38358esac
38359
38360fi
38361echo "$as_me:$LINENO: checking for vwarnx" >&5
38362echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6
38363if test "${ac_cv_func_vwarnx+set}" = set; then
38364  echo $ECHO_N "(cached) $ECHO_C" >&6
38365else
38366  cat >conftest.$ac_ext <<_ACEOF
38367/* confdefs.h.  */
38368_ACEOF
38369cat confdefs.h >>conftest.$ac_ext
38370cat >>conftest.$ac_ext <<_ACEOF
38371/* end confdefs.h.  */
38372/* Define vwarnx to an innocuous variant, in case <limits.h> declares vwarnx.
38373   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38374#define vwarnx innocuous_vwarnx
38375
38376/* System header to define __stub macros and hopefully few prototypes,
38377    which can conflict with char vwarnx (); below.
38378    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38379    <limits.h> exists even on freestanding compilers.  */
38380
38381#ifdef __STDC__
38382# include <limits.h>
38383#else
38384# include <assert.h>
38385#endif
38386
38387#undef vwarnx
38388
38389/* Override any gcc2 internal prototype to avoid an error.  */
38390#ifdef __cplusplus
38391extern "C"
38392{
38393#endif
38394/* We use char because int might match the return type of a gcc2
38395   builtin and then its argument prototype would still apply.  */
38396char vwarnx ();
38397/* The GNU C library defines this for functions which it implements
38398    to always fail with ENOSYS.  Some functions are actually named
38399    something starting with __ and the normal name is an alias.  */
38400#if defined (__stub_vwarnx) || defined (__stub___vwarnx)
38401choke me
38402#else
38403char (*f) () = vwarnx;
38404#endif
38405#ifdef __cplusplus
38406}
38407#endif
38408
38409int
38410main ()
38411{
38412return f != vwarnx;
38413  ;
38414  return 0;
38415}
38416_ACEOF
38417rm -f conftest.$ac_objext conftest$ac_exeext
38418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38419  (eval $ac_link) 2>conftest.er1
38420  ac_status=$?
38421  grep -v '^ *+' conftest.er1 >conftest.err
38422  rm -f conftest.er1
38423  cat conftest.err >&5
38424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425  (exit $ac_status); } &&
38426	 { ac_try='test -z "$ac_c_werror_flag"
38427			 || test ! -s conftest.err'
38428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38429  (eval $ac_try) 2>&5
38430  ac_status=$?
38431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38432  (exit $ac_status); }; } &&
38433	 { ac_try='test -s conftest$ac_exeext'
38434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38435  (eval $ac_try) 2>&5
38436  ac_status=$?
38437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38438  (exit $ac_status); }; }; then
38439  ac_cv_func_vwarnx=yes
38440else
38441  echo "$as_me: failed program was:" >&5
38442sed 's/^/| /' conftest.$ac_ext >&5
38443
38444ac_cv_func_vwarnx=no
38445fi
38446rm -f conftest.err conftest.$ac_objext \
38447      conftest$ac_exeext conftest.$ac_ext
38448fi
38449echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5
38450echo "${ECHO_T}$ac_cv_func_vwarnx" >&6
38451if test $ac_cv_func_vwarnx = yes; then
38452
38453cat >>confdefs.h <<_ACEOF
38454#define HAVE_VWARNX 1
38455_ACEOF
38456
38457else
38458  case $LIBOBJS in
38459    "vwarnx.$ac_objext"   | \
38460  *" vwarnx.$ac_objext"   | \
38461    "vwarnx.$ac_objext "* | \
38462  *" vwarnx.$ac_objext "* ) ;;
38463  *) LIBOBJS="$LIBOBJS vwarnx.$ac_objext" ;;
38464esac
38465
38466fi
38467echo "$as_me:$LINENO: checking for warn" >&5
38468echo $ECHO_N "checking for warn... $ECHO_C" >&6
38469if test "${ac_cv_func_warn+set}" = set; then
38470  echo $ECHO_N "(cached) $ECHO_C" >&6
38471else
38472  cat >conftest.$ac_ext <<_ACEOF
38473/* confdefs.h.  */
38474_ACEOF
38475cat confdefs.h >>conftest.$ac_ext
38476cat >>conftest.$ac_ext <<_ACEOF
38477/* end confdefs.h.  */
38478/* Define warn to an innocuous variant, in case <limits.h> declares warn.
38479   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38480#define warn innocuous_warn
38481
38482/* System header to define __stub macros and hopefully few prototypes,
38483    which can conflict with char warn (); below.
38484    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38485    <limits.h> exists even on freestanding compilers.  */
38486
38487#ifdef __STDC__
38488# include <limits.h>
38489#else
38490# include <assert.h>
38491#endif
38492
38493#undef warn
38494
38495/* Override any gcc2 internal prototype to avoid an error.  */
38496#ifdef __cplusplus
38497extern "C"
38498{
38499#endif
38500/* We use char because int might match the return type of a gcc2
38501   builtin and then its argument prototype would still apply.  */
38502char warn ();
38503/* The GNU C library defines this for functions which it implements
38504    to always fail with ENOSYS.  Some functions are actually named
38505    something starting with __ and the normal name is an alias.  */
38506#if defined (__stub_warn) || defined (__stub___warn)
38507choke me
38508#else
38509char (*f) () = warn;
38510#endif
38511#ifdef __cplusplus
38512}
38513#endif
38514
38515int
38516main ()
38517{
38518return f != warn;
38519  ;
38520  return 0;
38521}
38522_ACEOF
38523rm -f conftest.$ac_objext conftest$ac_exeext
38524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38525  (eval $ac_link) 2>conftest.er1
38526  ac_status=$?
38527  grep -v '^ *+' conftest.er1 >conftest.err
38528  rm -f conftest.er1
38529  cat conftest.err >&5
38530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38531  (exit $ac_status); } &&
38532	 { ac_try='test -z "$ac_c_werror_flag"
38533			 || test ! -s conftest.err'
38534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38535  (eval $ac_try) 2>&5
38536  ac_status=$?
38537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38538  (exit $ac_status); }; } &&
38539	 { ac_try='test -s conftest$ac_exeext'
38540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38541  (eval $ac_try) 2>&5
38542  ac_status=$?
38543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544  (exit $ac_status); }; }; then
38545  ac_cv_func_warn=yes
38546else
38547  echo "$as_me: failed program was:" >&5
38548sed 's/^/| /' conftest.$ac_ext >&5
38549
38550ac_cv_func_warn=no
38551fi
38552rm -f conftest.err conftest.$ac_objext \
38553      conftest$ac_exeext conftest.$ac_ext
38554fi
38555echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5
38556echo "${ECHO_T}$ac_cv_func_warn" >&6
38557if test $ac_cv_func_warn = yes; then
38558
38559cat >>confdefs.h <<_ACEOF
38560#define HAVE_WARN 1
38561_ACEOF
38562
38563else
38564  case $LIBOBJS in
38565    "warn.$ac_objext"   | \
38566  *" warn.$ac_objext"   | \
38567    "warn.$ac_objext "* | \
38568  *" warn.$ac_objext "* ) ;;
38569  *) LIBOBJS="$LIBOBJS warn.$ac_objext" ;;
38570esac
38571
38572fi
38573echo "$as_me:$LINENO: checking for warnx" >&5
38574echo $ECHO_N "checking for warnx... $ECHO_C" >&6
38575if test "${ac_cv_func_warnx+set}" = set; then
38576  echo $ECHO_N "(cached) $ECHO_C" >&6
38577else
38578  cat >conftest.$ac_ext <<_ACEOF
38579/* confdefs.h.  */
38580_ACEOF
38581cat confdefs.h >>conftest.$ac_ext
38582cat >>conftest.$ac_ext <<_ACEOF
38583/* end confdefs.h.  */
38584/* Define warnx to an innocuous variant, in case <limits.h> declares warnx.
38585   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38586#define warnx innocuous_warnx
38587
38588/* System header to define __stub macros and hopefully few prototypes,
38589    which can conflict with char warnx (); below.
38590    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38591    <limits.h> exists even on freestanding compilers.  */
38592
38593#ifdef __STDC__
38594# include <limits.h>
38595#else
38596# include <assert.h>
38597#endif
38598
38599#undef warnx
38600
38601/* Override any gcc2 internal prototype to avoid an error.  */
38602#ifdef __cplusplus
38603extern "C"
38604{
38605#endif
38606/* We use char because int might match the return type of a gcc2
38607   builtin and then its argument prototype would still apply.  */
38608char warnx ();
38609/* The GNU C library defines this for functions which it implements
38610    to always fail with ENOSYS.  Some functions are actually named
38611    something starting with __ and the normal name is an alias.  */
38612#if defined (__stub_warnx) || defined (__stub___warnx)
38613choke me
38614#else
38615char (*f) () = warnx;
38616#endif
38617#ifdef __cplusplus
38618}
38619#endif
38620
38621int
38622main ()
38623{
38624return f != warnx;
38625  ;
38626  return 0;
38627}
38628_ACEOF
38629rm -f conftest.$ac_objext conftest$ac_exeext
38630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38631  (eval $ac_link) 2>conftest.er1
38632  ac_status=$?
38633  grep -v '^ *+' conftest.er1 >conftest.err
38634  rm -f conftest.er1
38635  cat conftest.err >&5
38636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637  (exit $ac_status); } &&
38638	 { ac_try='test -z "$ac_c_werror_flag"
38639			 || test ! -s conftest.err'
38640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38641  (eval $ac_try) 2>&5
38642  ac_status=$?
38643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38644  (exit $ac_status); }; } &&
38645	 { ac_try='test -s conftest$ac_exeext'
38646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38647  (eval $ac_try) 2>&5
38648  ac_status=$?
38649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38650  (exit $ac_status); }; }; then
38651  ac_cv_func_warnx=yes
38652else
38653  echo "$as_me: failed program was:" >&5
38654sed 's/^/| /' conftest.$ac_ext >&5
38655
38656ac_cv_func_warnx=no
38657fi
38658rm -f conftest.err conftest.$ac_objext \
38659      conftest$ac_exeext conftest.$ac_ext
38660fi
38661echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5
38662echo "${ECHO_T}$ac_cv_func_warnx" >&6
38663if test $ac_cv_func_warnx = yes; then
38664
38665cat >>confdefs.h <<_ACEOF
38666#define HAVE_WARNX 1
38667_ACEOF
38668
38669else
38670  case $LIBOBJS in
38671    "warnx.$ac_objext"   | \
38672  *" warnx.$ac_objext"   | \
38673    "warnx.$ac_objext "* | \
38674  *" warnx.$ac_objext "* ) ;;
38675  *) LIBOBJS="$LIBOBJS warnx.$ac_objext" ;;
38676esac
38677
38678fi
38679echo "$as_me:$LINENO: checking for writev" >&5
38680echo $ECHO_N "checking for writev... $ECHO_C" >&6
38681if test "${ac_cv_func_writev+set}" = set; then
38682  echo $ECHO_N "(cached) $ECHO_C" >&6
38683else
38684  cat >conftest.$ac_ext <<_ACEOF
38685/* confdefs.h.  */
38686_ACEOF
38687cat confdefs.h >>conftest.$ac_ext
38688cat >>conftest.$ac_ext <<_ACEOF
38689/* end confdefs.h.  */
38690/* Define writev to an innocuous variant, in case <limits.h> declares writev.
38691   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38692#define writev innocuous_writev
38693
38694/* System header to define __stub macros and hopefully few prototypes,
38695    which can conflict with char writev (); below.
38696    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38697    <limits.h> exists even on freestanding compilers.  */
38698
38699#ifdef __STDC__
38700# include <limits.h>
38701#else
38702# include <assert.h>
38703#endif
38704
38705#undef writev
38706
38707/* Override any gcc2 internal prototype to avoid an error.  */
38708#ifdef __cplusplus
38709extern "C"
38710{
38711#endif
38712/* We use char because int might match the return type of a gcc2
38713   builtin and then its argument prototype would still apply.  */
38714char writev ();
38715/* The GNU C library defines this for functions which it implements
38716    to always fail with ENOSYS.  Some functions are actually named
38717    something starting with __ and the normal name is an alias.  */
38718#if defined (__stub_writev) || defined (__stub___writev)
38719choke me
38720#else
38721char (*f) () = writev;
38722#endif
38723#ifdef __cplusplus
38724}
38725#endif
38726
38727int
38728main ()
38729{
38730return f != writev;
38731  ;
38732  return 0;
38733}
38734_ACEOF
38735rm -f conftest.$ac_objext conftest$ac_exeext
38736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38737  (eval $ac_link) 2>conftest.er1
38738  ac_status=$?
38739  grep -v '^ *+' conftest.er1 >conftest.err
38740  rm -f conftest.er1
38741  cat conftest.err >&5
38742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743  (exit $ac_status); } &&
38744	 { ac_try='test -z "$ac_c_werror_flag"
38745			 || test ! -s conftest.err'
38746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38747  (eval $ac_try) 2>&5
38748  ac_status=$?
38749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38750  (exit $ac_status); }; } &&
38751	 { ac_try='test -s conftest$ac_exeext'
38752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38753  (eval $ac_try) 2>&5
38754  ac_status=$?
38755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756  (exit $ac_status); }; }; then
38757  ac_cv_func_writev=yes
38758else
38759  echo "$as_me: failed program was:" >&5
38760sed 's/^/| /' conftest.$ac_ext >&5
38761
38762ac_cv_func_writev=no
38763fi
38764rm -f conftest.err conftest.$ac_objext \
38765      conftest$ac_exeext conftest.$ac_ext
38766fi
38767echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5
38768echo "${ECHO_T}$ac_cv_func_writev" >&6
38769if test $ac_cv_func_writev = yes; then
38770
38771cat >>confdefs.h <<_ACEOF
38772#define HAVE_WRITEV 1
38773_ACEOF
38774
38775else
38776  case $LIBOBJS in
38777    "writev.$ac_objext"   | \
38778  *" writev.$ac_objext"   | \
38779    "writev.$ac_objext "* | \
38780  *" writev.$ac_objext "* ) ;;
38781  *) LIBOBJS="$LIBOBJS writev.$ac_objext" ;;
38782esac
38783
38784fi
38785
38786
38787
38788if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then
38789echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5
38790echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6
38791if test "${ac_cv_func_strndup_noproto+set}" = set; then
38792  echo $ECHO_N "(cached) $ECHO_C" >&6
38793else
38794  cat >conftest.$ac_ext <<_ACEOF
38795/* confdefs.h.  */
38796_ACEOF
38797cat confdefs.h >>conftest.$ac_ext
38798cat >>conftest.$ac_ext <<_ACEOF
38799/* end confdefs.h.  */
38800#include <string.h>
38801int
38802main ()
38803{
38804struct foo { int foo; } xx;
38805extern int strndup (struct foo*);
38806strndup(&xx);
38807
38808  ;
38809  return 0;
38810}
38811_ACEOF
38812rm -f conftest.$ac_objext
38813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38814  (eval $ac_compile) 2>conftest.er1
38815  ac_status=$?
38816  grep -v '^ *+' conftest.er1 >conftest.err
38817  rm -f conftest.er1
38818  cat conftest.err >&5
38819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820  (exit $ac_status); } &&
38821	 { ac_try='test -z "$ac_c_werror_flag"
38822			 || test ! -s conftest.err'
38823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824  (eval $ac_try) 2>&5
38825  ac_status=$?
38826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827  (exit $ac_status); }; } &&
38828	 { ac_try='test -s conftest.$ac_objext'
38829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38830  (eval $ac_try) 2>&5
38831  ac_status=$?
38832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38833  (exit $ac_status); }; }; then
38834  eval "ac_cv_func_strndup_noproto=yes"
38835else
38836  echo "$as_me: failed program was:" >&5
38837sed 's/^/| /' conftest.$ac_ext >&5
38838
38839eval "ac_cv_func_strndup_noproto=no"
38840fi
38841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38842fi
38843echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5
38844echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6
38845if test "$ac_cv_func_strndup_noproto" = yes; then
38846
38847cat >>confdefs.h <<\_ACEOF
38848#define NEED_STRNDUP_PROTO 1
38849_ACEOF
38850
38851fi
38852fi
38853
38854if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then
38855echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5
38856echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6
38857if test "${ac_cv_func_strsep_noproto+set}" = set; then
38858  echo $ECHO_N "(cached) $ECHO_C" >&6
38859else
38860  cat >conftest.$ac_ext <<_ACEOF
38861/* confdefs.h.  */
38862_ACEOF
38863cat confdefs.h >>conftest.$ac_ext
38864cat >>conftest.$ac_ext <<_ACEOF
38865/* end confdefs.h.  */
38866#include <string.h>
38867int
38868main ()
38869{
38870struct foo { int foo; } xx;
38871extern int strsep (struct foo*);
38872strsep(&xx);
38873
38874  ;
38875  return 0;
38876}
38877_ACEOF
38878rm -f conftest.$ac_objext
38879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880  (eval $ac_compile) 2>conftest.er1
38881  ac_status=$?
38882  grep -v '^ *+' conftest.er1 >conftest.err
38883  rm -f conftest.er1
38884  cat conftest.err >&5
38885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886  (exit $ac_status); } &&
38887	 { ac_try='test -z "$ac_c_werror_flag"
38888			 || test ! -s conftest.err'
38889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890  (eval $ac_try) 2>&5
38891  ac_status=$?
38892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893  (exit $ac_status); }; } &&
38894	 { ac_try='test -s conftest.$ac_objext'
38895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896  (eval $ac_try) 2>&5
38897  ac_status=$?
38898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899  (exit $ac_status); }; }; then
38900  eval "ac_cv_func_strsep_noproto=yes"
38901else
38902  echo "$as_me: failed program was:" >&5
38903sed 's/^/| /' conftest.$ac_ext >&5
38904
38905eval "ac_cv_func_strsep_noproto=no"
38906fi
38907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38908fi
38909echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5
38910echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6
38911if test "$ac_cv_func_strsep_noproto" = yes; then
38912
38913cat >>confdefs.h <<\_ACEOF
38914#define NEED_STRSEP_PROTO 1
38915_ACEOF
38916
38917fi
38918fi
38919
38920if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then
38921echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5
38922echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6
38923if test "${ac_cv_func_strtok_r_noproto+set}" = set; then
38924  echo $ECHO_N "(cached) $ECHO_C" >&6
38925else
38926  cat >conftest.$ac_ext <<_ACEOF
38927/* confdefs.h.  */
38928_ACEOF
38929cat confdefs.h >>conftest.$ac_ext
38930cat >>conftest.$ac_ext <<_ACEOF
38931/* end confdefs.h.  */
38932#include <string.h>
38933int
38934main ()
38935{
38936struct foo { int foo; } xx;
38937extern int strtok_r (struct foo*);
38938strtok_r(&xx);
38939
38940  ;
38941  return 0;
38942}
38943_ACEOF
38944rm -f conftest.$ac_objext
38945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38946  (eval $ac_compile) 2>conftest.er1
38947  ac_status=$?
38948  grep -v '^ *+' conftest.er1 >conftest.err
38949  rm -f conftest.er1
38950  cat conftest.err >&5
38951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952  (exit $ac_status); } &&
38953	 { ac_try='test -z "$ac_c_werror_flag"
38954			 || test ! -s conftest.err'
38955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956  (eval $ac_try) 2>&5
38957  ac_status=$?
38958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959  (exit $ac_status); }; } &&
38960	 { ac_try='test -s conftest.$ac_objext'
38961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38962  (eval $ac_try) 2>&5
38963  ac_status=$?
38964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38965  (exit $ac_status); }; }; then
38966  eval "ac_cv_func_strtok_r_noproto=yes"
38967else
38968  echo "$as_me: failed program was:" >&5
38969sed 's/^/| /' conftest.$ac_ext >&5
38970
38971eval "ac_cv_func_strtok_r_noproto=no"
38972fi
38973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38974fi
38975echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5
38976echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6
38977if test "$ac_cv_func_strtok_r_noproto" = yes; then
38978
38979cat >>confdefs.h <<\_ACEOF
38980#define NEED_STRTOK_R_PROTO 1
38981_ACEOF
38982
38983fi
38984fi
38985
38986
38987
38988if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then
38989echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5
38990echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6
38991if test "${ac_cv_func_strsvis_noproto+set}" = set; then
38992  echo $ECHO_N "(cached) $ECHO_C" >&6
38993else
38994  cat >conftest.$ac_ext <<_ACEOF
38995/* confdefs.h.  */
38996_ACEOF
38997cat confdefs.h >>conftest.$ac_ext
38998cat >>conftest.$ac_ext <<_ACEOF
38999/* end confdefs.h.  */
39000#ifdef HAVE_VIS_H
39001#include <vis.h>
39002#endif
39003int
39004main ()
39005{
39006struct foo { int foo; } xx;
39007extern int strsvis (struct foo*);
39008strsvis(&xx);
39009
39010  ;
39011  return 0;
39012}
39013_ACEOF
39014rm -f conftest.$ac_objext
39015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39016  (eval $ac_compile) 2>conftest.er1
39017  ac_status=$?
39018  grep -v '^ *+' conftest.er1 >conftest.err
39019  rm -f conftest.er1
39020  cat conftest.err >&5
39021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022  (exit $ac_status); } &&
39023	 { ac_try='test -z "$ac_c_werror_flag"
39024			 || test ! -s conftest.err'
39025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39026  (eval $ac_try) 2>&5
39027  ac_status=$?
39028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39029  (exit $ac_status); }; } &&
39030	 { ac_try='test -s conftest.$ac_objext'
39031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39032  (eval $ac_try) 2>&5
39033  ac_status=$?
39034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39035  (exit $ac_status); }; }; then
39036  eval "ac_cv_func_strsvis_noproto=yes"
39037else
39038  echo "$as_me: failed program was:" >&5
39039sed 's/^/| /' conftest.$ac_ext >&5
39040
39041eval "ac_cv_func_strsvis_noproto=no"
39042fi
39043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39044fi
39045echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5
39046echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6
39047if test "$ac_cv_func_strsvis_noproto" = yes; then
39048
39049cat >>confdefs.h <<\_ACEOF
39050#define NEED_STRSVIS_PROTO 1
39051_ACEOF
39052
39053fi
39054fi
39055
39056if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then
39057echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5
39058echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6
39059if test "${ac_cv_func_strunvis_noproto+set}" = set; then
39060  echo $ECHO_N "(cached) $ECHO_C" >&6
39061else
39062  cat >conftest.$ac_ext <<_ACEOF
39063/* confdefs.h.  */
39064_ACEOF
39065cat confdefs.h >>conftest.$ac_ext
39066cat >>conftest.$ac_ext <<_ACEOF
39067/* end confdefs.h.  */
39068#ifdef HAVE_VIS_H
39069#include <vis.h>
39070#endif
39071int
39072main ()
39073{
39074struct foo { int foo; } xx;
39075extern int strunvis (struct foo*);
39076strunvis(&xx);
39077
39078  ;
39079  return 0;
39080}
39081_ACEOF
39082rm -f conftest.$ac_objext
39083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39084  (eval $ac_compile) 2>conftest.er1
39085  ac_status=$?
39086  grep -v '^ *+' conftest.er1 >conftest.err
39087  rm -f conftest.er1
39088  cat conftest.err >&5
39089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090  (exit $ac_status); } &&
39091	 { ac_try='test -z "$ac_c_werror_flag"
39092			 || test ! -s conftest.err'
39093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39094  (eval $ac_try) 2>&5
39095  ac_status=$?
39096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39097  (exit $ac_status); }; } &&
39098	 { ac_try='test -s conftest.$ac_objext'
39099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39100  (eval $ac_try) 2>&5
39101  ac_status=$?
39102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39103  (exit $ac_status); }; }; then
39104  eval "ac_cv_func_strunvis_noproto=yes"
39105else
39106  echo "$as_me: failed program was:" >&5
39107sed 's/^/| /' conftest.$ac_ext >&5
39108
39109eval "ac_cv_func_strunvis_noproto=no"
39110fi
39111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39112fi
39113echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5
39114echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6
39115if test "$ac_cv_func_strunvis_noproto" = yes; then
39116
39117cat >>confdefs.h <<\_ACEOF
39118#define NEED_STRUNVIS_PROTO 1
39119_ACEOF
39120
39121fi
39122fi
39123
39124if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then
39125echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5
39126echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6
39127if test "${ac_cv_func_strvis_noproto+set}" = set; then
39128  echo $ECHO_N "(cached) $ECHO_C" >&6
39129else
39130  cat >conftest.$ac_ext <<_ACEOF
39131/* confdefs.h.  */
39132_ACEOF
39133cat confdefs.h >>conftest.$ac_ext
39134cat >>conftest.$ac_ext <<_ACEOF
39135/* end confdefs.h.  */
39136#ifdef HAVE_VIS_H
39137#include <vis.h>
39138#endif
39139int
39140main ()
39141{
39142struct foo { int foo; } xx;
39143extern int strvis (struct foo*);
39144strvis(&xx);
39145
39146  ;
39147  return 0;
39148}
39149_ACEOF
39150rm -f conftest.$ac_objext
39151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39152  (eval $ac_compile) 2>conftest.er1
39153  ac_status=$?
39154  grep -v '^ *+' conftest.er1 >conftest.err
39155  rm -f conftest.er1
39156  cat conftest.err >&5
39157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158  (exit $ac_status); } &&
39159	 { ac_try='test -z "$ac_c_werror_flag"
39160			 || test ! -s conftest.err'
39161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162  (eval $ac_try) 2>&5
39163  ac_status=$?
39164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165  (exit $ac_status); }; } &&
39166	 { ac_try='test -s conftest.$ac_objext'
39167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39168  (eval $ac_try) 2>&5
39169  ac_status=$?
39170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171  (exit $ac_status); }; }; then
39172  eval "ac_cv_func_strvis_noproto=yes"
39173else
39174  echo "$as_me: failed program was:" >&5
39175sed 's/^/| /' conftest.$ac_ext >&5
39176
39177eval "ac_cv_func_strvis_noproto=no"
39178fi
39179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39180fi
39181echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5
39182echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6
39183if test "$ac_cv_func_strvis_noproto" = yes; then
39184
39185cat >>confdefs.h <<\_ACEOF
39186#define NEED_STRVIS_PROTO 1
39187_ACEOF
39188
39189fi
39190fi
39191
39192if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then
39193echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5
39194echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6
39195if test "${ac_cv_func_strvisx_noproto+set}" = set; then
39196  echo $ECHO_N "(cached) $ECHO_C" >&6
39197else
39198  cat >conftest.$ac_ext <<_ACEOF
39199/* confdefs.h.  */
39200_ACEOF
39201cat confdefs.h >>conftest.$ac_ext
39202cat >>conftest.$ac_ext <<_ACEOF
39203/* end confdefs.h.  */
39204#ifdef HAVE_VIS_H
39205#include <vis.h>
39206#endif
39207int
39208main ()
39209{
39210struct foo { int foo; } xx;
39211extern int strvisx (struct foo*);
39212strvisx(&xx);
39213
39214  ;
39215  return 0;
39216}
39217_ACEOF
39218rm -f conftest.$ac_objext
39219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39220  (eval $ac_compile) 2>conftest.er1
39221  ac_status=$?
39222  grep -v '^ *+' conftest.er1 >conftest.err
39223  rm -f conftest.er1
39224  cat conftest.err >&5
39225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226  (exit $ac_status); } &&
39227	 { ac_try='test -z "$ac_c_werror_flag"
39228			 || test ! -s conftest.err'
39229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230  (eval $ac_try) 2>&5
39231  ac_status=$?
39232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233  (exit $ac_status); }; } &&
39234	 { ac_try='test -s conftest.$ac_objext'
39235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236  (eval $ac_try) 2>&5
39237  ac_status=$?
39238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239  (exit $ac_status); }; }; then
39240  eval "ac_cv_func_strvisx_noproto=yes"
39241else
39242  echo "$as_me: failed program was:" >&5
39243sed 's/^/| /' conftest.$ac_ext >&5
39244
39245eval "ac_cv_func_strvisx_noproto=no"
39246fi
39247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39248fi
39249echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5
39250echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6
39251if test "$ac_cv_func_strvisx_noproto" = yes; then
39252
39253cat >>confdefs.h <<\_ACEOF
39254#define NEED_STRVISX_PROTO 1
39255_ACEOF
39256
39257fi
39258fi
39259
39260if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then
39261echo "$as_me:$LINENO: checking if svis needs a prototype" >&5
39262echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6
39263if test "${ac_cv_func_svis_noproto+set}" = set; then
39264  echo $ECHO_N "(cached) $ECHO_C" >&6
39265else
39266  cat >conftest.$ac_ext <<_ACEOF
39267/* confdefs.h.  */
39268_ACEOF
39269cat confdefs.h >>conftest.$ac_ext
39270cat >>conftest.$ac_ext <<_ACEOF
39271/* end confdefs.h.  */
39272#ifdef HAVE_VIS_H
39273#include <vis.h>
39274#endif
39275int
39276main ()
39277{
39278struct foo { int foo; } xx;
39279extern int svis (struct foo*);
39280svis(&xx);
39281
39282  ;
39283  return 0;
39284}
39285_ACEOF
39286rm -f conftest.$ac_objext
39287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39288  (eval $ac_compile) 2>conftest.er1
39289  ac_status=$?
39290  grep -v '^ *+' conftest.er1 >conftest.err
39291  rm -f conftest.er1
39292  cat conftest.err >&5
39293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294  (exit $ac_status); } &&
39295	 { ac_try='test -z "$ac_c_werror_flag"
39296			 || test ! -s conftest.err'
39297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39298  (eval $ac_try) 2>&5
39299  ac_status=$?
39300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39301  (exit $ac_status); }; } &&
39302	 { ac_try='test -s conftest.$ac_objext'
39303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39304  (eval $ac_try) 2>&5
39305  ac_status=$?
39306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39307  (exit $ac_status); }; }; then
39308  eval "ac_cv_func_svis_noproto=yes"
39309else
39310  echo "$as_me: failed program was:" >&5
39311sed 's/^/| /' conftest.$ac_ext >&5
39312
39313eval "ac_cv_func_svis_noproto=no"
39314fi
39315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39316fi
39317echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5
39318echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6
39319if test "$ac_cv_func_svis_noproto" = yes; then
39320
39321cat >>confdefs.h <<\_ACEOF
39322#define NEED_SVIS_PROTO 1
39323_ACEOF
39324
39325fi
39326fi
39327
39328if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then
39329echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5
39330echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6
39331if test "${ac_cv_func_unvis_noproto+set}" = set; then
39332  echo $ECHO_N "(cached) $ECHO_C" >&6
39333else
39334  cat >conftest.$ac_ext <<_ACEOF
39335/* confdefs.h.  */
39336_ACEOF
39337cat confdefs.h >>conftest.$ac_ext
39338cat >>conftest.$ac_ext <<_ACEOF
39339/* end confdefs.h.  */
39340#ifdef HAVE_VIS_H
39341#include <vis.h>
39342#endif
39343int
39344main ()
39345{
39346struct foo { int foo; } xx;
39347extern int unvis (struct foo*);
39348unvis(&xx);
39349
39350  ;
39351  return 0;
39352}
39353_ACEOF
39354rm -f conftest.$ac_objext
39355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39356  (eval $ac_compile) 2>conftest.er1
39357  ac_status=$?
39358  grep -v '^ *+' conftest.er1 >conftest.err
39359  rm -f conftest.er1
39360  cat conftest.err >&5
39361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39362  (exit $ac_status); } &&
39363	 { ac_try='test -z "$ac_c_werror_flag"
39364			 || test ! -s conftest.err'
39365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39366  (eval $ac_try) 2>&5
39367  ac_status=$?
39368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39369  (exit $ac_status); }; } &&
39370	 { ac_try='test -s conftest.$ac_objext'
39371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39372  (eval $ac_try) 2>&5
39373  ac_status=$?
39374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375  (exit $ac_status); }; }; then
39376  eval "ac_cv_func_unvis_noproto=yes"
39377else
39378  echo "$as_me: failed program was:" >&5
39379sed 's/^/| /' conftest.$ac_ext >&5
39380
39381eval "ac_cv_func_unvis_noproto=no"
39382fi
39383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39384fi
39385echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5
39386echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6
39387if test "$ac_cv_func_unvis_noproto" = yes; then
39388
39389cat >>confdefs.h <<\_ACEOF
39390#define NEED_UNVIS_PROTO 1
39391_ACEOF
39392
39393fi
39394fi
39395
39396if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then
39397echo "$as_me:$LINENO: checking if vis needs a prototype" >&5
39398echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6
39399if test "${ac_cv_func_vis_noproto+set}" = set; then
39400  echo $ECHO_N "(cached) $ECHO_C" >&6
39401else
39402  cat >conftest.$ac_ext <<_ACEOF
39403/* confdefs.h.  */
39404_ACEOF
39405cat confdefs.h >>conftest.$ac_ext
39406cat >>conftest.$ac_ext <<_ACEOF
39407/* end confdefs.h.  */
39408#ifdef HAVE_VIS_H
39409#include <vis.h>
39410#endif
39411int
39412main ()
39413{
39414struct foo { int foo; } xx;
39415extern int vis (struct foo*);
39416vis(&xx);
39417
39418  ;
39419  return 0;
39420}
39421_ACEOF
39422rm -f conftest.$ac_objext
39423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39424  (eval $ac_compile) 2>conftest.er1
39425  ac_status=$?
39426  grep -v '^ *+' conftest.er1 >conftest.err
39427  rm -f conftest.er1
39428  cat conftest.err >&5
39429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430  (exit $ac_status); } &&
39431	 { ac_try='test -z "$ac_c_werror_flag"
39432			 || test ! -s conftest.err'
39433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39434  (eval $ac_try) 2>&5
39435  ac_status=$?
39436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39437  (exit $ac_status); }; } &&
39438	 { ac_try='test -s conftest.$ac_objext'
39439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39440  (eval $ac_try) 2>&5
39441  ac_status=$?
39442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39443  (exit $ac_status); }; }; then
39444  eval "ac_cv_func_vis_noproto=yes"
39445else
39446  echo "$as_me: failed program was:" >&5
39447sed 's/^/| /' conftest.$ac_ext >&5
39448
39449eval "ac_cv_func_vis_noproto=no"
39450fi
39451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39452fi
39453echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5
39454echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6
39455if test "$ac_cv_func_vis_noproto" = yes; then
39456
39457cat >>confdefs.h <<\_ACEOF
39458#define NEED_VIS_PROTO 1
39459_ACEOF
39460
39461fi
39462fi
39463
39464
39465echo "$as_me:$LINENO: checking for inet_aton" >&5
39466echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
39467if test "${ac_cv_func_inet_aton+set}" = set; then
39468  echo $ECHO_N "(cached) $ECHO_C" >&6
39469else
39470  cat >conftest.$ac_ext <<_ACEOF
39471/* confdefs.h.  */
39472_ACEOF
39473cat confdefs.h >>conftest.$ac_ext
39474cat >>conftest.$ac_ext <<_ACEOF
39475/* end confdefs.h.  */
39476#ifdef HAVE_SYS_TYPES_H
39477#include <sys/types.h>
39478#endif
39479#ifdef HAVE_SYS_SOCKET_H
39480#include <sys/socket.h>
39481#endif
39482#ifdef HAVE_NETINET_IN_H
39483#include <netinet/in.h>
39484#endif
39485#ifdef HAVE_ARPA_INET_H
39486#include <arpa/inet.h>
39487#endif
39488int
39489main ()
39490{
39491
39492/* The GNU C library defines this for functions which it implements
39493    to always fail with ENOSYS.  Some functions are actually named
39494    something starting with __ and the normal name is an alias.  */
39495#if defined (__stub_inet_aton) || defined (__stub___inet_aton)
39496choke me
39497#else
39498inet_aton(0,0)
39499#endif
39500
39501  ;
39502  return 0;
39503}
39504_ACEOF
39505rm -f conftest.$ac_objext conftest$ac_exeext
39506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39507  (eval $ac_link) 2>conftest.er1
39508  ac_status=$?
39509  grep -v '^ *+' conftest.er1 >conftest.err
39510  rm -f conftest.er1
39511  cat conftest.err >&5
39512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513  (exit $ac_status); } &&
39514	 { ac_try='test -z "$ac_c_werror_flag"
39515			 || test ! -s conftest.err'
39516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39517  (eval $ac_try) 2>&5
39518  ac_status=$?
39519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520  (exit $ac_status); }; } &&
39521	 { ac_try='test -s conftest$ac_exeext'
39522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39523  (eval $ac_try) 2>&5
39524  ac_status=$?
39525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526  (exit $ac_status); }; }; then
39527  eval "ac_cv_func_inet_aton=yes"
39528else
39529  echo "$as_me: failed program was:" >&5
39530sed 's/^/| /' conftest.$ac_ext >&5
39531
39532eval "ac_cv_func_inet_aton=no"
39533fi
39534rm -f conftest.err conftest.$ac_objext \
39535      conftest$ac_exeext conftest.$ac_ext
39536fi
39537
39538if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then
39539
39540cat >>confdefs.h <<_ACEOF
39541#define HAVE_INET_ATON 1
39542_ACEOF
39543
39544  echo "$as_me:$LINENO: result: yes" >&5
39545echo "${ECHO_T}yes" >&6
39546else
39547  echo "$as_me:$LINENO: result: no" >&5
39548echo "${ECHO_T}no" >&6
39549  case $LIBOBJS in
39550    "inet_aton.$ac_objext"   | \
39551  *" inet_aton.$ac_objext"   | \
39552    "inet_aton.$ac_objext "* | \
39553  *" inet_aton.$ac_objext "* ) ;;
39554  *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
39555esac
39556
39557fi
39558
39559echo "$as_me:$LINENO: checking for inet_ntop" >&5
39560echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
39561if test "${ac_cv_func_inet_ntop+set}" = set; then
39562  echo $ECHO_N "(cached) $ECHO_C" >&6
39563else
39564  cat >conftest.$ac_ext <<_ACEOF
39565/* confdefs.h.  */
39566_ACEOF
39567cat confdefs.h >>conftest.$ac_ext
39568cat >>conftest.$ac_ext <<_ACEOF
39569/* end confdefs.h.  */
39570#ifdef HAVE_SYS_TYPES_H
39571#include <sys/types.h>
39572#endif
39573#ifdef HAVE_SYS_SOCKET_H
39574#include <sys/socket.h>
39575#endif
39576#ifdef HAVE_NETINET_IN_H
39577#include <netinet/in.h>
39578#endif
39579#ifdef HAVE_ARPA_INET_H
39580#include <arpa/inet.h>
39581#endif
39582int
39583main ()
39584{
39585
39586/* The GNU C library defines this for functions which it implements
39587    to always fail with ENOSYS.  Some functions are actually named
39588    something starting with __ and the normal name is an alias.  */
39589#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop)
39590choke me
39591#else
39592inet_ntop(0, 0, 0, 0)
39593#endif
39594
39595  ;
39596  return 0;
39597}
39598_ACEOF
39599rm -f conftest.$ac_objext conftest$ac_exeext
39600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39601  (eval $ac_link) 2>conftest.er1
39602  ac_status=$?
39603  grep -v '^ *+' conftest.er1 >conftest.err
39604  rm -f conftest.er1
39605  cat conftest.err >&5
39606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607  (exit $ac_status); } &&
39608	 { ac_try='test -z "$ac_c_werror_flag"
39609			 || test ! -s conftest.err'
39610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39611  (eval $ac_try) 2>&5
39612  ac_status=$?
39613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614  (exit $ac_status); }; } &&
39615	 { ac_try='test -s conftest$ac_exeext'
39616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39617  (eval $ac_try) 2>&5
39618  ac_status=$?
39619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39620  (exit $ac_status); }; }; then
39621  eval "ac_cv_func_inet_ntop=yes"
39622else
39623  echo "$as_me: failed program was:" >&5
39624sed 's/^/| /' conftest.$ac_ext >&5
39625
39626eval "ac_cv_func_inet_ntop=no"
39627fi
39628rm -f conftest.err conftest.$ac_objext \
39629      conftest$ac_exeext conftest.$ac_ext
39630fi
39631
39632if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then
39633
39634cat >>confdefs.h <<_ACEOF
39635#define HAVE_INET_NTOP 1
39636_ACEOF
39637
39638  echo "$as_me:$LINENO: result: yes" >&5
39639echo "${ECHO_T}yes" >&6
39640else
39641  echo "$as_me:$LINENO: result: no" >&5
39642echo "${ECHO_T}no" >&6
39643  case $LIBOBJS in
39644    "inet_ntop.$ac_objext"   | \
39645  *" inet_ntop.$ac_objext"   | \
39646    "inet_ntop.$ac_objext "* | \
39647  *" inet_ntop.$ac_objext "* ) ;;
39648  *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
39649esac
39650
39651fi
39652
39653echo "$as_me:$LINENO: checking for inet_pton" >&5
39654echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
39655if test "${ac_cv_func_inet_pton+set}" = set; then
39656  echo $ECHO_N "(cached) $ECHO_C" >&6
39657else
39658  cat >conftest.$ac_ext <<_ACEOF
39659/* confdefs.h.  */
39660_ACEOF
39661cat confdefs.h >>conftest.$ac_ext
39662cat >>conftest.$ac_ext <<_ACEOF
39663/* end confdefs.h.  */
39664#ifdef HAVE_SYS_TYPES_H
39665#include <sys/types.h>
39666#endif
39667#ifdef HAVE_SYS_SOCKET_H
39668#include <sys/socket.h>
39669#endif
39670#ifdef HAVE_NETINET_IN_H
39671#include <netinet/in.h>
39672#endif
39673#ifdef HAVE_ARPA_INET_H
39674#include <arpa/inet.h>
39675#endif
39676int
39677main ()
39678{
39679
39680/* The GNU C library defines this for functions which it implements
39681    to always fail with ENOSYS.  Some functions are actually named
39682    something starting with __ and the normal name is an alias.  */
39683#if defined (__stub_inet_pton) || defined (__stub___inet_pton)
39684choke me
39685#else
39686inet_pton(0,0,0)
39687#endif
39688
39689  ;
39690  return 0;
39691}
39692_ACEOF
39693rm -f conftest.$ac_objext conftest$ac_exeext
39694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39695  (eval $ac_link) 2>conftest.er1
39696  ac_status=$?
39697  grep -v '^ *+' conftest.er1 >conftest.err
39698  rm -f conftest.er1
39699  cat conftest.err >&5
39700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39701  (exit $ac_status); } &&
39702	 { ac_try='test -z "$ac_c_werror_flag"
39703			 || test ! -s conftest.err'
39704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705  (eval $ac_try) 2>&5
39706  ac_status=$?
39707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708  (exit $ac_status); }; } &&
39709	 { ac_try='test -s conftest$ac_exeext'
39710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39711  (eval $ac_try) 2>&5
39712  ac_status=$?
39713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39714  (exit $ac_status); }; }; then
39715  eval "ac_cv_func_inet_pton=yes"
39716else
39717  echo "$as_me: failed program was:" >&5
39718sed 's/^/| /' conftest.$ac_ext >&5
39719
39720eval "ac_cv_func_inet_pton=no"
39721fi
39722rm -f conftest.err conftest.$ac_objext \
39723      conftest$ac_exeext conftest.$ac_ext
39724fi
39725
39726if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then
39727
39728cat >>confdefs.h <<_ACEOF
39729#define HAVE_INET_PTON 1
39730_ACEOF
39731
39732  echo "$as_me:$LINENO: result: yes" >&5
39733echo "${ECHO_T}yes" >&6
39734else
39735  echo "$as_me:$LINENO: result: no" >&5
39736echo "${ECHO_T}no" >&6
39737  case $LIBOBJS in
39738    "inet_pton.$ac_objext"   | \
39739  *" inet_pton.$ac_objext"   | \
39740    "inet_pton.$ac_objext "* | \
39741  *" inet_pton.$ac_objext "* ) ;;
39742  *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
39743esac
39744
39745fi
39746
39747
39748
39749echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5
39750echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6
39751if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then
39752  echo $ECHO_N "(cached) $ECHO_C" >&6
39753else
39754
39755cat >conftest.$ac_ext <<_ACEOF
39756/* confdefs.h.  */
39757_ACEOF
39758cat confdefs.h >>conftest.$ac_ext
39759cat >>conftest.$ac_ext <<_ACEOF
39760/* end confdefs.h.  */
39761#include <sys/types.h>
39762#include <sys/socket.h>
39763int
39764main ()
39765{
39766struct sockaddr x; x.sa_len;
39767  ;
39768  return 0;
39769}
39770_ACEOF
39771rm -f conftest.$ac_objext
39772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39773  (eval $ac_compile) 2>conftest.er1
39774  ac_status=$?
39775  grep -v '^ *+' conftest.er1 >conftest.err
39776  rm -f conftest.er1
39777  cat conftest.err >&5
39778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779  (exit $ac_status); } &&
39780	 { ac_try='test -z "$ac_c_werror_flag"
39781			 || test ! -s conftest.err'
39782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39783  (eval $ac_try) 2>&5
39784  ac_status=$?
39785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39786  (exit $ac_status); }; } &&
39787	 { ac_try='test -s conftest.$ac_objext'
39788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39789  (eval $ac_try) 2>&5
39790  ac_status=$?
39791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792  (exit $ac_status); }; }; then
39793  ac_cv_type_struct_sockaddr_sa_len=yes
39794else
39795  echo "$as_me: failed program was:" >&5
39796sed 's/^/| /' conftest.$ac_ext >&5
39797
39798ac_cv_type_struct_sockaddr_sa_len=no
39799fi
39800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39801fi
39802echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5
39803echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6
39804if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
39805
39806
39807cat >>confdefs.h <<\_ACEOF
39808#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
39809_ACEOF
39810
39811
39812fi
39813
39814
39815
39816if test "$ac_cv_func_getnameinfo" = "yes"; then
39817
39818echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5
39819echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6
39820if test "${ac_cv_func_getnameinfo_broken+set}" = set; then
39821  echo $ECHO_N "(cached) $ECHO_C" >&6
39822else
39823  if test "$cross_compiling" = yes; then
39824  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39825See \`config.log' for more details." >&5
39826echo "$as_me: error: cannot run test program while cross compiling
39827See \`config.log' for more details." >&2;}
39828   { (exit 1); exit 1; }; }
39829else
39830  cat >conftest.$ac_ext <<_ACEOF
39831/* confdefs.h.  */
39832_ACEOF
39833cat confdefs.h >>conftest.$ac_ext
39834cat >>conftest.$ac_ext <<_ACEOF
39835/* end confdefs.h.  */
39836#include <stdio.h>
39837#include <sys/types.h>
39838#include <sys/socket.h>
39839#include <netinet/in.h>
39840#include <netdb.h>
39841
39842int
39843main(int argc, char **argv)
39844{
39845  struct sockaddr_in sin;
39846  char host[256];
39847  memset(&sin, 0, sizeof(sin));
39848#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
39849  sin.sin_len = sizeof(sin);
39850#endif
39851  sin.sin_family = AF_INET;
39852  sin.sin_addr.s_addr = 0xffffffff;
39853  sin.sin_port = 0;
39854  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
39855	      NULL, 0, 0);
39856}
39857
39858_ACEOF
39859rm -f conftest$ac_exeext
39860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39861  (eval $ac_link) 2>&5
39862  ac_status=$?
39863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39866  (eval $ac_try) 2>&5
39867  ac_status=$?
39868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39869  (exit $ac_status); }; }; then
39870  ac_cv_func_getnameinfo_broken=no
39871else
39872  echo "$as_me: program exited with status $ac_status" >&5
39873echo "$as_me: failed program was:" >&5
39874sed 's/^/| /' conftest.$ac_ext >&5
39875
39876( exit $ac_status )
39877ac_cv_func_getnameinfo_broken=yes
39878fi
39879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39880fi
39881fi
39882echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5
39883echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6
39884  if test "$ac_cv_func_getnameinfo_broken" = yes; then
39885	case $LIBOBJS in
39886    "getnameinfo.$ac_objext"   | \
39887  *" getnameinfo.$ac_objext"   | \
39888    "getnameinfo.$ac_objext "* | \
39889  *" getnameinfo.$ac_objext "* ) ;;
39890  *) LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" ;;
39891esac
39892
39893  fi
39894fi
39895
39896if test "$ac_cv_func_getaddrinfo" = "yes"; then
39897
39898echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5
39899echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6
39900if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then
39901  echo $ECHO_N "(cached) $ECHO_C" >&6
39902else
39903  if test "$cross_compiling" = yes; then
39904  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39905See \`config.log' for more details." >&5
39906echo "$as_me: error: cannot run test program while cross compiling
39907See \`config.log' for more details." >&2;}
39908   { (exit 1); exit 1; }; }
39909else
39910  cat >conftest.$ac_ext <<_ACEOF
39911/* confdefs.h.  */
39912_ACEOF
39913cat confdefs.h >>conftest.$ac_ext
39914cat >>conftest.$ac_ext <<_ACEOF
39915/* end confdefs.h.  */
39916#include <stdio.h>
39917#include <sys/types.h>
39918#include <sys/socket.h>
39919#include <netdb.h>
39920
39921int
39922main(int argc, char **argv)
39923{
39924	struct addrinfo hints, *ai;
39925	memset(&hints, 0, sizeof(hints));
39926	hints.ai_flags = AI_PASSIVE;
39927	hints.ai_socktype = SOCK_STREAM;
39928	hints.ai_family = PF_UNSPEC;
39929	if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
39930		return 1;
39931	return 0;
39932}
39933
39934_ACEOF
39935rm -f conftest$ac_exeext
39936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39937  (eval $ac_link) 2>&5
39938  ac_status=$?
39939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39942  (eval $ac_try) 2>&5
39943  ac_status=$?
39944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
39945  (exit $ac_status); }; }; then
39946  ac_cv_func_getaddrinfo_numserv=yes
39947else
39948  echo "$as_me: program exited with status $ac_status" >&5
39949echo "$as_me: failed program was:" >&5
39950sed 's/^/| /' conftest.$ac_ext >&5
39951
39952( exit $ac_status )
39953ac_cv_func_getaddrinfo_numserv=no
39954fi
39955rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39956fi
39957fi
39958echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5
39959echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6
39960  if test "$ac_cv_func_getaddrinfo_numserv" = no; then
39961	case $LIBOBJS in
39962    "getaddrinfo.$ac_objext"   | \
39963  *" getaddrinfo.$ac_objext"   | \
39964    "getaddrinfo.$ac_objext "* | \
39965  *" getaddrinfo.$ac_objext "* ) ;;
39966  *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" ;;
39967esac
39968
39969	case $LIBOBJS in
39970    "freeaddrinfo.$ac_objext"   | \
39971  *" freeaddrinfo.$ac_objext"   | \
39972    "freeaddrinfo.$ac_objext "* | \
39973  *" freeaddrinfo.$ac_objext "* ) ;;
39974  *) LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" ;;
39975esac
39976
39977  fi
39978fi
39979
39980
39981if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then
39982echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5
39983echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6
39984if test "${ac_cv_func_setenv_noproto+set}" = set; then
39985  echo $ECHO_N "(cached) $ECHO_C" >&6
39986else
39987  cat >conftest.$ac_ext <<_ACEOF
39988/* confdefs.h.  */
39989_ACEOF
39990cat confdefs.h >>conftest.$ac_ext
39991cat >>conftest.$ac_ext <<_ACEOF
39992/* end confdefs.h.  */
39993#include <stdlib.h>
39994int
39995main ()
39996{
39997struct foo { int foo; } xx;
39998extern int setenv (struct foo*);
39999setenv(&xx);
40000
40001  ;
40002  return 0;
40003}
40004_ACEOF
40005rm -f conftest.$ac_objext
40006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40007  (eval $ac_compile) 2>conftest.er1
40008  ac_status=$?
40009  grep -v '^ *+' conftest.er1 >conftest.err
40010  rm -f conftest.er1
40011  cat conftest.err >&5
40012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013  (exit $ac_status); } &&
40014	 { ac_try='test -z "$ac_c_werror_flag"
40015			 || test ! -s conftest.err'
40016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40017  (eval $ac_try) 2>&5
40018  ac_status=$?
40019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020  (exit $ac_status); }; } &&
40021	 { ac_try='test -s conftest.$ac_objext'
40022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40023  (eval $ac_try) 2>&5
40024  ac_status=$?
40025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026  (exit $ac_status); }; }; then
40027  eval "ac_cv_func_setenv_noproto=yes"
40028else
40029  echo "$as_me: failed program was:" >&5
40030sed 's/^/| /' conftest.$ac_ext >&5
40031
40032eval "ac_cv_func_setenv_noproto=no"
40033fi
40034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40035fi
40036echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5
40037echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6
40038if test "$ac_cv_func_setenv_noproto" = yes; then
40039
40040cat >>confdefs.h <<\_ACEOF
40041#define NEED_SETENV_PROTO 1
40042_ACEOF
40043
40044fi
40045fi
40046
40047
40048if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then
40049echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5
40050echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6
40051if test "${ac_cv_func_unsetenv_noproto+set}" = set; then
40052  echo $ECHO_N "(cached) $ECHO_C" >&6
40053else
40054  cat >conftest.$ac_ext <<_ACEOF
40055/* confdefs.h.  */
40056_ACEOF
40057cat confdefs.h >>conftest.$ac_ext
40058cat >>conftest.$ac_ext <<_ACEOF
40059/* end confdefs.h.  */
40060#include <stdlib.h>
40061int
40062main ()
40063{
40064struct foo { int foo; } xx;
40065extern int unsetenv (struct foo*);
40066unsetenv(&xx);
40067
40068  ;
40069  return 0;
40070}
40071_ACEOF
40072rm -f conftest.$ac_objext
40073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40074  (eval $ac_compile) 2>conftest.er1
40075  ac_status=$?
40076  grep -v '^ *+' conftest.er1 >conftest.err
40077  rm -f conftest.er1
40078  cat conftest.err >&5
40079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080  (exit $ac_status); } &&
40081	 { ac_try='test -z "$ac_c_werror_flag"
40082			 || test ! -s conftest.err'
40083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40084  (eval $ac_try) 2>&5
40085  ac_status=$?
40086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40087  (exit $ac_status); }; } &&
40088	 { ac_try='test -s conftest.$ac_objext'
40089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40090  (eval $ac_try) 2>&5
40091  ac_status=$?
40092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093  (exit $ac_status); }; }; then
40094  eval "ac_cv_func_unsetenv_noproto=yes"
40095else
40096  echo "$as_me: failed program was:" >&5
40097sed 's/^/| /' conftest.$ac_ext >&5
40098
40099eval "ac_cv_func_unsetenv_noproto=no"
40100fi
40101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40102fi
40103echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5
40104echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6
40105if test "$ac_cv_func_unsetenv_noproto" = yes; then
40106
40107cat >>confdefs.h <<\_ACEOF
40108#define NEED_UNSETENV_PROTO 1
40109_ACEOF
40110
40111fi
40112fi
40113
40114
40115if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then
40116echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5
40117echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6
40118if test "${ac_cv_func_gethostname_noproto+set}" = set; then
40119  echo $ECHO_N "(cached) $ECHO_C" >&6
40120else
40121  cat >conftest.$ac_ext <<_ACEOF
40122/* confdefs.h.  */
40123_ACEOF
40124cat confdefs.h >>conftest.$ac_ext
40125cat >>conftest.$ac_ext <<_ACEOF
40126/* end confdefs.h.  */
40127#include <unistd.h>
40128int
40129main ()
40130{
40131struct foo { int foo; } xx;
40132extern int gethostname (struct foo*);
40133gethostname(&xx);
40134
40135  ;
40136  return 0;
40137}
40138_ACEOF
40139rm -f conftest.$ac_objext
40140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40141  (eval $ac_compile) 2>conftest.er1
40142  ac_status=$?
40143  grep -v '^ *+' conftest.er1 >conftest.err
40144  rm -f conftest.er1
40145  cat conftest.err >&5
40146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147  (exit $ac_status); } &&
40148	 { ac_try='test -z "$ac_c_werror_flag"
40149			 || test ! -s conftest.err'
40150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40151  (eval $ac_try) 2>&5
40152  ac_status=$?
40153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154  (exit $ac_status); }; } &&
40155	 { ac_try='test -s conftest.$ac_objext'
40156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40157  (eval $ac_try) 2>&5
40158  ac_status=$?
40159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160  (exit $ac_status); }; }; then
40161  eval "ac_cv_func_gethostname_noproto=yes"
40162else
40163  echo "$as_me: failed program was:" >&5
40164sed 's/^/| /' conftest.$ac_ext >&5
40165
40166eval "ac_cv_func_gethostname_noproto=no"
40167fi
40168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40169fi
40170echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5
40171echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6
40172if test "$ac_cv_func_gethostname_noproto" = yes; then
40173
40174cat >>confdefs.h <<\_ACEOF
40175#define NEED_GETHOSTNAME_PROTO 1
40176_ACEOF
40177
40178fi
40179fi
40180
40181
40182if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then
40183echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5
40184echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6
40185if test "${ac_cv_func_mkstemp_noproto+set}" = set; then
40186  echo $ECHO_N "(cached) $ECHO_C" >&6
40187else
40188  cat >conftest.$ac_ext <<_ACEOF
40189/* confdefs.h.  */
40190_ACEOF
40191cat confdefs.h >>conftest.$ac_ext
40192cat >>conftest.$ac_ext <<_ACEOF
40193/* end confdefs.h.  */
40194#include <unistd.h>
40195int
40196main ()
40197{
40198struct foo { int foo; } xx;
40199extern int mkstemp (struct foo*);
40200mkstemp(&xx);
40201
40202  ;
40203  return 0;
40204}
40205_ACEOF
40206rm -f conftest.$ac_objext
40207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40208  (eval $ac_compile) 2>conftest.er1
40209  ac_status=$?
40210  grep -v '^ *+' conftest.er1 >conftest.err
40211  rm -f conftest.er1
40212  cat conftest.err >&5
40213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214  (exit $ac_status); } &&
40215	 { ac_try='test -z "$ac_c_werror_flag"
40216			 || test ! -s conftest.err'
40217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40218  (eval $ac_try) 2>&5
40219  ac_status=$?
40220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221  (exit $ac_status); }; } &&
40222	 { ac_try='test -s conftest.$ac_objext'
40223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40224  (eval $ac_try) 2>&5
40225  ac_status=$?
40226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40227  (exit $ac_status); }; }; then
40228  eval "ac_cv_func_mkstemp_noproto=yes"
40229else
40230  echo "$as_me: failed program was:" >&5
40231sed 's/^/| /' conftest.$ac_ext >&5
40232
40233eval "ac_cv_func_mkstemp_noproto=no"
40234fi
40235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40236fi
40237echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5
40238echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6
40239if test "$ac_cv_func_mkstemp_noproto" = yes; then
40240
40241cat >>confdefs.h <<\_ACEOF
40242#define NEED_MKSTEMP_PROTO 1
40243_ACEOF
40244
40245fi
40246fi
40247
40248
40249if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then
40250echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5
40251echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6
40252if test "${ac_cv_func_getusershell_noproto+set}" = set; then
40253  echo $ECHO_N "(cached) $ECHO_C" >&6
40254else
40255  cat >conftest.$ac_ext <<_ACEOF
40256/* confdefs.h.  */
40257_ACEOF
40258cat confdefs.h >>conftest.$ac_ext
40259cat >>conftest.$ac_ext <<_ACEOF
40260/* end confdefs.h.  */
40261#include <unistd.h>
40262int
40263main ()
40264{
40265struct foo { int foo; } xx;
40266extern int getusershell (struct foo*);
40267getusershell(&xx);
40268
40269  ;
40270  return 0;
40271}
40272_ACEOF
40273rm -f conftest.$ac_objext
40274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40275  (eval $ac_compile) 2>conftest.er1
40276  ac_status=$?
40277  grep -v '^ *+' conftest.er1 >conftest.err
40278  rm -f conftest.er1
40279  cat conftest.err >&5
40280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281  (exit $ac_status); } &&
40282	 { ac_try='test -z "$ac_c_werror_flag"
40283			 || test ! -s conftest.err'
40284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40285  (eval $ac_try) 2>&5
40286  ac_status=$?
40287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40288  (exit $ac_status); }; } &&
40289	 { ac_try='test -s conftest.$ac_objext'
40290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40291  (eval $ac_try) 2>&5
40292  ac_status=$?
40293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40294  (exit $ac_status); }; }; then
40295  eval "ac_cv_func_getusershell_noproto=yes"
40296else
40297  echo "$as_me: failed program was:" >&5
40298sed 's/^/| /' conftest.$ac_ext >&5
40299
40300eval "ac_cv_func_getusershell_noproto=no"
40301fi
40302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40303fi
40304echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5
40305echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6
40306if test "$ac_cv_func_getusershell_noproto" = yes; then
40307
40308cat >>confdefs.h <<\_ACEOF
40309#define NEED_GETUSERSHELL_PROTO 1
40310_ACEOF
40311
40312fi
40313fi
40314
40315
40316
40317if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then
40318echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5
40319echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6
40320if test "${ac_cv_func_inet_aton_noproto+set}" = set; then
40321  echo $ECHO_N "(cached) $ECHO_C" >&6
40322else
40323  cat >conftest.$ac_ext <<_ACEOF
40324/* confdefs.h.  */
40325_ACEOF
40326cat confdefs.h >>conftest.$ac_ext
40327cat >>conftest.$ac_ext <<_ACEOF
40328/* end confdefs.h.  */
40329
40330#ifdef HAVE_SYS_TYPES_H
40331#include <sys/types.h>
40332#endif
40333#ifdef HAVE_SYS_SOCKET_H
40334#include <sys/socket.h>
40335#endif
40336#ifdef HAVE_NETINET_IN_H
40337#include <netinet/in.h>
40338#endif
40339#ifdef HAVE_ARPA_INET_H
40340#include <arpa/inet.h>
40341#endif
40342int
40343main ()
40344{
40345struct foo { int foo; } xx;
40346extern int inet_aton (struct foo*);
40347inet_aton(&xx);
40348
40349  ;
40350  return 0;
40351}
40352_ACEOF
40353rm -f conftest.$ac_objext
40354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40355  (eval $ac_compile) 2>conftest.er1
40356  ac_status=$?
40357  grep -v '^ *+' conftest.er1 >conftest.err
40358  rm -f conftest.er1
40359  cat conftest.err >&5
40360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40361  (exit $ac_status); } &&
40362	 { ac_try='test -z "$ac_c_werror_flag"
40363			 || test ! -s conftest.err'
40364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40365  (eval $ac_try) 2>&5
40366  ac_status=$?
40367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368  (exit $ac_status); }; } &&
40369	 { ac_try='test -s conftest.$ac_objext'
40370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40371  (eval $ac_try) 2>&5
40372  ac_status=$?
40373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40374  (exit $ac_status); }; }; then
40375  eval "ac_cv_func_inet_aton_noproto=yes"
40376else
40377  echo "$as_me: failed program was:" >&5
40378sed 's/^/| /' conftest.$ac_ext >&5
40379
40380eval "ac_cv_func_inet_aton_noproto=no"
40381fi
40382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40383fi
40384echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5
40385echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6
40386if test "$ac_cv_func_inet_aton_noproto" = yes; then
40387
40388cat >>confdefs.h <<\_ACEOF
40389#define NEED_INET_ATON_PROTO 1
40390_ACEOF
40391
40392fi
40393fi
40394
40395
40396
40397
40398
40399echo "$as_me:$LINENO: checking for crypt" >&5
40400echo $ECHO_N "checking for crypt... $ECHO_C" >&6
40401if test "${ac_cv_funclib_crypt+set}" = set; then
40402  echo $ECHO_N "(cached) $ECHO_C" >&6
40403else
40404
40405if eval "test \"\$ac_cv_func_crypt\" != yes" ; then
40406	ac_save_LIBS="$LIBS"
40407	for ac_lib in "" crypt; do
40408		case "$ac_lib" in
40409		"") ;;
40410		yes) ac_lib="" ;;
40411		no) continue ;;
40412		-l*) ;;
40413		*) ac_lib="-l$ac_lib" ;;
40414		esac
40415		LIBS=" $ac_lib  $ac_save_LIBS"
40416		cat >conftest.$ac_ext <<_ACEOF
40417/* confdefs.h.  */
40418_ACEOF
40419cat confdefs.h >>conftest.$ac_ext
40420cat >>conftest.$ac_ext <<_ACEOF
40421/* end confdefs.h.  */
40422
40423int
40424main ()
40425{
40426crypt()
40427  ;
40428  return 0;
40429}
40430_ACEOF
40431rm -f conftest.$ac_objext conftest$ac_exeext
40432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40433  (eval $ac_link) 2>conftest.er1
40434  ac_status=$?
40435  grep -v '^ *+' conftest.er1 >conftest.err
40436  rm -f conftest.er1
40437  cat conftest.err >&5
40438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40439  (exit $ac_status); } &&
40440	 { ac_try='test -z "$ac_c_werror_flag"
40441			 || test ! -s conftest.err'
40442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40443  (eval $ac_try) 2>&5
40444  ac_status=$?
40445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40446  (exit $ac_status); }; } &&
40447	 { ac_try='test -s conftest$ac_exeext'
40448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40449  (eval $ac_try) 2>&5
40450  ac_status=$?
40451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40452  (exit $ac_status); }; }; then
40453  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
40454else
40455  echo "$as_me: failed program was:" >&5
40456sed 's/^/| /' conftest.$ac_ext >&5
40457
40458fi
40459rm -f conftest.err conftest.$ac_objext \
40460      conftest$ac_exeext conftest.$ac_ext
40461	done
40462	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
40463	LIBS="$ac_save_LIBS"
40464fi
40465
40466fi
40467
40468
40469eval "ac_res=\$ac_cv_funclib_crypt"
40470
40471if false; then
40472
40473for ac_func in crypt
40474do
40475as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40476echo "$as_me:$LINENO: checking for $ac_func" >&5
40477echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40478if eval "test \"\${$as_ac_var+set}\" = set"; then
40479  echo $ECHO_N "(cached) $ECHO_C" >&6
40480else
40481  cat >conftest.$ac_ext <<_ACEOF
40482/* confdefs.h.  */
40483_ACEOF
40484cat confdefs.h >>conftest.$ac_ext
40485cat >>conftest.$ac_ext <<_ACEOF
40486/* end confdefs.h.  */
40487/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40488   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40489#define $ac_func innocuous_$ac_func
40490
40491/* System header to define __stub macros and hopefully few prototypes,
40492    which can conflict with char $ac_func (); below.
40493    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40494    <limits.h> exists even on freestanding compilers.  */
40495
40496#ifdef __STDC__
40497# include <limits.h>
40498#else
40499# include <assert.h>
40500#endif
40501
40502#undef $ac_func
40503
40504/* Override any gcc2 internal prototype to avoid an error.  */
40505#ifdef __cplusplus
40506extern "C"
40507{
40508#endif
40509/* We use char because int might match the return type of a gcc2
40510   builtin and then its argument prototype would still apply.  */
40511char $ac_func ();
40512/* The GNU C library defines this for functions which it implements
40513    to always fail with ENOSYS.  Some functions are actually named
40514    something starting with __ and the normal name is an alias.  */
40515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40516choke me
40517#else
40518char (*f) () = $ac_func;
40519#endif
40520#ifdef __cplusplus
40521}
40522#endif
40523
40524int
40525main ()
40526{
40527return f != $ac_func;
40528  ;
40529  return 0;
40530}
40531_ACEOF
40532rm -f conftest.$ac_objext conftest$ac_exeext
40533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40534  (eval $ac_link) 2>conftest.er1
40535  ac_status=$?
40536  grep -v '^ *+' conftest.er1 >conftest.err
40537  rm -f conftest.er1
40538  cat conftest.err >&5
40539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40540  (exit $ac_status); } &&
40541	 { ac_try='test -z "$ac_c_werror_flag"
40542			 || test ! -s conftest.err'
40543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40544  (eval $ac_try) 2>&5
40545  ac_status=$?
40546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547  (exit $ac_status); }; } &&
40548	 { ac_try='test -s conftest$ac_exeext'
40549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40550  (eval $ac_try) 2>&5
40551  ac_status=$?
40552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40553  (exit $ac_status); }; }; then
40554  eval "$as_ac_var=yes"
40555else
40556  echo "$as_me: failed program was:" >&5
40557sed 's/^/| /' conftest.$ac_ext >&5
40558
40559eval "$as_ac_var=no"
40560fi
40561rm -f conftest.err conftest.$ac_objext \
40562      conftest$ac_exeext conftest.$ac_ext
40563fi
40564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40565echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40566if test `eval echo '${'$as_ac_var'}'` = yes; then
40567  cat >>confdefs.h <<_ACEOF
40568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40569_ACEOF
40570
40571fi
40572done
40573
40574fi
40575# crypt
40576eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40577eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
40578eval "LIB_crypt=$ac_res"
40579
40580case "$ac_res" in
40581	yes)
40582	eval "ac_cv_func_crypt=yes"
40583	eval "LIB_crypt="
40584	cat >>confdefs.h <<_ACEOF
40585#define $ac_tr_func 1
40586_ACEOF
40587
40588	echo "$as_me:$LINENO: result: yes" >&5
40589echo "${ECHO_T}yes" >&6
40590	;;
40591	no)
40592	eval "ac_cv_func_crypt=no"
40593	eval "LIB_crypt="
40594	echo "$as_me:$LINENO: result: no" >&5
40595echo "${ECHO_T}no" >&6
40596	;;
40597	*)
40598	eval "ac_cv_func_crypt=yes"
40599	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
40600	cat >>confdefs.h <<_ACEOF
40601#define $ac_tr_func 1
40602_ACEOF
40603
40604	cat >>confdefs.h <<_ACEOF
40605#define $ac_tr_lib 1
40606_ACEOF
40607
40608	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
40609echo "${ECHO_T}yes, in $ac_res" >&6
40610	;;
40611esac
40612
40613
40614
40615
40616
40617
40618echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5
40619echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6
40620if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then
40621  echo $ECHO_N "(cached) $ECHO_C" >&6
40622else
40623  cat >conftest.$ac_ext <<_ACEOF
40624/* confdefs.h.  */
40625_ACEOF
40626cat confdefs.h >>conftest.$ac_ext
40627cat >>conftest.$ac_ext <<_ACEOF
40628/* end confdefs.h.  */
40629
40630#ifdef HAVE_SYS_TYPES_H
40631#include <sys/types.h>
40632#endif
40633#ifdef HAVE_SYS_SOCKET_H
40634#include <sys/socket.h>
40635#endif
40636#ifdef HAVE_NETINET_IN_H
40637#include <netinet/in.h>
40638#endif
40639#ifdef HAVE_ARPA_INET_H
40640#include <arpa/inet.h>
40641#endif
40642#ifdef HAVE_NETDB_H
40643#include <netdb.h>
40644#endif
40645
40646int
40647main ()
40648{
40649struct hostent *gethostbyname(const char *);
40650  ;
40651  return 0;
40652}
40653_ACEOF
40654rm -f conftest.$ac_objext
40655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40656  (eval $ac_compile) 2>conftest.er1
40657  ac_status=$?
40658  grep -v '^ *+' conftest.er1 >conftest.err
40659  rm -f conftest.er1
40660  cat conftest.err >&5
40661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40662  (exit $ac_status); } &&
40663	 { ac_try='test -z "$ac_c_werror_flag"
40664			 || test ! -s conftest.err'
40665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40666  (eval $ac_try) 2>&5
40667  ac_status=$?
40668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669  (exit $ac_status); }; } &&
40670	 { ac_try='test -s conftest.$ac_objext'
40671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40672  (eval $ac_try) 2>&5
40673  ac_status=$?
40674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40675  (exit $ac_status); }; }; then
40676  eval "ac_cv_func_gethostbyname_proto_compat=yes"
40677else
40678  echo "$as_me: failed program was:" >&5
40679sed 's/^/| /' conftest.$ac_ext >&5
40680
40681eval "ac_cv_func_gethostbyname_proto_compat=no"
40682fi
40683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40684fi
40685echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5
40686echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6
40687
40688if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
40689
40690cat >>confdefs.h <<\_ACEOF
40691#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
40692_ACEOF
40693
40694fi
40695
40696
40697
40698
40699echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5
40700echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6
40701if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then
40702  echo $ECHO_N "(cached) $ECHO_C" >&6
40703else
40704  cat >conftest.$ac_ext <<_ACEOF
40705/* confdefs.h.  */
40706_ACEOF
40707cat confdefs.h >>conftest.$ac_ext
40708cat >>conftest.$ac_ext <<_ACEOF
40709/* end confdefs.h.  */
40710
40711#ifdef HAVE_SYS_TYPES_H
40712#include <sys/types.h>
40713#endif
40714#ifdef HAVE_SYS_SOCKET_H
40715#include <sys/socket.h>
40716#endif
40717#ifdef HAVE_NETINET_IN_H
40718#include <netinet/in.h>
40719#endif
40720#ifdef HAVE_ARPA_INET_H
40721#include <arpa/inet.h>
40722#endif
40723#ifdef HAVE_NETDB_H
40724#include <netdb.h>
40725#endif
40726
40727int
40728main ()
40729{
40730struct hostent *gethostbyaddr(const void *, size_t, int);
40731  ;
40732  return 0;
40733}
40734_ACEOF
40735rm -f conftest.$ac_objext
40736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40737  (eval $ac_compile) 2>conftest.er1
40738  ac_status=$?
40739  grep -v '^ *+' conftest.er1 >conftest.err
40740  rm -f conftest.er1
40741  cat conftest.err >&5
40742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743  (exit $ac_status); } &&
40744	 { ac_try='test -z "$ac_c_werror_flag"
40745			 || test ! -s conftest.err'
40746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40747  (eval $ac_try) 2>&5
40748  ac_status=$?
40749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40750  (exit $ac_status); }; } &&
40751	 { ac_try='test -s conftest.$ac_objext'
40752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40753  (eval $ac_try) 2>&5
40754  ac_status=$?
40755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40756  (exit $ac_status); }; }; then
40757  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
40758else
40759  echo "$as_me: failed program was:" >&5
40760sed 's/^/| /' conftest.$ac_ext >&5
40761
40762eval "ac_cv_func_gethostbyaddr_proto_compat=no"
40763fi
40764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40765fi
40766echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5
40767echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6
40768
40769if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
40770
40771cat >>confdefs.h <<\_ACEOF
40772#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
40773_ACEOF
40774
40775fi
40776
40777
40778
40779
40780echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5
40781echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6
40782if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then
40783  echo $ECHO_N "(cached) $ECHO_C" >&6
40784else
40785  cat >conftest.$ac_ext <<_ACEOF
40786/* confdefs.h.  */
40787_ACEOF
40788cat confdefs.h >>conftest.$ac_ext
40789cat >>conftest.$ac_ext <<_ACEOF
40790/* end confdefs.h.  */
40791
40792#ifdef HAVE_SYS_TYPES_H
40793#include <sys/types.h>
40794#endif
40795#ifdef HAVE_SYS_SOCKET_H
40796#include <sys/socket.h>
40797#endif
40798#ifdef HAVE_NETINET_IN_H
40799#include <netinet/in.h>
40800#endif
40801#ifdef HAVE_ARPA_INET_H
40802#include <arpa/inet.h>
40803#endif
40804#ifdef HAVE_NETDB_H
40805#include <netdb.h>
40806#endif
40807
40808int
40809main ()
40810{
40811struct servent *getservbyname(const char *, const char *);
40812  ;
40813  return 0;
40814}
40815_ACEOF
40816rm -f conftest.$ac_objext
40817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40818  (eval $ac_compile) 2>conftest.er1
40819  ac_status=$?
40820  grep -v '^ *+' conftest.er1 >conftest.err
40821  rm -f conftest.er1
40822  cat conftest.err >&5
40823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824  (exit $ac_status); } &&
40825	 { ac_try='test -z "$ac_c_werror_flag"
40826			 || test ! -s conftest.err'
40827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40828  (eval $ac_try) 2>&5
40829  ac_status=$?
40830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831  (exit $ac_status); }; } &&
40832	 { ac_try='test -s conftest.$ac_objext'
40833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40834  (eval $ac_try) 2>&5
40835  ac_status=$?
40836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837  (exit $ac_status); }; }; then
40838  eval "ac_cv_func_getservbyname_proto_compat=yes"
40839else
40840  echo "$as_me: failed program was:" >&5
40841sed 's/^/| /' conftest.$ac_ext >&5
40842
40843eval "ac_cv_func_getservbyname_proto_compat=no"
40844fi
40845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40846fi
40847echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5
40848echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6
40849
40850if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
40851
40852cat >>confdefs.h <<\_ACEOF
40853#define GETSERVBYNAME_PROTO_COMPATIBLE 1
40854_ACEOF
40855
40856fi
40857
40858
40859
40860
40861echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5
40862echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6
40863if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then
40864  echo $ECHO_N "(cached) $ECHO_C" >&6
40865else
40866  cat >conftest.$ac_ext <<_ACEOF
40867/* confdefs.h.  */
40868_ACEOF
40869cat confdefs.h >>conftest.$ac_ext
40870cat >>conftest.$ac_ext <<_ACEOF
40871/* end confdefs.h.  */
40872
40873#ifdef HAVE_SYS_TYPES_H
40874#include <sys/types.h>
40875#endif
40876#ifdef HAVE_SYS_SOCKET_H
40877#include <sys/socket.h>
40878#endif
40879
40880int
40881main ()
40882{
40883int getsockname(int, struct sockaddr*, socklen_t*);
40884  ;
40885  return 0;
40886}
40887_ACEOF
40888rm -f conftest.$ac_objext
40889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40890  (eval $ac_compile) 2>conftest.er1
40891  ac_status=$?
40892  grep -v '^ *+' conftest.er1 >conftest.err
40893  rm -f conftest.er1
40894  cat conftest.err >&5
40895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896  (exit $ac_status); } &&
40897	 { ac_try='test -z "$ac_c_werror_flag"
40898			 || test ! -s conftest.err'
40899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900  (eval $ac_try) 2>&5
40901  ac_status=$?
40902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903  (exit $ac_status); }; } &&
40904	 { ac_try='test -s conftest.$ac_objext'
40905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40906  (eval $ac_try) 2>&5
40907  ac_status=$?
40908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40909  (exit $ac_status); }; }; then
40910  eval "ac_cv_func_getsockname_proto_compat=yes"
40911else
40912  echo "$as_me: failed program was:" >&5
40913sed 's/^/| /' conftest.$ac_ext >&5
40914
40915eval "ac_cv_func_getsockname_proto_compat=no"
40916fi
40917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40918fi
40919echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5
40920echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6
40921
40922if test "$ac_cv_func_getsockname_proto_compat" = yes; then
40923
40924cat >>confdefs.h <<\_ACEOF
40925#define GETSOCKNAME_PROTO_COMPATIBLE 1
40926_ACEOF
40927
40928fi
40929
40930
40931
40932
40933echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5
40934echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6
40935if test "${ac_cv_func_openlog_proto_compat+set}" = set; then
40936  echo $ECHO_N "(cached) $ECHO_C" >&6
40937else
40938  cat >conftest.$ac_ext <<_ACEOF
40939/* confdefs.h.  */
40940_ACEOF
40941cat confdefs.h >>conftest.$ac_ext
40942cat >>conftest.$ac_ext <<_ACEOF
40943/* end confdefs.h.  */
40944
40945#ifdef HAVE_SYSLOG_H
40946#include <syslog.h>
40947#endif
40948
40949int
40950main ()
40951{
40952void openlog(const char *, int, int);
40953  ;
40954  return 0;
40955}
40956_ACEOF
40957rm -f conftest.$ac_objext
40958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40959  (eval $ac_compile) 2>conftest.er1
40960  ac_status=$?
40961  grep -v '^ *+' conftest.er1 >conftest.err
40962  rm -f conftest.er1
40963  cat conftest.err >&5
40964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965  (exit $ac_status); } &&
40966	 { ac_try='test -z "$ac_c_werror_flag"
40967			 || test ! -s conftest.err'
40968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40969  (eval $ac_try) 2>&5
40970  ac_status=$?
40971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972  (exit $ac_status); }; } &&
40973	 { ac_try='test -s conftest.$ac_objext'
40974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40975  (eval $ac_try) 2>&5
40976  ac_status=$?
40977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
40978  (exit $ac_status); }; }; then
40979  eval "ac_cv_func_openlog_proto_compat=yes"
40980else
40981  echo "$as_me: failed program was:" >&5
40982sed 's/^/| /' conftest.$ac_ext >&5
40983
40984eval "ac_cv_func_openlog_proto_compat=no"
40985fi
40986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40987fi
40988echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5
40989echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6
40990
40991if test "$ac_cv_func_openlog_proto_compat" = yes; then
40992
40993cat >>confdefs.h <<\_ACEOF
40994#define OPENLOG_PROTO_COMPATIBLE 1
40995_ACEOF
40996
40997fi
40998
40999
41000
41001
41002if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then
41003echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5
41004echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6
41005if test "${ac_cv_func_crypt_noproto+set}" = set; then
41006  echo $ECHO_N "(cached) $ECHO_C" >&6
41007else
41008  cat >conftest.$ac_ext <<_ACEOF
41009/* confdefs.h.  */
41010_ACEOF
41011cat confdefs.h >>conftest.$ac_ext
41012cat >>conftest.$ac_ext <<_ACEOF
41013/* end confdefs.h.  */
41014
41015#ifdef HAVE_CRYPT_H
41016#include <crypt.h>
41017#endif
41018#ifdef HAVE_UNISTD_H
41019#include <unistd.h>
41020#endif
41021
41022int
41023main ()
41024{
41025struct foo { int foo; } xx;
41026extern int crypt (struct foo*);
41027crypt(&xx);
41028
41029  ;
41030  return 0;
41031}
41032_ACEOF
41033rm -f conftest.$ac_objext
41034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41035  (eval $ac_compile) 2>conftest.er1
41036  ac_status=$?
41037  grep -v '^ *+' conftest.er1 >conftest.err
41038  rm -f conftest.er1
41039  cat conftest.err >&5
41040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041  (exit $ac_status); } &&
41042	 { ac_try='test -z "$ac_c_werror_flag"
41043			 || test ! -s conftest.err'
41044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41045  (eval $ac_try) 2>&5
41046  ac_status=$?
41047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048  (exit $ac_status); }; } &&
41049	 { ac_try='test -s conftest.$ac_objext'
41050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41051  (eval $ac_try) 2>&5
41052  ac_status=$?
41053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41054  (exit $ac_status); }; }; then
41055  eval "ac_cv_func_crypt_noproto=yes"
41056else
41057  echo "$as_me: failed program was:" >&5
41058sed 's/^/| /' conftest.$ac_ext >&5
41059
41060eval "ac_cv_func_crypt_noproto=no"
41061fi
41062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41063fi
41064echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5
41065echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6
41066if test "$ac_cv_func_crypt_noproto" = yes; then
41067
41068cat >>confdefs.h <<\_ACEOF
41069#define NEED_CRYPT_PROTO 1
41070_ACEOF
41071
41072fi
41073fi
41074
41075
41076
41077
41078echo "$as_me:$LINENO: checking for h_errno" >&5
41079echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
41080if test "${ac_cv_var_h_errno+set}" = set; then
41081  echo $ECHO_N "(cached) $ECHO_C" >&6
41082else
41083
41084
41085	cat >conftest.$ac_ext <<_ACEOF
41086/* confdefs.h.  */
41087_ACEOF
41088cat confdefs.h >>conftest.$ac_ext
41089cat >>conftest.$ac_ext <<_ACEOF
41090/* end confdefs.h.  */
41091#ifdef HAVE_SYS_TYPES_H
41092#include <sys/types.h>
41093#endif
41094#ifdef HAVE_NETDB_H
41095#include <netdb.h>
41096#endif
41097	void * foo() { return &h_errno; }
41098int
41099main ()
41100{
41101foo()
41102  ;
41103  return 0;
41104}
41105_ACEOF
41106rm -f conftest.$ac_objext conftest$ac_exeext
41107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41108  (eval $ac_link) 2>conftest.er1
41109  ac_status=$?
41110  grep -v '^ *+' conftest.er1 >conftest.err
41111  rm -f conftest.er1
41112  cat conftest.err >&5
41113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41114  (exit $ac_status); } &&
41115	 { ac_try='test -z "$ac_c_werror_flag"
41116			 || test ! -s conftest.err'
41117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41118  (eval $ac_try) 2>&5
41119  ac_status=$?
41120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121  (exit $ac_status); }; } &&
41122	 { ac_try='test -s conftest$ac_exeext'
41123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41124  (eval $ac_try) 2>&5
41125  ac_status=$?
41126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127  (exit $ac_status); }; }; then
41128  ac_cv_var_h_errno=yes
41129else
41130  echo "$as_me: failed program was:" >&5
41131sed 's/^/| /' conftest.$ac_ext >&5
41132
41133ac_cv_var_h_errno=no
41134fi
41135rm -f conftest.err conftest.$ac_objext \
41136      conftest$ac_exeext conftest.$ac_ext
41137if test "$ac_cv_var_h_errno" != yes ; then
41138cat >conftest.$ac_ext <<_ACEOF
41139/* confdefs.h.  */
41140_ACEOF
41141cat confdefs.h >>conftest.$ac_ext
41142cat >>conftest.$ac_ext <<_ACEOF
41143/* end confdefs.h.  */
41144extern int h_errno;
41145int foo() { return h_errno; }
41146int
41147main ()
41148{
41149foo()
41150  ;
41151  return 0;
41152}
41153_ACEOF
41154rm -f conftest.$ac_objext conftest$ac_exeext
41155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41156  (eval $ac_link) 2>conftest.er1
41157  ac_status=$?
41158  grep -v '^ *+' conftest.er1 >conftest.err
41159  rm -f conftest.er1
41160  cat conftest.err >&5
41161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41162  (exit $ac_status); } &&
41163	 { ac_try='test -z "$ac_c_werror_flag"
41164			 || test ! -s conftest.err'
41165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41166  (eval $ac_try) 2>&5
41167  ac_status=$?
41168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41169  (exit $ac_status); }; } &&
41170	 { ac_try='test -s conftest$ac_exeext'
41171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41172  (eval $ac_try) 2>&5
41173  ac_status=$?
41174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41175  (exit $ac_status); }; }; then
41176  ac_cv_var_h_errno=yes
41177else
41178  echo "$as_me: failed program was:" >&5
41179sed 's/^/| /' conftest.$ac_ext >&5
41180
41181ac_cv_var_h_errno=no
41182fi
41183rm -f conftest.err conftest.$ac_objext \
41184      conftest$ac_exeext conftest.$ac_ext
41185fi
41186
41187fi
41188
41189ac_foo=`eval echo \\$ac_cv_var_h_errno`
41190echo "$as_me:$LINENO: result: $ac_foo" >&5
41191echo "${ECHO_T}$ac_foo" >&6
41192if test "$ac_foo" = yes; then
41193
41194cat >>confdefs.h <<_ACEOF
41195#define HAVE_H_ERRNO 1
41196_ACEOF
41197
41198
41199echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5
41200echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6
41201if test "${ac_cv_var_h_errno_declaration+set}" = set; then
41202  echo $ECHO_N "(cached) $ECHO_C" >&6
41203else
41204
41205cat >conftest.$ac_ext <<_ACEOF
41206/* confdefs.h.  */
41207_ACEOF
41208cat confdefs.h >>conftest.$ac_ext
41209cat >>conftest.$ac_ext <<_ACEOF
41210/* end confdefs.h.  */
41211#ifdef HAVE_SYS_TYPES_H
41212#include <sys/types.h>
41213#endif
41214#ifdef HAVE_NETDB_H
41215#include <netdb.h>
41216#endif
41217extern struct { int foo; } h_errno;
41218int
41219main ()
41220{
41221h_errno.foo = 1;
41222  ;
41223  return 0;
41224}
41225_ACEOF
41226rm -f conftest.$ac_objext
41227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41228  (eval $ac_compile) 2>conftest.er1
41229  ac_status=$?
41230  grep -v '^ *+' conftest.er1 >conftest.err
41231  rm -f conftest.er1
41232  cat conftest.err >&5
41233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234  (exit $ac_status); } &&
41235	 { ac_try='test -z "$ac_c_werror_flag"
41236			 || test ! -s conftest.err'
41237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41238  (eval $ac_try) 2>&5
41239  ac_status=$?
41240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41241  (exit $ac_status); }; } &&
41242	 { ac_try='test -s conftest.$ac_objext'
41243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41244  (eval $ac_try) 2>&5
41245  ac_status=$?
41246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247  (exit $ac_status); }; }; then
41248  eval "ac_cv_var_h_errno_declaration=no"
41249else
41250  echo "$as_me: failed program was:" >&5
41251sed 's/^/| /' conftest.$ac_ext >&5
41252
41253eval "ac_cv_var_h_errno_declaration=yes"
41254fi
41255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41256
41257fi
41258
41259
41260
41261
41262echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5
41263echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6
41264if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then
41265
41266cat >>confdefs.h <<\_ACEOF
41267#define HAVE_H_ERRNO_DECLARATION 1
41268_ACEOF
41269
41270fi
41271
41272
41273fi
41274
41275
41276
41277echo "$as_me:$LINENO: checking for h_errlist" >&5
41278echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6
41279if test "${ac_cv_var_h_errlist+set}" = set; then
41280  echo $ECHO_N "(cached) $ECHO_C" >&6
41281else
41282
41283
41284	cat >conftest.$ac_ext <<_ACEOF
41285/* confdefs.h.  */
41286_ACEOF
41287cat confdefs.h >>conftest.$ac_ext
41288cat >>conftest.$ac_ext <<_ACEOF
41289/* end confdefs.h.  */
41290#ifdef HAVE_NETDB_H
41291#include <netdb.h>
41292#endif
41293	void * foo() { return &h_errlist; }
41294int
41295main ()
41296{
41297foo()
41298  ;
41299  return 0;
41300}
41301_ACEOF
41302rm -f conftest.$ac_objext conftest$ac_exeext
41303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41304  (eval $ac_link) 2>conftest.er1
41305  ac_status=$?
41306  grep -v '^ *+' conftest.er1 >conftest.err
41307  rm -f conftest.er1
41308  cat conftest.err >&5
41309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41310  (exit $ac_status); } &&
41311	 { ac_try='test -z "$ac_c_werror_flag"
41312			 || test ! -s conftest.err'
41313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41314  (eval $ac_try) 2>&5
41315  ac_status=$?
41316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41317  (exit $ac_status); }; } &&
41318	 { ac_try='test -s conftest$ac_exeext'
41319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41320  (eval $ac_try) 2>&5
41321  ac_status=$?
41322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323  (exit $ac_status); }; }; then
41324  ac_cv_var_h_errlist=yes
41325else
41326  echo "$as_me: failed program was:" >&5
41327sed 's/^/| /' conftest.$ac_ext >&5
41328
41329ac_cv_var_h_errlist=no
41330fi
41331rm -f conftest.err conftest.$ac_objext \
41332      conftest$ac_exeext conftest.$ac_ext
41333if test "$ac_cv_var_h_errlist" != yes ; then
41334cat >conftest.$ac_ext <<_ACEOF
41335/* confdefs.h.  */
41336_ACEOF
41337cat confdefs.h >>conftest.$ac_ext
41338cat >>conftest.$ac_ext <<_ACEOF
41339/* end confdefs.h.  */
41340extern int h_errlist;
41341int foo() { return h_errlist; }
41342int
41343main ()
41344{
41345foo()
41346  ;
41347  return 0;
41348}
41349_ACEOF
41350rm -f conftest.$ac_objext conftest$ac_exeext
41351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41352  (eval $ac_link) 2>conftest.er1
41353  ac_status=$?
41354  grep -v '^ *+' conftest.er1 >conftest.err
41355  rm -f conftest.er1
41356  cat conftest.err >&5
41357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41358  (exit $ac_status); } &&
41359	 { ac_try='test -z "$ac_c_werror_flag"
41360			 || test ! -s conftest.err'
41361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362  (eval $ac_try) 2>&5
41363  ac_status=$?
41364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365  (exit $ac_status); }; } &&
41366	 { ac_try='test -s conftest$ac_exeext'
41367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368  (eval $ac_try) 2>&5
41369  ac_status=$?
41370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371  (exit $ac_status); }; }; then
41372  ac_cv_var_h_errlist=yes
41373else
41374  echo "$as_me: failed program was:" >&5
41375sed 's/^/| /' conftest.$ac_ext >&5
41376
41377ac_cv_var_h_errlist=no
41378fi
41379rm -f conftest.err conftest.$ac_objext \
41380      conftest$ac_exeext conftest.$ac_ext
41381fi
41382
41383fi
41384
41385ac_foo=`eval echo \\$ac_cv_var_h_errlist`
41386echo "$as_me:$LINENO: result: $ac_foo" >&5
41387echo "${ECHO_T}$ac_foo" >&6
41388if test "$ac_foo" = yes; then
41389
41390cat >>confdefs.h <<_ACEOF
41391#define HAVE_H_ERRLIST 1
41392_ACEOF
41393
41394
41395echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5
41396echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6
41397if test "${ac_cv_var_h_errlist_declaration+set}" = set; then
41398  echo $ECHO_N "(cached) $ECHO_C" >&6
41399else
41400
41401cat >conftest.$ac_ext <<_ACEOF
41402/* confdefs.h.  */
41403_ACEOF
41404cat confdefs.h >>conftest.$ac_ext
41405cat >>conftest.$ac_ext <<_ACEOF
41406/* end confdefs.h.  */
41407#ifdef HAVE_NETDB_H
41408#include <netdb.h>
41409#endif
41410extern struct { int foo; } h_errlist;
41411int
41412main ()
41413{
41414h_errlist.foo = 1;
41415  ;
41416  return 0;
41417}
41418_ACEOF
41419rm -f conftest.$ac_objext
41420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41421  (eval $ac_compile) 2>conftest.er1
41422  ac_status=$?
41423  grep -v '^ *+' conftest.er1 >conftest.err
41424  rm -f conftest.er1
41425  cat conftest.err >&5
41426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427  (exit $ac_status); } &&
41428	 { ac_try='test -z "$ac_c_werror_flag"
41429			 || test ! -s conftest.err'
41430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41431  (eval $ac_try) 2>&5
41432  ac_status=$?
41433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41434  (exit $ac_status); }; } &&
41435	 { ac_try='test -s conftest.$ac_objext'
41436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41437  (eval $ac_try) 2>&5
41438  ac_status=$?
41439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41440  (exit $ac_status); }; }; then
41441  eval "ac_cv_var_h_errlist_declaration=no"
41442else
41443  echo "$as_me: failed program was:" >&5
41444sed 's/^/| /' conftest.$ac_ext >&5
41445
41446eval "ac_cv_var_h_errlist_declaration=yes"
41447fi
41448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41449
41450fi
41451
41452
41453
41454
41455echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5
41456echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6
41457if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then
41458
41459cat >>confdefs.h <<\_ACEOF
41460#define HAVE_H_ERRLIST_DECLARATION 1
41461_ACEOF
41462
41463fi
41464
41465
41466fi
41467
41468
41469
41470echo "$as_me:$LINENO: checking for h_nerr" >&5
41471echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6
41472if test "${ac_cv_var_h_nerr+set}" = set; then
41473  echo $ECHO_N "(cached) $ECHO_C" >&6
41474else
41475
41476
41477	cat >conftest.$ac_ext <<_ACEOF
41478/* confdefs.h.  */
41479_ACEOF
41480cat confdefs.h >>conftest.$ac_ext
41481cat >>conftest.$ac_ext <<_ACEOF
41482/* end confdefs.h.  */
41483#ifdef HAVE_NETDB_H
41484#include <netdb.h>
41485#endif
41486	void * foo() { return &h_nerr; }
41487int
41488main ()
41489{
41490foo()
41491  ;
41492  return 0;
41493}
41494_ACEOF
41495rm -f conftest.$ac_objext conftest$ac_exeext
41496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41497  (eval $ac_link) 2>conftest.er1
41498  ac_status=$?
41499  grep -v '^ *+' conftest.er1 >conftest.err
41500  rm -f conftest.er1
41501  cat conftest.err >&5
41502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503  (exit $ac_status); } &&
41504	 { ac_try='test -z "$ac_c_werror_flag"
41505			 || test ! -s conftest.err'
41506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507  (eval $ac_try) 2>&5
41508  ac_status=$?
41509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510  (exit $ac_status); }; } &&
41511	 { ac_try='test -s conftest$ac_exeext'
41512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513  (eval $ac_try) 2>&5
41514  ac_status=$?
41515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516  (exit $ac_status); }; }; then
41517  ac_cv_var_h_nerr=yes
41518else
41519  echo "$as_me: failed program was:" >&5
41520sed 's/^/| /' conftest.$ac_ext >&5
41521
41522ac_cv_var_h_nerr=no
41523fi
41524rm -f conftest.err conftest.$ac_objext \
41525      conftest$ac_exeext conftest.$ac_ext
41526if test "$ac_cv_var_h_nerr" != yes ; then
41527cat >conftest.$ac_ext <<_ACEOF
41528/* confdefs.h.  */
41529_ACEOF
41530cat confdefs.h >>conftest.$ac_ext
41531cat >>conftest.$ac_ext <<_ACEOF
41532/* end confdefs.h.  */
41533extern int h_nerr;
41534int foo() { return h_nerr; }
41535int
41536main ()
41537{
41538foo()
41539  ;
41540  return 0;
41541}
41542_ACEOF
41543rm -f conftest.$ac_objext conftest$ac_exeext
41544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41545  (eval $ac_link) 2>conftest.er1
41546  ac_status=$?
41547  grep -v '^ *+' conftest.er1 >conftest.err
41548  rm -f conftest.er1
41549  cat conftest.err >&5
41550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551  (exit $ac_status); } &&
41552	 { ac_try='test -z "$ac_c_werror_flag"
41553			 || test ! -s conftest.err'
41554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41555  (eval $ac_try) 2>&5
41556  ac_status=$?
41557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41558  (exit $ac_status); }; } &&
41559	 { ac_try='test -s conftest$ac_exeext'
41560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41561  (eval $ac_try) 2>&5
41562  ac_status=$?
41563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564  (exit $ac_status); }; }; then
41565  ac_cv_var_h_nerr=yes
41566else
41567  echo "$as_me: failed program was:" >&5
41568sed 's/^/| /' conftest.$ac_ext >&5
41569
41570ac_cv_var_h_nerr=no
41571fi
41572rm -f conftest.err conftest.$ac_objext \
41573      conftest$ac_exeext conftest.$ac_ext
41574fi
41575
41576fi
41577
41578ac_foo=`eval echo \\$ac_cv_var_h_nerr`
41579echo "$as_me:$LINENO: result: $ac_foo" >&5
41580echo "${ECHO_T}$ac_foo" >&6
41581if test "$ac_foo" = yes; then
41582
41583cat >>confdefs.h <<_ACEOF
41584#define HAVE_H_NERR 1
41585_ACEOF
41586
41587
41588echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5
41589echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6
41590if test "${ac_cv_var_h_nerr_declaration+set}" = set; then
41591  echo $ECHO_N "(cached) $ECHO_C" >&6
41592else
41593
41594cat >conftest.$ac_ext <<_ACEOF
41595/* confdefs.h.  */
41596_ACEOF
41597cat confdefs.h >>conftest.$ac_ext
41598cat >>conftest.$ac_ext <<_ACEOF
41599/* end confdefs.h.  */
41600#ifdef HAVE_NETDB_H
41601#include <netdb.h>
41602#endif
41603extern struct { int foo; } h_nerr;
41604int
41605main ()
41606{
41607h_nerr.foo = 1;
41608  ;
41609  return 0;
41610}
41611_ACEOF
41612rm -f conftest.$ac_objext
41613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41614  (eval $ac_compile) 2>conftest.er1
41615  ac_status=$?
41616  grep -v '^ *+' conftest.er1 >conftest.err
41617  rm -f conftest.er1
41618  cat conftest.err >&5
41619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620  (exit $ac_status); } &&
41621	 { ac_try='test -z "$ac_c_werror_flag"
41622			 || test ! -s conftest.err'
41623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41624  (eval $ac_try) 2>&5
41625  ac_status=$?
41626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41627  (exit $ac_status); }; } &&
41628	 { ac_try='test -s conftest.$ac_objext'
41629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41630  (eval $ac_try) 2>&5
41631  ac_status=$?
41632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41633  (exit $ac_status); }; }; then
41634  eval "ac_cv_var_h_nerr_declaration=no"
41635else
41636  echo "$as_me: failed program was:" >&5
41637sed 's/^/| /' conftest.$ac_ext >&5
41638
41639eval "ac_cv_var_h_nerr_declaration=yes"
41640fi
41641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41642
41643fi
41644
41645
41646
41647
41648echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5
41649echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6
41650if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then
41651
41652cat >>confdefs.h <<\_ACEOF
41653#define HAVE_H_NERR_DECLARATION 1
41654_ACEOF
41655
41656fi
41657
41658
41659fi
41660
41661
41662
41663echo "$as_me:$LINENO: checking for __progname" >&5
41664echo $ECHO_N "checking for __progname... $ECHO_C" >&6
41665if test "${ac_cv_var___progname+set}" = set; then
41666  echo $ECHO_N "(cached) $ECHO_C" >&6
41667else
41668
41669
41670	cat >conftest.$ac_ext <<_ACEOF
41671/* confdefs.h.  */
41672_ACEOF
41673cat confdefs.h >>conftest.$ac_ext
41674cat >>conftest.$ac_ext <<_ACEOF
41675/* end confdefs.h.  */
41676#ifdef HAVE_ERR_H
41677#include <err.h>
41678#endif
41679	void * foo() { return &__progname; }
41680int
41681main ()
41682{
41683foo()
41684  ;
41685  return 0;
41686}
41687_ACEOF
41688rm -f conftest.$ac_objext conftest$ac_exeext
41689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41690  (eval $ac_link) 2>conftest.er1
41691  ac_status=$?
41692  grep -v '^ *+' conftest.er1 >conftest.err
41693  rm -f conftest.er1
41694  cat conftest.err >&5
41695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696  (exit $ac_status); } &&
41697	 { ac_try='test -z "$ac_c_werror_flag"
41698			 || test ! -s conftest.err'
41699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41700  (eval $ac_try) 2>&5
41701  ac_status=$?
41702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703  (exit $ac_status); }; } &&
41704	 { ac_try='test -s conftest$ac_exeext'
41705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41706  (eval $ac_try) 2>&5
41707  ac_status=$?
41708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41709  (exit $ac_status); }; }; then
41710  ac_cv_var___progname=yes
41711else
41712  echo "$as_me: failed program was:" >&5
41713sed 's/^/| /' conftest.$ac_ext >&5
41714
41715ac_cv_var___progname=no
41716fi
41717rm -f conftest.err conftest.$ac_objext \
41718      conftest$ac_exeext conftest.$ac_ext
41719if test "$ac_cv_var___progname" != yes ; then
41720cat >conftest.$ac_ext <<_ACEOF
41721/* confdefs.h.  */
41722_ACEOF
41723cat confdefs.h >>conftest.$ac_ext
41724cat >>conftest.$ac_ext <<_ACEOF
41725/* end confdefs.h.  */
41726extern int __progname;
41727int foo() { return __progname; }
41728int
41729main ()
41730{
41731foo()
41732  ;
41733  return 0;
41734}
41735_ACEOF
41736rm -f conftest.$ac_objext conftest$ac_exeext
41737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41738  (eval $ac_link) 2>conftest.er1
41739  ac_status=$?
41740  grep -v '^ *+' conftest.er1 >conftest.err
41741  rm -f conftest.er1
41742  cat conftest.err >&5
41743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744  (exit $ac_status); } &&
41745	 { ac_try='test -z "$ac_c_werror_flag"
41746			 || test ! -s conftest.err'
41747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41748  (eval $ac_try) 2>&5
41749  ac_status=$?
41750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41751  (exit $ac_status); }; } &&
41752	 { ac_try='test -s conftest$ac_exeext'
41753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41754  (eval $ac_try) 2>&5
41755  ac_status=$?
41756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41757  (exit $ac_status); }; }; then
41758  ac_cv_var___progname=yes
41759else
41760  echo "$as_me: failed program was:" >&5
41761sed 's/^/| /' conftest.$ac_ext >&5
41762
41763ac_cv_var___progname=no
41764fi
41765rm -f conftest.err conftest.$ac_objext \
41766      conftest$ac_exeext conftest.$ac_ext
41767fi
41768
41769fi
41770
41771ac_foo=`eval echo \\$ac_cv_var___progname`
41772echo "$as_me:$LINENO: result: $ac_foo" >&5
41773echo "${ECHO_T}$ac_foo" >&6
41774if test "$ac_foo" = yes; then
41775
41776cat >>confdefs.h <<_ACEOF
41777#define HAVE___PROGNAME 1
41778_ACEOF
41779
41780
41781echo "$as_me:$LINENO: checking if __progname is properly declared" >&5
41782echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6
41783if test "${ac_cv_var___progname_declaration+set}" = set; then
41784  echo $ECHO_N "(cached) $ECHO_C" >&6
41785else
41786
41787cat >conftest.$ac_ext <<_ACEOF
41788/* confdefs.h.  */
41789_ACEOF
41790cat confdefs.h >>conftest.$ac_ext
41791cat >>conftest.$ac_ext <<_ACEOF
41792/* end confdefs.h.  */
41793#ifdef HAVE_ERR_H
41794#include <err.h>
41795#endif
41796extern struct { int foo; } __progname;
41797int
41798main ()
41799{
41800__progname.foo = 1;
41801  ;
41802  return 0;
41803}
41804_ACEOF
41805rm -f conftest.$ac_objext
41806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41807  (eval $ac_compile) 2>conftest.er1
41808  ac_status=$?
41809  grep -v '^ *+' conftest.er1 >conftest.err
41810  rm -f conftest.er1
41811  cat conftest.err >&5
41812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41813  (exit $ac_status); } &&
41814	 { ac_try='test -z "$ac_c_werror_flag"
41815			 || test ! -s conftest.err'
41816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41817  (eval $ac_try) 2>&5
41818  ac_status=$?
41819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41820  (exit $ac_status); }; } &&
41821	 { ac_try='test -s conftest.$ac_objext'
41822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41823  (eval $ac_try) 2>&5
41824  ac_status=$?
41825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41826  (exit $ac_status); }; }; then
41827  eval "ac_cv_var___progname_declaration=no"
41828else
41829  echo "$as_me: failed program was:" >&5
41830sed 's/^/| /' conftest.$ac_ext >&5
41831
41832eval "ac_cv_var___progname_declaration=yes"
41833fi
41834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41835
41836fi
41837
41838
41839
41840
41841echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5
41842echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6
41843if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then
41844
41845cat >>confdefs.h <<\_ACEOF
41846#define HAVE___PROGNAME_DECLARATION 1
41847_ACEOF
41848
41849fi
41850
41851
41852fi
41853
41854
41855
41856echo "$as_me:$LINENO: checking if optarg is properly declared" >&5
41857echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6
41858if test "${ac_cv_var_optarg_declaration+set}" = set; then
41859  echo $ECHO_N "(cached) $ECHO_C" >&6
41860else
41861
41862cat >conftest.$ac_ext <<_ACEOF
41863/* confdefs.h.  */
41864_ACEOF
41865cat confdefs.h >>conftest.$ac_ext
41866cat >>conftest.$ac_ext <<_ACEOF
41867/* end confdefs.h.  */
41868#include <stdlib.h>
41869#ifdef HAVE_UNISTD_H
41870#include <unistd.h>
41871#endif
41872extern struct { int foo; } optarg;
41873int
41874main ()
41875{
41876optarg.foo = 1;
41877  ;
41878  return 0;
41879}
41880_ACEOF
41881rm -f conftest.$ac_objext
41882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41883  (eval $ac_compile) 2>conftest.er1
41884  ac_status=$?
41885  grep -v '^ *+' conftest.er1 >conftest.err
41886  rm -f conftest.er1
41887  cat conftest.err >&5
41888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889  (exit $ac_status); } &&
41890	 { ac_try='test -z "$ac_c_werror_flag"
41891			 || test ! -s conftest.err'
41892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893  (eval $ac_try) 2>&5
41894  ac_status=$?
41895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896  (exit $ac_status); }; } &&
41897	 { ac_try='test -s conftest.$ac_objext'
41898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899  (eval $ac_try) 2>&5
41900  ac_status=$?
41901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902  (exit $ac_status); }; }; then
41903  eval "ac_cv_var_optarg_declaration=no"
41904else
41905  echo "$as_me: failed program was:" >&5
41906sed 's/^/| /' conftest.$ac_ext >&5
41907
41908eval "ac_cv_var_optarg_declaration=yes"
41909fi
41910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41911
41912fi
41913
41914
41915
41916
41917echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5
41918echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6
41919if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then
41920
41921cat >>confdefs.h <<\_ACEOF
41922#define HAVE_OPTARG_DECLARATION 1
41923_ACEOF
41924
41925fi
41926
41927
41928
41929echo "$as_me:$LINENO: checking if optind is properly declared" >&5
41930echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6
41931if test "${ac_cv_var_optind_declaration+set}" = set; then
41932  echo $ECHO_N "(cached) $ECHO_C" >&6
41933else
41934
41935cat >conftest.$ac_ext <<_ACEOF
41936/* confdefs.h.  */
41937_ACEOF
41938cat confdefs.h >>conftest.$ac_ext
41939cat >>conftest.$ac_ext <<_ACEOF
41940/* end confdefs.h.  */
41941#include <stdlib.h>
41942#ifdef HAVE_UNISTD_H
41943#include <unistd.h>
41944#endif
41945extern struct { int foo; } optind;
41946int
41947main ()
41948{
41949optind.foo = 1;
41950  ;
41951  return 0;
41952}
41953_ACEOF
41954rm -f conftest.$ac_objext
41955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41956  (eval $ac_compile) 2>conftest.er1
41957  ac_status=$?
41958  grep -v '^ *+' conftest.er1 >conftest.err
41959  rm -f conftest.er1
41960  cat conftest.err >&5
41961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41962  (exit $ac_status); } &&
41963	 { ac_try='test -z "$ac_c_werror_flag"
41964			 || test ! -s conftest.err'
41965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41966  (eval $ac_try) 2>&5
41967  ac_status=$?
41968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41969  (exit $ac_status); }; } &&
41970	 { ac_try='test -s conftest.$ac_objext'
41971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41972  (eval $ac_try) 2>&5
41973  ac_status=$?
41974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
41975  (exit $ac_status); }; }; then
41976  eval "ac_cv_var_optind_declaration=no"
41977else
41978  echo "$as_me: failed program was:" >&5
41979sed 's/^/| /' conftest.$ac_ext >&5
41980
41981eval "ac_cv_var_optind_declaration=yes"
41982fi
41983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41984
41985fi
41986
41987
41988
41989
41990echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5
41991echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6
41992if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then
41993
41994cat >>confdefs.h <<\_ACEOF
41995#define HAVE_OPTIND_DECLARATION 1
41996_ACEOF
41997
41998fi
41999
42000
42001
42002echo "$as_me:$LINENO: checking if opterr is properly declared" >&5
42003echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6
42004if test "${ac_cv_var_opterr_declaration+set}" = set; then
42005  echo $ECHO_N "(cached) $ECHO_C" >&6
42006else
42007
42008cat >conftest.$ac_ext <<_ACEOF
42009/* confdefs.h.  */
42010_ACEOF
42011cat confdefs.h >>conftest.$ac_ext
42012cat >>conftest.$ac_ext <<_ACEOF
42013/* end confdefs.h.  */
42014#include <stdlib.h>
42015#ifdef HAVE_UNISTD_H
42016#include <unistd.h>
42017#endif
42018extern struct { int foo; } opterr;
42019int
42020main ()
42021{
42022opterr.foo = 1;
42023  ;
42024  return 0;
42025}
42026_ACEOF
42027rm -f conftest.$ac_objext
42028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42029  (eval $ac_compile) 2>conftest.er1
42030  ac_status=$?
42031  grep -v '^ *+' conftest.er1 >conftest.err
42032  rm -f conftest.er1
42033  cat conftest.err >&5
42034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42035  (exit $ac_status); } &&
42036	 { ac_try='test -z "$ac_c_werror_flag"
42037			 || test ! -s conftest.err'
42038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42039  (eval $ac_try) 2>&5
42040  ac_status=$?
42041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42042  (exit $ac_status); }; } &&
42043	 { ac_try='test -s conftest.$ac_objext'
42044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42045  (eval $ac_try) 2>&5
42046  ac_status=$?
42047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42048  (exit $ac_status); }; }; then
42049  eval "ac_cv_var_opterr_declaration=no"
42050else
42051  echo "$as_me: failed program was:" >&5
42052sed 's/^/| /' conftest.$ac_ext >&5
42053
42054eval "ac_cv_var_opterr_declaration=yes"
42055fi
42056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42057
42058fi
42059
42060
42061
42062
42063echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5
42064echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6
42065if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then
42066
42067cat >>confdefs.h <<\_ACEOF
42068#define HAVE_OPTERR_DECLARATION 1
42069_ACEOF
42070
42071fi
42072
42073
42074
42075echo "$as_me:$LINENO: checking if optopt is properly declared" >&5
42076echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6
42077if test "${ac_cv_var_optopt_declaration+set}" = set; then
42078  echo $ECHO_N "(cached) $ECHO_C" >&6
42079else
42080
42081cat >conftest.$ac_ext <<_ACEOF
42082/* confdefs.h.  */
42083_ACEOF
42084cat confdefs.h >>conftest.$ac_ext
42085cat >>conftest.$ac_ext <<_ACEOF
42086/* end confdefs.h.  */
42087#include <stdlib.h>
42088#ifdef HAVE_UNISTD_H
42089#include <unistd.h>
42090#endif
42091extern struct { int foo; } optopt;
42092int
42093main ()
42094{
42095optopt.foo = 1;
42096  ;
42097  return 0;
42098}
42099_ACEOF
42100rm -f conftest.$ac_objext
42101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42102  (eval $ac_compile) 2>conftest.er1
42103  ac_status=$?
42104  grep -v '^ *+' conftest.er1 >conftest.err
42105  rm -f conftest.er1
42106  cat conftest.err >&5
42107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42108  (exit $ac_status); } &&
42109	 { ac_try='test -z "$ac_c_werror_flag"
42110			 || test ! -s conftest.err'
42111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42112  (eval $ac_try) 2>&5
42113  ac_status=$?
42114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42115  (exit $ac_status); }; } &&
42116	 { ac_try='test -s conftest.$ac_objext'
42117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42118  (eval $ac_try) 2>&5
42119  ac_status=$?
42120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42121  (exit $ac_status); }; }; then
42122  eval "ac_cv_var_optopt_declaration=no"
42123else
42124  echo "$as_me: failed program was:" >&5
42125sed 's/^/| /' conftest.$ac_ext >&5
42126
42127eval "ac_cv_var_optopt_declaration=yes"
42128fi
42129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42130
42131fi
42132
42133
42134
42135
42136echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5
42137echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6
42138if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
42139
42140cat >>confdefs.h <<\_ACEOF
42141#define HAVE_OPTOPT_DECLARATION 1
42142_ACEOF
42143
42144fi
42145
42146
42147
42148
42149echo "$as_me:$LINENO: checking if environ is properly declared" >&5
42150echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6
42151if test "${ac_cv_var_environ_declaration+set}" = set; then
42152  echo $ECHO_N "(cached) $ECHO_C" >&6
42153else
42154
42155cat >conftest.$ac_ext <<_ACEOF
42156/* confdefs.h.  */
42157_ACEOF
42158cat confdefs.h >>conftest.$ac_ext
42159cat >>conftest.$ac_ext <<_ACEOF
42160/* end confdefs.h.  */
42161#include <stdlib.h>
42162extern struct { int foo; } environ;
42163int
42164main ()
42165{
42166environ.foo = 1;
42167  ;
42168  return 0;
42169}
42170_ACEOF
42171rm -f conftest.$ac_objext
42172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42173  (eval $ac_compile) 2>conftest.er1
42174  ac_status=$?
42175  grep -v '^ *+' conftest.er1 >conftest.err
42176  rm -f conftest.er1
42177  cat conftest.err >&5
42178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179  (exit $ac_status); } &&
42180	 { ac_try='test -z "$ac_c_werror_flag"
42181			 || test ! -s conftest.err'
42182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42183  (eval $ac_try) 2>&5
42184  ac_status=$?
42185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186  (exit $ac_status); }; } &&
42187	 { ac_try='test -s conftest.$ac_objext'
42188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42189  (eval $ac_try) 2>&5
42190  ac_status=$?
42191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42192  (exit $ac_status); }; }; then
42193  eval "ac_cv_var_environ_declaration=no"
42194else
42195  echo "$as_me: failed program was:" >&5
42196sed 's/^/| /' conftest.$ac_ext >&5
42197
42198eval "ac_cv_var_environ_declaration=yes"
42199fi
42200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42201
42202fi
42203
42204
42205
42206
42207echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5
42208echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6
42209if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then
42210
42211cat >>confdefs.h <<\_ACEOF
42212#define HAVE_ENVIRON_DECLARATION 1
42213_ACEOF
42214
42215fi
42216
42217
42218
42219
42220
42221
42222echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42223echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42224if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then
42225  echo $ECHO_N "(cached) $ECHO_C" >&6
42226else
42227
42228cat >conftest.$ac_ext <<_ACEOF
42229/* confdefs.h.  */
42230_ACEOF
42231cat confdefs.h >>conftest.$ac_ext
42232cat >>conftest.$ac_ext <<_ACEOF
42233/* end confdefs.h.  */
42234#include <time.h>
42235int
42236main ()
42237{
42238struct tm x; x.tm_gmtoff;
42239  ;
42240  return 0;
42241}
42242_ACEOF
42243rm -f conftest.$ac_objext
42244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42245  (eval $ac_compile) 2>conftest.er1
42246  ac_status=$?
42247  grep -v '^ *+' conftest.er1 >conftest.err
42248  rm -f conftest.er1
42249  cat conftest.err >&5
42250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42251  (exit $ac_status); } &&
42252	 { ac_try='test -z "$ac_c_werror_flag"
42253			 || test ! -s conftest.err'
42254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42255  (eval $ac_try) 2>&5
42256  ac_status=$?
42257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42258  (exit $ac_status); }; } &&
42259	 { ac_try='test -s conftest.$ac_objext'
42260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42261  (eval $ac_try) 2>&5
42262  ac_status=$?
42263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42264  (exit $ac_status); }; }; then
42265  ac_cv_type_struct_tm_tm_gmtoff=yes
42266else
42267  echo "$as_me: failed program was:" >&5
42268sed 's/^/| /' conftest.$ac_ext >&5
42269
42270ac_cv_type_struct_tm_tm_gmtoff=no
42271fi
42272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42273fi
42274echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5
42275echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6
42276if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
42277
42278
42279cat >>confdefs.h <<\_ACEOF
42280#define HAVE_STRUCT_TM_TM_GMTOFF 1
42281_ACEOF
42282
42283
42284fi
42285
42286
42287
42288
42289echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
42290echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6
42291if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then
42292  echo $ECHO_N "(cached) $ECHO_C" >&6
42293else
42294
42295cat >conftest.$ac_ext <<_ACEOF
42296/* confdefs.h.  */
42297_ACEOF
42298cat confdefs.h >>conftest.$ac_ext
42299cat >>conftest.$ac_ext <<_ACEOF
42300/* end confdefs.h.  */
42301#include <time.h>
42302int
42303main ()
42304{
42305struct tm x; x.tm_zone;
42306  ;
42307  return 0;
42308}
42309_ACEOF
42310rm -f conftest.$ac_objext
42311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42312  (eval $ac_compile) 2>conftest.er1
42313  ac_status=$?
42314  grep -v '^ *+' conftest.er1 >conftest.err
42315  rm -f conftest.er1
42316  cat conftest.err >&5
42317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42318  (exit $ac_status); } &&
42319	 { ac_try='test -z "$ac_c_werror_flag"
42320			 || test ! -s conftest.err'
42321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42322  (eval $ac_try) 2>&5
42323  ac_status=$?
42324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325  (exit $ac_status); }; } &&
42326	 { ac_try='test -s conftest.$ac_objext'
42327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42328  (eval $ac_try) 2>&5
42329  ac_status=$?
42330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42331  (exit $ac_status); }; }; then
42332  ac_cv_type_struct_tm_tm_zone=yes
42333else
42334  echo "$as_me: failed program was:" >&5
42335sed 's/^/| /' conftest.$ac_ext >&5
42336
42337ac_cv_type_struct_tm_tm_zone=no
42338fi
42339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42340fi
42341echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5
42342echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6
42343if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
42344
42345
42346cat >>confdefs.h <<\_ACEOF
42347#define HAVE_STRUCT_TM_TM_ZONE 1
42348_ACEOF
42349
42350
42351fi
42352
42353
42354
42355
42356
42357echo "$as_me:$LINENO: checking for timezone" >&5
42358echo $ECHO_N "checking for timezone... $ECHO_C" >&6
42359if test "${ac_cv_var_timezone+set}" = set; then
42360  echo $ECHO_N "(cached) $ECHO_C" >&6
42361else
42362
42363
42364	cat >conftest.$ac_ext <<_ACEOF
42365/* confdefs.h.  */
42366_ACEOF
42367cat confdefs.h >>conftest.$ac_ext
42368cat >>conftest.$ac_ext <<_ACEOF
42369/* end confdefs.h.  */
42370#include <time.h>
42371	void * foo() { return &timezone; }
42372int
42373main ()
42374{
42375foo()
42376  ;
42377  return 0;
42378}
42379_ACEOF
42380rm -f conftest.$ac_objext conftest$ac_exeext
42381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42382  (eval $ac_link) 2>conftest.er1
42383  ac_status=$?
42384  grep -v '^ *+' conftest.er1 >conftest.err
42385  rm -f conftest.er1
42386  cat conftest.err >&5
42387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42388  (exit $ac_status); } &&
42389	 { ac_try='test -z "$ac_c_werror_flag"
42390			 || test ! -s conftest.err'
42391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42392  (eval $ac_try) 2>&5
42393  ac_status=$?
42394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42395  (exit $ac_status); }; } &&
42396	 { ac_try='test -s conftest$ac_exeext'
42397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42398  (eval $ac_try) 2>&5
42399  ac_status=$?
42400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42401  (exit $ac_status); }; }; then
42402  ac_cv_var_timezone=yes
42403else
42404  echo "$as_me: failed program was:" >&5
42405sed 's/^/| /' conftest.$ac_ext >&5
42406
42407ac_cv_var_timezone=no
42408fi
42409rm -f conftest.err conftest.$ac_objext \
42410      conftest$ac_exeext conftest.$ac_ext
42411if test "$ac_cv_var_timezone" != yes ; then
42412cat >conftest.$ac_ext <<_ACEOF
42413/* confdefs.h.  */
42414_ACEOF
42415cat confdefs.h >>conftest.$ac_ext
42416cat >>conftest.$ac_ext <<_ACEOF
42417/* end confdefs.h.  */
42418extern int timezone;
42419int foo() { return timezone; }
42420int
42421main ()
42422{
42423foo()
42424  ;
42425  return 0;
42426}
42427_ACEOF
42428rm -f conftest.$ac_objext conftest$ac_exeext
42429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42430  (eval $ac_link) 2>conftest.er1
42431  ac_status=$?
42432  grep -v '^ *+' conftest.er1 >conftest.err
42433  rm -f conftest.er1
42434  cat conftest.err >&5
42435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436  (exit $ac_status); } &&
42437	 { ac_try='test -z "$ac_c_werror_flag"
42438			 || test ! -s conftest.err'
42439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42440  (eval $ac_try) 2>&5
42441  ac_status=$?
42442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42443  (exit $ac_status); }; } &&
42444	 { ac_try='test -s conftest$ac_exeext'
42445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42446  (eval $ac_try) 2>&5
42447  ac_status=$?
42448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42449  (exit $ac_status); }; }; then
42450  ac_cv_var_timezone=yes
42451else
42452  echo "$as_me: failed program was:" >&5
42453sed 's/^/| /' conftest.$ac_ext >&5
42454
42455ac_cv_var_timezone=no
42456fi
42457rm -f conftest.err conftest.$ac_objext \
42458      conftest$ac_exeext conftest.$ac_ext
42459fi
42460
42461fi
42462
42463ac_foo=`eval echo \\$ac_cv_var_timezone`
42464echo "$as_me:$LINENO: result: $ac_foo" >&5
42465echo "${ECHO_T}$ac_foo" >&6
42466if test "$ac_foo" = yes; then
42467
42468cat >>confdefs.h <<_ACEOF
42469#define HAVE_TIMEZONE 1
42470_ACEOF
42471
42472
42473echo "$as_me:$LINENO: checking if timezone is properly declared" >&5
42474echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6
42475if test "${ac_cv_var_timezone_declaration+set}" = set; then
42476  echo $ECHO_N "(cached) $ECHO_C" >&6
42477else
42478
42479cat >conftest.$ac_ext <<_ACEOF
42480/* confdefs.h.  */
42481_ACEOF
42482cat confdefs.h >>conftest.$ac_ext
42483cat >>conftest.$ac_ext <<_ACEOF
42484/* end confdefs.h.  */
42485#include <time.h>
42486extern struct { int foo; } timezone;
42487int
42488main ()
42489{
42490timezone.foo = 1;
42491  ;
42492  return 0;
42493}
42494_ACEOF
42495rm -f conftest.$ac_objext
42496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42497  (eval $ac_compile) 2>conftest.er1
42498  ac_status=$?
42499  grep -v '^ *+' conftest.er1 >conftest.err
42500  rm -f conftest.er1
42501  cat conftest.err >&5
42502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503  (exit $ac_status); } &&
42504	 { ac_try='test -z "$ac_c_werror_flag"
42505			 || test ! -s conftest.err'
42506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42507  (eval $ac_try) 2>&5
42508  ac_status=$?
42509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42510  (exit $ac_status); }; } &&
42511	 { ac_try='test -s conftest.$ac_objext'
42512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42513  (eval $ac_try) 2>&5
42514  ac_status=$?
42515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42516  (exit $ac_status); }; }; then
42517  eval "ac_cv_var_timezone_declaration=no"
42518else
42519  echo "$as_me: failed program was:" >&5
42520sed 's/^/| /' conftest.$ac_ext >&5
42521
42522eval "ac_cv_var_timezone_declaration=yes"
42523fi
42524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42525
42526fi
42527
42528
42529
42530
42531echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5
42532echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6
42533if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then
42534
42535cat >>confdefs.h <<\_ACEOF
42536#define HAVE_TIMEZONE_DECLARATION 1
42537_ACEOF
42538
42539fi
42540
42541
42542fi
42543
42544
42545echo "$as_me:$LINENO: checking for altzone" >&5
42546echo $ECHO_N "checking for altzone... $ECHO_C" >&6
42547if test "${ac_cv_var_altzone+set}" = set; then
42548  echo $ECHO_N "(cached) $ECHO_C" >&6
42549else
42550
42551
42552	cat >conftest.$ac_ext <<_ACEOF
42553/* confdefs.h.  */
42554_ACEOF
42555cat confdefs.h >>conftest.$ac_ext
42556cat >>conftest.$ac_ext <<_ACEOF
42557/* end confdefs.h.  */
42558#include <time.h>
42559	void * foo() { return &altzone; }
42560int
42561main ()
42562{
42563foo()
42564  ;
42565  return 0;
42566}
42567_ACEOF
42568rm -f conftest.$ac_objext conftest$ac_exeext
42569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42570  (eval $ac_link) 2>conftest.er1
42571  ac_status=$?
42572  grep -v '^ *+' conftest.er1 >conftest.err
42573  rm -f conftest.er1
42574  cat conftest.err >&5
42575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576  (exit $ac_status); } &&
42577	 { ac_try='test -z "$ac_c_werror_flag"
42578			 || test ! -s conftest.err'
42579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42580  (eval $ac_try) 2>&5
42581  ac_status=$?
42582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42583  (exit $ac_status); }; } &&
42584	 { ac_try='test -s conftest$ac_exeext'
42585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42586  (eval $ac_try) 2>&5
42587  ac_status=$?
42588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42589  (exit $ac_status); }; }; then
42590  ac_cv_var_altzone=yes
42591else
42592  echo "$as_me: failed program was:" >&5
42593sed 's/^/| /' conftest.$ac_ext >&5
42594
42595ac_cv_var_altzone=no
42596fi
42597rm -f conftest.err conftest.$ac_objext \
42598      conftest$ac_exeext conftest.$ac_ext
42599if test "$ac_cv_var_altzone" != yes ; then
42600cat >conftest.$ac_ext <<_ACEOF
42601/* confdefs.h.  */
42602_ACEOF
42603cat confdefs.h >>conftest.$ac_ext
42604cat >>conftest.$ac_ext <<_ACEOF
42605/* end confdefs.h.  */
42606extern int altzone;
42607int foo() { return altzone; }
42608int
42609main ()
42610{
42611foo()
42612  ;
42613  return 0;
42614}
42615_ACEOF
42616rm -f conftest.$ac_objext conftest$ac_exeext
42617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42618  (eval $ac_link) 2>conftest.er1
42619  ac_status=$?
42620  grep -v '^ *+' conftest.er1 >conftest.err
42621  rm -f conftest.er1
42622  cat conftest.err >&5
42623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624  (exit $ac_status); } &&
42625	 { ac_try='test -z "$ac_c_werror_flag"
42626			 || test ! -s conftest.err'
42627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42628  (eval $ac_try) 2>&5
42629  ac_status=$?
42630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42631  (exit $ac_status); }; } &&
42632	 { ac_try='test -s conftest$ac_exeext'
42633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42634  (eval $ac_try) 2>&5
42635  ac_status=$?
42636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42637  (exit $ac_status); }; }; then
42638  ac_cv_var_altzone=yes
42639else
42640  echo "$as_me: failed program was:" >&5
42641sed 's/^/| /' conftest.$ac_ext >&5
42642
42643ac_cv_var_altzone=no
42644fi
42645rm -f conftest.err conftest.$ac_objext \
42646      conftest$ac_exeext conftest.$ac_ext
42647fi
42648
42649fi
42650
42651ac_foo=`eval echo \\$ac_cv_var_altzone`
42652echo "$as_me:$LINENO: result: $ac_foo" >&5
42653echo "${ECHO_T}$ac_foo" >&6
42654if test "$ac_foo" = yes; then
42655
42656cat >>confdefs.h <<_ACEOF
42657#define HAVE_ALTZONE 1
42658_ACEOF
42659
42660
42661echo "$as_me:$LINENO: checking if altzone is properly declared" >&5
42662echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6
42663if test "${ac_cv_var_altzone_declaration+set}" = set; then
42664  echo $ECHO_N "(cached) $ECHO_C" >&6
42665else
42666
42667cat >conftest.$ac_ext <<_ACEOF
42668/* confdefs.h.  */
42669_ACEOF
42670cat confdefs.h >>conftest.$ac_ext
42671cat >>conftest.$ac_ext <<_ACEOF
42672/* end confdefs.h.  */
42673#include <time.h>
42674extern struct { int foo; } altzone;
42675int
42676main ()
42677{
42678altzone.foo = 1;
42679  ;
42680  return 0;
42681}
42682_ACEOF
42683rm -f conftest.$ac_objext
42684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42685  (eval $ac_compile) 2>conftest.er1
42686  ac_status=$?
42687  grep -v '^ *+' conftest.er1 >conftest.err
42688  rm -f conftest.er1
42689  cat conftest.err >&5
42690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42691  (exit $ac_status); } &&
42692	 { ac_try='test -z "$ac_c_werror_flag"
42693			 || test ! -s conftest.err'
42694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42695  (eval $ac_try) 2>&5
42696  ac_status=$?
42697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42698  (exit $ac_status); }; } &&
42699	 { ac_try='test -s conftest.$ac_objext'
42700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42701  (eval $ac_try) 2>&5
42702  ac_status=$?
42703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42704  (exit $ac_status); }; }; then
42705  eval "ac_cv_var_altzone_declaration=no"
42706else
42707  echo "$as_me: failed program was:" >&5
42708sed 's/^/| /' conftest.$ac_ext >&5
42709
42710eval "ac_cv_var_altzone_declaration=yes"
42711fi
42712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42713
42714fi
42715
42716
42717
42718
42719echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5
42720echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6
42721if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then
42722
42723cat >>confdefs.h <<\_ACEOF
42724#define HAVE_ALTZONE_DECLARATION 1
42725_ACEOF
42726
42727fi
42728
42729
42730fi
42731
42732
42733
42734
42735cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
42736echo "$as_me:$LINENO: checking for sa_family_t" >&5
42737echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42738if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42739  echo $ECHO_N "(cached) $ECHO_C" >&6
42740else
42741  cat >conftest.$ac_ext <<_ACEOF
42742/* confdefs.h.  */
42743_ACEOF
42744cat confdefs.h >>conftest.$ac_ext
42745cat >>conftest.$ac_ext <<_ACEOF
42746/* end confdefs.h.  */
42747#include <sys/types.h>
42748#if STDC_HEADERS
42749#include <stdlib.h>
42750#include <stddef.h>
42751#endif
42752#include <sys/socket.h>
42753int
42754main ()
42755{
42756sa_family_t foo;
42757  ;
42758  return 0;
42759}
42760_ACEOF
42761rm -f conftest.$ac_objext
42762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42763  (eval $ac_compile) 2>conftest.er1
42764  ac_status=$?
42765  grep -v '^ *+' conftest.er1 >conftest.err
42766  rm -f conftest.er1
42767  cat conftest.err >&5
42768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42769  (exit $ac_status); } &&
42770	 { ac_try='test -z "$ac_c_werror_flag"
42771			 || test ! -s conftest.err'
42772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42773  (eval $ac_try) 2>&5
42774  ac_status=$?
42775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42776  (exit $ac_status); }; } &&
42777	 { ac_try='test -s conftest.$ac_objext'
42778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42779  (eval $ac_try) 2>&5
42780  ac_status=$?
42781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782  (exit $ac_status); }; }; then
42783  eval "ac_cv_type_$cv=yes"
42784else
42785  echo "$as_me: failed program was:" >&5
42786sed 's/^/| /' conftest.$ac_ext >&5
42787
42788eval "ac_cv_type_$cv=no"
42789fi
42790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42791fi
42792ac_foo=`eval echo \\$ac_cv_type_$cv`
42793echo "$as_me:$LINENO: result: $ac_foo" >&5
42794echo "${ECHO_T}$ac_foo" >&6
42795if test "$ac_foo" = yes; then
42796  ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42797if false; then
42798	echo "$as_me:$LINENO: checking for sa_family_t" >&5
42799echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
42800if test "${ac_cv_type_sa_family_t+set}" = set; then
42801  echo $ECHO_N "(cached) $ECHO_C" >&6
42802else
42803  cat >conftest.$ac_ext <<_ACEOF
42804/* confdefs.h.  */
42805_ACEOF
42806cat confdefs.h >>conftest.$ac_ext
42807cat >>conftest.$ac_ext <<_ACEOF
42808/* end confdefs.h.  */
42809$ac_includes_default
42810int
42811main ()
42812{
42813if ((sa_family_t *) 0)
42814  return 0;
42815if (sizeof (sa_family_t))
42816  return 0;
42817  ;
42818  return 0;
42819}
42820_ACEOF
42821rm -f conftest.$ac_objext
42822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42823  (eval $ac_compile) 2>conftest.er1
42824  ac_status=$?
42825  grep -v '^ *+' conftest.er1 >conftest.err
42826  rm -f conftest.er1
42827  cat conftest.err >&5
42828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829  (exit $ac_status); } &&
42830	 { ac_try='test -z "$ac_c_werror_flag"
42831			 || test ! -s conftest.err'
42832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833  (eval $ac_try) 2>&5
42834  ac_status=$?
42835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836  (exit $ac_status); }; } &&
42837	 { ac_try='test -s conftest.$ac_objext'
42838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42839  (eval $ac_try) 2>&5
42840  ac_status=$?
42841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42842  (exit $ac_status); }; }; then
42843  ac_cv_type_sa_family_t=yes
42844else
42845  echo "$as_me: failed program was:" >&5
42846sed 's/^/| /' conftest.$ac_ext >&5
42847
42848ac_cv_type_sa_family_t=no
42849fi
42850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42851fi
42852echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
42853echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
42854if test $ac_cv_type_sa_family_t = yes; then
42855
42856cat >>confdefs.h <<_ACEOF
42857#define HAVE_SA_FAMILY_T 1
42858_ACEOF
42859
42860
42861fi
42862
42863fi
42864
42865cat >>confdefs.h <<_ACEOF
42866#define $ac_tr_hdr 1
42867_ACEOF
42868
42869fi
42870
42871
42872
42873cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
42874echo "$as_me:$LINENO: checking for socklen_t" >&5
42875echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42876if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
42877  echo $ECHO_N "(cached) $ECHO_C" >&6
42878else
42879  cat >conftest.$ac_ext <<_ACEOF
42880/* confdefs.h.  */
42881_ACEOF
42882cat confdefs.h >>conftest.$ac_ext
42883cat >>conftest.$ac_ext <<_ACEOF
42884/* end confdefs.h.  */
42885#include <sys/types.h>
42886#if STDC_HEADERS
42887#include <stdlib.h>
42888#include <stddef.h>
42889#endif
42890#include <sys/socket.h>
42891int
42892main ()
42893{
42894socklen_t foo;
42895  ;
42896  return 0;
42897}
42898_ACEOF
42899rm -f conftest.$ac_objext
42900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42901  (eval $ac_compile) 2>conftest.er1
42902  ac_status=$?
42903  grep -v '^ *+' conftest.er1 >conftest.err
42904  rm -f conftest.er1
42905  cat conftest.err >&5
42906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907  (exit $ac_status); } &&
42908	 { ac_try='test -z "$ac_c_werror_flag"
42909			 || test ! -s conftest.err'
42910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42911  (eval $ac_try) 2>&5
42912  ac_status=$?
42913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914  (exit $ac_status); }; } &&
42915	 { ac_try='test -s conftest.$ac_objext'
42916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42917  (eval $ac_try) 2>&5
42918  ac_status=$?
42919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920  (exit $ac_status); }; }; then
42921  eval "ac_cv_type_$cv=yes"
42922else
42923  echo "$as_me: failed program was:" >&5
42924sed 's/^/| /' conftest.$ac_ext >&5
42925
42926eval "ac_cv_type_$cv=no"
42927fi
42928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42929fi
42930ac_foo=`eval echo \\$ac_cv_type_$cv`
42931echo "$as_me:$LINENO: result: $ac_foo" >&5
42932echo "${ECHO_T}$ac_foo" >&6
42933if test "$ac_foo" = yes; then
42934  ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
42935if false; then
42936	echo "$as_me:$LINENO: checking for socklen_t" >&5
42937echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
42938if test "${ac_cv_type_socklen_t+set}" = set; then
42939  echo $ECHO_N "(cached) $ECHO_C" >&6
42940else
42941  cat >conftest.$ac_ext <<_ACEOF
42942/* confdefs.h.  */
42943_ACEOF
42944cat confdefs.h >>conftest.$ac_ext
42945cat >>conftest.$ac_ext <<_ACEOF
42946/* end confdefs.h.  */
42947$ac_includes_default
42948int
42949main ()
42950{
42951if ((socklen_t *) 0)
42952  return 0;
42953if (sizeof (socklen_t))
42954  return 0;
42955  ;
42956  return 0;
42957}
42958_ACEOF
42959rm -f conftest.$ac_objext
42960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42961  (eval $ac_compile) 2>conftest.er1
42962  ac_status=$?
42963  grep -v '^ *+' conftest.er1 >conftest.err
42964  rm -f conftest.er1
42965  cat conftest.err >&5
42966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967  (exit $ac_status); } &&
42968	 { ac_try='test -z "$ac_c_werror_flag"
42969			 || test ! -s conftest.err'
42970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42971  (eval $ac_try) 2>&5
42972  ac_status=$?
42973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42974  (exit $ac_status); }; } &&
42975	 { ac_try='test -s conftest.$ac_objext'
42976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42977  (eval $ac_try) 2>&5
42978  ac_status=$?
42979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980  (exit $ac_status); }; }; then
42981  ac_cv_type_socklen_t=yes
42982else
42983  echo "$as_me: failed program was:" >&5
42984sed 's/^/| /' conftest.$ac_ext >&5
42985
42986ac_cv_type_socklen_t=no
42987fi
42988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42989fi
42990echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
42991echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
42992if test $ac_cv_type_socklen_t = yes; then
42993
42994cat >>confdefs.h <<_ACEOF
42995#define HAVE_SOCKLEN_T 1
42996_ACEOF
42997
42998
42999fi
43000
43001fi
43002
43003cat >>confdefs.h <<_ACEOF
43004#define $ac_tr_hdr 1
43005_ACEOF
43006
43007fi
43008
43009
43010
43011cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'`
43012echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43013echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43014if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43015  echo $ECHO_N "(cached) $ECHO_C" >&6
43016else
43017  cat >conftest.$ac_ext <<_ACEOF
43018/* confdefs.h.  */
43019_ACEOF
43020cat confdefs.h >>conftest.$ac_ext
43021cat >>conftest.$ac_ext <<_ACEOF
43022/* end confdefs.h.  */
43023#include <sys/types.h>
43024#if STDC_HEADERS
43025#include <stdlib.h>
43026#include <stddef.h>
43027#endif
43028#include <sys/socket.h>
43029int
43030main ()
43031{
43032struct sockaddr foo;
43033  ;
43034  return 0;
43035}
43036_ACEOF
43037rm -f conftest.$ac_objext
43038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43039  (eval $ac_compile) 2>conftest.er1
43040  ac_status=$?
43041  grep -v '^ *+' conftest.er1 >conftest.err
43042  rm -f conftest.er1
43043  cat conftest.err >&5
43044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43045  (exit $ac_status); } &&
43046	 { ac_try='test -z "$ac_c_werror_flag"
43047			 || test ! -s conftest.err'
43048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43049  (eval $ac_try) 2>&5
43050  ac_status=$?
43051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052  (exit $ac_status); }; } &&
43053	 { ac_try='test -s conftest.$ac_objext'
43054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43055  (eval $ac_try) 2>&5
43056  ac_status=$?
43057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058  (exit $ac_status); }; }; then
43059  eval "ac_cv_type_$cv=yes"
43060else
43061  echo "$as_me: failed program was:" >&5
43062sed 's/^/| /' conftest.$ac_ext >&5
43063
43064eval "ac_cv_type_$cv=no"
43065fi
43066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43067fi
43068ac_foo=`eval echo \\$ac_cv_type_$cv`
43069echo "$as_me:$LINENO: result: $ac_foo" >&5
43070echo "${ECHO_T}$ac_foo" >&6
43071if test "$ac_foo" = yes; then
43072  ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43073if false; then
43074	echo "$as_me:$LINENO: checking for struct sockaddr" >&5
43075echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6
43076if test "${ac_cv_type_struct_sockaddr+set}" = set; then
43077  echo $ECHO_N "(cached) $ECHO_C" >&6
43078else
43079  cat >conftest.$ac_ext <<_ACEOF
43080/* confdefs.h.  */
43081_ACEOF
43082cat confdefs.h >>conftest.$ac_ext
43083cat >>conftest.$ac_ext <<_ACEOF
43084/* end confdefs.h.  */
43085$ac_includes_default
43086int
43087main ()
43088{
43089if ((struct sockaddr *) 0)
43090  return 0;
43091if (sizeof (struct sockaddr))
43092  return 0;
43093  ;
43094  return 0;
43095}
43096_ACEOF
43097rm -f conftest.$ac_objext
43098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43099  (eval $ac_compile) 2>conftest.er1
43100  ac_status=$?
43101  grep -v '^ *+' conftest.er1 >conftest.err
43102  rm -f conftest.er1
43103  cat conftest.err >&5
43104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105  (exit $ac_status); } &&
43106	 { ac_try='test -z "$ac_c_werror_flag"
43107			 || test ! -s conftest.err'
43108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43109  (eval $ac_try) 2>&5
43110  ac_status=$?
43111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43112  (exit $ac_status); }; } &&
43113	 { ac_try='test -s conftest.$ac_objext'
43114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43115  (eval $ac_try) 2>&5
43116  ac_status=$?
43117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118  (exit $ac_status); }; }; then
43119  ac_cv_type_struct_sockaddr=yes
43120else
43121  echo "$as_me: failed program was:" >&5
43122sed 's/^/| /' conftest.$ac_ext >&5
43123
43124ac_cv_type_struct_sockaddr=no
43125fi
43126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43127fi
43128echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5
43129echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6
43130if test $ac_cv_type_struct_sockaddr = yes; then
43131
43132cat >>confdefs.h <<_ACEOF
43133#define HAVE_STRUCT_SOCKADDR 1
43134_ACEOF
43135
43136
43137fi
43138
43139fi
43140
43141cat >>confdefs.h <<_ACEOF
43142#define $ac_tr_hdr 1
43143_ACEOF
43144
43145fi
43146
43147
43148
43149cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
43150echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43151echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43152if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43153  echo $ECHO_N "(cached) $ECHO_C" >&6
43154else
43155  cat >conftest.$ac_ext <<_ACEOF
43156/* confdefs.h.  */
43157_ACEOF
43158cat confdefs.h >>conftest.$ac_ext
43159cat >>conftest.$ac_ext <<_ACEOF
43160/* end confdefs.h.  */
43161#include <sys/types.h>
43162#if STDC_HEADERS
43163#include <stdlib.h>
43164#include <stddef.h>
43165#endif
43166#include <sys/socket.h>
43167int
43168main ()
43169{
43170struct sockaddr_storage foo;
43171  ;
43172  return 0;
43173}
43174_ACEOF
43175rm -f conftest.$ac_objext
43176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43177  (eval $ac_compile) 2>conftest.er1
43178  ac_status=$?
43179  grep -v '^ *+' conftest.er1 >conftest.err
43180  rm -f conftest.er1
43181  cat conftest.err >&5
43182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43183  (exit $ac_status); } &&
43184	 { ac_try='test -z "$ac_c_werror_flag"
43185			 || test ! -s conftest.err'
43186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43187  (eval $ac_try) 2>&5
43188  ac_status=$?
43189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190  (exit $ac_status); }; } &&
43191	 { ac_try='test -s conftest.$ac_objext'
43192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43193  (eval $ac_try) 2>&5
43194  ac_status=$?
43195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196  (exit $ac_status); }; }; then
43197  eval "ac_cv_type_$cv=yes"
43198else
43199  echo "$as_me: failed program was:" >&5
43200sed 's/^/| /' conftest.$ac_ext >&5
43201
43202eval "ac_cv_type_$cv=no"
43203fi
43204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43205fi
43206ac_foo=`eval echo \\$ac_cv_type_$cv`
43207echo "$as_me:$LINENO: result: $ac_foo" >&5
43208echo "${ECHO_T}$ac_foo" >&6
43209if test "$ac_foo" = yes; then
43210  ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43211if false; then
43212	echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
43213echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
43214if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
43215  echo $ECHO_N "(cached) $ECHO_C" >&6
43216else
43217  cat >conftest.$ac_ext <<_ACEOF
43218/* confdefs.h.  */
43219_ACEOF
43220cat confdefs.h >>conftest.$ac_ext
43221cat >>conftest.$ac_ext <<_ACEOF
43222/* end confdefs.h.  */
43223$ac_includes_default
43224int
43225main ()
43226{
43227if ((struct sockaddr_storage *) 0)
43228  return 0;
43229if (sizeof (struct sockaddr_storage))
43230  return 0;
43231  ;
43232  return 0;
43233}
43234_ACEOF
43235rm -f conftest.$ac_objext
43236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43237  (eval $ac_compile) 2>conftest.er1
43238  ac_status=$?
43239  grep -v '^ *+' conftest.er1 >conftest.err
43240  rm -f conftest.er1
43241  cat conftest.err >&5
43242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243  (exit $ac_status); } &&
43244	 { ac_try='test -z "$ac_c_werror_flag"
43245			 || test ! -s conftest.err'
43246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43247  (eval $ac_try) 2>&5
43248  ac_status=$?
43249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43250  (exit $ac_status); }; } &&
43251	 { ac_try='test -s conftest.$ac_objext'
43252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43253  (eval $ac_try) 2>&5
43254  ac_status=$?
43255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43256  (exit $ac_status); }; }; then
43257  ac_cv_type_struct_sockaddr_storage=yes
43258else
43259  echo "$as_me: failed program was:" >&5
43260sed 's/^/| /' conftest.$ac_ext >&5
43261
43262ac_cv_type_struct_sockaddr_storage=no
43263fi
43264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43265fi
43266echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
43267echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
43268if test $ac_cv_type_struct_sockaddr_storage = yes; then
43269
43270cat >>confdefs.h <<_ACEOF
43271#define HAVE_STRUCT_SOCKADDR_STORAGE 1
43272_ACEOF
43273
43274
43275fi
43276
43277fi
43278
43279cat >>confdefs.h <<_ACEOF
43280#define $ac_tr_hdr 1
43281_ACEOF
43282
43283fi
43284
43285
43286
43287cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'`
43288echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43289echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43290if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43291  echo $ECHO_N "(cached) $ECHO_C" >&6
43292else
43293  cat >conftest.$ac_ext <<_ACEOF
43294/* confdefs.h.  */
43295_ACEOF
43296cat confdefs.h >>conftest.$ac_ext
43297cat >>conftest.$ac_ext <<_ACEOF
43298/* end confdefs.h.  */
43299#include <sys/types.h>
43300#if STDC_HEADERS
43301#include <stdlib.h>
43302#include <stddef.h>
43303#endif
43304#include <netdb.h>
43305int
43306main ()
43307{
43308struct addrinfo foo;
43309  ;
43310  return 0;
43311}
43312_ACEOF
43313rm -f conftest.$ac_objext
43314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43315  (eval $ac_compile) 2>conftest.er1
43316  ac_status=$?
43317  grep -v '^ *+' conftest.er1 >conftest.err
43318  rm -f conftest.er1
43319  cat conftest.err >&5
43320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43321  (exit $ac_status); } &&
43322	 { ac_try='test -z "$ac_c_werror_flag"
43323			 || test ! -s conftest.err'
43324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43325  (eval $ac_try) 2>&5
43326  ac_status=$?
43327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43328  (exit $ac_status); }; } &&
43329	 { ac_try='test -s conftest.$ac_objext'
43330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331  (eval $ac_try) 2>&5
43332  ac_status=$?
43333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334  (exit $ac_status); }; }; then
43335  eval "ac_cv_type_$cv=yes"
43336else
43337  echo "$as_me: failed program was:" >&5
43338sed 's/^/| /' conftest.$ac_ext >&5
43339
43340eval "ac_cv_type_$cv=no"
43341fi
43342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43343fi
43344ac_foo=`eval echo \\$ac_cv_type_$cv`
43345echo "$as_me:$LINENO: result: $ac_foo" >&5
43346echo "${ECHO_T}$ac_foo" >&6
43347if test "$ac_foo" = yes; then
43348  ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43349if false; then
43350	echo "$as_me:$LINENO: checking for struct addrinfo" >&5
43351echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
43352if test "${ac_cv_type_struct_addrinfo+set}" = set; then
43353  echo $ECHO_N "(cached) $ECHO_C" >&6
43354else
43355  cat >conftest.$ac_ext <<_ACEOF
43356/* confdefs.h.  */
43357_ACEOF
43358cat confdefs.h >>conftest.$ac_ext
43359cat >>conftest.$ac_ext <<_ACEOF
43360/* end confdefs.h.  */
43361$ac_includes_default
43362int
43363main ()
43364{
43365if ((struct addrinfo *) 0)
43366  return 0;
43367if (sizeof (struct addrinfo))
43368  return 0;
43369  ;
43370  return 0;
43371}
43372_ACEOF
43373rm -f conftest.$ac_objext
43374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43375  (eval $ac_compile) 2>conftest.er1
43376  ac_status=$?
43377  grep -v '^ *+' conftest.er1 >conftest.err
43378  rm -f conftest.er1
43379  cat conftest.err >&5
43380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381  (exit $ac_status); } &&
43382	 { ac_try='test -z "$ac_c_werror_flag"
43383			 || test ! -s conftest.err'
43384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43385  (eval $ac_try) 2>&5
43386  ac_status=$?
43387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43388  (exit $ac_status); }; } &&
43389	 { ac_try='test -s conftest.$ac_objext'
43390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43391  (eval $ac_try) 2>&5
43392  ac_status=$?
43393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394  (exit $ac_status); }; }; then
43395  ac_cv_type_struct_addrinfo=yes
43396else
43397  echo "$as_me: failed program was:" >&5
43398sed 's/^/| /' conftest.$ac_ext >&5
43399
43400ac_cv_type_struct_addrinfo=no
43401fi
43402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43403fi
43404echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
43405echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
43406if test $ac_cv_type_struct_addrinfo = yes; then
43407
43408cat >>confdefs.h <<_ACEOF
43409#define HAVE_STRUCT_ADDRINFO 1
43410_ACEOF
43411
43412
43413fi
43414
43415fi
43416
43417cat >>confdefs.h <<_ACEOF
43418#define $ac_tr_hdr 1
43419_ACEOF
43420
43421fi
43422
43423
43424
43425cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'`
43426echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43427echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43428if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43429  echo $ECHO_N "(cached) $ECHO_C" >&6
43430else
43431  cat >conftest.$ac_ext <<_ACEOF
43432/* confdefs.h.  */
43433_ACEOF
43434cat confdefs.h >>conftest.$ac_ext
43435cat >>conftest.$ac_ext <<_ACEOF
43436/* end confdefs.h.  */
43437#include <sys/types.h>
43438#if STDC_HEADERS
43439#include <stdlib.h>
43440#include <stddef.h>
43441#endif
43442#include <ifaddrs.h>
43443int
43444main ()
43445{
43446struct ifaddrs foo;
43447  ;
43448  return 0;
43449}
43450_ACEOF
43451rm -f conftest.$ac_objext
43452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43453  (eval $ac_compile) 2>conftest.er1
43454  ac_status=$?
43455  grep -v '^ *+' conftest.er1 >conftest.err
43456  rm -f conftest.er1
43457  cat conftest.err >&5
43458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43459  (exit $ac_status); } &&
43460	 { ac_try='test -z "$ac_c_werror_flag"
43461			 || test ! -s conftest.err'
43462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43463  (eval $ac_try) 2>&5
43464  ac_status=$?
43465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43466  (exit $ac_status); }; } &&
43467	 { ac_try='test -s conftest.$ac_objext'
43468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43469  (eval $ac_try) 2>&5
43470  ac_status=$?
43471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43472  (exit $ac_status); }; }; then
43473  eval "ac_cv_type_$cv=yes"
43474else
43475  echo "$as_me: failed program was:" >&5
43476sed 's/^/| /' conftest.$ac_ext >&5
43477
43478eval "ac_cv_type_$cv=no"
43479fi
43480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43481fi
43482ac_foo=`eval echo \\$ac_cv_type_$cv`
43483echo "$as_me:$LINENO: result: $ac_foo" >&5
43484echo "${ECHO_T}$ac_foo" >&6
43485if test "$ac_foo" = yes; then
43486  ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43487if false; then
43488	echo "$as_me:$LINENO: checking for struct ifaddrs" >&5
43489echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6
43490if test "${ac_cv_type_struct_ifaddrs+set}" = set; then
43491  echo $ECHO_N "(cached) $ECHO_C" >&6
43492else
43493  cat >conftest.$ac_ext <<_ACEOF
43494/* confdefs.h.  */
43495_ACEOF
43496cat confdefs.h >>conftest.$ac_ext
43497cat >>conftest.$ac_ext <<_ACEOF
43498/* end confdefs.h.  */
43499$ac_includes_default
43500int
43501main ()
43502{
43503if ((struct ifaddrs *) 0)
43504  return 0;
43505if (sizeof (struct ifaddrs))
43506  return 0;
43507  ;
43508  return 0;
43509}
43510_ACEOF
43511rm -f conftest.$ac_objext
43512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43513  (eval $ac_compile) 2>conftest.er1
43514  ac_status=$?
43515  grep -v '^ *+' conftest.er1 >conftest.err
43516  rm -f conftest.er1
43517  cat conftest.err >&5
43518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43519  (exit $ac_status); } &&
43520	 { ac_try='test -z "$ac_c_werror_flag"
43521			 || test ! -s conftest.err'
43522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43523  (eval $ac_try) 2>&5
43524  ac_status=$?
43525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43526  (exit $ac_status); }; } &&
43527	 { ac_try='test -s conftest.$ac_objext'
43528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43529  (eval $ac_try) 2>&5
43530  ac_status=$?
43531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43532  (exit $ac_status); }; }; then
43533  ac_cv_type_struct_ifaddrs=yes
43534else
43535  echo "$as_me: failed program was:" >&5
43536sed 's/^/| /' conftest.$ac_ext >&5
43537
43538ac_cv_type_struct_ifaddrs=no
43539fi
43540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43541fi
43542echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5
43543echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6
43544if test $ac_cv_type_struct_ifaddrs = yes; then
43545
43546cat >>confdefs.h <<_ACEOF
43547#define HAVE_STRUCT_IFADDRS 1
43548_ACEOF
43549
43550
43551fi
43552
43553fi
43554
43555cat >>confdefs.h <<_ACEOF
43556#define $ac_tr_hdr 1
43557_ACEOF
43558
43559fi
43560
43561
43562
43563cv=`echo "struct iovec" | sed 'y%./+- %__p__%'`
43564echo "$as_me:$LINENO: checking for struct iovec" >&5
43565echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43566if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43567  echo $ECHO_N "(cached) $ECHO_C" >&6
43568else
43569  cat >conftest.$ac_ext <<_ACEOF
43570/* confdefs.h.  */
43571_ACEOF
43572cat confdefs.h >>conftest.$ac_ext
43573cat >>conftest.$ac_ext <<_ACEOF
43574/* end confdefs.h.  */
43575#include <sys/types.h>
43576#if STDC_HEADERS
43577#include <stdlib.h>
43578#include <stddef.h>
43579#endif
43580
43581#include <sys/types.h>
43582#include <sys/uio.h>
43583
43584int
43585main ()
43586{
43587struct iovec foo;
43588  ;
43589  return 0;
43590}
43591_ACEOF
43592rm -f conftest.$ac_objext
43593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43594  (eval $ac_compile) 2>conftest.er1
43595  ac_status=$?
43596  grep -v '^ *+' conftest.er1 >conftest.err
43597  rm -f conftest.er1
43598  cat conftest.err >&5
43599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600  (exit $ac_status); } &&
43601	 { ac_try='test -z "$ac_c_werror_flag"
43602			 || test ! -s conftest.err'
43603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43604  (eval $ac_try) 2>&5
43605  ac_status=$?
43606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43607  (exit $ac_status); }; } &&
43608	 { ac_try='test -s conftest.$ac_objext'
43609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43610  (eval $ac_try) 2>&5
43611  ac_status=$?
43612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43613  (exit $ac_status); }; }; then
43614  eval "ac_cv_type_$cv=yes"
43615else
43616  echo "$as_me: failed program was:" >&5
43617sed 's/^/| /' conftest.$ac_ext >&5
43618
43619eval "ac_cv_type_$cv=no"
43620fi
43621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43622fi
43623ac_foo=`eval echo \\$ac_cv_type_$cv`
43624echo "$as_me:$LINENO: result: $ac_foo" >&5
43625echo "${ECHO_T}$ac_foo" >&6
43626if test "$ac_foo" = yes; then
43627  ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43628if false; then
43629	echo "$as_me:$LINENO: checking for struct iovec" >&5
43630echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6
43631if test "${ac_cv_type_struct_iovec+set}" = set; then
43632  echo $ECHO_N "(cached) $ECHO_C" >&6
43633else
43634  cat >conftest.$ac_ext <<_ACEOF
43635/* confdefs.h.  */
43636_ACEOF
43637cat confdefs.h >>conftest.$ac_ext
43638cat >>conftest.$ac_ext <<_ACEOF
43639/* end confdefs.h.  */
43640$ac_includes_default
43641int
43642main ()
43643{
43644if ((struct iovec *) 0)
43645  return 0;
43646if (sizeof (struct iovec))
43647  return 0;
43648  ;
43649  return 0;
43650}
43651_ACEOF
43652rm -f conftest.$ac_objext
43653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43654  (eval $ac_compile) 2>conftest.er1
43655  ac_status=$?
43656  grep -v '^ *+' conftest.er1 >conftest.err
43657  rm -f conftest.er1
43658  cat conftest.err >&5
43659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43660  (exit $ac_status); } &&
43661	 { ac_try='test -z "$ac_c_werror_flag"
43662			 || test ! -s conftest.err'
43663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43664  (eval $ac_try) 2>&5
43665  ac_status=$?
43666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667  (exit $ac_status); }; } &&
43668	 { ac_try='test -s conftest.$ac_objext'
43669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43670  (eval $ac_try) 2>&5
43671  ac_status=$?
43672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43673  (exit $ac_status); }; }; then
43674  ac_cv_type_struct_iovec=yes
43675else
43676  echo "$as_me: failed program was:" >&5
43677sed 's/^/| /' conftest.$ac_ext >&5
43678
43679ac_cv_type_struct_iovec=no
43680fi
43681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43682fi
43683echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5
43684echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6
43685if test $ac_cv_type_struct_iovec = yes; then
43686
43687cat >>confdefs.h <<_ACEOF
43688#define HAVE_STRUCT_IOVEC 1
43689_ACEOF
43690
43691
43692fi
43693
43694fi
43695
43696cat >>confdefs.h <<_ACEOF
43697#define $ac_tr_hdr 1
43698_ACEOF
43699
43700fi
43701
43702
43703
43704cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'`
43705echo "$as_me:$LINENO: checking for struct msghdr" >&5
43706echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43707if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
43708  echo $ECHO_N "(cached) $ECHO_C" >&6
43709else
43710  cat >conftest.$ac_ext <<_ACEOF
43711/* confdefs.h.  */
43712_ACEOF
43713cat confdefs.h >>conftest.$ac_ext
43714cat >>conftest.$ac_ext <<_ACEOF
43715/* end confdefs.h.  */
43716#include <sys/types.h>
43717#if STDC_HEADERS
43718#include <stdlib.h>
43719#include <stddef.h>
43720#endif
43721
43722#include <sys/types.h>
43723#include <sys/socket.h>
43724
43725int
43726main ()
43727{
43728struct msghdr foo;
43729  ;
43730  return 0;
43731}
43732_ACEOF
43733rm -f conftest.$ac_objext
43734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43735  (eval $ac_compile) 2>conftest.er1
43736  ac_status=$?
43737  grep -v '^ *+' conftest.er1 >conftest.err
43738  rm -f conftest.er1
43739  cat conftest.err >&5
43740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43741  (exit $ac_status); } &&
43742	 { ac_try='test -z "$ac_c_werror_flag"
43743			 || test ! -s conftest.err'
43744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43745  (eval $ac_try) 2>&5
43746  ac_status=$?
43747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43748  (exit $ac_status); }; } &&
43749	 { ac_try='test -s conftest.$ac_objext'
43750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43751  (eval $ac_try) 2>&5
43752  ac_status=$?
43753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43754  (exit $ac_status); }; }; then
43755  eval "ac_cv_type_$cv=yes"
43756else
43757  echo "$as_me: failed program was:" >&5
43758sed 's/^/| /' conftest.$ac_ext >&5
43759
43760eval "ac_cv_type_$cv=no"
43761fi
43762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43763fi
43764ac_foo=`eval echo \\$ac_cv_type_$cv`
43765echo "$as_me:$LINENO: result: $ac_foo" >&5
43766echo "${ECHO_T}$ac_foo" >&6
43767if test "$ac_foo" = yes; then
43768  ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
43769if false; then
43770	echo "$as_me:$LINENO: checking for struct msghdr" >&5
43771echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6
43772if test "${ac_cv_type_struct_msghdr+set}" = set; then
43773  echo $ECHO_N "(cached) $ECHO_C" >&6
43774else
43775  cat >conftest.$ac_ext <<_ACEOF
43776/* confdefs.h.  */
43777_ACEOF
43778cat confdefs.h >>conftest.$ac_ext
43779cat >>conftest.$ac_ext <<_ACEOF
43780/* end confdefs.h.  */
43781$ac_includes_default
43782int
43783main ()
43784{
43785if ((struct msghdr *) 0)
43786  return 0;
43787if (sizeof (struct msghdr))
43788  return 0;
43789  ;
43790  return 0;
43791}
43792_ACEOF
43793rm -f conftest.$ac_objext
43794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43795  (eval $ac_compile) 2>conftest.er1
43796  ac_status=$?
43797  grep -v '^ *+' conftest.er1 >conftest.err
43798  rm -f conftest.er1
43799  cat conftest.err >&5
43800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43801  (exit $ac_status); } &&
43802	 { ac_try='test -z "$ac_c_werror_flag"
43803			 || test ! -s conftest.err'
43804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43805  (eval $ac_try) 2>&5
43806  ac_status=$?
43807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43808  (exit $ac_status); }; } &&
43809	 { ac_try='test -s conftest.$ac_objext'
43810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43811  (eval $ac_try) 2>&5
43812  ac_status=$?
43813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43814  (exit $ac_status); }; }; then
43815  ac_cv_type_struct_msghdr=yes
43816else
43817  echo "$as_me: failed program was:" >&5
43818sed 's/^/| /' conftest.$ac_ext >&5
43819
43820ac_cv_type_struct_msghdr=no
43821fi
43822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43823fi
43824echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5
43825echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6
43826if test $ac_cv_type_struct_msghdr = yes; then
43827
43828cat >>confdefs.h <<_ACEOF
43829#define HAVE_STRUCT_MSGHDR 1
43830_ACEOF
43831
43832
43833fi
43834
43835fi
43836
43837cat >>confdefs.h <<_ACEOF
43838#define $ac_tr_hdr 1
43839_ACEOF
43840
43841fi
43842
43843
43844
43845
43846echo "$as_me:$LINENO: checking for struct winsize" >&5
43847echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6
43848if test "${ac_cv_struct_winsize+set}" = set; then
43849  echo $ECHO_N "(cached) $ECHO_C" >&6
43850else
43851
43852ac_cv_struct_winsize=no
43853for i in sys/termios.h sys/ioctl.h; do
43854cat >conftest.$ac_ext <<_ACEOF
43855/* confdefs.h.  */
43856_ACEOF
43857cat confdefs.h >>conftest.$ac_ext
43858cat >>conftest.$ac_ext <<_ACEOF
43859/* end confdefs.h.  */
43860#include <$i>
43861
43862_ACEOF
43863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43864  $EGREP "struct[ 	]*winsize" >/dev/null 2>&1; then
43865  ac_cv_struct_winsize=yes; break
43866fi
43867rm -f conftest*
43868done
43869
43870fi
43871
43872if test "$ac_cv_struct_winsize" = "yes"; then
43873
43874cat >>confdefs.h <<\_ACEOF
43875#define HAVE_STRUCT_WINSIZE 1
43876_ACEOF
43877
43878fi
43879echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5
43880echo "${ECHO_T}$ac_cv_struct_winsize" >&6
43881cat >conftest.$ac_ext <<_ACEOF
43882/* confdefs.h.  */
43883_ACEOF
43884cat confdefs.h >>conftest.$ac_ext
43885cat >>conftest.$ac_ext <<_ACEOF
43886/* end confdefs.h.  */
43887#include <termios.h>
43888
43889_ACEOF
43890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43891  $EGREP "ws_xpixel" >/dev/null 2>&1; then
43892
43893cat >>confdefs.h <<\_ACEOF
43894#define HAVE_WS_XPIXEL 1
43895_ACEOF
43896
43897fi
43898rm -f conftest*
43899
43900cat >conftest.$ac_ext <<_ACEOF
43901/* confdefs.h.  */
43902_ACEOF
43903cat confdefs.h >>conftest.$ac_ext
43904cat >>conftest.$ac_ext <<_ACEOF
43905/* end confdefs.h.  */
43906#include <termios.h>
43907
43908_ACEOF
43909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43910  $EGREP "ws_ypixel" >/dev/null 2>&1; then
43911
43912cat >>confdefs.h <<\_ACEOF
43913#define HAVE_WS_YPIXEL 1
43914_ACEOF
43915
43916fi
43917rm -f conftest*
43918
43919
43920
43921
43922
43923echo "$as_me:$LINENO: checking for struct spwd" >&5
43924echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6
43925if test "${ac_cv_struct_spwd+set}" = set; then
43926  echo $ECHO_N "(cached) $ECHO_C" >&6
43927else
43928
43929cat >conftest.$ac_ext <<_ACEOF
43930/* confdefs.h.  */
43931_ACEOF
43932cat confdefs.h >>conftest.$ac_ext
43933cat >>conftest.$ac_ext <<_ACEOF
43934/* end confdefs.h.  */
43935#include <pwd.h>
43936#ifdef HAVE_SHADOW_H
43937#include <shadow.h>
43938#endif
43939int
43940main ()
43941{
43942struct spwd foo;
43943  ;
43944  return 0;
43945}
43946_ACEOF
43947rm -f conftest.$ac_objext
43948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43949  (eval $ac_compile) 2>conftest.er1
43950  ac_status=$?
43951  grep -v '^ *+' conftest.er1 >conftest.err
43952  rm -f conftest.er1
43953  cat conftest.err >&5
43954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43955  (exit $ac_status); } &&
43956	 { ac_try='test -z "$ac_c_werror_flag"
43957			 || test ! -s conftest.err'
43958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959  (eval $ac_try) 2>&5
43960  ac_status=$?
43961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962  (exit $ac_status); }; } &&
43963	 { ac_try='test -s conftest.$ac_objext'
43964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43965  (eval $ac_try) 2>&5
43966  ac_status=$?
43967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
43968  (exit $ac_status); }; }; then
43969  ac_cv_struct_spwd=yes
43970else
43971  echo "$as_me: failed program was:" >&5
43972sed 's/^/| /' conftest.$ac_ext >&5
43973
43974ac_cv_struct_spwd=no
43975fi
43976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43977
43978fi
43979
43980echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5
43981echo "${ECHO_T}$ac_cv_struct_spwd" >&6
43982
43983if test "$ac_cv_struct_spwd" = "yes"; then
43984
43985cat >>confdefs.h <<\_ACEOF
43986#define HAVE_STRUCT_SPWD 1
43987_ACEOF
43988
43989fi
43990
43991
43992
43993LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)"
43994
43995
43996LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken"
43997
43998
43999# Check whether --enable-otp or --disable-otp was given.
44000if test "${enable_otp+set}" = set; then
44001  enableval="$enable_otp"
44002
44003fi;
44004if test "$enable_otp" = yes -a "$db_type" = unknown; then
44005	{ { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5
44006echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;}
44007   { (exit 1); exit 1; }; }
44008fi
44009if test "$enable_otp" != no; then
44010	if test "$db_type" != unknown; then
44011		enable_otp=yes
44012	else
44013		enable_otp=no
44014	fi
44015fi
44016if test "$enable_otp" = yes; then
44017
44018cat >>confdefs.h <<\_ACEOF
44019#define OTP 1
44020_ACEOF
44021
44022	LIB_otp='$(top_builddir)/lib/otp/libotp.la'
44023
44024fi
44025echo "$as_me:$LINENO: checking whether to enable OTP library" >&5
44026echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6
44027echo "$as_me:$LINENO: result: $enable_otp" >&5
44028echo "${ECHO_T}$enable_otp" >&6
44029
44030
44031if test "$enable_otp" = yes; then
44032  OTP_TRUE=
44033  OTP_FALSE='#'
44034else
44035  OTP_TRUE='#'
44036  OTP_FALSE=
44037fi
44038
44039
44040
44041# Check whether --enable-osfc2 or --disable-osfc2 was given.
44042if test "${enable_osfc2+set}" = set; then
44043  enableval="$enable_osfc2"
44044
44045fi;
44046LIB_security=
44047if test "$enable_osfc2" = yes; then
44048
44049cat >>confdefs.h <<\_ACEOF
44050#define HAVE_OSFC2 1
44051_ACEOF
44052
44053	LIB_security=-lsecurity
44054fi
44055
44056
44057
44058# Check whether --enable-mmap or --disable-mmap was given.
44059if test "${enable_mmap+set}" = set; then
44060  enableval="$enable_mmap"
44061
44062fi;
44063if test "$enable_mmap" = "no"; then
44064
44065cat >>confdefs.h <<\_ACEOF
44066#define NO_MMAP 1
44067_ACEOF
44068
44069fi
44070
44071# Extract the first word of "nroff", so it can be a program name with args.
44072set dummy nroff; ac_word=$2
44073echo "$as_me:$LINENO: checking for $ac_word" >&5
44074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44075if test "${ac_cv_path_NROFF+set}" = set; then
44076  echo $ECHO_N "(cached) $ECHO_C" >&6
44077else
44078  case $NROFF in
44079  [\\/]* | ?:[\\/]*)
44080  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44081  ;;
44082  *)
44083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44084for as_dir in $PATH
44085do
44086  IFS=$as_save_IFS
44087  test -z "$as_dir" && as_dir=.
44088  for ac_exec_ext in '' $ac_executable_extensions; do
44089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44090    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
44091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44092    break 2
44093  fi
44094done
44095done
44096
44097  ;;
44098esac
44099fi
44100NROFF=$ac_cv_path_NROFF
44101
44102if test -n "$NROFF"; then
44103  echo "$as_me:$LINENO: result: $NROFF" >&5
44104echo "${ECHO_T}$NROFF" >&6
44105else
44106  echo "$as_me:$LINENO: result: no" >&5
44107echo "${ECHO_T}no" >&6
44108fi
44109
44110# Extract the first word of "groff", so it can be a program name with args.
44111set dummy groff; ac_word=$2
44112echo "$as_me:$LINENO: checking for $ac_word" >&5
44113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44114if test "${ac_cv_path_GROFF+set}" = set; then
44115  echo $ECHO_N "(cached) $ECHO_C" >&6
44116else
44117  case $GROFF in
44118  [\\/]* | ?:[\\/]*)
44119  ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
44120  ;;
44121  *)
44122  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44123for as_dir in $PATH
44124do
44125  IFS=$as_save_IFS
44126  test -z "$as_dir" && as_dir=.
44127  for ac_exec_ext in '' $ac_executable_extensions; do
44128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44129    ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
44130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44131    break 2
44132  fi
44133done
44134done
44135
44136  ;;
44137esac
44138fi
44139GROFF=$ac_cv_path_GROFF
44140
44141if test -n "$GROFF"; then
44142  echo "$as_me:$LINENO: result: $GROFF" >&5
44143echo "${ECHO_T}$GROFF" >&6
44144else
44145  echo "$as_me:$LINENO: result: no" >&5
44146echo "${ECHO_T}no" >&6
44147fi
44148
44149echo "$as_me:$LINENO: checking how to format man pages" >&5
44150echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6
44151if test "${ac_cv_sys_man_format+set}" = set; then
44152  echo $ECHO_N "(cached) $ECHO_C" >&6
44153else
44154  cat > conftest.1 << END
44155.Dd January 1, 1970
44156.Dt CONFTEST 1
44157.Sh NAME
44158.Nm conftest
44159.Nd
44160foobar
44161END
44162
44163if test "$NROFF" ; then
44164	for i in "-mdoc" "-mandoc"; do
44165		if "$NROFF" $i conftest.1 2> /dev/null | \
44166			grep Jan > /dev/null 2>&1 ; then
44167			ac_cv_sys_man_format="$NROFF $i"
44168			break
44169		fi
44170	done
44171fi
44172if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then
44173	for i in "-mdoc" "-mandoc"; do
44174		if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \
44175			grep Jan > /dev/null 2>&1 ; then
44176			ac_cv_sys_man_format="$GROFF -Tascii $i"
44177			break
44178		fi
44179	done
44180fi
44181if test "$ac_cv_sys_man_format"; then
44182	ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@"
44183fi
44184
44185fi
44186echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5
44187echo "${ECHO_T}$ac_cv_sys_man_format" >&6
44188if test "$ac_cv_sys_man_format"; then
44189	CATMAN="$ac_cv_sys_man_format"
44190
44191fi
44192
44193
44194if test "$CATMAN"; then
44195  CATMAN_TRUE=
44196  CATMAN_FALSE='#'
44197else
44198  CATMAN_TRUE='#'
44199  CATMAN_FALSE=
44200fi
44201
44202echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5
44203echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6
44204if test "${ac_cv_sys_catman_ext+set}" = set; then
44205  echo $ECHO_N "(cached) $ECHO_C" >&6
44206else
44207  if grep _suffix /etc/man.conf > /dev/null 2>&1; then
44208	ac_cv_sys_catman_ext=0
44209else
44210	ac_cv_sys_catman_ext=number
44211fi
44212
44213fi
44214echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5
44215echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6
44216if test "$ac_cv_sys_catman_ext" = number; then
44217	CATMANEXT='$$section'
44218else
44219	CATMANEXT=0
44220fi
44221
44222
44223
44224
44225
44226# Check whether --with-readline or --without-readline was given.
44227if test "${with_readline+set}" = set; then
44228  withval="$with_readline"
44229
44230fi;
44231
44232# Check whether --with-readline-lib or --without-readline-lib was given.
44233if test "${with_readline_lib+set}" = set; then
44234  withval="$with_readline_lib"
44235  if test "$withval" = "yes" -o "$withval" = "no"; then
44236  { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5
44237echo "$as_me: error: No argument for --with-readline-lib" >&2;}
44238   { (exit 1); exit 1; }; }
44239elif test "X$with_readline" = "X"; then
44240  with_readline=yes
44241fi
44242fi;
44243
44244# Check whether --with-readline-include or --without-readline-include was given.
44245if test "${with_readline_include+set}" = set; then
44246  withval="$with_readline_include"
44247  if test "$withval" = "yes" -o "$withval" = "no"; then
44248  { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5
44249echo "$as_me: error: No argument for --with-readline-include" >&2;}
44250   { (exit 1); exit 1; }; }
44251elif test "X$with_readline" = "X"; then
44252  with_readline=yes
44253fi
44254fi;
44255
44256# Check whether --with-readline-config or --without-readline-config was given.
44257if test "${with_readline_config+set}" = set; then
44258  withval="$with_readline_config"
44259
44260fi;
44261
44262
44263
44264echo "$as_me:$LINENO: checking for readline" >&5
44265echo $ECHO_N "checking for readline... $ECHO_C" >&6
44266
44267case "$with_readline" in
44268yes|"") d='' ;;
44269no)	d= ;;
44270*)	d="$with_readline" ;;
44271esac
44272
44273header_dirs=
44274lib_dirs=
44275for i in $d; do
44276	if test "$with_readline_include" = ""; then
44277		if test -d "$i/include/readline"; then
44278			header_dirs="$header_dirs $i/include/readline"
44279		fi
44280		if test -d "$i/include"; then
44281			header_dirs="$header_dirs $i/include"
44282		fi
44283	fi
44284	if test "$with_readline_lib" = ""; then
44285		if test -d "$i/lib$abilibdirext"; then
44286			lib_dirs="$lib_dirs $i/lib$abilibdirext"
44287		fi
44288	fi
44289done
44290
44291if test "$with_readline_include"; then
44292	header_dirs="$with_readline_include $header_dirs"
44293fi
44294if test "$with_readline_lib"; then
44295	lib_dirs="$with_readline_lib $lib_dirs"
44296fi
44297
44298if test "$with_readline_config" = ""; then
44299	with_readline_config=''
44300fi
44301
44302readline_cflags=
44303readline_libs=
44304
44305case "$with_readline_config" in
44306yes|no|"")
44307	;;
44308*)
44309	readline_cflags="`$with_readline_config --cflags 2>&1`"
44310	readline_libs="`$with_readline_config --libs 2>&1`"
44311	;;
44312esac
44313
44314found=no
44315if test "$with_readline" != no; then
44316	save_CFLAGS="$CFLAGS"
44317	save_LIBS="$LIBS"
44318	if test "$readline_cflags" -a "$readline_libs"; then
44319		CFLAGS="$readline_cflags $save_CFLAGS"
44320		LIBS="$readline_libs $save_LIBS"
44321		cat >conftest.$ac_ext <<_ACEOF
44322/* confdefs.h.  */
44323_ACEOF
44324cat confdefs.h >>conftest.$ac_ext
44325cat >>conftest.$ac_ext <<_ACEOF
44326/* end confdefs.h.  */
44327#include <stdio.h>
44328 #include <readline.h>
44329int
44330main ()
44331{
44332
44333  ;
44334  return 0;
44335}
44336_ACEOF
44337rm -f conftest.$ac_objext conftest$ac_exeext
44338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44339  (eval $ac_link) 2>conftest.er1
44340  ac_status=$?
44341  grep -v '^ *+' conftest.er1 >conftest.err
44342  rm -f conftest.er1
44343  cat conftest.err >&5
44344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44345  (exit $ac_status); } &&
44346	 { ac_try='test -z "$ac_c_werror_flag"
44347			 || test ! -s conftest.err'
44348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44349  (eval $ac_try) 2>&5
44350  ac_status=$?
44351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44352  (exit $ac_status); }; } &&
44353	 { ac_try='test -s conftest$ac_exeext'
44354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44355  (eval $ac_try) 2>&5
44356  ac_status=$?
44357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44358  (exit $ac_status); }; }; then
44359
44360			INCLUDE_readline="$readline_cflags"
44361			LIB_readline="$readline_libs"
44362			echo "$as_me:$LINENO: result: from $with_readline_config" >&5
44363echo "${ECHO_T}from $with_readline_config" >&6
44364			found=yes
44365else
44366  echo "$as_me: failed program was:" >&5
44367sed 's/^/| /' conftest.$ac_ext >&5
44368
44369fi
44370rm -f conftest.err conftest.$ac_objext \
44371      conftest$ac_exeext conftest.$ac_ext
44372	fi
44373	if test "$found" = no; then
44374		ires= lres=
44375		for i in $header_dirs; do
44376			CFLAGS="-I$i $save_CFLAGS"
44377			cat >conftest.$ac_ext <<_ACEOF
44378/* confdefs.h.  */
44379_ACEOF
44380cat confdefs.h >>conftest.$ac_ext
44381cat >>conftest.$ac_ext <<_ACEOF
44382/* end confdefs.h.  */
44383#include <stdio.h>
44384 #include <readline.h>
44385int
44386main ()
44387{
44388
44389  ;
44390  return 0;
44391}
44392_ACEOF
44393rm -f conftest.$ac_objext
44394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44395  (eval $ac_compile) 2>conftest.er1
44396  ac_status=$?
44397  grep -v '^ *+' conftest.er1 >conftest.err
44398  rm -f conftest.er1
44399  cat conftest.err >&5
44400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44401  (exit $ac_status); } &&
44402	 { ac_try='test -z "$ac_c_werror_flag"
44403			 || test ! -s conftest.err'
44404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405  (eval $ac_try) 2>&5
44406  ac_status=$?
44407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408  (exit $ac_status); }; } &&
44409	 { ac_try='test -s conftest.$ac_objext'
44410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44411  (eval $ac_try) 2>&5
44412  ac_status=$?
44413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44414  (exit $ac_status); }; }; then
44415  ires=$i;break
44416else
44417  echo "$as_me: failed program was:" >&5
44418sed 's/^/| /' conftest.$ac_ext >&5
44419
44420fi
44421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44422		done
44423		for i in $lib_dirs; do
44424			LIBS="-L$i -lreadline  $save_LIBS"
44425			cat >conftest.$ac_ext <<_ACEOF
44426/* confdefs.h.  */
44427_ACEOF
44428cat confdefs.h >>conftest.$ac_ext
44429cat >>conftest.$ac_ext <<_ACEOF
44430/* end confdefs.h.  */
44431#include <stdio.h>
44432 #include <readline.h>
44433int
44434main ()
44435{
44436
44437  ;
44438  return 0;
44439}
44440_ACEOF
44441rm -f conftest.$ac_objext conftest$ac_exeext
44442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44443  (eval $ac_link) 2>conftest.er1
44444  ac_status=$?
44445  grep -v '^ *+' conftest.er1 >conftest.err
44446  rm -f conftest.er1
44447  cat conftest.err >&5
44448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44449  (exit $ac_status); } &&
44450	 { ac_try='test -z "$ac_c_werror_flag"
44451			 || test ! -s conftest.err'
44452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44453  (eval $ac_try) 2>&5
44454  ac_status=$?
44455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44456  (exit $ac_status); }; } &&
44457	 { ac_try='test -s conftest$ac_exeext'
44458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44459  (eval $ac_try) 2>&5
44460  ac_status=$?
44461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44462  (exit $ac_status); }; }; then
44463  lres=$i;break
44464else
44465  echo "$as_me: failed program was:" >&5
44466sed 's/^/| /' conftest.$ac_ext >&5
44467
44468fi
44469rm -f conftest.err conftest.$ac_objext \
44470      conftest$ac_exeext conftest.$ac_ext
44471		done
44472		if test "$ires" -a "$lres" -a "$with_readline" != "no"; then
44473			INCLUDE_readline="-I$ires"
44474			LIB_readline="-L$lres -lreadline "
44475			found=yes
44476			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44477echo "${ECHO_T}headers $ires, libraries $lres" >&6
44478		fi
44479	fi
44480	CFLAGS="$save_CFLAGS"
44481	LIBS="$save_LIBS"
44482fi
44483
44484if test "$found" = yes; then
44485
44486cat >>confdefs.h <<_ACEOF
44487#define READLINE 1
44488_ACEOF
44489
44490	with_readline=yes
44491else
44492	with_readline=no
44493	INCLUDE_readline=
44494	LIB_readline=
44495	echo "$as_me:$LINENO: result: no" >&5
44496echo "${ECHO_T}no" >&6
44497fi
44498
44499
44500
44501
44502
44503
44504
44505# Check whether --with-hesiod or --without-hesiod was given.
44506if test "${with_hesiod+set}" = set; then
44507  withval="$with_hesiod"
44508
44509fi;
44510
44511# Check whether --with-hesiod-lib or --without-hesiod-lib was given.
44512if test "${with_hesiod_lib+set}" = set; then
44513  withval="$with_hesiod_lib"
44514  if test "$withval" = "yes" -o "$withval" = "no"; then
44515  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5
44516echo "$as_me: error: No argument for --with-hesiod-lib" >&2;}
44517   { (exit 1); exit 1; }; }
44518elif test "X$with_hesiod" = "X"; then
44519  with_hesiod=yes
44520fi
44521fi;
44522
44523# Check whether --with-hesiod-include or --without-hesiod-include was given.
44524if test "${with_hesiod_include+set}" = set; then
44525  withval="$with_hesiod_include"
44526  if test "$withval" = "yes" -o "$withval" = "no"; then
44527  { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5
44528echo "$as_me: error: No argument for --with-hesiod-include" >&2;}
44529   { (exit 1); exit 1; }; }
44530elif test "X$with_hesiod" = "X"; then
44531  with_hesiod=yes
44532fi
44533fi;
44534
44535# Check whether --with-hesiod-config or --without-hesiod-config was given.
44536if test "${with_hesiod_config+set}" = set; then
44537  withval="$with_hesiod_config"
44538
44539fi;
44540
44541
44542
44543echo "$as_me:$LINENO: checking for hesiod" >&5
44544echo $ECHO_N "checking for hesiod... $ECHO_C" >&6
44545
44546case "$with_hesiod" in
44547yes|"") d='' ;;
44548no)	d= ;;
44549*)	d="$with_hesiod" ;;
44550esac
44551
44552header_dirs=
44553lib_dirs=
44554for i in $d; do
44555	if test "$with_hesiod_include" = ""; then
44556		if test -d "$i/include/hesiod"; then
44557			header_dirs="$header_dirs $i/include/hesiod"
44558		fi
44559		if test -d "$i/include"; then
44560			header_dirs="$header_dirs $i/include"
44561		fi
44562	fi
44563	if test "$with_hesiod_lib" = ""; then
44564		if test -d "$i/lib$abilibdirext"; then
44565			lib_dirs="$lib_dirs $i/lib$abilibdirext"
44566		fi
44567	fi
44568done
44569
44570if test "$with_hesiod_include"; then
44571	header_dirs="$with_hesiod_include $header_dirs"
44572fi
44573if test "$with_hesiod_lib"; then
44574	lib_dirs="$with_hesiod_lib $lib_dirs"
44575fi
44576
44577if test "$with_hesiod_config" = ""; then
44578	with_hesiod_config=''
44579fi
44580
44581hesiod_cflags=
44582hesiod_libs=
44583
44584case "$with_hesiod_config" in
44585yes|no|"")
44586	;;
44587*)
44588	hesiod_cflags="`$with_hesiod_config --cflags 2>&1`"
44589	hesiod_libs="`$with_hesiod_config --libs 2>&1`"
44590	;;
44591esac
44592
44593found=no
44594if test "$with_hesiod" != no; then
44595	save_CFLAGS="$CFLAGS"
44596	save_LIBS="$LIBS"
44597	if test "$hesiod_cflags" -a "$hesiod_libs"; then
44598		CFLAGS="$hesiod_cflags $save_CFLAGS"
44599		LIBS="$hesiod_libs $save_LIBS"
44600		cat >conftest.$ac_ext <<_ACEOF
44601/* confdefs.h.  */
44602_ACEOF
44603cat confdefs.h >>conftest.$ac_ext
44604cat >>conftest.$ac_ext <<_ACEOF
44605/* end confdefs.h.  */
44606#include <hesiod.h>
44607int
44608main ()
44609{
44610
44611  ;
44612  return 0;
44613}
44614_ACEOF
44615rm -f conftest.$ac_objext conftest$ac_exeext
44616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44617  (eval $ac_link) 2>conftest.er1
44618  ac_status=$?
44619  grep -v '^ *+' conftest.er1 >conftest.err
44620  rm -f conftest.er1
44621  cat conftest.err >&5
44622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44623  (exit $ac_status); } &&
44624	 { ac_try='test -z "$ac_c_werror_flag"
44625			 || test ! -s conftest.err'
44626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44627  (eval $ac_try) 2>&5
44628  ac_status=$?
44629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44630  (exit $ac_status); }; } &&
44631	 { ac_try='test -s conftest$ac_exeext'
44632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44633  (eval $ac_try) 2>&5
44634  ac_status=$?
44635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44636  (exit $ac_status); }; }; then
44637
44638			INCLUDE_hesiod="$hesiod_cflags"
44639			LIB_hesiod="$hesiod_libs"
44640			echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5
44641echo "${ECHO_T}from $with_hesiod_config" >&6
44642			found=yes
44643else
44644  echo "$as_me: failed program was:" >&5
44645sed 's/^/| /' conftest.$ac_ext >&5
44646
44647fi
44648rm -f conftest.err conftest.$ac_objext \
44649      conftest$ac_exeext conftest.$ac_ext
44650	fi
44651	if test "$found" = no; then
44652		ires= lres=
44653		for i in $header_dirs; do
44654			CFLAGS="-I$i $save_CFLAGS"
44655			cat >conftest.$ac_ext <<_ACEOF
44656/* confdefs.h.  */
44657_ACEOF
44658cat confdefs.h >>conftest.$ac_ext
44659cat >>conftest.$ac_ext <<_ACEOF
44660/* end confdefs.h.  */
44661#include <hesiod.h>
44662int
44663main ()
44664{
44665
44666  ;
44667  return 0;
44668}
44669_ACEOF
44670rm -f conftest.$ac_objext
44671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44672  (eval $ac_compile) 2>conftest.er1
44673  ac_status=$?
44674  grep -v '^ *+' conftest.er1 >conftest.err
44675  rm -f conftest.er1
44676  cat conftest.err >&5
44677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44678  (exit $ac_status); } &&
44679	 { ac_try='test -z "$ac_c_werror_flag"
44680			 || test ! -s conftest.err'
44681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44682  (eval $ac_try) 2>&5
44683  ac_status=$?
44684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44685  (exit $ac_status); }; } &&
44686	 { ac_try='test -s conftest.$ac_objext'
44687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44688  (eval $ac_try) 2>&5
44689  ac_status=$?
44690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44691  (exit $ac_status); }; }; then
44692  ires=$i;break
44693else
44694  echo "$as_me: failed program was:" >&5
44695sed 's/^/| /' conftest.$ac_ext >&5
44696
44697fi
44698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44699		done
44700		for i in $lib_dirs; do
44701			LIBS="-L$i -lhesiod  $save_LIBS"
44702			cat >conftest.$ac_ext <<_ACEOF
44703/* confdefs.h.  */
44704_ACEOF
44705cat confdefs.h >>conftest.$ac_ext
44706cat >>conftest.$ac_ext <<_ACEOF
44707/* end confdefs.h.  */
44708#include <hesiod.h>
44709int
44710main ()
44711{
44712
44713  ;
44714  return 0;
44715}
44716_ACEOF
44717rm -f conftest.$ac_objext conftest$ac_exeext
44718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44719  (eval $ac_link) 2>conftest.er1
44720  ac_status=$?
44721  grep -v '^ *+' conftest.er1 >conftest.err
44722  rm -f conftest.er1
44723  cat conftest.err >&5
44724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44725  (exit $ac_status); } &&
44726	 { ac_try='test -z "$ac_c_werror_flag"
44727			 || test ! -s conftest.err'
44728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44729  (eval $ac_try) 2>&5
44730  ac_status=$?
44731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44732  (exit $ac_status); }; } &&
44733	 { ac_try='test -s conftest$ac_exeext'
44734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44735  (eval $ac_try) 2>&5
44736  ac_status=$?
44737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738  (exit $ac_status); }; }; then
44739  lres=$i;break
44740else
44741  echo "$as_me: failed program was:" >&5
44742sed 's/^/| /' conftest.$ac_ext >&5
44743
44744fi
44745rm -f conftest.err conftest.$ac_objext \
44746      conftest$ac_exeext conftest.$ac_ext
44747		done
44748		if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then
44749			INCLUDE_hesiod="-I$ires"
44750			LIB_hesiod="-L$lres -lhesiod "
44751			found=yes
44752			echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5
44753echo "${ECHO_T}headers $ires, libraries $lres" >&6
44754		fi
44755	fi
44756	CFLAGS="$save_CFLAGS"
44757	LIBS="$save_LIBS"
44758fi
44759
44760if test "$found" = yes; then
44761
44762cat >>confdefs.h <<_ACEOF
44763#define HESIOD 1
44764_ACEOF
44765
44766	with_hesiod=yes
44767else
44768	with_hesiod=no
44769	INCLUDE_hesiod=
44770	LIB_hesiod=
44771	echo "$as_me:$LINENO: result: no" >&5
44772echo "${ECHO_T}no" >&6
44773fi
44774
44775
44776
44777
44778
44779
44780# Check whether --enable-bigendian or --disable-bigendian was given.
44781if test "${enable_bigendian+set}" = set; then
44782  enableval="$enable_bigendian"
44783  krb_cv_c_bigendian=yes
44784fi;
44785# Check whether --enable-littleendian or --disable-littleendian was given.
44786if test "${enable_littleendian+set}" = set; then
44787  enableval="$enable_littleendian"
44788  krb_cv_c_bigendian=no
44789fi;
44790echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5
44791echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6
44792if test "${krb_cv_c_bigendian_compile+set}" = set; then
44793  echo $ECHO_N "(cached) $ECHO_C" >&6
44794else
44795  cat >conftest.$ac_ext <<_ACEOF
44796/* confdefs.h.  */
44797_ACEOF
44798cat confdefs.h >>conftest.$ac_ext
44799cat >>conftest.$ac_ext <<_ACEOF
44800/* end confdefs.h.  */
44801
44802#include <sys/types.h>
44803#include <sys/param.h>
44804int
44805main ()
44806{
44807
44808#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
44809 bogus endian macros
44810#endif
44811  ;
44812  return 0;
44813}
44814_ACEOF
44815rm -f conftest.$ac_objext
44816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44817  (eval $ac_compile) 2>conftest.er1
44818  ac_status=$?
44819  grep -v '^ *+' conftest.er1 >conftest.err
44820  rm -f conftest.er1
44821  cat conftest.err >&5
44822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44823  (exit $ac_status); } &&
44824	 { ac_try='test -z "$ac_c_werror_flag"
44825			 || test ! -s conftest.err'
44826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44827  (eval $ac_try) 2>&5
44828  ac_status=$?
44829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44830  (exit $ac_status); }; } &&
44831	 { ac_try='test -s conftest.$ac_objext'
44832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44833  (eval $ac_try) 2>&5
44834  ac_status=$?
44835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44836  (exit $ac_status); }; }; then
44837  krb_cv_c_bigendian_compile=yes
44838else
44839  echo "$as_me: failed program was:" >&5
44840sed 's/^/| /' conftest.$ac_ext >&5
44841
44842krb_cv_c_bigendian_compile=no
44843fi
44844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44845fi
44846echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5
44847echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6
44848echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
44849echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
44850if test "${krb_cv_c_bigendian+set}" = set; then
44851  echo $ECHO_N "(cached) $ECHO_C" >&6
44852else
44853
44854  if test "$krb_cv_c_bigendian_compile" = "yes"; then
44855    cat >conftest.$ac_ext <<_ACEOF
44856/* confdefs.h.  */
44857_ACEOF
44858cat confdefs.h >>conftest.$ac_ext
44859cat >>conftest.$ac_ext <<_ACEOF
44860/* end confdefs.h.  */
44861
44862#include <sys/types.h>
44863#include <sys/param.h>
44864int
44865main ()
44866{
44867
44868#if BYTE_ORDER != BIG_ENDIAN
44869  not big endian
44870#endif
44871  ;
44872  return 0;
44873}
44874_ACEOF
44875rm -f conftest.$ac_objext
44876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44877  (eval $ac_compile) 2>conftest.er1
44878  ac_status=$?
44879  grep -v '^ *+' conftest.er1 >conftest.err
44880  rm -f conftest.er1
44881  cat conftest.err >&5
44882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883  (exit $ac_status); } &&
44884	 { ac_try='test -z "$ac_c_werror_flag"
44885			 || test ! -s conftest.err'
44886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44887  (eval $ac_try) 2>&5
44888  ac_status=$?
44889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44890  (exit $ac_status); }; } &&
44891	 { ac_try='test -s conftest.$ac_objext'
44892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44893  (eval $ac_try) 2>&5
44894  ac_status=$?
44895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44896  (exit $ac_status); }; }; then
44897  krb_cv_c_bigendian=yes
44898else
44899  echo "$as_me: failed program was:" >&5
44900sed 's/^/| /' conftest.$ac_ext >&5
44901
44902krb_cv_c_bigendian=no
44903fi
44904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44905  else
44906    if test "$cross_compiling" = yes; then
44907  { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5
44908echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;}
44909   { (exit 1); exit 1; }; }
44910else
44911  cat >conftest.$ac_ext <<_ACEOF
44912/* confdefs.h.  */
44913_ACEOF
44914cat confdefs.h >>conftest.$ac_ext
44915cat >>conftest.$ac_ext <<_ACEOF
44916/* end confdefs.h.  */
44917main () {
44918      /* Are we little or big endian?  From Harbison&Steele.  */
44919      union
44920      {
44921	long l;
44922	char c[sizeof (long)];
44923    } u;
44924    u.l = 1;
44925    exit (u.c[sizeof (long) - 1] == 1);
44926  }
44927_ACEOF
44928rm -f conftest$ac_exeext
44929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44930  (eval $ac_link) 2>&5
44931  ac_status=$?
44932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44933  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44935  (eval $ac_try) 2>&5
44936  ac_status=$?
44937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44938  (exit $ac_status); }; }; then
44939  krb_cv_c_bigendian=no
44940else
44941  echo "$as_me: program exited with status $ac_status" >&5
44942echo "$as_me: failed program was:" >&5
44943sed 's/^/| /' conftest.$ac_ext >&5
44944
44945( exit $ac_status )
44946krb_cv_c_bigendian=yes
44947fi
44948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44949fi
44950  fi
44951
44952fi
44953echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5
44954echo "${ECHO_T}$krb_cv_c_bigendian" >&6
44955if test "$krb_cv_c_bigendian" = "yes"; then
44956
44957cat >>confdefs.h <<\_ACEOF
44958#define WORDS_BIGENDIAN 1
44959_ACEOF
44960fi
44961if test "$krb_cv_c_bigendian_compile" = "yes"; then
44962
44963cat >>confdefs.h <<\_ACEOF
44964#define ENDIANESS_IN_SYS_PARAM_H 1
44965_ACEOF
44966fi
44967
44968
44969
44970echo "$as_me:$LINENO: checking for inline" >&5
44971echo $ECHO_N "checking for inline... $ECHO_C" >&6
44972if test "${ac_cv_c_inline+set}" = set; then
44973  echo $ECHO_N "(cached) $ECHO_C" >&6
44974else
44975  ac_cv_c_inline=no
44976for ac_kw in inline __inline__ __inline; do
44977  cat >conftest.$ac_ext <<_ACEOF
44978/* confdefs.h.  */
44979_ACEOF
44980cat confdefs.h >>conftest.$ac_ext
44981cat >>conftest.$ac_ext <<_ACEOF
44982/* end confdefs.h.  */
44983#ifndef __cplusplus
44984typedef int foo_t;
44985static $ac_kw foo_t static_foo () {return 0; }
44986$ac_kw foo_t foo () {return 0; }
44987#endif
44988
44989_ACEOF
44990rm -f conftest.$ac_objext
44991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44992  (eval $ac_compile) 2>conftest.er1
44993  ac_status=$?
44994  grep -v '^ *+' conftest.er1 >conftest.err
44995  rm -f conftest.er1
44996  cat conftest.err >&5
44997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
44998  (exit $ac_status); } &&
44999	 { ac_try='test -z "$ac_c_werror_flag"
45000			 || test ! -s conftest.err'
45001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45002  (eval $ac_try) 2>&5
45003  ac_status=$?
45004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45005  (exit $ac_status); }; } &&
45006	 { ac_try='test -s conftest.$ac_objext'
45007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45008  (eval $ac_try) 2>&5
45009  ac_status=$?
45010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45011  (exit $ac_status); }; }; then
45012  ac_cv_c_inline=$ac_kw; break
45013else
45014  echo "$as_me: failed program was:" >&5
45015sed 's/^/| /' conftest.$ac_ext >&5
45016
45017fi
45018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45019done
45020
45021fi
45022echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
45023echo "${ECHO_T}$ac_cv_c_inline" >&6
45024
45025
45026case $ac_cv_c_inline in
45027  inline | yes) ;;
45028  *)
45029    case $ac_cv_c_inline in
45030      no) ac_val=;;
45031      *) ac_val=$ac_cv_c_inline;;
45032    esac
45033    cat >>confdefs.h <<_ACEOF
45034#ifndef __cplusplus
45035#define inline $ac_val
45036#endif
45037_ACEOF
45038    ;;
45039esac
45040
45041
45042
45043
45044
45045
45046echo "$as_me:$LINENO: checking for dlopen" >&5
45047echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
45048if test "${ac_cv_funclib_dlopen+set}" = set; then
45049  echo $ECHO_N "(cached) $ECHO_C" >&6
45050else
45051
45052if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then
45053	ac_save_LIBS="$LIBS"
45054	for ac_lib in "" dl; do
45055		case "$ac_lib" in
45056		"") ;;
45057		yes) ac_lib="" ;;
45058		no) continue ;;
45059		-l*) ;;
45060		*) ac_lib="-l$ac_lib" ;;
45061		esac
45062		LIBS=" $ac_lib  $ac_save_LIBS"
45063		cat >conftest.$ac_ext <<_ACEOF
45064/* confdefs.h.  */
45065_ACEOF
45066cat confdefs.h >>conftest.$ac_ext
45067cat >>conftest.$ac_ext <<_ACEOF
45068/* end confdefs.h.  */
45069
45070int
45071main ()
45072{
45073dlopen()
45074  ;
45075  return 0;
45076}
45077_ACEOF
45078rm -f conftest.$ac_objext conftest$ac_exeext
45079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45080  (eval $ac_link) 2>conftest.er1
45081  ac_status=$?
45082  grep -v '^ *+' conftest.er1 >conftest.err
45083  rm -f conftest.er1
45084  cat conftest.err >&5
45085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086  (exit $ac_status); } &&
45087	 { ac_try='test -z "$ac_c_werror_flag"
45088			 || test ! -s conftest.err'
45089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45090  (eval $ac_try) 2>&5
45091  ac_status=$?
45092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45093  (exit $ac_status); }; } &&
45094	 { ac_try='test -s conftest$ac_exeext'
45095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45096  (eval $ac_try) 2>&5
45097  ac_status=$?
45098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099  (exit $ac_status); }; }; then
45100  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break
45101else
45102  echo "$as_me: failed program was:" >&5
45103sed 's/^/| /' conftest.$ac_ext >&5
45104
45105fi
45106rm -f conftest.err conftest.$ac_objext \
45107      conftest$ac_exeext conftest.$ac_ext
45108	done
45109	eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}"
45110	LIBS="$ac_save_LIBS"
45111fi
45112
45113fi
45114
45115
45116eval "ac_res=\$ac_cv_funclib_dlopen"
45117
45118if false; then
45119
45120for ac_func in dlopen
45121do
45122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45123echo "$as_me:$LINENO: checking for $ac_func" >&5
45124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45125if eval "test \"\${$as_ac_var+set}\" = set"; then
45126  echo $ECHO_N "(cached) $ECHO_C" >&6
45127else
45128  cat >conftest.$ac_ext <<_ACEOF
45129/* confdefs.h.  */
45130_ACEOF
45131cat confdefs.h >>conftest.$ac_ext
45132cat >>conftest.$ac_ext <<_ACEOF
45133/* end confdefs.h.  */
45134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45135   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45136#define $ac_func innocuous_$ac_func
45137
45138/* System header to define __stub macros and hopefully few prototypes,
45139    which can conflict with char $ac_func (); below.
45140    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45141    <limits.h> exists even on freestanding compilers.  */
45142
45143#ifdef __STDC__
45144# include <limits.h>
45145#else
45146# include <assert.h>
45147#endif
45148
45149#undef $ac_func
45150
45151/* Override any gcc2 internal prototype to avoid an error.  */
45152#ifdef __cplusplus
45153extern "C"
45154{
45155#endif
45156/* We use char because int might match the return type of a gcc2
45157   builtin and then its argument prototype would still apply.  */
45158char $ac_func ();
45159/* The GNU C library defines this for functions which it implements
45160    to always fail with ENOSYS.  Some functions are actually named
45161    something starting with __ and the normal name is an alias.  */
45162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45163choke me
45164#else
45165char (*f) () = $ac_func;
45166#endif
45167#ifdef __cplusplus
45168}
45169#endif
45170
45171int
45172main ()
45173{
45174return f != $ac_func;
45175  ;
45176  return 0;
45177}
45178_ACEOF
45179rm -f conftest.$ac_objext conftest$ac_exeext
45180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45181  (eval $ac_link) 2>conftest.er1
45182  ac_status=$?
45183  grep -v '^ *+' conftest.er1 >conftest.err
45184  rm -f conftest.er1
45185  cat conftest.err >&5
45186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45187  (exit $ac_status); } &&
45188	 { ac_try='test -z "$ac_c_werror_flag"
45189			 || test ! -s conftest.err'
45190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45191  (eval $ac_try) 2>&5
45192  ac_status=$?
45193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45194  (exit $ac_status); }; } &&
45195	 { ac_try='test -s conftest$ac_exeext'
45196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45197  (eval $ac_try) 2>&5
45198  ac_status=$?
45199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45200  (exit $ac_status); }; }; then
45201  eval "$as_ac_var=yes"
45202else
45203  echo "$as_me: failed program was:" >&5
45204sed 's/^/| /' conftest.$ac_ext >&5
45205
45206eval "$as_ac_var=no"
45207fi
45208rm -f conftest.err conftest.$ac_objext \
45209      conftest$ac_exeext conftest.$ac_ext
45210fi
45211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45213if test `eval echo '${'$as_ac_var'}'` = yes; then
45214  cat >>confdefs.h <<_ACEOF
45215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45216_ACEOF
45217
45218fi
45219done
45220
45221fi
45222# dlopen
45223eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45224eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45225eval "LIB_dlopen=$ac_res"
45226
45227case "$ac_res" in
45228	yes)
45229	eval "ac_cv_func_dlopen=yes"
45230	eval "LIB_dlopen="
45231	cat >>confdefs.h <<_ACEOF
45232#define $ac_tr_func 1
45233_ACEOF
45234
45235	echo "$as_me:$LINENO: result: yes" >&5
45236echo "${ECHO_T}yes" >&6
45237	;;
45238	no)
45239	eval "ac_cv_func_dlopen=no"
45240	eval "LIB_dlopen="
45241	echo "$as_me:$LINENO: result: no" >&5
45242echo "${ECHO_T}no" >&6
45243	;;
45244	*)
45245	eval "ac_cv_func_dlopen=yes"
45246	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45247	cat >>confdefs.h <<_ACEOF
45248#define $ac_tr_func 1
45249_ACEOF
45250
45251	cat >>confdefs.h <<_ACEOF
45252#define $ac_tr_lib 1
45253_ACEOF
45254
45255	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45256echo "${ECHO_T}yes, in $ac_res" >&6
45257	;;
45258esac
45259
45260
45261
45262
45263if test "$ac_cv_funclib_dlopen" != no; then
45264  HAVE_DLOPEN_TRUE=
45265  HAVE_DLOPEN_FALSE='#'
45266else
45267  HAVE_DLOPEN_TRUE='#'
45268  HAVE_DLOPEN_FALSE=
45269fi
45270
45271
45272
45273
45274aix=no
45275case "$host" in
45276*-*-aix3*)
45277	aix=3
45278	;;
45279*-*-aix4*|*-*-aix5*)
45280	aix=4
45281	;;
45282esac
45283
45284
45285
45286if test "$aix" != no; then
45287  AIX_TRUE=
45288  AIX_FALSE='#'
45289else
45290  AIX_TRUE='#'
45291  AIX_FALSE=
45292fi
45293
45294
45295if test "$aix" = 4; then
45296  AIX4_TRUE=
45297  AIX4_FALSE='#'
45298else
45299  AIX4_TRUE='#'
45300  AIX4_FALSE=
45301fi
45302
45303
45304
45305# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
45306if test "${enable_dynamic_afs+set}" = set; then
45307  enableval="$enable_dynamic_afs"
45308
45309fi;
45310
45311if test "$aix" != no; then
45312	if test "$enable_dynamic_afs" != no; then
45313
45314		if test "$ac_cv_func_dlopen" = no; then
45315
45316
45317
45318echo "$as_me:$LINENO: checking for loadquery" >&5
45319echo $ECHO_N "checking for loadquery... $ECHO_C" >&6
45320if test "${ac_cv_funclib_loadquery+set}" = set; then
45321  echo $ECHO_N "(cached) $ECHO_C" >&6
45322else
45323
45324if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then
45325	ac_save_LIBS="$LIBS"
45326	for ac_lib in "" ld; do
45327		case "$ac_lib" in
45328		"") ;;
45329		yes) ac_lib="" ;;
45330		no) continue ;;
45331		-l*) ;;
45332		*) ac_lib="-l$ac_lib" ;;
45333		esac
45334		LIBS=" $ac_lib  $ac_save_LIBS"
45335		cat >conftest.$ac_ext <<_ACEOF
45336/* confdefs.h.  */
45337_ACEOF
45338cat confdefs.h >>conftest.$ac_ext
45339cat >>conftest.$ac_ext <<_ACEOF
45340/* end confdefs.h.  */
45341
45342int
45343main ()
45344{
45345loadquery()
45346  ;
45347  return 0;
45348}
45349_ACEOF
45350rm -f conftest.$ac_objext conftest$ac_exeext
45351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45352  (eval $ac_link) 2>conftest.er1
45353  ac_status=$?
45354  grep -v '^ *+' conftest.er1 >conftest.err
45355  rm -f conftest.er1
45356  cat conftest.err >&5
45357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45358  (exit $ac_status); } &&
45359	 { ac_try='test -z "$ac_c_werror_flag"
45360			 || test ! -s conftest.err'
45361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45362  (eval $ac_try) 2>&5
45363  ac_status=$?
45364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45365  (exit $ac_status); }; } &&
45366	 { ac_try='test -s conftest$ac_exeext'
45367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45368  (eval $ac_try) 2>&5
45369  ac_status=$?
45370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45371  (exit $ac_status); }; }; then
45372  eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break
45373else
45374  echo "$as_me: failed program was:" >&5
45375sed 's/^/| /' conftest.$ac_ext >&5
45376
45377fi
45378rm -f conftest.err conftest.$ac_objext \
45379      conftest$ac_exeext conftest.$ac_ext
45380	done
45381	eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}"
45382	LIBS="$ac_save_LIBS"
45383fi
45384
45385fi
45386
45387
45388eval "ac_res=\$ac_cv_funclib_loadquery"
45389
45390if false; then
45391
45392for ac_func in loadquery
45393do
45394as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45395echo "$as_me:$LINENO: checking for $ac_func" >&5
45396echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45397if eval "test \"\${$as_ac_var+set}\" = set"; then
45398  echo $ECHO_N "(cached) $ECHO_C" >&6
45399else
45400  cat >conftest.$ac_ext <<_ACEOF
45401/* confdefs.h.  */
45402_ACEOF
45403cat confdefs.h >>conftest.$ac_ext
45404cat >>conftest.$ac_ext <<_ACEOF
45405/* end confdefs.h.  */
45406/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45407   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45408#define $ac_func innocuous_$ac_func
45409
45410/* System header to define __stub macros and hopefully few prototypes,
45411    which can conflict with char $ac_func (); below.
45412    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45413    <limits.h> exists even on freestanding compilers.  */
45414
45415#ifdef __STDC__
45416# include <limits.h>
45417#else
45418# include <assert.h>
45419#endif
45420
45421#undef $ac_func
45422
45423/* Override any gcc2 internal prototype to avoid an error.  */
45424#ifdef __cplusplus
45425extern "C"
45426{
45427#endif
45428/* We use char because int might match the return type of a gcc2
45429   builtin and then its argument prototype would still apply.  */
45430char $ac_func ();
45431/* The GNU C library defines this for functions which it implements
45432    to always fail with ENOSYS.  Some functions are actually named
45433    something starting with __ and the normal name is an alias.  */
45434#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45435choke me
45436#else
45437char (*f) () = $ac_func;
45438#endif
45439#ifdef __cplusplus
45440}
45441#endif
45442
45443int
45444main ()
45445{
45446return f != $ac_func;
45447  ;
45448  return 0;
45449}
45450_ACEOF
45451rm -f conftest.$ac_objext conftest$ac_exeext
45452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45453  (eval $ac_link) 2>conftest.er1
45454  ac_status=$?
45455  grep -v '^ *+' conftest.er1 >conftest.err
45456  rm -f conftest.er1
45457  cat conftest.err >&5
45458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45459  (exit $ac_status); } &&
45460	 { ac_try='test -z "$ac_c_werror_flag"
45461			 || test ! -s conftest.err'
45462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463  (eval $ac_try) 2>&5
45464  ac_status=$?
45465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466  (exit $ac_status); }; } &&
45467	 { ac_try='test -s conftest$ac_exeext'
45468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45469  (eval $ac_try) 2>&5
45470  ac_status=$?
45471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45472  (exit $ac_status); }; }; then
45473  eval "$as_ac_var=yes"
45474else
45475  echo "$as_me: failed program was:" >&5
45476sed 's/^/| /' conftest.$ac_ext >&5
45477
45478eval "$as_ac_var=no"
45479fi
45480rm -f conftest.err conftest.$ac_objext \
45481      conftest$ac_exeext conftest.$ac_ext
45482fi
45483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45485if test `eval echo '${'$as_ac_var'}'` = yes; then
45486  cat >>confdefs.h <<_ACEOF
45487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45488_ACEOF
45489
45490fi
45491done
45492
45493fi
45494# loadquery
45495eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45496eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
45497eval "LIB_loadquery=$ac_res"
45498
45499case "$ac_res" in
45500	yes)
45501	eval "ac_cv_func_loadquery=yes"
45502	eval "LIB_loadquery="
45503	cat >>confdefs.h <<_ACEOF
45504#define $ac_tr_func 1
45505_ACEOF
45506
45507	echo "$as_me:$LINENO: result: yes" >&5
45508echo "${ECHO_T}yes" >&6
45509	;;
45510	no)
45511	eval "ac_cv_func_loadquery=no"
45512	eval "LIB_loadquery="
45513	echo "$as_me:$LINENO: result: no" >&5
45514echo "${ECHO_T}no" >&6
45515	;;
45516	*)
45517	eval "ac_cv_func_loadquery=yes"
45518	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
45519	cat >>confdefs.h <<_ACEOF
45520#define $ac_tr_func 1
45521_ACEOF
45522
45523	cat >>confdefs.h <<_ACEOF
45524#define $ac_tr_lib 1
45525_ACEOF
45526
45527	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
45528echo "${ECHO_T}yes, in $ac_res" >&6
45529	;;
45530esac
45531
45532
45533		fi
45534		if test "$ac_cv_func_dlopen" != no; then
45535			AIX_EXTRA_KAFS='$(LIB_dlopen)'
45536		elif test "$ac_cv_func_loadquery" != no; then
45537			AIX_EXTRA_KAFS='$(LIB_loadquery)'
45538		else
45539			{ echo "$as_me:$LINENO: not using dynloaded AFS library" >&5
45540echo "$as_me: not using dynloaded AFS library" >&6;}
45541			AIX_EXTRA_KAFS=
45542			enable_dynamic_afs=no
45543		fi
45544	else
45545		AIX_EXTRA_KAFS=
45546	fi
45547fi
45548
45549
45550
45551if test "$enable_dynamic_afs" != no; then
45552  AIX_DYNAMIC_AFS_TRUE=
45553  AIX_DYNAMIC_AFS_FALSE='#'
45554else
45555  AIX_DYNAMIC_AFS_TRUE='#'
45556  AIX_DYNAMIC_AFS_FALSE=
45557fi
45558
45559
45560
45561
45562
45563
45564irix=no
45565case "$host" in
45566*-*-irix4*)
45567
45568cat >>confdefs.h <<\_ACEOF
45569#define IRIX4 1
45570_ACEOF
45571
45572	irix=yes
45573	;;
45574*-*-irix*)
45575	irix=yes
45576	;;
45577esac
45578
45579
45580if test "$irix" != no; then
45581  IRIX_TRUE=
45582  IRIX_FALSE='#'
45583else
45584  IRIX_TRUE='#'
45585  IRIX_FALSE=
45586fi
45587
45588
45589
45590
45591
45592sunos=no
45593case "$host" in
45594*-*-sunos4*)
45595	sunos=40
45596	;;
45597*-*-solaris2.7)
45598	sunos=57
45599	;;
45600*-*-solaris2.[89])
45601	sunos=58
45602	;;
45603*-*-solaris2*)
45604	sunos=50
45605	;;
45606esac
45607if test "$sunos" != no; then
45608
45609cat >>confdefs.h <<_ACEOF
45610#define SunOS $sunos
45611_ACEOF
45612
45613fi
45614
45615
45616echo "$as_me:$LINENO: checking for X" >&5
45617echo $ECHO_N "checking for X... $ECHO_C" >&6
45618
45619
45620# Check whether --with-x or --without-x was given.
45621if test "${with_x+set}" = set; then
45622  withval="$with_x"
45623
45624fi;
45625# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
45626if test "x$with_x" = xno; then
45627  # The user explicitly disabled X.
45628  have_x=disabled
45629else
45630  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
45631    # Both variables are already set.
45632    have_x=yes
45633  else
45634    if test "${ac_cv_have_x+set}" = set; then
45635  echo $ECHO_N "(cached) $ECHO_C" >&6
45636else
45637  # One or both of the vars are not set, and there is no cached value.
45638ac_x_includes=no ac_x_libraries=no
45639rm -fr conftest.dir
45640if mkdir conftest.dir; then
45641  cd conftest.dir
45642  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
45643  cat >Imakefile <<'_ACEOF'
45644acfindx:
45645	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
45646_ACEOF
45647  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
45648    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45649    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
45650    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
45651    for ac_extension in a so sl; do
45652      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
45653	 test -f $ac_im_libdir/libX11.$ac_extension; then
45654	ac_im_usrlibdir=$ac_im_libdir; break
45655      fi
45656    done
45657    # Screen out bogus values from the imake configuration.  They are
45658    # bogus both because they are the default anyway, and because
45659    # using them would break gcc on systems where it needs fixed includes.
45660    case $ac_im_incroot in
45661	/usr/include) ;;
45662	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
45663    esac
45664    case $ac_im_usrlibdir in
45665	/usr/lib | /lib) ;;
45666	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
45667    esac
45668  fi
45669  cd ..
45670  rm -fr conftest.dir
45671fi
45672
45673# Standard set of common directories for X headers.
45674# Check X11 before X11Rn because it is often a symlink to the current release.
45675ac_x_header_dirs='
45676/usr/X11/include
45677/usr/X11R6/include
45678/usr/X11R5/include
45679/usr/X11R4/include
45680
45681/usr/include/X11
45682/usr/include/X11R6
45683/usr/include/X11R5
45684/usr/include/X11R4
45685
45686/usr/local/X11/include
45687/usr/local/X11R6/include
45688/usr/local/X11R5/include
45689/usr/local/X11R4/include
45690
45691/usr/local/include/X11
45692/usr/local/include/X11R6
45693/usr/local/include/X11R5
45694/usr/local/include/X11R4
45695
45696/usr/X386/include
45697/usr/x386/include
45698/usr/XFree86/include/X11
45699
45700/usr/include
45701/usr/local/include
45702/usr/unsupported/include
45703/usr/athena/include
45704/usr/local/x11r5/include
45705/usr/lpp/Xamples/include
45706
45707/usr/openwin/include
45708/usr/openwin/share/include'
45709
45710if test "$ac_x_includes" = no; then
45711  # Guess where to find include files, by looking for Intrinsic.h.
45712  # First, try using that file with no special directory specified.
45713  cat >conftest.$ac_ext <<_ACEOF
45714/* confdefs.h.  */
45715_ACEOF
45716cat confdefs.h >>conftest.$ac_ext
45717cat >>conftest.$ac_ext <<_ACEOF
45718/* end confdefs.h.  */
45719#include <X11/Intrinsic.h>
45720_ACEOF
45721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45723  ac_status=$?
45724  grep -v '^ *+' conftest.er1 >conftest.err
45725  rm -f conftest.er1
45726  cat conftest.err >&5
45727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45728  (exit $ac_status); } >/dev/null; then
45729  if test -s conftest.err; then
45730    ac_cpp_err=$ac_c_preproc_warn_flag
45731    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45732  else
45733    ac_cpp_err=
45734  fi
45735else
45736  ac_cpp_err=yes
45737fi
45738if test -z "$ac_cpp_err"; then
45739  # We can compile using X headers with no special include directory.
45740ac_x_includes=
45741else
45742  echo "$as_me: failed program was:" >&5
45743sed 's/^/| /' conftest.$ac_ext >&5
45744
45745  for ac_dir in $ac_x_header_dirs; do
45746  if test -r "$ac_dir/X11/Intrinsic.h"; then
45747    ac_x_includes=$ac_dir
45748    break
45749  fi
45750done
45751fi
45752rm -f conftest.err conftest.$ac_ext
45753fi # $ac_x_includes = no
45754
45755if test "$ac_x_libraries" = no; then
45756  # Check for the libraries.
45757  # See if we find them without any special options.
45758  # Don't add to $LIBS permanently.
45759  ac_save_LIBS=$LIBS
45760  LIBS="-lXt $LIBS"
45761  cat >conftest.$ac_ext <<_ACEOF
45762/* confdefs.h.  */
45763_ACEOF
45764cat confdefs.h >>conftest.$ac_ext
45765cat >>conftest.$ac_ext <<_ACEOF
45766/* end confdefs.h.  */
45767#include <X11/Intrinsic.h>
45768int
45769main ()
45770{
45771XtMalloc (0)
45772  ;
45773  return 0;
45774}
45775_ACEOF
45776rm -f conftest.$ac_objext conftest$ac_exeext
45777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45778  (eval $ac_link) 2>conftest.er1
45779  ac_status=$?
45780  grep -v '^ *+' conftest.er1 >conftest.err
45781  rm -f conftest.er1
45782  cat conftest.err >&5
45783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45784  (exit $ac_status); } &&
45785	 { ac_try='test -z "$ac_c_werror_flag"
45786			 || test ! -s conftest.err'
45787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45788  (eval $ac_try) 2>&5
45789  ac_status=$?
45790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45791  (exit $ac_status); }; } &&
45792	 { ac_try='test -s conftest$ac_exeext'
45793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45794  (eval $ac_try) 2>&5
45795  ac_status=$?
45796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45797  (exit $ac_status); }; }; then
45798  LIBS=$ac_save_LIBS
45799# We can link X programs with no special library path.
45800ac_x_libraries=
45801else
45802  echo "$as_me: failed program was:" >&5
45803sed 's/^/| /' conftest.$ac_ext >&5
45804
45805LIBS=$ac_save_LIBS
45806for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
45807do
45808  # Don't even attempt the hair of trying to link an X program!
45809  for ac_extension in a so sl; do
45810    if test -r $ac_dir/libXt.$ac_extension; then
45811      ac_x_libraries=$ac_dir
45812      break 2
45813    fi
45814  done
45815done
45816fi
45817rm -f conftest.err conftest.$ac_objext \
45818      conftest$ac_exeext conftest.$ac_ext
45819fi # $ac_x_libraries = no
45820
45821if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
45822  # Didn't find X anywhere.  Cache the known absence of X.
45823  ac_cv_have_x="have_x=no"
45824else
45825  # Record where we found X for the cache.
45826  ac_cv_have_x="have_x=yes \
45827		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
45828fi
45829fi
45830
45831  fi
45832  eval "$ac_cv_have_x"
45833fi # $with_x != no
45834
45835if test "$have_x" != yes; then
45836  echo "$as_me:$LINENO: result: $have_x" >&5
45837echo "${ECHO_T}$have_x" >&6
45838  no_x=yes
45839else
45840  # If each of the values was on the command line, it overrides each guess.
45841  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
45842  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
45843  # Update the cache value to reflect the command line values.
45844  ac_cv_have_x="have_x=yes \
45845		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
45846  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
45847echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
45848fi
45849
45850
45851if test "$no_x" = yes; then
45852  # Not all programs may use this symbol, but it does not hurt to define it.
45853
45854cat >>confdefs.h <<\_ACEOF
45855#define X_DISPLAY_MISSING 1
45856_ACEOF
45857
45858  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
45859else
45860  if test -n "$x_includes"; then
45861    X_CFLAGS="$X_CFLAGS -I$x_includes"
45862  fi
45863
45864  # It would also be nice to do this for all -L options, not just this one.
45865  if test -n "$x_libraries"; then
45866    X_LIBS="$X_LIBS -L$x_libraries"
45867    # For Solaris; some versions of Sun CC require a space after -R and
45868    # others require no space.  Words are not sufficient . . . .
45869    case `(uname -sr) 2>/dev/null` in
45870    "SunOS 5"*)
45871      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
45872echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
45873      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
45874      cat >conftest.$ac_ext <<_ACEOF
45875/* confdefs.h.  */
45876_ACEOF
45877cat confdefs.h >>conftest.$ac_ext
45878cat >>conftest.$ac_ext <<_ACEOF
45879/* end confdefs.h.  */
45880
45881int
45882main ()
45883{
45884
45885  ;
45886  return 0;
45887}
45888_ACEOF
45889rm -f conftest.$ac_objext conftest$ac_exeext
45890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45891  (eval $ac_link) 2>conftest.er1
45892  ac_status=$?
45893  grep -v '^ *+' conftest.er1 >conftest.err
45894  rm -f conftest.er1
45895  cat conftest.err >&5
45896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45897  (exit $ac_status); } &&
45898	 { ac_try='test -z "$ac_c_werror_flag"
45899			 || test ! -s conftest.err'
45900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45901  (eval $ac_try) 2>&5
45902  ac_status=$?
45903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45904  (exit $ac_status); }; } &&
45905	 { ac_try='test -s conftest$ac_exeext'
45906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45907  (eval $ac_try) 2>&5
45908  ac_status=$?
45909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45910  (exit $ac_status); }; }; then
45911  ac_R_nospace=yes
45912else
45913  echo "$as_me: failed program was:" >&5
45914sed 's/^/| /' conftest.$ac_ext >&5
45915
45916ac_R_nospace=no
45917fi
45918rm -f conftest.err conftest.$ac_objext \
45919      conftest$ac_exeext conftest.$ac_ext
45920      if test $ac_R_nospace = yes; then
45921	echo "$as_me:$LINENO: result: no" >&5
45922echo "${ECHO_T}no" >&6
45923	X_LIBS="$X_LIBS -R$x_libraries"
45924      else
45925	LIBS="$ac_xsave_LIBS -R $x_libraries"
45926	cat >conftest.$ac_ext <<_ACEOF
45927/* confdefs.h.  */
45928_ACEOF
45929cat confdefs.h >>conftest.$ac_ext
45930cat >>conftest.$ac_ext <<_ACEOF
45931/* end confdefs.h.  */
45932
45933int
45934main ()
45935{
45936
45937  ;
45938  return 0;
45939}
45940_ACEOF
45941rm -f conftest.$ac_objext conftest$ac_exeext
45942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45943  (eval $ac_link) 2>conftest.er1
45944  ac_status=$?
45945  grep -v '^ *+' conftest.er1 >conftest.err
45946  rm -f conftest.er1
45947  cat conftest.err >&5
45948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949  (exit $ac_status); } &&
45950	 { ac_try='test -z "$ac_c_werror_flag"
45951			 || test ! -s conftest.err'
45952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45953  (eval $ac_try) 2>&5
45954  ac_status=$?
45955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45956  (exit $ac_status); }; } &&
45957	 { ac_try='test -s conftest$ac_exeext'
45958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45959  (eval $ac_try) 2>&5
45960  ac_status=$?
45961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
45962  (exit $ac_status); }; }; then
45963  ac_R_space=yes
45964else
45965  echo "$as_me: failed program was:" >&5
45966sed 's/^/| /' conftest.$ac_ext >&5
45967
45968ac_R_space=no
45969fi
45970rm -f conftest.err conftest.$ac_objext \
45971      conftest$ac_exeext conftest.$ac_ext
45972	if test $ac_R_space = yes; then
45973	  echo "$as_me:$LINENO: result: yes" >&5
45974echo "${ECHO_T}yes" >&6
45975	  X_LIBS="$X_LIBS -R $x_libraries"
45976	else
45977	  echo "$as_me:$LINENO: result: neither works" >&5
45978echo "${ECHO_T}neither works" >&6
45979	fi
45980      fi
45981      LIBS=$ac_xsave_LIBS
45982    esac
45983  fi
45984
45985  # Check for system-dependent libraries X programs must link with.
45986  # Do this before checking for the system-independent R6 libraries
45987  # (-lICE), since we may need -lsocket or whatever for X linking.
45988
45989  if test "$ISC" = yes; then
45990    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
45991  else
45992    # Martyn Johnson says this is needed for Ultrix, if the X
45993    # libraries were built with DECnet support.  And Karl Berry says
45994    # the Alpha needs dnet_stub (dnet does not exist).
45995    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
45996    cat >conftest.$ac_ext <<_ACEOF
45997/* confdefs.h.  */
45998_ACEOF
45999cat confdefs.h >>conftest.$ac_ext
46000cat >>conftest.$ac_ext <<_ACEOF
46001/* end confdefs.h.  */
46002
46003/* Override any gcc2 internal prototype to avoid an error.  */
46004#ifdef __cplusplus
46005extern "C"
46006#endif
46007/* We use char because int might match the return type of a gcc2
46008   builtin and then its argument prototype would still apply.  */
46009char XOpenDisplay ();
46010int
46011main ()
46012{
46013XOpenDisplay ();
46014  ;
46015  return 0;
46016}
46017_ACEOF
46018rm -f conftest.$ac_objext conftest$ac_exeext
46019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46020  (eval $ac_link) 2>conftest.er1
46021  ac_status=$?
46022  grep -v '^ *+' conftest.er1 >conftest.err
46023  rm -f conftest.er1
46024  cat conftest.err >&5
46025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46026  (exit $ac_status); } &&
46027	 { ac_try='test -z "$ac_c_werror_flag"
46028			 || test ! -s conftest.err'
46029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46030  (eval $ac_try) 2>&5
46031  ac_status=$?
46032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46033  (exit $ac_status); }; } &&
46034	 { ac_try='test -s conftest$ac_exeext'
46035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46036  (eval $ac_try) 2>&5
46037  ac_status=$?
46038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46039  (exit $ac_status); }; }; then
46040  :
46041else
46042  echo "$as_me: failed program was:" >&5
46043sed 's/^/| /' conftest.$ac_ext >&5
46044
46045echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
46046echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
46047if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
46048  echo $ECHO_N "(cached) $ECHO_C" >&6
46049else
46050  ac_check_lib_save_LIBS=$LIBS
46051LIBS="-ldnet  $LIBS"
46052cat >conftest.$ac_ext <<_ACEOF
46053/* confdefs.h.  */
46054_ACEOF
46055cat confdefs.h >>conftest.$ac_ext
46056cat >>conftest.$ac_ext <<_ACEOF
46057/* end confdefs.h.  */
46058
46059/* Override any gcc2 internal prototype to avoid an error.  */
46060#ifdef __cplusplus
46061extern "C"
46062#endif
46063/* We use char because int might match the return type of a gcc2
46064   builtin and then its argument prototype would still apply.  */
46065char dnet_ntoa ();
46066int
46067main ()
46068{
46069dnet_ntoa ();
46070  ;
46071  return 0;
46072}
46073_ACEOF
46074rm -f conftest.$ac_objext conftest$ac_exeext
46075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46076  (eval $ac_link) 2>conftest.er1
46077  ac_status=$?
46078  grep -v '^ *+' conftest.er1 >conftest.err
46079  rm -f conftest.er1
46080  cat conftest.err >&5
46081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46082  (exit $ac_status); } &&
46083	 { ac_try='test -z "$ac_c_werror_flag"
46084			 || test ! -s conftest.err'
46085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46086  (eval $ac_try) 2>&5
46087  ac_status=$?
46088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46089  (exit $ac_status); }; } &&
46090	 { ac_try='test -s conftest$ac_exeext'
46091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46092  (eval $ac_try) 2>&5
46093  ac_status=$?
46094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095  (exit $ac_status); }; }; then
46096  ac_cv_lib_dnet_dnet_ntoa=yes
46097else
46098  echo "$as_me: failed program was:" >&5
46099sed 's/^/| /' conftest.$ac_ext >&5
46100
46101ac_cv_lib_dnet_dnet_ntoa=no
46102fi
46103rm -f conftest.err conftest.$ac_objext \
46104      conftest$ac_exeext conftest.$ac_ext
46105LIBS=$ac_check_lib_save_LIBS
46106fi
46107echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
46108echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
46109if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
46110  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
46111fi
46112
46113    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
46114      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
46115echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
46116if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
46117  echo $ECHO_N "(cached) $ECHO_C" >&6
46118else
46119  ac_check_lib_save_LIBS=$LIBS
46120LIBS="-ldnet_stub  $LIBS"
46121cat >conftest.$ac_ext <<_ACEOF
46122/* confdefs.h.  */
46123_ACEOF
46124cat confdefs.h >>conftest.$ac_ext
46125cat >>conftest.$ac_ext <<_ACEOF
46126/* end confdefs.h.  */
46127
46128/* Override any gcc2 internal prototype to avoid an error.  */
46129#ifdef __cplusplus
46130extern "C"
46131#endif
46132/* We use char because int might match the return type of a gcc2
46133   builtin and then its argument prototype would still apply.  */
46134char dnet_ntoa ();
46135int
46136main ()
46137{
46138dnet_ntoa ();
46139  ;
46140  return 0;
46141}
46142_ACEOF
46143rm -f conftest.$ac_objext conftest$ac_exeext
46144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46145  (eval $ac_link) 2>conftest.er1
46146  ac_status=$?
46147  grep -v '^ *+' conftest.er1 >conftest.err
46148  rm -f conftest.er1
46149  cat conftest.err >&5
46150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46151  (exit $ac_status); } &&
46152	 { ac_try='test -z "$ac_c_werror_flag"
46153			 || test ! -s conftest.err'
46154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46155  (eval $ac_try) 2>&5
46156  ac_status=$?
46157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46158  (exit $ac_status); }; } &&
46159	 { ac_try='test -s conftest$ac_exeext'
46160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46161  (eval $ac_try) 2>&5
46162  ac_status=$?
46163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46164  (exit $ac_status); }; }; then
46165  ac_cv_lib_dnet_stub_dnet_ntoa=yes
46166else
46167  echo "$as_me: failed program was:" >&5
46168sed 's/^/| /' conftest.$ac_ext >&5
46169
46170ac_cv_lib_dnet_stub_dnet_ntoa=no
46171fi
46172rm -f conftest.err conftest.$ac_objext \
46173      conftest$ac_exeext conftest.$ac_ext
46174LIBS=$ac_check_lib_save_LIBS
46175fi
46176echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
46177echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
46178if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
46179  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
46180fi
46181
46182    fi
46183fi
46184rm -f conftest.err conftest.$ac_objext \
46185      conftest$ac_exeext conftest.$ac_ext
46186    LIBS="$ac_xsave_LIBS"
46187
46188    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
46189    # to get the SysV transport functions.
46190    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
46191    # needs -lnsl.
46192    # The nsl library prevents programs from opening the X display
46193    # on Irix 5.2, according to T.E. Dickey.
46194    # The functions gethostbyname, getservbyname, and inet_addr are
46195    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
46196    echo "$as_me:$LINENO: checking for gethostbyname" >&5
46197echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
46198if test "${ac_cv_func_gethostbyname+set}" = set; then
46199  echo $ECHO_N "(cached) $ECHO_C" >&6
46200else
46201  cat >conftest.$ac_ext <<_ACEOF
46202/* confdefs.h.  */
46203_ACEOF
46204cat confdefs.h >>conftest.$ac_ext
46205cat >>conftest.$ac_ext <<_ACEOF
46206/* end confdefs.h.  */
46207/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
46208   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46209#define gethostbyname innocuous_gethostbyname
46210
46211/* System header to define __stub macros and hopefully few prototypes,
46212    which can conflict with char gethostbyname (); below.
46213    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46214    <limits.h> exists even on freestanding compilers.  */
46215
46216#ifdef __STDC__
46217# include <limits.h>
46218#else
46219# include <assert.h>
46220#endif
46221
46222#undef gethostbyname
46223
46224/* Override any gcc2 internal prototype to avoid an error.  */
46225#ifdef __cplusplus
46226extern "C"
46227{
46228#endif
46229/* We use char because int might match the return type of a gcc2
46230   builtin and then its argument prototype would still apply.  */
46231char gethostbyname ();
46232/* The GNU C library defines this for functions which it implements
46233    to always fail with ENOSYS.  Some functions are actually named
46234    something starting with __ and the normal name is an alias.  */
46235#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
46236choke me
46237#else
46238char (*f) () = gethostbyname;
46239#endif
46240#ifdef __cplusplus
46241}
46242#endif
46243
46244int
46245main ()
46246{
46247return f != gethostbyname;
46248  ;
46249  return 0;
46250}
46251_ACEOF
46252rm -f conftest.$ac_objext conftest$ac_exeext
46253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46254  (eval $ac_link) 2>conftest.er1
46255  ac_status=$?
46256  grep -v '^ *+' conftest.er1 >conftest.err
46257  rm -f conftest.er1
46258  cat conftest.err >&5
46259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46260  (exit $ac_status); } &&
46261	 { ac_try='test -z "$ac_c_werror_flag"
46262			 || test ! -s conftest.err'
46263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46264  (eval $ac_try) 2>&5
46265  ac_status=$?
46266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267  (exit $ac_status); }; } &&
46268	 { ac_try='test -s conftest$ac_exeext'
46269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46270  (eval $ac_try) 2>&5
46271  ac_status=$?
46272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46273  (exit $ac_status); }; }; then
46274  ac_cv_func_gethostbyname=yes
46275else
46276  echo "$as_me: failed program was:" >&5
46277sed 's/^/| /' conftest.$ac_ext >&5
46278
46279ac_cv_func_gethostbyname=no
46280fi
46281rm -f conftest.err conftest.$ac_objext \
46282      conftest$ac_exeext conftest.$ac_ext
46283fi
46284echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
46285echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
46286
46287    if test $ac_cv_func_gethostbyname = no; then
46288      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
46289echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
46290if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
46291  echo $ECHO_N "(cached) $ECHO_C" >&6
46292else
46293  ac_check_lib_save_LIBS=$LIBS
46294LIBS="-lnsl  $LIBS"
46295cat >conftest.$ac_ext <<_ACEOF
46296/* confdefs.h.  */
46297_ACEOF
46298cat confdefs.h >>conftest.$ac_ext
46299cat >>conftest.$ac_ext <<_ACEOF
46300/* end confdefs.h.  */
46301
46302/* Override any gcc2 internal prototype to avoid an error.  */
46303#ifdef __cplusplus
46304extern "C"
46305#endif
46306/* We use char because int might match the return type of a gcc2
46307   builtin and then its argument prototype would still apply.  */
46308char gethostbyname ();
46309int
46310main ()
46311{
46312gethostbyname ();
46313  ;
46314  return 0;
46315}
46316_ACEOF
46317rm -f conftest.$ac_objext conftest$ac_exeext
46318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46319  (eval $ac_link) 2>conftest.er1
46320  ac_status=$?
46321  grep -v '^ *+' conftest.er1 >conftest.err
46322  rm -f conftest.er1
46323  cat conftest.err >&5
46324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46325  (exit $ac_status); } &&
46326	 { ac_try='test -z "$ac_c_werror_flag"
46327			 || test ! -s conftest.err'
46328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46329  (eval $ac_try) 2>&5
46330  ac_status=$?
46331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46332  (exit $ac_status); }; } &&
46333	 { ac_try='test -s conftest$ac_exeext'
46334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46335  (eval $ac_try) 2>&5
46336  ac_status=$?
46337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46338  (exit $ac_status); }; }; then
46339  ac_cv_lib_nsl_gethostbyname=yes
46340else
46341  echo "$as_me: failed program was:" >&5
46342sed 's/^/| /' conftest.$ac_ext >&5
46343
46344ac_cv_lib_nsl_gethostbyname=no
46345fi
46346rm -f conftest.err conftest.$ac_objext \
46347      conftest$ac_exeext conftest.$ac_ext
46348LIBS=$ac_check_lib_save_LIBS
46349fi
46350echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
46351echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
46352if test $ac_cv_lib_nsl_gethostbyname = yes; then
46353  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
46354fi
46355
46356      if test $ac_cv_lib_nsl_gethostbyname = no; then
46357	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
46358echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
46359if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
46360  echo $ECHO_N "(cached) $ECHO_C" >&6
46361else
46362  ac_check_lib_save_LIBS=$LIBS
46363LIBS="-lbsd  $LIBS"
46364cat >conftest.$ac_ext <<_ACEOF
46365/* confdefs.h.  */
46366_ACEOF
46367cat confdefs.h >>conftest.$ac_ext
46368cat >>conftest.$ac_ext <<_ACEOF
46369/* end confdefs.h.  */
46370
46371/* Override any gcc2 internal prototype to avoid an error.  */
46372#ifdef __cplusplus
46373extern "C"
46374#endif
46375/* We use char because int might match the return type of a gcc2
46376   builtin and then its argument prototype would still apply.  */
46377char gethostbyname ();
46378int
46379main ()
46380{
46381gethostbyname ();
46382  ;
46383  return 0;
46384}
46385_ACEOF
46386rm -f conftest.$ac_objext conftest$ac_exeext
46387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46388  (eval $ac_link) 2>conftest.er1
46389  ac_status=$?
46390  grep -v '^ *+' conftest.er1 >conftest.err
46391  rm -f conftest.er1
46392  cat conftest.err >&5
46393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46394  (exit $ac_status); } &&
46395	 { ac_try='test -z "$ac_c_werror_flag"
46396			 || test ! -s conftest.err'
46397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46398  (eval $ac_try) 2>&5
46399  ac_status=$?
46400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46401  (exit $ac_status); }; } &&
46402	 { ac_try='test -s conftest$ac_exeext'
46403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46404  (eval $ac_try) 2>&5
46405  ac_status=$?
46406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46407  (exit $ac_status); }; }; then
46408  ac_cv_lib_bsd_gethostbyname=yes
46409else
46410  echo "$as_me: failed program was:" >&5
46411sed 's/^/| /' conftest.$ac_ext >&5
46412
46413ac_cv_lib_bsd_gethostbyname=no
46414fi
46415rm -f conftest.err conftest.$ac_objext \
46416      conftest$ac_exeext conftest.$ac_ext
46417LIBS=$ac_check_lib_save_LIBS
46418fi
46419echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
46420echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
46421if test $ac_cv_lib_bsd_gethostbyname = yes; then
46422  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
46423fi
46424
46425      fi
46426    fi
46427
46428    # lieder@skyler.mavd.honeywell.com says without -lsocket,
46429    # socket/setsockopt and other routines are undefined under SCO ODT
46430    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
46431    # on later versions), says Simon Leinen: it contains gethostby*
46432    # variants that don't use the name server (or something).  -lsocket
46433    # must be given before -lnsl if both are needed.  We assume that
46434    # if connect needs -lnsl, so does gethostbyname.
46435    echo "$as_me:$LINENO: checking for connect" >&5
46436echo $ECHO_N "checking for connect... $ECHO_C" >&6
46437if test "${ac_cv_func_connect+set}" = set; then
46438  echo $ECHO_N "(cached) $ECHO_C" >&6
46439else
46440  cat >conftest.$ac_ext <<_ACEOF
46441/* confdefs.h.  */
46442_ACEOF
46443cat confdefs.h >>conftest.$ac_ext
46444cat >>conftest.$ac_ext <<_ACEOF
46445/* end confdefs.h.  */
46446/* Define connect to an innocuous variant, in case <limits.h> declares connect.
46447   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46448#define connect innocuous_connect
46449
46450/* System header to define __stub macros and hopefully few prototypes,
46451    which can conflict with char connect (); below.
46452    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46453    <limits.h> exists even on freestanding compilers.  */
46454
46455#ifdef __STDC__
46456# include <limits.h>
46457#else
46458# include <assert.h>
46459#endif
46460
46461#undef connect
46462
46463/* Override any gcc2 internal prototype to avoid an error.  */
46464#ifdef __cplusplus
46465extern "C"
46466{
46467#endif
46468/* We use char because int might match the return type of a gcc2
46469   builtin and then its argument prototype would still apply.  */
46470char connect ();
46471/* The GNU C library defines this for functions which it implements
46472    to always fail with ENOSYS.  Some functions are actually named
46473    something starting with __ and the normal name is an alias.  */
46474#if defined (__stub_connect) || defined (__stub___connect)
46475choke me
46476#else
46477char (*f) () = connect;
46478#endif
46479#ifdef __cplusplus
46480}
46481#endif
46482
46483int
46484main ()
46485{
46486return f != connect;
46487  ;
46488  return 0;
46489}
46490_ACEOF
46491rm -f conftest.$ac_objext conftest$ac_exeext
46492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46493  (eval $ac_link) 2>conftest.er1
46494  ac_status=$?
46495  grep -v '^ *+' conftest.er1 >conftest.err
46496  rm -f conftest.er1
46497  cat conftest.err >&5
46498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499  (exit $ac_status); } &&
46500	 { ac_try='test -z "$ac_c_werror_flag"
46501			 || test ! -s conftest.err'
46502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46503  (eval $ac_try) 2>&5
46504  ac_status=$?
46505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46506  (exit $ac_status); }; } &&
46507	 { ac_try='test -s conftest$ac_exeext'
46508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46509  (eval $ac_try) 2>&5
46510  ac_status=$?
46511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46512  (exit $ac_status); }; }; then
46513  ac_cv_func_connect=yes
46514else
46515  echo "$as_me: failed program was:" >&5
46516sed 's/^/| /' conftest.$ac_ext >&5
46517
46518ac_cv_func_connect=no
46519fi
46520rm -f conftest.err conftest.$ac_objext \
46521      conftest$ac_exeext conftest.$ac_ext
46522fi
46523echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
46524echo "${ECHO_T}$ac_cv_func_connect" >&6
46525
46526    if test $ac_cv_func_connect = no; then
46527      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
46528echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
46529if test "${ac_cv_lib_socket_connect+set}" = set; then
46530  echo $ECHO_N "(cached) $ECHO_C" >&6
46531else
46532  ac_check_lib_save_LIBS=$LIBS
46533LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
46534cat >conftest.$ac_ext <<_ACEOF
46535/* confdefs.h.  */
46536_ACEOF
46537cat confdefs.h >>conftest.$ac_ext
46538cat >>conftest.$ac_ext <<_ACEOF
46539/* end confdefs.h.  */
46540
46541/* Override any gcc2 internal prototype to avoid an error.  */
46542#ifdef __cplusplus
46543extern "C"
46544#endif
46545/* We use char because int might match the return type of a gcc2
46546   builtin and then its argument prototype would still apply.  */
46547char connect ();
46548int
46549main ()
46550{
46551connect ();
46552  ;
46553  return 0;
46554}
46555_ACEOF
46556rm -f conftest.$ac_objext conftest$ac_exeext
46557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46558  (eval $ac_link) 2>conftest.er1
46559  ac_status=$?
46560  grep -v '^ *+' conftest.er1 >conftest.err
46561  rm -f conftest.er1
46562  cat conftest.err >&5
46563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46564  (exit $ac_status); } &&
46565	 { ac_try='test -z "$ac_c_werror_flag"
46566			 || test ! -s conftest.err'
46567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46568  (eval $ac_try) 2>&5
46569  ac_status=$?
46570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46571  (exit $ac_status); }; } &&
46572	 { ac_try='test -s conftest$ac_exeext'
46573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46574  (eval $ac_try) 2>&5
46575  ac_status=$?
46576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46577  (exit $ac_status); }; }; then
46578  ac_cv_lib_socket_connect=yes
46579else
46580  echo "$as_me: failed program was:" >&5
46581sed 's/^/| /' conftest.$ac_ext >&5
46582
46583ac_cv_lib_socket_connect=no
46584fi
46585rm -f conftest.err conftest.$ac_objext \
46586      conftest$ac_exeext conftest.$ac_ext
46587LIBS=$ac_check_lib_save_LIBS
46588fi
46589echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
46590echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
46591if test $ac_cv_lib_socket_connect = yes; then
46592  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
46593fi
46594
46595    fi
46596
46597    # Guillermo Gomez says -lposix is necessary on A/UX.
46598    echo "$as_me:$LINENO: checking for remove" >&5
46599echo $ECHO_N "checking for remove... $ECHO_C" >&6
46600if test "${ac_cv_func_remove+set}" = set; then
46601  echo $ECHO_N "(cached) $ECHO_C" >&6
46602else
46603  cat >conftest.$ac_ext <<_ACEOF
46604/* confdefs.h.  */
46605_ACEOF
46606cat confdefs.h >>conftest.$ac_ext
46607cat >>conftest.$ac_ext <<_ACEOF
46608/* end confdefs.h.  */
46609/* Define remove to an innocuous variant, in case <limits.h> declares remove.
46610   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46611#define remove innocuous_remove
46612
46613/* System header to define __stub macros and hopefully few prototypes,
46614    which can conflict with char remove (); below.
46615    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46616    <limits.h> exists even on freestanding compilers.  */
46617
46618#ifdef __STDC__
46619# include <limits.h>
46620#else
46621# include <assert.h>
46622#endif
46623
46624#undef remove
46625
46626/* Override any gcc2 internal prototype to avoid an error.  */
46627#ifdef __cplusplus
46628extern "C"
46629{
46630#endif
46631/* We use char because int might match the return type of a gcc2
46632   builtin and then its argument prototype would still apply.  */
46633char remove ();
46634/* The GNU C library defines this for functions which it implements
46635    to always fail with ENOSYS.  Some functions are actually named
46636    something starting with __ and the normal name is an alias.  */
46637#if defined (__stub_remove) || defined (__stub___remove)
46638choke me
46639#else
46640char (*f) () = remove;
46641#endif
46642#ifdef __cplusplus
46643}
46644#endif
46645
46646int
46647main ()
46648{
46649return f != remove;
46650  ;
46651  return 0;
46652}
46653_ACEOF
46654rm -f conftest.$ac_objext conftest$ac_exeext
46655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46656  (eval $ac_link) 2>conftest.er1
46657  ac_status=$?
46658  grep -v '^ *+' conftest.er1 >conftest.err
46659  rm -f conftest.er1
46660  cat conftest.err >&5
46661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662  (exit $ac_status); } &&
46663	 { ac_try='test -z "$ac_c_werror_flag"
46664			 || test ! -s conftest.err'
46665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46666  (eval $ac_try) 2>&5
46667  ac_status=$?
46668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46669  (exit $ac_status); }; } &&
46670	 { ac_try='test -s conftest$ac_exeext'
46671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46672  (eval $ac_try) 2>&5
46673  ac_status=$?
46674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46675  (exit $ac_status); }; }; then
46676  ac_cv_func_remove=yes
46677else
46678  echo "$as_me: failed program was:" >&5
46679sed 's/^/| /' conftest.$ac_ext >&5
46680
46681ac_cv_func_remove=no
46682fi
46683rm -f conftest.err conftest.$ac_objext \
46684      conftest$ac_exeext conftest.$ac_ext
46685fi
46686echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
46687echo "${ECHO_T}$ac_cv_func_remove" >&6
46688
46689    if test $ac_cv_func_remove = no; then
46690      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
46691echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
46692if test "${ac_cv_lib_posix_remove+set}" = set; then
46693  echo $ECHO_N "(cached) $ECHO_C" >&6
46694else
46695  ac_check_lib_save_LIBS=$LIBS
46696LIBS="-lposix  $LIBS"
46697cat >conftest.$ac_ext <<_ACEOF
46698/* confdefs.h.  */
46699_ACEOF
46700cat confdefs.h >>conftest.$ac_ext
46701cat >>conftest.$ac_ext <<_ACEOF
46702/* end confdefs.h.  */
46703
46704/* Override any gcc2 internal prototype to avoid an error.  */
46705#ifdef __cplusplus
46706extern "C"
46707#endif
46708/* We use char because int might match the return type of a gcc2
46709   builtin and then its argument prototype would still apply.  */
46710char remove ();
46711int
46712main ()
46713{
46714remove ();
46715  ;
46716  return 0;
46717}
46718_ACEOF
46719rm -f conftest.$ac_objext conftest$ac_exeext
46720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46721  (eval $ac_link) 2>conftest.er1
46722  ac_status=$?
46723  grep -v '^ *+' conftest.er1 >conftest.err
46724  rm -f conftest.er1
46725  cat conftest.err >&5
46726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46727  (exit $ac_status); } &&
46728	 { ac_try='test -z "$ac_c_werror_flag"
46729			 || test ! -s conftest.err'
46730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46731  (eval $ac_try) 2>&5
46732  ac_status=$?
46733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46734  (exit $ac_status); }; } &&
46735	 { ac_try='test -s conftest$ac_exeext'
46736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46737  (eval $ac_try) 2>&5
46738  ac_status=$?
46739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46740  (exit $ac_status); }; }; then
46741  ac_cv_lib_posix_remove=yes
46742else
46743  echo "$as_me: failed program was:" >&5
46744sed 's/^/| /' conftest.$ac_ext >&5
46745
46746ac_cv_lib_posix_remove=no
46747fi
46748rm -f conftest.err conftest.$ac_objext \
46749      conftest$ac_exeext conftest.$ac_ext
46750LIBS=$ac_check_lib_save_LIBS
46751fi
46752echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
46753echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
46754if test $ac_cv_lib_posix_remove = yes; then
46755  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
46756fi
46757
46758    fi
46759
46760    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
46761    echo "$as_me:$LINENO: checking for shmat" >&5
46762echo $ECHO_N "checking for shmat... $ECHO_C" >&6
46763if test "${ac_cv_func_shmat+set}" = set; then
46764  echo $ECHO_N "(cached) $ECHO_C" >&6
46765else
46766  cat >conftest.$ac_ext <<_ACEOF
46767/* confdefs.h.  */
46768_ACEOF
46769cat confdefs.h >>conftest.$ac_ext
46770cat >>conftest.$ac_ext <<_ACEOF
46771/* end confdefs.h.  */
46772/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
46773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46774#define shmat innocuous_shmat
46775
46776/* System header to define __stub macros and hopefully few prototypes,
46777    which can conflict with char shmat (); below.
46778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46779    <limits.h> exists even on freestanding compilers.  */
46780
46781#ifdef __STDC__
46782# include <limits.h>
46783#else
46784# include <assert.h>
46785#endif
46786
46787#undef shmat
46788
46789/* Override any gcc2 internal prototype to avoid an error.  */
46790#ifdef __cplusplus
46791extern "C"
46792{
46793#endif
46794/* We use char because int might match the return type of a gcc2
46795   builtin and then its argument prototype would still apply.  */
46796char shmat ();
46797/* The GNU C library defines this for functions which it implements
46798    to always fail with ENOSYS.  Some functions are actually named
46799    something starting with __ and the normal name is an alias.  */
46800#if defined (__stub_shmat) || defined (__stub___shmat)
46801choke me
46802#else
46803char (*f) () = shmat;
46804#endif
46805#ifdef __cplusplus
46806}
46807#endif
46808
46809int
46810main ()
46811{
46812return f != shmat;
46813  ;
46814  return 0;
46815}
46816_ACEOF
46817rm -f conftest.$ac_objext conftest$ac_exeext
46818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46819  (eval $ac_link) 2>conftest.er1
46820  ac_status=$?
46821  grep -v '^ *+' conftest.er1 >conftest.err
46822  rm -f conftest.er1
46823  cat conftest.err >&5
46824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46825  (exit $ac_status); } &&
46826	 { ac_try='test -z "$ac_c_werror_flag"
46827			 || test ! -s conftest.err'
46828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46829  (eval $ac_try) 2>&5
46830  ac_status=$?
46831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46832  (exit $ac_status); }; } &&
46833	 { ac_try='test -s conftest$ac_exeext'
46834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46835  (eval $ac_try) 2>&5
46836  ac_status=$?
46837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46838  (exit $ac_status); }; }; then
46839  ac_cv_func_shmat=yes
46840else
46841  echo "$as_me: failed program was:" >&5
46842sed 's/^/| /' conftest.$ac_ext >&5
46843
46844ac_cv_func_shmat=no
46845fi
46846rm -f conftest.err conftest.$ac_objext \
46847      conftest$ac_exeext conftest.$ac_ext
46848fi
46849echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
46850echo "${ECHO_T}$ac_cv_func_shmat" >&6
46851
46852    if test $ac_cv_func_shmat = no; then
46853      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
46854echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
46855if test "${ac_cv_lib_ipc_shmat+set}" = set; then
46856  echo $ECHO_N "(cached) $ECHO_C" >&6
46857else
46858  ac_check_lib_save_LIBS=$LIBS
46859LIBS="-lipc  $LIBS"
46860cat >conftest.$ac_ext <<_ACEOF
46861/* confdefs.h.  */
46862_ACEOF
46863cat confdefs.h >>conftest.$ac_ext
46864cat >>conftest.$ac_ext <<_ACEOF
46865/* end confdefs.h.  */
46866
46867/* Override any gcc2 internal prototype to avoid an error.  */
46868#ifdef __cplusplus
46869extern "C"
46870#endif
46871/* We use char because int might match the return type of a gcc2
46872   builtin and then its argument prototype would still apply.  */
46873char shmat ();
46874int
46875main ()
46876{
46877shmat ();
46878  ;
46879  return 0;
46880}
46881_ACEOF
46882rm -f conftest.$ac_objext conftest$ac_exeext
46883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46884  (eval $ac_link) 2>conftest.er1
46885  ac_status=$?
46886  grep -v '^ *+' conftest.er1 >conftest.err
46887  rm -f conftest.er1
46888  cat conftest.err >&5
46889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46890  (exit $ac_status); } &&
46891	 { ac_try='test -z "$ac_c_werror_flag"
46892			 || test ! -s conftest.err'
46893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46894  (eval $ac_try) 2>&5
46895  ac_status=$?
46896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46897  (exit $ac_status); }; } &&
46898	 { ac_try='test -s conftest$ac_exeext'
46899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46900  (eval $ac_try) 2>&5
46901  ac_status=$?
46902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46903  (exit $ac_status); }; }; then
46904  ac_cv_lib_ipc_shmat=yes
46905else
46906  echo "$as_me: failed program was:" >&5
46907sed 's/^/| /' conftest.$ac_ext >&5
46908
46909ac_cv_lib_ipc_shmat=no
46910fi
46911rm -f conftest.err conftest.$ac_objext \
46912      conftest$ac_exeext conftest.$ac_ext
46913LIBS=$ac_check_lib_save_LIBS
46914fi
46915echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
46916echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
46917if test $ac_cv_lib_ipc_shmat = yes; then
46918  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
46919fi
46920
46921    fi
46922  fi
46923
46924  # Check for libraries that X11R6 Xt/Xaw programs need.
46925  ac_save_LDFLAGS=$LDFLAGS
46926  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
46927  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
46928  # check for ICE first), but we must link in the order -lSM -lICE or
46929  # we get undefined symbols.  So assume we have SM if we have ICE.
46930  # These have to be linked with before -lX11, unlike the other
46931  # libraries we check for below, so use a different variable.
46932  # John Interrante, Karl Berry
46933  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
46934echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
46935if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
46936  echo $ECHO_N "(cached) $ECHO_C" >&6
46937else
46938  ac_check_lib_save_LIBS=$LIBS
46939LIBS="-lICE $X_EXTRA_LIBS $LIBS"
46940cat >conftest.$ac_ext <<_ACEOF
46941/* confdefs.h.  */
46942_ACEOF
46943cat confdefs.h >>conftest.$ac_ext
46944cat >>conftest.$ac_ext <<_ACEOF
46945/* end confdefs.h.  */
46946
46947/* Override any gcc2 internal prototype to avoid an error.  */
46948#ifdef __cplusplus
46949extern "C"
46950#endif
46951/* We use char because int might match the return type of a gcc2
46952   builtin and then its argument prototype would still apply.  */
46953char IceConnectionNumber ();
46954int
46955main ()
46956{
46957IceConnectionNumber ();
46958  ;
46959  return 0;
46960}
46961_ACEOF
46962rm -f conftest.$ac_objext conftest$ac_exeext
46963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46964  (eval $ac_link) 2>conftest.er1
46965  ac_status=$?
46966  grep -v '^ *+' conftest.er1 >conftest.err
46967  rm -f conftest.er1
46968  cat conftest.err >&5
46969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46970  (exit $ac_status); } &&
46971	 { ac_try='test -z "$ac_c_werror_flag"
46972			 || test ! -s conftest.err'
46973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46974  (eval $ac_try) 2>&5
46975  ac_status=$?
46976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46977  (exit $ac_status); }; } &&
46978	 { ac_try='test -s conftest$ac_exeext'
46979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46980  (eval $ac_try) 2>&5
46981  ac_status=$?
46982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
46983  (exit $ac_status); }; }; then
46984  ac_cv_lib_ICE_IceConnectionNumber=yes
46985else
46986  echo "$as_me: failed program was:" >&5
46987sed 's/^/| /' conftest.$ac_ext >&5
46988
46989ac_cv_lib_ICE_IceConnectionNumber=no
46990fi
46991rm -f conftest.err conftest.$ac_objext \
46992      conftest$ac_exeext conftest.$ac_ext
46993LIBS=$ac_check_lib_save_LIBS
46994fi
46995echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
46996echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
46997if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
46998  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
46999fi
47000
47001  LDFLAGS=$ac_save_LDFLAGS
47002
47003fi
47004
47005
47006# try to figure out if we need any additional ld flags, like -R
47007# and yes, the autoconf X test is utterly broken
47008if test "$no_x" != yes; then
47009	echo "$as_me:$LINENO: checking for special X linker flags" >&5
47010echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6
47011if test "${krb_cv_sys_x_libs_rpath+set}" = set; then
47012  echo $ECHO_N "(cached) $ECHO_C" >&6
47013else
47014
47015	ac_save_libs="$LIBS"
47016	ac_save_cflags="$CFLAGS"
47017	CFLAGS="$CFLAGS $X_CFLAGS"
47018	krb_cv_sys_x_libs_rpath=""
47019	krb_cv_sys_x_libs=""
47020	for rflag in "" "-R" "-R " "-rpath "; do
47021		if test "$rflag" = ""; then
47022			foo="$X_LIBS"
47023		else
47024			foo=""
47025			for flag in $X_LIBS; do
47026			case $flag in
47027			-L*)
47028				foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`"
47029				;;
47030			*)
47031				foo="$foo $flag"
47032				;;
47033			esac
47034			done
47035		fi
47036		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
47037		if test "$cross_compiling" = yes; then
47038  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
47039See \`config.log' for more details." >&5
47040echo "$as_me: error: cannot run test program while cross compiling
47041See \`config.log' for more details." >&2;}
47042   { (exit 1); exit 1; }; }
47043else
47044  cat >conftest.$ac_ext <<_ACEOF
47045/* confdefs.h.  */
47046_ACEOF
47047cat confdefs.h >>conftest.$ac_ext
47048cat >>conftest.$ac_ext <<_ACEOF
47049/* end confdefs.h.  */
47050
47051		#include <X11/Xlib.h>
47052		foo()
47053		{
47054		XOpenDisplay(NULL);
47055		}
47056		main()
47057		{
47058		return 0;
47059		}
47060
47061_ACEOF
47062rm -f conftest$ac_exeext
47063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47064  (eval $ac_link) 2>&5
47065  ac_status=$?
47066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47067  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47069  (eval $ac_try) 2>&5
47070  ac_status=$?
47071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47072  (exit $ac_status); }; }; then
47073  krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break
47074else
47075  echo "$as_me: program exited with status $ac_status" >&5
47076echo "$as_me: failed program was:" >&5
47077sed 's/^/| /' conftest.$ac_ext >&5
47078
47079( exit $ac_status )
47080:
47081fi
47082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47083fi
47084	done
47085	LIBS="$ac_save_libs"
47086	CFLAGS="$ac_save_cflags"
47087
47088fi
47089echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5
47090echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6
47091	X_LIBS="$krb_cv_sys_x_libs"
47092fi
47093
47094
47095
47096
47097if test "$no_x" != yes; then
47098  HAVE_X_TRUE=
47099  HAVE_X_FALSE='#'
47100else
47101  HAVE_X_TRUE='#'
47102  HAVE_X_FALSE=
47103fi
47104
47105
47106
47107save_CFLAGS="$CFLAGS"
47108CFLAGS="$X_CFLAGS $CFLAGS"
47109save_LIBS="$LIBS"
47110LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS"
47111save_LDFLAGS="$LDFLAGS"
47112LDFLAGS="$LDFLAGS $X_LIBS"
47113
47114
47115
47116
47117
47118echo "$as_me:$LINENO: checking for XauWriteAuth" >&5
47119echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6
47120if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then
47121  echo $ECHO_N "(cached) $ECHO_C" >&6
47122else
47123
47124if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
47125	ac_save_LIBS="$LIBS"
47126	for ac_lib in "" X11 Xau; do
47127		case "$ac_lib" in
47128		"") ;;
47129		yes) ac_lib="" ;;
47130		no) continue ;;
47131		-l*) ;;
47132		*) ac_lib="-l$ac_lib" ;;
47133		esac
47134		LIBS=" $ac_lib  $ac_save_LIBS"
47135		cat >conftest.$ac_ext <<_ACEOF
47136/* confdefs.h.  */
47137_ACEOF
47138cat confdefs.h >>conftest.$ac_ext
47139cat >>conftest.$ac_ext <<_ACEOF
47140/* end confdefs.h.  */
47141
47142int
47143main ()
47144{
47145XauWriteAuth()
47146  ;
47147  return 0;
47148}
47149_ACEOF
47150rm -f conftest.$ac_objext conftest$ac_exeext
47151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47152  (eval $ac_link) 2>conftest.er1
47153  ac_status=$?
47154  grep -v '^ *+' conftest.er1 >conftest.err
47155  rm -f conftest.er1
47156  cat conftest.err >&5
47157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47158  (exit $ac_status); } &&
47159	 { ac_try='test -z "$ac_c_werror_flag"
47160			 || test ! -s conftest.err'
47161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47162  (eval $ac_try) 2>&5
47163  ac_status=$?
47164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47165  (exit $ac_status); }; } &&
47166	 { ac_try='test -s conftest$ac_exeext'
47167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47168  (eval $ac_try) 2>&5
47169  ac_status=$?
47170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171  (exit $ac_status); }; }; then
47172  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
47173else
47174  echo "$as_me: failed program was:" >&5
47175sed 's/^/| /' conftest.$ac_ext >&5
47176
47177fi
47178rm -f conftest.err conftest.$ac_objext \
47179      conftest$ac_exeext conftest.$ac_ext
47180	done
47181	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
47182	LIBS="$ac_save_LIBS"
47183fi
47184
47185fi
47186
47187
47188eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
47189
47190if false; then
47191
47192for ac_func in XauWriteAuth
47193do
47194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47195echo "$as_me:$LINENO: checking for $ac_func" >&5
47196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47197if eval "test \"\${$as_ac_var+set}\" = set"; then
47198  echo $ECHO_N "(cached) $ECHO_C" >&6
47199else
47200  cat >conftest.$ac_ext <<_ACEOF
47201/* confdefs.h.  */
47202_ACEOF
47203cat confdefs.h >>conftest.$ac_ext
47204cat >>conftest.$ac_ext <<_ACEOF
47205/* end confdefs.h.  */
47206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47207   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47208#define $ac_func innocuous_$ac_func
47209
47210/* System header to define __stub macros and hopefully few prototypes,
47211    which can conflict with char $ac_func (); below.
47212    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47213    <limits.h> exists even on freestanding compilers.  */
47214
47215#ifdef __STDC__
47216# include <limits.h>
47217#else
47218# include <assert.h>
47219#endif
47220
47221#undef $ac_func
47222
47223/* Override any gcc2 internal prototype to avoid an error.  */
47224#ifdef __cplusplus
47225extern "C"
47226{
47227#endif
47228/* We use char because int might match the return type of a gcc2
47229   builtin and then its argument prototype would still apply.  */
47230char $ac_func ();
47231/* The GNU C library defines this for functions which it implements
47232    to always fail with ENOSYS.  Some functions are actually named
47233    something starting with __ and the normal name is an alias.  */
47234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47235choke me
47236#else
47237char (*f) () = $ac_func;
47238#endif
47239#ifdef __cplusplus
47240}
47241#endif
47242
47243int
47244main ()
47245{
47246return f != $ac_func;
47247  ;
47248  return 0;
47249}
47250_ACEOF
47251rm -f conftest.$ac_objext conftest$ac_exeext
47252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47253  (eval $ac_link) 2>conftest.er1
47254  ac_status=$?
47255  grep -v '^ *+' conftest.er1 >conftest.err
47256  rm -f conftest.er1
47257  cat conftest.err >&5
47258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47259  (exit $ac_status); } &&
47260	 { ac_try='test -z "$ac_c_werror_flag"
47261			 || test ! -s conftest.err'
47262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47263  (eval $ac_try) 2>&5
47264  ac_status=$?
47265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47266  (exit $ac_status); }; } &&
47267	 { ac_try='test -s conftest$ac_exeext'
47268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47269  (eval $ac_try) 2>&5
47270  ac_status=$?
47271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47272  (exit $ac_status); }; }; then
47273  eval "$as_ac_var=yes"
47274else
47275  echo "$as_me: failed program was:" >&5
47276sed 's/^/| /' conftest.$ac_ext >&5
47277
47278eval "$as_ac_var=no"
47279fi
47280rm -f conftest.err conftest.$ac_objext \
47281      conftest$ac_exeext conftest.$ac_ext
47282fi
47283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47285if test `eval echo '${'$as_ac_var'}'` = yes; then
47286  cat >>confdefs.h <<_ACEOF
47287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47288_ACEOF
47289
47290fi
47291done
47292
47293fi
47294# XauWriteAuth
47295eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47296eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47297eval "LIB_XauWriteAuth=$ac_res"
47298
47299case "$ac_res" in
47300	yes)
47301	eval "ac_cv_func_XauWriteAuth=yes"
47302	eval "LIB_XauWriteAuth="
47303	cat >>confdefs.h <<_ACEOF
47304#define $ac_tr_func 1
47305_ACEOF
47306
47307	echo "$as_me:$LINENO: result: yes" >&5
47308echo "${ECHO_T}yes" >&6
47309	;;
47310	no)
47311	eval "ac_cv_func_XauWriteAuth=no"
47312	eval "LIB_XauWriteAuth="
47313	echo "$as_me:$LINENO: result: no" >&5
47314echo "${ECHO_T}no" >&6
47315	;;
47316	*)
47317	eval "ac_cv_func_XauWriteAuth=yes"
47318	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47319	cat >>confdefs.h <<_ACEOF
47320#define $ac_tr_func 1
47321_ACEOF
47322
47323	cat >>confdefs.h <<_ACEOF
47324#define $ac_tr_lib 1
47325_ACEOF
47326
47327	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47328echo "${ECHO_T}yes, in $ac_res" >&6
47329	;;
47330esac
47331
47332
47333ac_xxx="$LIBS"
47334LIBS="$LIB_XauWriteAuth $LIBS"
47335
47336
47337
47338echo "$as_me:$LINENO: checking for XauReadAuth" >&5
47339echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6
47340if test "${ac_cv_funclib_XauReadAuth+set}" = set; then
47341  echo $ECHO_N "(cached) $ECHO_C" >&6
47342else
47343
47344if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
47345	ac_save_LIBS="$LIBS"
47346	for ac_lib in "" X11 Xau; do
47347		case "$ac_lib" in
47348		"") ;;
47349		yes) ac_lib="" ;;
47350		no) continue ;;
47351		-l*) ;;
47352		*) ac_lib="-l$ac_lib" ;;
47353		esac
47354		LIBS=" $ac_lib  $ac_save_LIBS"
47355		cat >conftest.$ac_ext <<_ACEOF
47356/* confdefs.h.  */
47357_ACEOF
47358cat confdefs.h >>conftest.$ac_ext
47359cat >>conftest.$ac_ext <<_ACEOF
47360/* end confdefs.h.  */
47361
47362int
47363main ()
47364{
47365XauReadAuth()
47366  ;
47367  return 0;
47368}
47369_ACEOF
47370rm -f conftest.$ac_objext conftest$ac_exeext
47371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47372  (eval $ac_link) 2>conftest.er1
47373  ac_status=$?
47374  grep -v '^ *+' conftest.er1 >conftest.err
47375  rm -f conftest.er1
47376  cat conftest.err >&5
47377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47378  (exit $ac_status); } &&
47379	 { ac_try='test -z "$ac_c_werror_flag"
47380			 || test ! -s conftest.err'
47381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47382  (eval $ac_try) 2>&5
47383  ac_status=$?
47384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47385  (exit $ac_status); }; } &&
47386	 { ac_try='test -s conftest$ac_exeext'
47387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47388  (eval $ac_try) 2>&5
47389  ac_status=$?
47390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47391  (exit $ac_status); }; }; then
47392  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
47393else
47394  echo "$as_me: failed program was:" >&5
47395sed 's/^/| /' conftest.$ac_ext >&5
47396
47397fi
47398rm -f conftest.err conftest.$ac_objext \
47399      conftest$ac_exeext conftest.$ac_ext
47400	done
47401	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
47402	LIBS="$ac_save_LIBS"
47403fi
47404
47405fi
47406
47407
47408eval "ac_res=\$ac_cv_funclib_XauReadAuth"
47409
47410if false; then
47411
47412for ac_func in XauReadAuth
47413do
47414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47415echo "$as_me:$LINENO: checking for $ac_func" >&5
47416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47417if eval "test \"\${$as_ac_var+set}\" = set"; then
47418  echo $ECHO_N "(cached) $ECHO_C" >&6
47419else
47420  cat >conftest.$ac_ext <<_ACEOF
47421/* confdefs.h.  */
47422_ACEOF
47423cat confdefs.h >>conftest.$ac_ext
47424cat >>conftest.$ac_ext <<_ACEOF
47425/* end confdefs.h.  */
47426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47427   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47428#define $ac_func innocuous_$ac_func
47429
47430/* System header to define __stub macros and hopefully few prototypes,
47431    which can conflict with char $ac_func (); below.
47432    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47433    <limits.h> exists even on freestanding compilers.  */
47434
47435#ifdef __STDC__
47436# include <limits.h>
47437#else
47438# include <assert.h>
47439#endif
47440
47441#undef $ac_func
47442
47443/* Override any gcc2 internal prototype to avoid an error.  */
47444#ifdef __cplusplus
47445extern "C"
47446{
47447#endif
47448/* We use char because int might match the return type of a gcc2
47449   builtin and then its argument prototype would still apply.  */
47450char $ac_func ();
47451/* The GNU C library defines this for functions which it implements
47452    to always fail with ENOSYS.  Some functions are actually named
47453    something starting with __ and the normal name is an alias.  */
47454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47455choke me
47456#else
47457char (*f) () = $ac_func;
47458#endif
47459#ifdef __cplusplus
47460}
47461#endif
47462
47463int
47464main ()
47465{
47466return f != $ac_func;
47467  ;
47468  return 0;
47469}
47470_ACEOF
47471rm -f conftest.$ac_objext conftest$ac_exeext
47472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47473  (eval $ac_link) 2>conftest.er1
47474  ac_status=$?
47475  grep -v '^ *+' conftest.er1 >conftest.err
47476  rm -f conftest.er1
47477  cat conftest.err >&5
47478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47479  (exit $ac_status); } &&
47480	 { ac_try='test -z "$ac_c_werror_flag"
47481			 || test ! -s conftest.err'
47482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47483  (eval $ac_try) 2>&5
47484  ac_status=$?
47485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47486  (exit $ac_status); }; } &&
47487	 { ac_try='test -s conftest$ac_exeext'
47488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47489  (eval $ac_try) 2>&5
47490  ac_status=$?
47491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47492  (exit $ac_status); }; }; then
47493  eval "$as_ac_var=yes"
47494else
47495  echo "$as_me: failed program was:" >&5
47496sed 's/^/| /' conftest.$ac_ext >&5
47497
47498eval "$as_ac_var=no"
47499fi
47500rm -f conftest.err conftest.$ac_objext \
47501      conftest$ac_exeext conftest.$ac_ext
47502fi
47503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47504echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47505if test `eval echo '${'$as_ac_var'}'` = yes; then
47506  cat >>confdefs.h <<_ACEOF
47507#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47508_ACEOF
47509
47510fi
47511done
47512
47513fi
47514# XauReadAuth
47515eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47516eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47517eval "LIB_XauReadAuth=$ac_res"
47518
47519case "$ac_res" in
47520	yes)
47521	eval "ac_cv_func_XauReadAuth=yes"
47522	eval "LIB_XauReadAuth="
47523	cat >>confdefs.h <<_ACEOF
47524#define $ac_tr_func 1
47525_ACEOF
47526
47527	echo "$as_me:$LINENO: result: yes" >&5
47528echo "${ECHO_T}yes" >&6
47529	;;
47530	no)
47531	eval "ac_cv_func_XauReadAuth=no"
47532	eval "LIB_XauReadAuth="
47533	echo "$as_me:$LINENO: result: no" >&5
47534echo "${ECHO_T}no" >&6
47535	;;
47536	*)
47537	eval "ac_cv_func_XauReadAuth=yes"
47538	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47539	cat >>confdefs.h <<_ACEOF
47540#define $ac_tr_func 1
47541_ACEOF
47542
47543	cat >>confdefs.h <<_ACEOF
47544#define $ac_tr_lib 1
47545_ACEOF
47546
47547	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47548echo "${ECHO_T}yes, in $ac_res" >&6
47549	;;
47550esac
47551
47552
47553LIBS="$LIB_XauReadAauth $LIBS"
47554
47555
47556
47557echo "$as_me:$LINENO: checking for XauFileName" >&5
47558echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6
47559if test "${ac_cv_funclib_XauFileName+set}" = set; then
47560  echo $ECHO_N "(cached) $ECHO_C" >&6
47561else
47562
47563if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
47564	ac_save_LIBS="$LIBS"
47565	for ac_lib in "" X11 Xau; do
47566		case "$ac_lib" in
47567		"") ;;
47568		yes) ac_lib="" ;;
47569		no) continue ;;
47570		-l*) ;;
47571		*) ac_lib="-l$ac_lib" ;;
47572		esac
47573		LIBS=" $ac_lib  $ac_save_LIBS"
47574		cat >conftest.$ac_ext <<_ACEOF
47575/* confdefs.h.  */
47576_ACEOF
47577cat confdefs.h >>conftest.$ac_ext
47578cat >>conftest.$ac_ext <<_ACEOF
47579/* end confdefs.h.  */
47580
47581int
47582main ()
47583{
47584XauFileName()
47585  ;
47586  return 0;
47587}
47588_ACEOF
47589rm -f conftest.$ac_objext conftest$ac_exeext
47590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47591  (eval $ac_link) 2>conftest.er1
47592  ac_status=$?
47593  grep -v '^ *+' conftest.er1 >conftest.err
47594  rm -f conftest.er1
47595  cat conftest.err >&5
47596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597  (exit $ac_status); } &&
47598	 { ac_try='test -z "$ac_c_werror_flag"
47599			 || test ! -s conftest.err'
47600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47601  (eval $ac_try) 2>&5
47602  ac_status=$?
47603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47604  (exit $ac_status); }; } &&
47605	 { ac_try='test -s conftest$ac_exeext'
47606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47607  (eval $ac_try) 2>&5
47608  ac_status=$?
47609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47610  (exit $ac_status); }; }; then
47611  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
47612else
47613  echo "$as_me: failed program was:" >&5
47614sed 's/^/| /' conftest.$ac_ext >&5
47615
47616fi
47617rm -f conftest.err conftest.$ac_objext \
47618      conftest$ac_exeext conftest.$ac_ext
47619	done
47620	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
47621	LIBS="$ac_save_LIBS"
47622fi
47623
47624fi
47625
47626
47627eval "ac_res=\$ac_cv_funclib_XauFileName"
47628
47629if false; then
47630
47631for ac_func in XauFileName
47632do
47633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47634echo "$as_me:$LINENO: checking for $ac_func" >&5
47635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47636if eval "test \"\${$as_ac_var+set}\" = set"; then
47637  echo $ECHO_N "(cached) $ECHO_C" >&6
47638else
47639  cat >conftest.$ac_ext <<_ACEOF
47640/* confdefs.h.  */
47641_ACEOF
47642cat confdefs.h >>conftest.$ac_ext
47643cat >>conftest.$ac_ext <<_ACEOF
47644/* end confdefs.h.  */
47645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47646   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47647#define $ac_func innocuous_$ac_func
47648
47649/* System header to define __stub macros and hopefully few prototypes,
47650    which can conflict with char $ac_func (); below.
47651    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47652    <limits.h> exists even on freestanding compilers.  */
47653
47654#ifdef __STDC__
47655# include <limits.h>
47656#else
47657# include <assert.h>
47658#endif
47659
47660#undef $ac_func
47661
47662/* Override any gcc2 internal prototype to avoid an error.  */
47663#ifdef __cplusplus
47664extern "C"
47665{
47666#endif
47667/* We use char because int might match the return type of a gcc2
47668   builtin and then its argument prototype would still apply.  */
47669char $ac_func ();
47670/* The GNU C library defines this for functions which it implements
47671    to always fail with ENOSYS.  Some functions are actually named
47672    something starting with __ and the normal name is an alias.  */
47673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47674choke me
47675#else
47676char (*f) () = $ac_func;
47677#endif
47678#ifdef __cplusplus
47679}
47680#endif
47681
47682int
47683main ()
47684{
47685return f != $ac_func;
47686  ;
47687  return 0;
47688}
47689_ACEOF
47690rm -f conftest.$ac_objext conftest$ac_exeext
47691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47692  (eval $ac_link) 2>conftest.er1
47693  ac_status=$?
47694  grep -v '^ *+' conftest.er1 >conftest.err
47695  rm -f conftest.er1
47696  cat conftest.err >&5
47697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698  (exit $ac_status); } &&
47699	 { ac_try='test -z "$ac_c_werror_flag"
47700			 || test ! -s conftest.err'
47701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47702  (eval $ac_try) 2>&5
47703  ac_status=$?
47704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47705  (exit $ac_status); }; } &&
47706	 { ac_try='test -s conftest$ac_exeext'
47707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47708  (eval $ac_try) 2>&5
47709  ac_status=$?
47710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47711  (exit $ac_status); }; }; then
47712  eval "$as_ac_var=yes"
47713else
47714  echo "$as_me: failed program was:" >&5
47715sed 's/^/| /' conftest.$ac_ext >&5
47716
47717eval "$as_ac_var=no"
47718fi
47719rm -f conftest.err conftest.$ac_objext \
47720      conftest$ac_exeext conftest.$ac_ext
47721fi
47722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47723echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47724if test `eval echo '${'$as_ac_var'}'` = yes; then
47725  cat >>confdefs.h <<_ACEOF
47726#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47727_ACEOF
47728
47729fi
47730done
47731
47732fi
47733# XauFileName
47734eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47735eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
47736eval "LIB_XauFileName=$ac_res"
47737
47738case "$ac_res" in
47739	yes)
47740	eval "ac_cv_func_XauFileName=yes"
47741	eval "LIB_XauFileName="
47742	cat >>confdefs.h <<_ACEOF
47743#define $ac_tr_func 1
47744_ACEOF
47745
47746	echo "$as_me:$LINENO: result: yes" >&5
47747echo "${ECHO_T}yes" >&6
47748	;;
47749	no)
47750	eval "ac_cv_func_XauFileName=no"
47751	eval "LIB_XauFileName="
47752	echo "$as_me:$LINENO: result: no" >&5
47753echo "${ECHO_T}no" >&6
47754	;;
47755	*)
47756	eval "ac_cv_func_XauFileName=yes"
47757	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
47758	cat >>confdefs.h <<_ACEOF
47759#define $ac_tr_func 1
47760_ACEOF
47761
47762	cat >>confdefs.h <<_ACEOF
47763#define $ac_tr_lib 1
47764_ACEOF
47765
47766	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
47767echo "${ECHO_T}yes, in $ac_res" >&6
47768	;;
47769esac
47770
47771
47772LIBS="$ac_xxx"
47773
47774case "$ac_cv_funclib_XauWriteAuth" in
47775yes)	;;
47776no)	;;
47777*)	if test "$ac_cv_funclib_XauReadAuth" = yes; then
47778		if test "$ac_cv_funclib_XauFileName" = yes; then
47779			LIB_XauReadAuth="$LIB_XauWriteAuth"
47780		else
47781			LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName"
47782		fi
47783	else
47784		if test "$ac_cv_funclib_XauFileName" = yes; then
47785			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth"
47786		else
47787			LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName"
47788		fi
47789	fi
47790	;;
47791esac
47792
47793if test "$AUTOMAKE" != ""; then
47794
47795
47796if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47797  NEED_WRITEAUTH_TRUE=
47798  NEED_WRITEAUTH_FALSE='#'
47799else
47800  NEED_WRITEAUTH_TRUE='#'
47801  NEED_WRITEAUTH_FALSE=
47802fi
47803
47804else
47805
47806
47807	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
47808		NEED_WRITEAUTH_TRUE=
47809		NEED_WRITEAUTH_FALSE='#'
47810	else
47811		NEED_WRITEAUTH_TRUE='#'
47812		NEED_WRITEAUTH_FALSE=
47813	fi
47814fi
47815CFLAGS=$save_CFLAGS
47816LIBS=$save_LIBS
47817LDFLAGS=$save_LDFLAGS
47818
47819
47820
47821echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
47822echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
47823if test "${ac_cv_c_const+set}" = set; then
47824  echo $ECHO_N "(cached) $ECHO_C" >&6
47825else
47826  cat >conftest.$ac_ext <<_ACEOF
47827/* confdefs.h.  */
47828_ACEOF
47829cat confdefs.h >>conftest.$ac_ext
47830cat >>conftest.$ac_ext <<_ACEOF
47831/* end confdefs.h.  */
47832
47833int
47834main ()
47835{
47836/* FIXME: Include the comments suggested by Paul. */
47837#ifndef __cplusplus
47838  /* Ultrix mips cc rejects this.  */
47839  typedef int charset[2];
47840  const charset x;
47841  /* SunOS 4.1.1 cc rejects this.  */
47842  char const *const *ccp;
47843  char **p;
47844  /* NEC SVR4.0.2 mips cc rejects this.  */
47845  struct point {int x, y;};
47846  static struct point const zero = {0,0};
47847  /* AIX XL C 1.02.0.0 rejects this.
47848     It does not let you subtract one const X* pointer from another in
47849     an arm of an if-expression whose if-part is not a constant
47850     expression */
47851  const char *g = "string";
47852  ccp = &g + (g ? g-g : 0);
47853  /* HPUX 7.0 cc rejects these. */
47854  ++ccp;
47855  p = (char**) ccp;
47856  ccp = (char const *const *) p;
47857  { /* SCO 3.2v4 cc rejects this.  */
47858    char *t;
47859    char const *s = 0 ? (char *) 0 : (char const *) 0;
47860
47861    *t++ = 0;
47862  }
47863  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
47864    int x[] = {25, 17};
47865    const int *foo = &x[0];
47866    ++foo;
47867  }
47868  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
47869    typedef const int *iptr;
47870    iptr p = 0;
47871    ++p;
47872  }
47873  { /* AIX XL C 1.02.0.0 rejects this saying
47874       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
47875    struct s { int j; const int *ap[3]; };
47876    struct s *b; b->j = 5;
47877  }
47878  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
47879    const int foo = 10;
47880  }
47881#endif
47882
47883  ;
47884  return 0;
47885}
47886_ACEOF
47887rm -f conftest.$ac_objext
47888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47889  (eval $ac_compile) 2>conftest.er1
47890  ac_status=$?
47891  grep -v '^ *+' conftest.er1 >conftest.err
47892  rm -f conftest.er1
47893  cat conftest.err >&5
47894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47895  (exit $ac_status); } &&
47896	 { ac_try='test -z "$ac_c_werror_flag"
47897			 || test ! -s conftest.err'
47898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47899  (eval $ac_try) 2>&5
47900  ac_status=$?
47901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47902  (exit $ac_status); }; } &&
47903	 { ac_try='test -s conftest.$ac_objext'
47904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47905  (eval $ac_try) 2>&5
47906  ac_status=$?
47907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47908  (exit $ac_status); }; }; then
47909  ac_cv_c_const=yes
47910else
47911  echo "$as_me: failed program was:" >&5
47912sed 's/^/| /' conftest.$ac_ext >&5
47913
47914ac_cv_c_const=no
47915fi
47916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47917fi
47918echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
47919echo "${ECHO_T}$ac_cv_c_const" >&6
47920if test $ac_cv_c_const = no; then
47921
47922cat >>confdefs.h <<\_ACEOF
47923#define const
47924_ACEOF
47925
47926fi
47927
47928echo "$as_me:$LINENO: checking for off_t" >&5
47929echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47930if test "${ac_cv_type_off_t+set}" = set; then
47931  echo $ECHO_N "(cached) $ECHO_C" >&6
47932else
47933  cat >conftest.$ac_ext <<_ACEOF
47934/* confdefs.h.  */
47935_ACEOF
47936cat confdefs.h >>conftest.$ac_ext
47937cat >>conftest.$ac_ext <<_ACEOF
47938/* end confdefs.h.  */
47939$ac_includes_default
47940int
47941main ()
47942{
47943if ((off_t *) 0)
47944  return 0;
47945if (sizeof (off_t))
47946  return 0;
47947  ;
47948  return 0;
47949}
47950_ACEOF
47951rm -f conftest.$ac_objext
47952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47953  (eval $ac_compile) 2>conftest.er1
47954  ac_status=$?
47955  grep -v '^ *+' conftest.er1 >conftest.err
47956  rm -f conftest.er1
47957  cat conftest.err >&5
47958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47959  (exit $ac_status); } &&
47960	 { ac_try='test -z "$ac_c_werror_flag"
47961			 || test ! -s conftest.err'
47962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47963  (eval $ac_try) 2>&5
47964  ac_status=$?
47965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966  (exit $ac_status); }; } &&
47967	 { ac_try='test -s conftest.$ac_objext'
47968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47969  (eval $ac_try) 2>&5
47970  ac_status=$?
47971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
47972  (exit $ac_status); }; }; then
47973  ac_cv_type_off_t=yes
47974else
47975  echo "$as_me: failed program was:" >&5
47976sed 's/^/| /' conftest.$ac_ext >&5
47977
47978ac_cv_type_off_t=no
47979fi
47980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47981fi
47982echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47983echo "${ECHO_T}$ac_cv_type_off_t" >&6
47984if test $ac_cv_type_off_t = yes; then
47985  :
47986else
47987
47988cat >>confdefs.h <<_ACEOF
47989#define off_t long
47990_ACEOF
47991
47992fi
47993
47994echo "$as_me:$LINENO: checking for mode_t" >&5
47995echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
47996if test "${ac_cv_type_mode_t+set}" = set; then
47997  echo $ECHO_N "(cached) $ECHO_C" >&6
47998else
47999  cat >conftest.$ac_ext <<_ACEOF
48000/* confdefs.h.  */
48001_ACEOF
48002cat confdefs.h >>conftest.$ac_ext
48003cat >>conftest.$ac_ext <<_ACEOF
48004/* end confdefs.h.  */
48005#include <sys/types.h>
48006#if STDC_HEADERS
48007#include <stdlib.h>
48008#include <stddef.h>
48009#endif
48010
48011_ACEOF
48012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48013  $EGREP "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48014  ac_cv_type_mode_t=yes
48015else
48016  ac_cv_type_mode_t=no
48017fi
48018rm -f conftest*
48019
48020fi
48021echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
48022echo "${ECHO_T}$ac_cv_type_mode_t" >&6
48023if test $ac_cv_type_mode_t = no; then
48024
48025cat >>confdefs.h <<\_ACEOF
48026#define mode_t unsigned short
48027_ACEOF
48028
48029fi
48030
48031echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
48032echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
48033if test "${ac_cv_type_sig_atomic_t+set}" = set; then
48034  echo $ECHO_N "(cached) $ECHO_C" >&6
48035else
48036  cat >conftest.$ac_ext <<_ACEOF
48037/* confdefs.h.  */
48038_ACEOF
48039cat confdefs.h >>conftest.$ac_ext
48040cat >>conftest.$ac_ext <<_ACEOF
48041/* end confdefs.h.  */
48042#include <sys/types.h>
48043#if STDC_HEADERS
48044#include <stdlib.h>
48045#include <stddef.h>
48046#endif
48047#include <signal.h>
48048_ACEOF
48049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48050  $EGREP "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
48051  ac_cv_type_sig_atomic_t=yes
48052else
48053  ac_cv_type_sig_atomic_t=no
48054fi
48055rm -f conftest*
48056
48057fi
48058echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
48059echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
48060if test $ac_cv_type_sig_atomic_t = no; then
48061
48062cat >>confdefs.h <<\_ACEOF
48063#define sig_atomic_t int
48064_ACEOF
48065
48066fi
48067
48068
48069
48070cv=`echo "long long" | sed 'y%./+- %__p__%'`
48071echo "$as_me:$LINENO: checking for long long" >&5
48072echo $ECHO_N "checking for long long... $ECHO_C" >&6
48073if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then
48074  echo $ECHO_N "(cached) $ECHO_C" >&6
48075else
48076  cat >conftest.$ac_ext <<_ACEOF
48077/* confdefs.h.  */
48078_ACEOF
48079cat confdefs.h >>conftest.$ac_ext
48080cat >>conftest.$ac_ext <<_ACEOF
48081/* end confdefs.h.  */
48082#include <sys/types.h>
48083#if STDC_HEADERS
48084#include <stdlib.h>
48085#include <stddef.h>
48086#endif
48087
48088int
48089main ()
48090{
48091long long foo;
48092  ;
48093  return 0;
48094}
48095_ACEOF
48096rm -f conftest.$ac_objext
48097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48098  (eval $ac_compile) 2>conftest.er1
48099  ac_status=$?
48100  grep -v '^ *+' conftest.er1 >conftest.err
48101  rm -f conftest.er1
48102  cat conftest.err >&5
48103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48104  (exit $ac_status); } &&
48105	 { ac_try='test -z "$ac_c_werror_flag"
48106			 || test ! -s conftest.err'
48107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48108  (eval $ac_try) 2>&5
48109  ac_status=$?
48110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48111  (exit $ac_status); }; } &&
48112	 { ac_try='test -s conftest.$ac_objext'
48113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48114  (eval $ac_try) 2>&5
48115  ac_status=$?
48116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48117  (exit $ac_status); }; }; then
48118  eval "ac_cv_type_$cv=yes"
48119else
48120  echo "$as_me: failed program was:" >&5
48121sed 's/^/| /' conftest.$ac_ext >&5
48122
48123eval "ac_cv_type_$cv=no"
48124fi
48125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48126fi
48127ac_foo=`eval echo \\$ac_cv_type_$cv`
48128echo "$as_me:$LINENO: result: $ac_foo" >&5
48129echo "${ECHO_T}$ac_foo" >&6
48130if test "$ac_foo" = yes; then
48131  ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'`
48132if false; then
48133	echo "$as_me:$LINENO: checking for long long" >&5
48134echo $ECHO_N "checking for long long... $ECHO_C" >&6
48135if test "${ac_cv_type_long_long+set}" = set; then
48136  echo $ECHO_N "(cached) $ECHO_C" >&6
48137else
48138  cat >conftest.$ac_ext <<_ACEOF
48139/* confdefs.h.  */
48140_ACEOF
48141cat confdefs.h >>conftest.$ac_ext
48142cat >>conftest.$ac_ext <<_ACEOF
48143/* end confdefs.h.  */
48144$ac_includes_default
48145int
48146main ()
48147{
48148if ((long long *) 0)
48149  return 0;
48150if (sizeof (long long))
48151  return 0;
48152  ;
48153  return 0;
48154}
48155_ACEOF
48156rm -f conftest.$ac_objext
48157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48158  (eval $ac_compile) 2>conftest.er1
48159  ac_status=$?
48160  grep -v '^ *+' conftest.er1 >conftest.err
48161  rm -f conftest.er1
48162  cat conftest.err >&5
48163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48164  (exit $ac_status); } &&
48165	 { ac_try='test -z "$ac_c_werror_flag"
48166			 || test ! -s conftest.err'
48167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48168  (eval $ac_try) 2>&5
48169  ac_status=$?
48170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48171  (exit $ac_status); }; } &&
48172	 { ac_try='test -s conftest.$ac_objext'
48173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48174  (eval $ac_try) 2>&5
48175  ac_status=$?
48176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177  (exit $ac_status); }; }; then
48178  ac_cv_type_long_long=yes
48179else
48180  echo "$as_me: failed program was:" >&5
48181sed 's/^/| /' conftest.$ac_ext >&5
48182
48183ac_cv_type_long_long=no
48184fi
48185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48186fi
48187echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
48188echo "${ECHO_T}$ac_cv_type_long_long" >&6
48189if test $ac_cv_type_long_long = yes; then
48190
48191cat >>confdefs.h <<_ACEOF
48192#define HAVE_LONG_LONG 1
48193_ACEOF
48194
48195
48196fi
48197
48198fi
48199
48200cat >>confdefs.h <<_ACEOF
48201#define $ac_tr_hdr 1
48202_ACEOF
48203
48204fi
48205
48206echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48207echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
48208if test "${ac_cv_header_time+set}" = set; then
48209  echo $ECHO_N "(cached) $ECHO_C" >&6
48210else
48211  cat >conftest.$ac_ext <<_ACEOF
48212/* confdefs.h.  */
48213_ACEOF
48214cat confdefs.h >>conftest.$ac_ext
48215cat >>conftest.$ac_ext <<_ACEOF
48216/* end confdefs.h.  */
48217#include <sys/types.h>
48218#include <sys/time.h>
48219#include <time.h>
48220
48221int
48222main ()
48223{
48224if ((struct tm *) 0)
48225return 0;
48226  ;
48227  return 0;
48228}
48229_ACEOF
48230rm -f conftest.$ac_objext
48231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48232  (eval $ac_compile) 2>conftest.er1
48233  ac_status=$?
48234  grep -v '^ *+' conftest.er1 >conftest.err
48235  rm -f conftest.er1
48236  cat conftest.err >&5
48237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48238  (exit $ac_status); } &&
48239	 { ac_try='test -z "$ac_c_werror_flag"
48240			 || test ! -s conftest.err'
48241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48242  (eval $ac_try) 2>&5
48243  ac_status=$?
48244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48245  (exit $ac_status); }; } &&
48246	 { ac_try='test -s conftest.$ac_objext'
48247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48248  (eval $ac_try) 2>&5
48249  ac_status=$?
48250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48251  (exit $ac_status); }; }; then
48252  ac_cv_header_time=yes
48253else
48254  echo "$as_me: failed program was:" >&5
48255sed 's/^/| /' conftest.$ac_ext >&5
48256
48257ac_cv_header_time=no
48258fi
48259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48260fi
48261echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48262echo "${ECHO_T}$ac_cv_header_time" >&6
48263if test $ac_cv_header_time = yes; then
48264
48265cat >>confdefs.h <<\_ACEOF
48266#define TIME_WITH_SYS_TIME 1
48267_ACEOF
48268
48269fi
48270
48271echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
48272echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
48273if test "${ac_cv_struct_tm+set}" = set; then
48274  echo $ECHO_N "(cached) $ECHO_C" >&6
48275else
48276  cat >conftest.$ac_ext <<_ACEOF
48277/* confdefs.h.  */
48278_ACEOF
48279cat confdefs.h >>conftest.$ac_ext
48280cat >>conftest.$ac_ext <<_ACEOF
48281/* end confdefs.h.  */
48282#include <sys/types.h>
48283#include <time.h>
48284
48285int
48286main ()
48287{
48288struct tm *tp; tp->tm_sec;
48289  ;
48290  return 0;
48291}
48292_ACEOF
48293rm -f conftest.$ac_objext
48294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48295  (eval $ac_compile) 2>conftest.er1
48296  ac_status=$?
48297  grep -v '^ *+' conftest.er1 >conftest.err
48298  rm -f conftest.er1
48299  cat conftest.err >&5
48300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48301  (exit $ac_status); } &&
48302	 { ac_try='test -z "$ac_c_werror_flag"
48303			 || test ! -s conftest.err'
48304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48305  (eval $ac_try) 2>&5
48306  ac_status=$?
48307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48308  (exit $ac_status); }; } &&
48309	 { ac_try='test -s conftest.$ac_objext'
48310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48311  (eval $ac_try) 2>&5
48312  ac_status=$?
48313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314  (exit $ac_status); }; }; then
48315  ac_cv_struct_tm=time.h
48316else
48317  echo "$as_me: failed program was:" >&5
48318sed 's/^/| /' conftest.$ac_ext >&5
48319
48320ac_cv_struct_tm=sys/time.h
48321fi
48322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48323fi
48324echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
48325echo "${ECHO_T}$ac_cv_struct_tm" >&6
48326if test $ac_cv_struct_tm = sys/time.h; then
48327
48328cat >>confdefs.h <<\_ACEOF
48329#define TM_IN_SYS_TIME 1
48330_ACEOF
48331
48332fi
48333
48334
48335echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48336echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
48337if test "${ac_cv_header_stdc+set}" = set; then
48338  echo $ECHO_N "(cached) $ECHO_C" >&6
48339else
48340  cat >conftest.$ac_ext <<_ACEOF
48341/* confdefs.h.  */
48342_ACEOF
48343cat confdefs.h >>conftest.$ac_ext
48344cat >>conftest.$ac_ext <<_ACEOF
48345/* end confdefs.h.  */
48346#include <stdlib.h>
48347#include <stdarg.h>
48348#include <string.h>
48349#include <float.h>
48350
48351int
48352main ()
48353{
48354
48355  ;
48356  return 0;
48357}
48358_ACEOF
48359rm -f conftest.$ac_objext
48360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48361  (eval $ac_compile) 2>conftest.er1
48362  ac_status=$?
48363  grep -v '^ *+' conftest.er1 >conftest.err
48364  rm -f conftest.er1
48365  cat conftest.err >&5
48366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48367  (exit $ac_status); } &&
48368	 { ac_try='test -z "$ac_c_werror_flag"
48369			 || test ! -s conftest.err'
48370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48371  (eval $ac_try) 2>&5
48372  ac_status=$?
48373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48374  (exit $ac_status); }; } &&
48375	 { ac_try='test -s conftest.$ac_objext'
48376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48377  (eval $ac_try) 2>&5
48378  ac_status=$?
48379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380  (exit $ac_status); }; }; then
48381  ac_cv_header_stdc=yes
48382else
48383  echo "$as_me: failed program was:" >&5
48384sed 's/^/| /' conftest.$ac_ext >&5
48385
48386ac_cv_header_stdc=no
48387fi
48388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48389
48390if test $ac_cv_header_stdc = yes; then
48391  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48392  cat >conftest.$ac_ext <<_ACEOF
48393/* confdefs.h.  */
48394_ACEOF
48395cat confdefs.h >>conftest.$ac_ext
48396cat >>conftest.$ac_ext <<_ACEOF
48397/* end confdefs.h.  */
48398#include <string.h>
48399
48400_ACEOF
48401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48402  $EGREP "memchr" >/dev/null 2>&1; then
48403  :
48404else
48405  ac_cv_header_stdc=no
48406fi
48407rm -f conftest*
48408
48409fi
48410
48411if test $ac_cv_header_stdc = yes; then
48412  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48413  cat >conftest.$ac_ext <<_ACEOF
48414/* confdefs.h.  */
48415_ACEOF
48416cat confdefs.h >>conftest.$ac_ext
48417cat >>conftest.$ac_ext <<_ACEOF
48418/* end confdefs.h.  */
48419#include <stdlib.h>
48420
48421_ACEOF
48422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48423  $EGREP "free" >/dev/null 2>&1; then
48424  :
48425else
48426  ac_cv_header_stdc=no
48427fi
48428rm -f conftest*
48429
48430fi
48431
48432if test $ac_cv_header_stdc = yes; then
48433  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48434  if test "$cross_compiling" = yes; then
48435  :
48436else
48437  cat >conftest.$ac_ext <<_ACEOF
48438/* confdefs.h.  */
48439_ACEOF
48440cat confdefs.h >>conftest.$ac_ext
48441cat >>conftest.$ac_ext <<_ACEOF
48442/* end confdefs.h.  */
48443#include <ctype.h>
48444#if ((' ' & 0x0FF) == 0x020)
48445# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48446# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48447#else
48448# define ISLOWER(c) \
48449		   (('a' <= (c) && (c) <= 'i') \
48450		     || ('j' <= (c) && (c) <= 'r') \
48451		     || ('s' <= (c) && (c) <= 'z'))
48452# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48453#endif
48454
48455#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48456int
48457main ()
48458{
48459  int i;
48460  for (i = 0; i < 256; i++)
48461    if (XOR (islower (i), ISLOWER (i))
48462	|| toupper (i) != TOUPPER (i))
48463      exit(2);
48464  exit (0);
48465}
48466_ACEOF
48467rm -f conftest$ac_exeext
48468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48469  (eval $ac_link) 2>&5
48470  ac_status=$?
48471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48472  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48474  (eval $ac_try) 2>&5
48475  ac_status=$?
48476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48477  (exit $ac_status); }; }; then
48478  :
48479else
48480  echo "$as_me: program exited with status $ac_status" >&5
48481echo "$as_me: failed program was:" >&5
48482sed 's/^/| /' conftest.$ac_ext >&5
48483
48484( exit $ac_status )
48485ac_cv_header_stdc=no
48486fi
48487rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48488fi
48489fi
48490fi
48491echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48492echo "${ECHO_T}$ac_cv_header_stdc" >&6
48493if test $ac_cv_header_stdc = yes; then
48494
48495cat >>confdefs.h <<\_ACEOF
48496#define STDC_HEADERS 1
48497_ACEOF
48498
48499fi
48500
48501
48502
48503
48504
48505
48506
48507
48508
48509
48510
48511
48512
48513
48514
48515
48516
48517
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552for ac_header in \
48553	arpa/ftp.h				\
48554	arpa/telnet.h				\
48555	bind/bitypes.h				\
48556	bsdsetjmp.h				\
48557	curses.h				\
48558	dlfcn.h					\
48559	fnmatch.h				\
48560	inttypes.h				\
48561	io.h					\
48562	libutil.h				\
48563	limits.h				\
48564	maillock.h				\
48565	netgroup.h				\
48566	netinet/in6_machtypes.h			\
48567	netinfo/ni.h				\
48568	pthread.h				\
48569	pty.h					\
48570	sac.h					\
48571	security/pam_modules.h			\
48572	sgtty.h					\
48573	siad.h					\
48574	signal.h				\
48575	stropts.h				\
48576	sys/bitypes.h				\
48577	sys/category.h				\
48578	sys/file.h				\
48579	sys/filio.h				\
48580	sys/ioccom.h				\
48581	sys/mman.h				\
48582	sys/pty.h				\
48583	sys/ptyio.h				\
48584	sys/ptyvar.h				\
48585	sys/select.h				\
48586	sys/str_tty.h				\
48587	sys/stream.h				\
48588	sys/stropts.h				\
48589	sys/strtty.h				\
48590	sys/syscall.h				\
48591	sys/termio.h				\
48592	sys/timeb.h				\
48593	sys/times.h				\
48594	sys/un.h				\
48595	term.h					\
48596	termcap.h				\
48597	termio.h				\
48598	time.h					\
48599	tmpdir.h				\
48600	udb.h					\
48601	utmp.h					\
48602	utmpx.h					\
48603
48604do
48605as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48606if eval "test \"\${$as_ac_Header+set}\" = set"; then
48607  echo "$as_me:$LINENO: checking for $ac_header" >&5
48608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48609if eval "test \"\${$as_ac_Header+set}\" = set"; then
48610  echo $ECHO_N "(cached) $ECHO_C" >&6
48611fi
48612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48614else
48615  # Is the header compilable?
48616echo "$as_me:$LINENO: checking $ac_header usability" >&5
48617echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48618cat >conftest.$ac_ext <<_ACEOF
48619/* confdefs.h.  */
48620_ACEOF
48621cat confdefs.h >>conftest.$ac_ext
48622cat >>conftest.$ac_ext <<_ACEOF
48623/* end confdefs.h.  */
48624$ac_includes_default
48625#include <$ac_header>
48626_ACEOF
48627rm -f conftest.$ac_objext
48628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48629  (eval $ac_compile) 2>conftest.er1
48630  ac_status=$?
48631  grep -v '^ *+' conftest.er1 >conftest.err
48632  rm -f conftest.er1
48633  cat conftest.err >&5
48634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48635  (exit $ac_status); } &&
48636	 { ac_try='test -z "$ac_c_werror_flag"
48637			 || test ! -s conftest.err'
48638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48639  (eval $ac_try) 2>&5
48640  ac_status=$?
48641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642  (exit $ac_status); }; } &&
48643	 { ac_try='test -s conftest.$ac_objext'
48644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48645  (eval $ac_try) 2>&5
48646  ac_status=$?
48647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48648  (exit $ac_status); }; }; then
48649  ac_header_compiler=yes
48650else
48651  echo "$as_me: failed program was:" >&5
48652sed 's/^/| /' conftest.$ac_ext >&5
48653
48654ac_header_compiler=no
48655fi
48656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48657echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48658echo "${ECHO_T}$ac_header_compiler" >&6
48659
48660# Is the header present?
48661echo "$as_me:$LINENO: checking $ac_header presence" >&5
48662echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48663cat >conftest.$ac_ext <<_ACEOF
48664/* confdefs.h.  */
48665_ACEOF
48666cat confdefs.h >>conftest.$ac_ext
48667cat >>conftest.$ac_ext <<_ACEOF
48668/* end confdefs.h.  */
48669#include <$ac_header>
48670_ACEOF
48671if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48672  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48673  ac_status=$?
48674  grep -v '^ *+' conftest.er1 >conftest.err
48675  rm -f conftest.er1
48676  cat conftest.err >&5
48677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48678  (exit $ac_status); } >/dev/null; then
48679  if test -s conftest.err; then
48680    ac_cpp_err=$ac_c_preproc_warn_flag
48681    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
48682  else
48683    ac_cpp_err=
48684  fi
48685else
48686  ac_cpp_err=yes
48687fi
48688if test -z "$ac_cpp_err"; then
48689  ac_header_preproc=yes
48690else
48691  echo "$as_me: failed program was:" >&5
48692sed 's/^/| /' conftest.$ac_ext >&5
48693
48694  ac_header_preproc=no
48695fi
48696rm -f conftest.err conftest.$ac_ext
48697echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48698echo "${ECHO_T}$ac_header_preproc" >&6
48699
48700# So?  What about this header?
48701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48702  yes:no: )
48703    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48704echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48705    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48706echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48707    ac_header_preproc=yes
48708    ;;
48709  no:yes:* )
48710    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48711echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48712    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48713echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48714    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48715echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48716    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48717echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48718    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48719echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48720    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48721echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48722    (
48723      cat <<\_ASBOX
48724## -------------------------------------- ##
48725## Report this to heimdal-bugs@pdc.kth.se ##
48726## -------------------------------------- ##
48727_ASBOX
48728    ) |
48729      sed "s/^/$as_me: WARNING:     /" >&2
48730    ;;
48731esac
48732echo "$as_me:$LINENO: checking for $ac_header" >&5
48733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48734if eval "test \"\${$as_ac_Header+set}\" = set"; then
48735  echo $ECHO_N "(cached) $ECHO_C" >&6
48736else
48737  eval "$as_ac_Header=\$ac_header_preproc"
48738fi
48739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48741
48742fi
48743if test `eval echo '${'$as_ac_Header'}'` = yes; then
48744  cat >>confdefs.h <<_ACEOF
48745#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48746_ACEOF
48747
48748fi
48749
48750done
48751
48752
48753# Check whether --enable-netinfo or --disable-netinfo was given.
48754if test "${enable_netinfo+set}" = set; then
48755  enableval="$enable_netinfo"
48756
48757fi;
48758
48759if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then
48760
48761cat >>confdefs.h <<\_ACEOF
48762#define HAVE_NETINFO 1
48763_ACEOF
48764
48765fi
48766
48767
48768
48769
48770
48771echo "$as_me:$LINENO: checking for logwtmp" >&5
48772echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6
48773if test "${ac_cv_funclib_logwtmp+set}" = set; then
48774  echo $ECHO_N "(cached) $ECHO_C" >&6
48775else
48776
48777if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then
48778	ac_save_LIBS="$LIBS"
48779	for ac_lib in "" util; do
48780		case "$ac_lib" in
48781		"") ;;
48782		yes) ac_lib="" ;;
48783		no) continue ;;
48784		-l*) ;;
48785		*) ac_lib="-l$ac_lib" ;;
48786		esac
48787		LIBS=" $ac_lib  $ac_save_LIBS"
48788		cat >conftest.$ac_ext <<_ACEOF
48789/* confdefs.h.  */
48790_ACEOF
48791cat confdefs.h >>conftest.$ac_ext
48792cat >>conftest.$ac_ext <<_ACEOF
48793/* end confdefs.h.  */
48794
48795int
48796main ()
48797{
48798logwtmp()
48799  ;
48800  return 0;
48801}
48802_ACEOF
48803rm -f conftest.$ac_objext conftest$ac_exeext
48804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48805  (eval $ac_link) 2>conftest.er1
48806  ac_status=$?
48807  grep -v '^ *+' conftest.er1 >conftest.err
48808  rm -f conftest.er1
48809  cat conftest.err >&5
48810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48811  (exit $ac_status); } &&
48812	 { ac_try='test -z "$ac_c_werror_flag"
48813			 || test ! -s conftest.err'
48814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48815  (eval $ac_try) 2>&5
48816  ac_status=$?
48817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48818  (exit $ac_status); }; } &&
48819	 { ac_try='test -s conftest$ac_exeext'
48820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48821  (eval $ac_try) 2>&5
48822  ac_status=$?
48823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48824  (exit $ac_status); }; }; then
48825  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
48826else
48827  echo "$as_me: failed program was:" >&5
48828sed 's/^/| /' conftest.$ac_ext >&5
48829
48830fi
48831rm -f conftest.err conftest.$ac_objext \
48832      conftest$ac_exeext conftest.$ac_ext
48833	done
48834	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
48835	LIBS="$ac_save_LIBS"
48836fi
48837
48838fi
48839
48840
48841eval "ac_res=\$ac_cv_funclib_logwtmp"
48842
48843if false; then
48844
48845for ac_func in logwtmp
48846do
48847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48848echo "$as_me:$LINENO: checking for $ac_func" >&5
48849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48850if eval "test \"\${$as_ac_var+set}\" = set"; then
48851  echo $ECHO_N "(cached) $ECHO_C" >&6
48852else
48853  cat >conftest.$ac_ext <<_ACEOF
48854/* confdefs.h.  */
48855_ACEOF
48856cat confdefs.h >>conftest.$ac_ext
48857cat >>conftest.$ac_ext <<_ACEOF
48858/* end confdefs.h.  */
48859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48860   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48861#define $ac_func innocuous_$ac_func
48862
48863/* System header to define __stub macros and hopefully few prototypes,
48864    which can conflict with char $ac_func (); below.
48865    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48866    <limits.h> exists even on freestanding compilers.  */
48867
48868#ifdef __STDC__
48869# include <limits.h>
48870#else
48871# include <assert.h>
48872#endif
48873
48874#undef $ac_func
48875
48876/* Override any gcc2 internal prototype to avoid an error.  */
48877#ifdef __cplusplus
48878extern "C"
48879{
48880#endif
48881/* We use char because int might match the return type of a gcc2
48882   builtin and then its argument prototype would still apply.  */
48883char $ac_func ();
48884/* The GNU C library defines this for functions which it implements
48885    to always fail with ENOSYS.  Some functions are actually named
48886    something starting with __ and the normal name is an alias.  */
48887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48888choke me
48889#else
48890char (*f) () = $ac_func;
48891#endif
48892#ifdef __cplusplus
48893}
48894#endif
48895
48896int
48897main ()
48898{
48899return f != $ac_func;
48900  ;
48901  return 0;
48902}
48903_ACEOF
48904rm -f conftest.$ac_objext conftest$ac_exeext
48905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48906  (eval $ac_link) 2>conftest.er1
48907  ac_status=$?
48908  grep -v '^ *+' conftest.er1 >conftest.err
48909  rm -f conftest.er1
48910  cat conftest.err >&5
48911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48912  (exit $ac_status); } &&
48913	 { ac_try='test -z "$ac_c_werror_flag"
48914			 || test ! -s conftest.err'
48915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48916  (eval $ac_try) 2>&5
48917  ac_status=$?
48918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48919  (exit $ac_status); }; } &&
48920	 { ac_try='test -s conftest$ac_exeext'
48921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48922  (eval $ac_try) 2>&5
48923  ac_status=$?
48924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
48925  (exit $ac_status); }; }; then
48926  eval "$as_ac_var=yes"
48927else
48928  echo "$as_me: failed program was:" >&5
48929sed 's/^/| /' conftest.$ac_ext >&5
48930
48931eval "$as_ac_var=no"
48932fi
48933rm -f conftest.err conftest.$ac_objext \
48934      conftest$ac_exeext conftest.$ac_ext
48935fi
48936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48937echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48938if test `eval echo '${'$as_ac_var'}'` = yes; then
48939  cat >>confdefs.h <<_ACEOF
48940#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48941_ACEOF
48942
48943fi
48944done
48945
48946fi
48947# logwtmp
48948eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48949eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
48950eval "LIB_logwtmp=$ac_res"
48951
48952case "$ac_res" in
48953	yes)
48954	eval "ac_cv_func_logwtmp=yes"
48955	eval "LIB_logwtmp="
48956	cat >>confdefs.h <<_ACEOF
48957#define $ac_tr_func 1
48958_ACEOF
48959
48960	echo "$as_me:$LINENO: result: yes" >&5
48961echo "${ECHO_T}yes" >&6
48962	;;
48963	no)
48964	eval "ac_cv_func_logwtmp=no"
48965	eval "LIB_logwtmp="
48966	echo "$as_me:$LINENO: result: no" >&5
48967echo "${ECHO_T}no" >&6
48968	;;
48969	*)
48970	eval "ac_cv_func_logwtmp=yes"
48971	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
48972	cat >>confdefs.h <<_ACEOF
48973#define $ac_tr_func 1
48974_ACEOF
48975
48976	cat >>confdefs.h <<_ACEOF
48977#define $ac_tr_lib 1
48978_ACEOF
48979
48980	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
48981echo "${ECHO_T}yes, in $ac_res" >&6
48982	;;
48983esac
48984
48985
48986
48987
48988
48989echo "$as_me:$LINENO: checking for logout" >&5
48990echo $ECHO_N "checking for logout... $ECHO_C" >&6
48991if test "${ac_cv_funclib_logout+set}" = set; then
48992  echo $ECHO_N "(cached) $ECHO_C" >&6
48993else
48994
48995if eval "test \"\$ac_cv_func_logout\" != yes" ; then
48996	ac_save_LIBS="$LIBS"
48997	for ac_lib in "" util; do
48998		case "$ac_lib" in
48999		"") ;;
49000		yes) ac_lib="" ;;
49001		no) continue ;;
49002		-l*) ;;
49003		*) ac_lib="-l$ac_lib" ;;
49004		esac
49005		LIBS=" $ac_lib  $ac_save_LIBS"
49006		cat >conftest.$ac_ext <<_ACEOF
49007/* confdefs.h.  */
49008_ACEOF
49009cat confdefs.h >>conftest.$ac_ext
49010cat >>conftest.$ac_ext <<_ACEOF
49011/* end confdefs.h.  */
49012
49013int
49014main ()
49015{
49016logout()
49017  ;
49018  return 0;
49019}
49020_ACEOF
49021rm -f conftest.$ac_objext conftest$ac_exeext
49022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49023  (eval $ac_link) 2>conftest.er1
49024  ac_status=$?
49025  grep -v '^ *+' conftest.er1 >conftest.err
49026  rm -f conftest.er1
49027  cat conftest.err >&5
49028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49029  (exit $ac_status); } &&
49030	 { ac_try='test -z "$ac_c_werror_flag"
49031			 || test ! -s conftest.err'
49032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49033  (eval $ac_try) 2>&5
49034  ac_status=$?
49035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49036  (exit $ac_status); }; } &&
49037	 { ac_try='test -s conftest$ac_exeext'
49038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49039  (eval $ac_try) 2>&5
49040  ac_status=$?
49041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49042  (exit $ac_status); }; }; then
49043  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
49044else
49045  echo "$as_me: failed program was:" >&5
49046sed 's/^/| /' conftest.$ac_ext >&5
49047
49048fi
49049rm -f conftest.err conftest.$ac_objext \
49050      conftest$ac_exeext conftest.$ac_ext
49051	done
49052	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
49053	LIBS="$ac_save_LIBS"
49054fi
49055
49056fi
49057
49058
49059eval "ac_res=\$ac_cv_funclib_logout"
49060
49061if false; then
49062
49063for ac_func in logout
49064do
49065as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49066echo "$as_me:$LINENO: checking for $ac_func" >&5
49067echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49068if eval "test \"\${$as_ac_var+set}\" = set"; then
49069  echo $ECHO_N "(cached) $ECHO_C" >&6
49070else
49071  cat >conftest.$ac_ext <<_ACEOF
49072/* confdefs.h.  */
49073_ACEOF
49074cat confdefs.h >>conftest.$ac_ext
49075cat >>conftest.$ac_ext <<_ACEOF
49076/* end confdefs.h.  */
49077/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49078   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49079#define $ac_func innocuous_$ac_func
49080
49081/* System header to define __stub macros and hopefully few prototypes,
49082    which can conflict with char $ac_func (); below.
49083    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49084    <limits.h> exists even on freestanding compilers.  */
49085
49086#ifdef __STDC__
49087# include <limits.h>
49088#else
49089# include <assert.h>
49090#endif
49091
49092#undef $ac_func
49093
49094/* Override any gcc2 internal prototype to avoid an error.  */
49095#ifdef __cplusplus
49096extern "C"
49097{
49098#endif
49099/* We use char because int might match the return type of a gcc2
49100   builtin and then its argument prototype would still apply.  */
49101char $ac_func ();
49102/* The GNU C library defines this for functions which it implements
49103    to always fail with ENOSYS.  Some functions are actually named
49104    something starting with __ and the normal name is an alias.  */
49105#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49106choke me
49107#else
49108char (*f) () = $ac_func;
49109#endif
49110#ifdef __cplusplus
49111}
49112#endif
49113
49114int
49115main ()
49116{
49117return f != $ac_func;
49118  ;
49119  return 0;
49120}
49121_ACEOF
49122rm -f conftest.$ac_objext conftest$ac_exeext
49123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49124  (eval $ac_link) 2>conftest.er1
49125  ac_status=$?
49126  grep -v '^ *+' conftest.er1 >conftest.err
49127  rm -f conftest.er1
49128  cat conftest.err >&5
49129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49130  (exit $ac_status); } &&
49131	 { ac_try='test -z "$ac_c_werror_flag"
49132			 || test ! -s conftest.err'
49133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49134  (eval $ac_try) 2>&5
49135  ac_status=$?
49136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49137  (exit $ac_status); }; } &&
49138	 { ac_try='test -s conftest$ac_exeext'
49139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49140  (eval $ac_try) 2>&5
49141  ac_status=$?
49142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49143  (exit $ac_status); }; }; then
49144  eval "$as_ac_var=yes"
49145else
49146  echo "$as_me: failed program was:" >&5
49147sed 's/^/| /' conftest.$ac_ext >&5
49148
49149eval "$as_ac_var=no"
49150fi
49151rm -f conftest.err conftest.$ac_objext \
49152      conftest$ac_exeext conftest.$ac_ext
49153fi
49154echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49155echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49156if test `eval echo '${'$as_ac_var'}'` = yes; then
49157  cat >>confdefs.h <<_ACEOF
49158#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49159_ACEOF
49160
49161fi
49162done
49163
49164fi
49165# logout
49166eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49167eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49168eval "LIB_logout=$ac_res"
49169
49170case "$ac_res" in
49171	yes)
49172	eval "ac_cv_func_logout=yes"
49173	eval "LIB_logout="
49174	cat >>confdefs.h <<_ACEOF
49175#define $ac_tr_func 1
49176_ACEOF
49177
49178	echo "$as_me:$LINENO: result: yes" >&5
49179echo "${ECHO_T}yes" >&6
49180	;;
49181	no)
49182	eval "ac_cv_func_logout=no"
49183	eval "LIB_logout="
49184	echo "$as_me:$LINENO: result: no" >&5
49185echo "${ECHO_T}no" >&6
49186	;;
49187	*)
49188	eval "ac_cv_func_logout=yes"
49189	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49190	cat >>confdefs.h <<_ACEOF
49191#define $ac_tr_func 1
49192_ACEOF
49193
49194	cat >>confdefs.h <<_ACEOF
49195#define $ac_tr_lib 1
49196_ACEOF
49197
49198	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49199echo "${ECHO_T}yes, in $ac_res" >&6
49200	;;
49201esac
49202
49203
49204
49205
49206
49207echo "$as_me:$LINENO: checking for openpty" >&5
49208echo $ECHO_N "checking for openpty... $ECHO_C" >&6
49209if test "${ac_cv_funclib_openpty+set}" = set; then
49210  echo $ECHO_N "(cached) $ECHO_C" >&6
49211else
49212
49213if eval "test \"\$ac_cv_func_openpty\" != yes" ; then
49214	ac_save_LIBS="$LIBS"
49215	for ac_lib in "" util; do
49216		case "$ac_lib" in
49217		"") ;;
49218		yes) ac_lib="" ;;
49219		no) continue ;;
49220		-l*) ;;
49221		*) ac_lib="-l$ac_lib" ;;
49222		esac
49223		LIBS=" $ac_lib  $ac_save_LIBS"
49224		cat >conftest.$ac_ext <<_ACEOF
49225/* confdefs.h.  */
49226_ACEOF
49227cat confdefs.h >>conftest.$ac_ext
49228cat >>conftest.$ac_ext <<_ACEOF
49229/* end confdefs.h.  */
49230
49231int
49232main ()
49233{
49234openpty()
49235  ;
49236  return 0;
49237}
49238_ACEOF
49239rm -f conftest.$ac_objext conftest$ac_exeext
49240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49241  (eval $ac_link) 2>conftest.er1
49242  ac_status=$?
49243  grep -v '^ *+' conftest.er1 >conftest.err
49244  rm -f conftest.er1
49245  cat conftest.err >&5
49246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247  (exit $ac_status); } &&
49248	 { ac_try='test -z "$ac_c_werror_flag"
49249			 || test ! -s conftest.err'
49250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49251  (eval $ac_try) 2>&5
49252  ac_status=$?
49253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254  (exit $ac_status); }; } &&
49255	 { ac_try='test -s conftest$ac_exeext'
49256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49257  (eval $ac_try) 2>&5
49258  ac_status=$?
49259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49260  (exit $ac_status); }; }; then
49261  eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break
49262else
49263  echo "$as_me: failed program was:" >&5
49264sed 's/^/| /' conftest.$ac_ext >&5
49265
49266fi
49267rm -f conftest.err conftest.$ac_objext \
49268      conftest$ac_exeext conftest.$ac_ext
49269	done
49270	eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}"
49271	LIBS="$ac_save_LIBS"
49272fi
49273
49274fi
49275
49276
49277eval "ac_res=\$ac_cv_funclib_openpty"
49278
49279if false; then
49280
49281for ac_func in openpty
49282do
49283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49284echo "$as_me:$LINENO: checking for $ac_func" >&5
49285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49286if eval "test \"\${$as_ac_var+set}\" = set"; then
49287  echo $ECHO_N "(cached) $ECHO_C" >&6
49288else
49289  cat >conftest.$ac_ext <<_ACEOF
49290/* confdefs.h.  */
49291_ACEOF
49292cat confdefs.h >>conftest.$ac_ext
49293cat >>conftest.$ac_ext <<_ACEOF
49294/* end confdefs.h.  */
49295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49296   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49297#define $ac_func innocuous_$ac_func
49298
49299/* System header to define __stub macros and hopefully few prototypes,
49300    which can conflict with char $ac_func (); below.
49301    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49302    <limits.h> exists even on freestanding compilers.  */
49303
49304#ifdef __STDC__
49305# include <limits.h>
49306#else
49307# include <assert.h>
49308#endif
49309
49310#undef $ac_func
49311
49312/* Override any gcc2 internal prototype to avoid an error.  */
49313#ifdef __cplusplus
49314extern "C"
49315{
49316#endif
49317/* We use char because int might match the return type of a gcc2
49318   builtin and then its argument prototype would still apply.  */
49319char $ac_func ();
49320/* The GNU C library defines this for functions which it implements
49321    to always fail with ENOSYS.  Some functions are actually named
49322    something starting with __ and the normal name is an alias.  */
49323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49324choke me
49325#else
49326char (*f) () = $ac_func;
49327#endif
49328#ifdef __cplusplus
49329}
49330#endif
49331
49332int
49333main ()
49334{
49335return f != $ac_func;
49336  ;
49337  return 0;
49338}
49339_ACEOF
49340rm -f conftest.$ac_objext conftest$ac_exeext
49341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49342  (eval $ac_link) 2>conftest.er1
49343  ac_status=$?
49344  grep -v '^ *+' conftest.er1 >conftest.err
49345  rm -f conftest.er1
49346  cat conftest.err >&5
49347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49348  (exit $ac_status); } &&
49349	 { ac_try='test -z "$ac_c_werror_flag"
49350			 || test ! -s conftest.err'
49351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49352  (eval $ac_try) 2>&5
49353  ac_status=$?
49354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49355  (exit $ac_status); }; } &&
49356	 { ac_try='test -s conftest$ac_exeext'
49357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49358  (eval $ac_try) 2>&5
49359  ac_status=$?
49360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49361  (exit $ac_status); }; }; then
49362  eval "$as_ac_var=yes"
49363else
49364  echo "$as_me: failed program was:" >&5
49365sed 's/^/| /' conftest.$ac_ext >&5
49366
49367eval "$as_ac_var=no"
49368fi
49369rm -f conftest.err conftest.$ac_objext \
49370      conftest$ac_exeext conftest.$ac_ext
49371fi
49372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49374if test `eval echo '${'$as_ac_var'}'` = yes; then
49375  cat >>confdefs.h <<_ACEOF
49376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49377_ACEOF
49378
49379fi
49380done
49381
49382fi
49383# openpty
49384eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49385eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49386eval "LIB_openpty=$ac_res"
49387
49388case "$ac_res" in
49389	yes)
49390	eval "ac_cv_func_openpty=yes"
49391	eval "LIB_openpty="
49392	cat >>confdefs.h <<_ACEOF
49393#define $ac_tr_func 1
49394_ACEOF
49395
49396	echo "$as_me:$LINENO: result: yes" >&5
49397echo "${ECHO_T}yes" >&6
49398	;;
49399	no)
49400	eval "ac_cv_func_openpty=no"
49401	eval "LIB_openpty="
49402	echo "$as_me:$LINENO: result: no" >&5
49403echo "${ECHO_T}no" >&6
49404	;;
49405	*)
49406	eval "ac_cv_func_openpty=yes"
49407	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49408	cat >>confdefs.h <<_ACEOF
49409#define $ac_tr_func 1
49410_ACEOF
49411
49412	cat >>confdefs.h <<_ACEOF
49413#define $ac_tr_lib 1
49414_ACEOF
49415
49416	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49417echo "${ECHO_T}yes, in $ac_res" >&6
49418	;;
49419esac
49420
49421
49422
49423
49424
49425echo "$as_me:$LINENO: checking for tgetent" >&5
49426echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
49427if test "${ac_cv_funclib_tgetent+set}" = set; then
49428  echo $ECHO_N "(cached) $ECHO_C" >&6
49429else
49430
49431if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then
49432	ac_save_LIBS="$LIBS"
49433	for ac_lib in "" termcap ncurses curses; do
49434		case "$ac_lib" in
49435		"") ;;
49436		yes) ac_lib="" ;;
49437		no) continue ;;
49438		-l*) ;;
49439		*) ac_lib="-l$ac_lib" ;;
49440		esac
49441		LIBS=" $ac_lib  $ac_save_LIBS"
49442		cat >conftest.$ac_ext <<_ACEOF
49443/* confdefs.h.  */
49444_ACEOF
49445cat confdefs.h >>conftest.$ac_ext
49446cat >>conftest.$ac_ext <<_ACEOF
49447/* end confdefs.h.  */
49448
49449int
49450main ()
49451{
49452tgetent()
49453  ;
49454  return 0;
49455}
49456_ACEOF
49457rm -f conftest.$ac_objext conftest$ac_exeext
49458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49459  (eval $ac_link) 2>conftest.er1
49460  ac_status=$?
49461  grep -v '^ *+' conftest.er1 >conftest.err
49462  rm -f conftest.er1
49463  cat conftest.err >&5
49464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49465  (exit $ac_status); } &&
49466	 { ac_try='test -z "$ac_c_werror_flag"
49467			 || test ! -s conftest.err'
49468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49469  (eval $ac_try) 2>&5
49470  ac_status=$?
49471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49472  (exit $ac_status); }; } &&
49473	 { ac_try='test -s conftest$ac_exeext'
49474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49475  (eval $ac_try) 2>&5
49476  ac_status=$?
49477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49478  (exit $ac_status); }; }; then
49479  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
49480else
49481  echo "$as_me: failed program was:" >&5
49482sed 's/^/| /' conftest.$ac_ext >&5
49483
49484fi
49485rm -f conftest.err conftest.$ac_objext \
49486      conftest$ac_exeext conftest.$ac_ext
49487	done
49488	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
49489	LIBS="$ac_save_LIBS"
49490fi
49491
49492fi
49493
49494
49495eval "ac_res=\$ac_cv_funclib_tgetent"
49496
49497if false; then
49498
49499for ac_func in tgetent
49500do
49501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49502echo "$as_me:$LINENO: checking for $ac_func" >&5
49503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49504if eval "test \"\${$as_ac_var+set}\" = set"; then
49505  echo $ECHO_N "(cached) $ECHO_C" >&6
49506else
49507  cat >conftest.$ac_ext <<_ACEOF
49508/* confdefs.h.  */
49509_ACEOF
49510cat confdefs.h >>conftest.$ac_ext
49511cat >>conftest.$ac_ext <<_ACEOF
49512/* end confdefs.h.  */
49513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49514   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49515#define $ac_func innocuous_$ac_func
49516
49517/* System header to define __stub macros and hopefully few prototypes,
49518    which can conflict with char $ac_func (); below.
49519    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49520    <limits.h> exists even on freestanding compilers.  */
49521
49522#ifdef __STDC__
49523# include <limits.h>
49524#else
49525# include <assert.h>
49526#endif
49527
49528#undef $ac_func
49529
49530/* Override any gcc2 internal prototype to avoid an error.  */
49531#ifdef __cplusplus
49532extern "C"
49533{
49534#endif
49535/* We use char because int might match the return type of a gcc2
49536   builtin and then its argument prototype would still apply.  */
49537char $ac_func ();
49538/* The GNU C library defines this for functions which it implements
49539    to always fail with ENOSYS.  Some functions are actually named
49540    something starting with __ and the normal name is an alias.  */
49541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49542choke me
49543#else
49544char (*f) () = $ac_func;
49545#endif
49546#ifdef __cplusplus
49547}
49548#endif
49549
49550int
49551main ()
49552{
49553return f != $ac_func;
49554  ;
49555  return 0;
49556}
49557_ACEOF
49558rm -f conftest.$ac_objext conftest$ac_exeext
49559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49560  (eval $ac_link) 2>conftest.er1
49561  ac_status=$?
49562  grep -v '^ *+' conftest.er1 >conftest.err
49563  rm -f conftest.er1
49564  cat conftest.err >&5
49565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49566  (exit $ac_status); } &&
49567	 { ac_try='test -z "$ac_c_werror_flag"
49568			 || test ! -s conftest.err'
49569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49570  (eval $ac_try) 2>&5
49571  ac_status=$?
49572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49573  (exit $ac_status); }; } &&
49574	 { ac_try='test -s conftest$ac_exeext'
49575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49576  (eval $ac_try) 2>&5
49577  ac_status=$?
49578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49579  (exit $ac_status); }; }; then
49580  eval "$as_ac_var=yes"
49581else
49582  echo "$as_me: failed program was:" >&5
49583sed 's/^/| /' conftest.$ac_ext >&5
49584
49585eval "$as_ac_var=no"
49586fi
49587rm -f conftest.err conftest.$ac_objext \
49588      conftest$ac_exeext conftest.$ac_ext
49589fi
49590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49592if test `eval echo '${'$as_ac_var'}'` = yes; then
49593  cat >>confdefs.h <<_ACEOF
49594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49595_ACEOF
49596
49597fi
49598done
49599
49600fi
49601# tgetent
49602eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49603eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
49604eval "LIB_tgetent=$ac_res"
49605
49606case "$ac_res" in
49607	yes)
49608	eval "ac_cv_func_tgetent=yes"
49609	eval "LIB_tgetent="
49610	cat >>confdefs.h <<_ACEOF
49611#define $ac_tr_func 1
49612_ACEOF
49613
49614	echo "$as_me:$LINENO: result: yes" >&5
49615echo "${ECHO_T}yes" >&6
49616	;;
49617	no)
49618	eval "ac_cv_func_tgetent=no"
49619	eval "LIB_tgetent="
49620	echo "$as_me:$LINENO: result: no" >&5
49621echo "${ECHO_T}no" >&6
49622	;;
49623	*)
49624	eval "ac_cv_func_tgetent=yes"
49625	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
49626	cat >>confdefs.h <<_ACEOF
49627#define $ac_tr_func 1
49628_ACEOF
49629
49630	cat >>confdefs.h <<_ACEOF
49631#define $ac_tr_lib 1
49632_ACEOF
49633
49634	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
49635echo "${ECHO_T}yes, in $ac_res" >&6
49636	;;
49637esac
49638
49639
49640
49641
49642
49643
49644
49645
49646
49647
49648
49649
49650
49651
49652
49653
49654
49655
49656
49657
49658
49659
49660
49661
49662
49663
49664
49665
49666
49667
49668
49669
49670for ac_func in 				\
49671	_getpty					\
49672	_scrsize				\
49673	fcntl					\
49674	grantpt					\
49675	mktime					\
49676	ptsname					\
49677	rand					\
49678	revoke					\
49679	select					\
49680	setitimer				\
49681	setpcred				\
49682	setpgid					\
49683	setproctitle				\
49684	setregid				\
49685	setresgid				\
49686	setresuid				\
49687	setreuid				\
49688	setsid					\
49689	setutent				\
49690	sigaction				\
49691	strstr					\
49692	timegm					\
49693	ttyname					\
49694	ttyslot					\
49695	umask					\
49696	unlockpt				\
49697	vhangup					\
49698	yp_get_default_domain			\
49699
49700do
49701as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49702echo "$as_me:$LINENO: checking for $ac_func" >&5
49703echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49704if eval "test \"\${$as_ac_var+set}\" = set"; then
49705  echo $ECHO_N "(cached) $ECHO_C" >&6
49706else
49707  cat >conftest.$ac_ext <<_ACEOF
49708/* confdefs.h.  */
49709_ACEOF
49710cat confdefs.h >>conftest.$ac_ext
49711cat >>conftest.$ac_ext <<_ACEOF
49712/* end confdefs.h.  */
49713/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49714   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49715#define $ac_func innocuous_$ac_func
49716
49717/* System header to define __stub macros and hopefully few prototypes,
49718    which can conflict with char $ac_func (); below.
49719    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49720    <limits.h> exists even on freestanding compilers.  */
49721
49722#ifdef __STDC__
49723# include <limits.h>
49724#else
49725# include <assert.h>
49726#endif
49727
49728#undef $ac_func
49729
49730/* Override any gcc2 internal prototype to avoid an error.  */
49731#ifdef __cplusplus
49732extern "C"
49733{
49734#endif
49735/* We use char because int might match the return type of a gcc2
49736   builtin and then its argument prototype would still apply.  */
49737char $ac_func ();
49738/* The GNU C library defines this for functions which it implements
49739    to always fail with ENOSYS.  Some functions are actually named
49740    something starting with __ and the normal name is an alias.  */
49741#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49742choke me
49743#else
49744char (*f) () = $ac_func;
49745#endif
49746#ifdef __cplusplus
49747}
49748#endif
49749
49750int
49751main ()
49752{
49753return f != $ac_func;
49754  ;
49755  return 0;
49756}
49757_ACEOF
49758rm -f conftest.$ac_objext conftest$ac_exeext
49759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49760  (eval $ac_link) 2>conftest.er1
49761  ac_status=$?
49762  grep -v '^ *+' conftest.er1 >conftest.err
49763  rm -f conftest.er1
49764  cat conftest.err >&5
49765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766  (exit $ac_status); } &&
49767	 { ac_try='test -z "$ac_c_werror_flag"
49768			 || test ! -s conftest.err'
49769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49770  (eval $ac_try) 2>&5
49771  ac_status=$?
49772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49773  (exit $ac_status); }; } &&
49774	 { ac_try='test -s conftest$ac_exeext'
49775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49776  (eval $ac_try) 2>&5
49777  ac_status=$?
49778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49779  (exit $ac_status); }; }; then
49780  eval "$as_ac_var=yes"
49781else
49782  echo "$as_me: failed program was:" >&5
49783sed 's/^/| /' conftest.$ac_ext >&5
49784
49785eval "$as_ac_var=no"
49786fi
49787rm -f conftest.err conftest.$ac_objext \
49788      conftest$ac_exeext conftest.$ac_ext
49789fi
49790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49791echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49792if test `eval echo '${'$as_ac_var'}'` = yes; then
49793  cat >>confdefs.h <<_ACEOF
49794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49795_ACEOF
49796
49797fi
49798done
49799
49800
49801
49802
49803for ac_header in stdlib.h unistd.h
49804do
49805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49806if eval "test \"\${$as_ac_Header+set}\" = set"; then
49807  echo "$as_me:$LINENO: checking for $ac_header" >&5
49808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49809if eval "test \"\${$as_ac_Header+set}\" = set"; then
49810  echo $ECHO_N "(cached) $ECHO_C" >&6
49811fi
49812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49814else
49815  # Is the header compilable?
49816echo "$as_me:$LINENO: checking $ac_header usability" >&5
49817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49818cat >conftest.$ac_ext <<_ACEOF
49819/* confdefs.h.  */
49820_ACEOF
49821cat confdefs.h >>conftest.$ac_ext
49822cat >>conftest.$ac_ext <<_ACEOF
49823/* end confdefs.h.  */
49824$ac_includes_default
49825#include <$ac_header>
49826_ACEOF
49827rm -f conftest.$ac_objext
49828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49829  (eval $ac_compile) 2>conftest.er1
49830  ac_status=$?
49831  grep -v '^ *+' conftest.er1 >conftest.err
49832  rm -f conftest.er1
49833  cat conftest.err >&5
49834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49835  (exit $ac_status); } &&
49836	 { ac_try='test -z "$ac_c_werror_flag"
49837			 || test ! -s conftest.err'
49838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49839  (eval $ac_try) 2>&5
49840  ac_status=$?
49841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49842  (exit $ac_status); }; } &&
49843	 { ac_try='test -s conftest.$ac_objext'
49844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49845  (eval $ac_try) 2>&5
49846  ac_status=$?
49847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49848  (exit $ac_status); }; }; then
49849  ac_header_compiler=yes
49850else
49851  echo "$as_me: failed program was:" >&5
49852sed 's/^/| /' conftest.$ac_ext >&5
49853
49854ac_header_compiler=no
49855fi
49856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49858echo "${ECHO_T}$ac_header_compiler" >&6
49859
49860# Is the header present?
49861echo "$as_me:$LINENO: checking $ac_header presence" >&5
49862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49863cat >conftest.$ac_ext <<_ACEOF
49864/* confdefs.h.  */
49865_ACEOF
49866cat confdefs.h >>conftest.$ac_ext
49867cat >>conftest.$ac_ext <<_ACEOF
49868/* end confdefs.h.  */
49869#include <$ac_header>
49870_ACEOF
49871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49872  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49873  ac_status=$?
49874  grep -v '^ *+' conftest.er1 >conftest.err
49875  rm -f conftest.er1
49876  cat conftest.err >&5
49877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
49878  (exit $ac_status); } >/dev/null; then
49879  if test -s conftest.err; then
49880    ac_cpp_err=$ac_c_preproc_warn_flag
49881    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
49882  else
49883    ac_cpp_err=
49884  fi
49885else
49886  ac_cpp_err=yes
49887fi
49888if test -z "$ac_cpp_err"; then
49889  ac_header_preproc=yes
49890else
49891  echo "$as_me: failed program was:" >&5
49892sed 's/^/| /' conftest.$ac_ext >&5
49893
49894  ac_header_preproc=no
49895fi
49896rm -f conftest.err conftest.$ac_ext
49897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49898echo "${ECHO_T}$ac_header_preproc" >&6
49899
49900# So?  What about this header?
49901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49902  yes:no: )
49903    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49905    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49907    ac_header_preproc=yes
49908    ;;
49909  no:yes:* )
49910    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49912    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49913echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49914    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49916    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49917echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49918    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49920    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49922    (
49923      cat <<\_ASBOX
49924## -------------------------------------- ##
49925## Report this to heimdal-bugs@pdc.kth.se ##
49926## -------------------------------------- ##
49927_ASBOX
49928    ) |
49929      sed "s/^/$as_me: WARNING:     /" >&2
49930    ;;
49931esac
49932echo "$as_me:$LINENO: checking for $ac_header" >&5
49933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49934if eval "test \"\${$as_ac_Header+set}\" = set"; then
49935  echo $ECHO_N "(cached) $ECHO_C" >&6
49936else
49937  eval "$as_ac_Header=\$ac_header_preproc"
49938fi
49939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49941
49942fi
49943if test `eval echo '${'$as_ac_Header'}'` = yes; then
49944  cat >>confdefs.h <<_ACEOF
49945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49946_ACEOF
49947
49948fi
49949
49950done
49951
49952
49953for ac_func in getpagesize
49954do
49955as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49956echo "$as_me:$LINENO: checking for $ac_func" >&5
49957echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49958if eval "test \"\${$as_ac_var+set}\" = set"; then
49959  echo $ECHO_N "(cached) $ECHO_C" >&6
49960else
49961  cat >conftest.$ac_ext <<_ACEOF
49962/* confdefs.h.  */
49963_ACEOF
49964cat confdefs.h >>conftest.$ac_ext
49965cat >>conftest.$ac_ext <<_ACEOF
49966/* end confdefs.h.  */
49967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49969#define $ac_func innocuous_$ac_func
49970
49971/* System header to define __stub macros and hopefully few prototypes,
49972    which can conflict with char $ac_func (); below.
49973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49974    <limits.h> exists even on freestanding compilers.  */
49975
49976#ifdef __STDC__
49977# include <limits.h>
49978#else
49979# include <assert.h>
49980#endif
49981
49982#undef $ac_func
49983
49984/* Override any gcc2 internal prototype to avoid an error.  */
49985#ifdef __cplusplus
49986extern "C"
49987{
49988#endif
49989/* We use char because int might match the return type of a gcc2
49990   builtin and then its argument prototype would still apply.  */
49991char $ac_func ();
49992/* The GNU C library defines this for functions which it implements
49993    to always fail with ENOSYS.  Some functions are actually named
49994    something starting with __ and the normal name is an alias.  */
49995#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49996choke me
49997#else
49998char (*f) () = $ac_func;
49999#endif
50000#ifdef __cplusplus
50001}
50002#endif
50003
50004int
50005main ()
50006{
50007return f != $ac_func;
50008  ;
50009  return 0;
50010}
50011_ACEOF
50012rm -f conftest.$ac_objext conftest$ac_exeext
50013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50014  (eval $ac_link) 2>conftest.er1
50015  ac_status=$?
50016  grep -v '^ *+' conftest.er1 >conftest.err
50017  rm -f conftest.er1
50018  cat conftest.err >&5
50019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50020  (exit $ac_status); } &&
50021	 { ac_try='test -z "$ac_c_werror_flag"
50022			 || test ! -s conftest.err'
50023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50024  (eval $ac_try) 2>&5
50025  ac_status=$?
50026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50027  (exit $ac_status); }; } &&
50028	 { ac_try='test -s conftest$ac_exeext'
50029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50030  (eval $ac_try) 2>&5
50031  ac_status=$?
50032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50033  (exit $ac_status); }; }; then
50034  eval "$as_ac_var=yes"
50035else
50036  echo "$as_me: failed program was:" >&5
50037sed 's/^/| /' conftest.$ac_ext >&5
50038
50039eval "$as_ac_var=no"
50040fi
50041rm -f conftest.err conftest.$ac_objext \
50042      conftest$ac_exeext conftest.$ac_ext
50043fi
50044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50046if test `eval echo '${'$as_ac_var'}'` = yes; then
50047  cat >>confdefs.h <<_ACEOF
50048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50049_ACEOF
50050
50051fi
50052done
50053
50054echo "$as_me:$LINENO: checking for working mmap" >&5
50055echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
50056if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
50057  echo $ECHO_N "(cached) $ECHO_C" >&6
50058else
50059  if test "$cross_compiling" = yes; then
50060  ac_cv_func_mmap_fixed_mapped=no
50061else
50062  cat >conftest.$ac_ext <<_ACEOF
50063/* confdefs.h.  */
50064_ACEOF
50065cat confdefs.h >>conftest.$ac_ext
50066cat >>conftest.$ac_ext <<_ACEOF
50067/* end confdefs.h.  */
50068$ac_includes_default
50069/* malloc might have been renamed as rpl_malloc. */
50070#undef malloc
50071
50072/* Thanks to Mike Haertel and Jim Avera for this test.
50073   Here is a matrix of mmap possibilities:
50074	mmap private not fixed
50075	mmap private fixed at somewhere currently unmapped
50076	mmap private fixed at somewhere already mapped
50077	mmap shared not fixed
50078	mmap shared fixed at somewhere currently unmapped
50079	mmap shared fixed at somewhere already mapped
50080   For private mappings, we should verify that changes cannot be read()
50081   back from the file, nor mmap's back from the file at a different
50082   address.  (There have been systems where private was not correctly
50083   implemented like the infamous i386 svr4.0, and systems where the
50084   VM page cache was not coherent with the file system buffer cache
50085   like early versions of FreeBSD and possibly contemporary NetBSD.)
50086   For shared mappings, we should conversely verify that changes get
50087   propagated back to all the places they're supposed to be.
50088
50089   Grep wants private fixed already mapped.
50090   The main things grep needs to know about mmap are:
50091   * does it exist and is it safe to write into the mmap'd area
50092   * how to use it (BSD variants)  */
50093
50094#include <fcntl.h>
50095#include <sys/mman.h>
50096
50097#if !STDC_HEADERS && !HAVE_STDLIB_H
50098char *malloc ();
50099#endif
50100
50101/* This mess was copied from the GNU getpagesize.h.  */
50102#if !HAVE_GETPAGESIZE
50103/* Assume that all systems that can run configure have sys/param.h.  */
50104# if !HAVE_SYS_PARAM_H
50105#  define HAVE_SYS_PARAM_H 1
50106# endif
50107
50108# ifdef _SC_PAGESIZE
50109#  define getpagesize() sysconf(_SC_PAGESIZE)
50110# else /* no _SC_PAGESIZE */
50111#  if HAVE_SYS_PARAM_H
50112#   include <sys/param.h>
50113#   ifdef EXEC_PAGESIZE
50114#    define getpagesize() EXEC_PAGESIZE
50115#   else /* no EXEC_PAGESIZE */
50116#    ifdef NBPG
50117#     define getpagesize() NBPG * CLSIZE
50118#     ifndef CLSIZE
50119#      define CLSIZE 1
50120#     endif /* no CLSIZE */
50121#    else /* no NBPG */
50122#     ifdef NBPC
50123#      define getpagesize() NBPC
50124#     else /* no NBPC */
50125#      ifdef PAGESIZE
50126#       define getpagesize() PAGESIZE
50127#      endif /* PAGESIZE */
50128#     endif /* no NBPC */
50129#    endif /* no NBPG */
50130#   endif /* no EXEC_PAGESIZE */
50131#  else /* no HAVE_SYS_PARAM_H */
50132#   define getpagesize() 8192	/* punt totally */
50133#  endif /* no HAVE_SYS_PARAM_H */
50134# endif /* no _SC_PAGESIZE */
50135
50136#endif /* no HAVE_GETPAGESIZE */
50137
50138int
50139main ()
50140{
50141  char *data, *data2, *data3;
50142  int i, pagesize;
50143  int fd;
50144
50145  pagesize = getpagesize ();
50146
50147  /* First, make a file with some known garbage in it. */
50148  data = (char *) malloc (pagesize);
50149  if (!data)
50150    exit (1);
50151  for (i = 0; i < pagesize; ++i)
50152    *(data + i) = rand ();
50153  umask (0);
50154  fd = creat ("conftest.mmap", 0600);
50155  if (fd < 0)
50156    exit (1);
50157  if (write (fd, data, pagesize) != pagesize)
50158    exit (1);
50159  close (fd);
50160
50161  /* Next, try to mmap the file at a fixed address which already has
50162     something else allocated at it.  If we can, also make sure that
50163     we see the same garbage.  */
50164  fd = open ("conftest.mmap", O_RDWR);
50165  if (fd < 0)
50166    exit (1);
50167  data2 = (char *) malloc (2 * pagesize);
50168  if (!data2)
50169    exit (1);
50170  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
50171  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
50172		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
50173    exit (1);
50174  for (i = 0; i < pagesize; ++i)
50175    if (*(data + i) != *(data2 + i))
50176      exit (1);
50177
50178  /* Finally, make sure that changes to the mapped area do not
50179     percolate back to the file as seen by read().  (This is a bug on
50180     some variants of i386 svr4.0.)  */
50181  for (i = 0; i < pagesize; ++i)
50182    *(data2 + i) = *(data2 + i) + 1;
50183  data3 = (char *) malloc (pagesize);
50184  if (!data3)
50185    exit (1);
50186  if (read (fd, data3, pagesize) != pagesize)
50187    exit (1);
50188  for (i = 0; i < pagesize; ++i)
50189    if (*(data + i) != *(data3 + i))
50190      exit (1);
50191  close (fd);
50192  exit (0);
50193}
50194_ACEOF
50195rm -f conftest$ac_exeext
50196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50197  (eval $ac_link) 2>&5
50198  ac_status=$?
50199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50200  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50202  (eval $ac_try) 2>&5
50203  ac_status=$?
50204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50205  (exit $ac_status); }; }; then
50206  ac_cv_func_mmap_fixed_mapped=yes
50207else
50208  echo "$as_me: program exited with status $ac_status" >&5
50209echo "$as_me: failed program was:" >&5
50210sed 's/^/| /' conftest.$ac_ext >&5
50211
50212( exit $ac_status )
50213ac_cv_func_mmap_fixed_mapped=no
50214fi
50215rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50216fi
50217fi
50218echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
50219echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
50220if test $ac_cv_func_mmap_fixed_mapped = yes; then
50221
50222cat >>confdefs.h <<\_ACEOF
50223#define HAVE_MMAP 1
50224_ACEOF
50225
50226fi
50227rm -f conftest.mmap
50228
50229
50230
50231
50232
50233
50234for ac_header in capability.h sys/capability.h
50235do
50236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50237if eval "test \"\${$as_ac_Header+set}\" = set"; then
50238  echo "$as_me:$LINENO: checking for $ac_header" >&5
50239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50240if eval "test \"\${$as_ac_Header+set}\" = set"; then
50241  echo $ECHO_N "(cached) $ECHO_C" >&6
50242fi
50243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50245else
50246  # Is the header compilable?
50247echo "$as_me:$LINENO: checking $ac_header usability" >&5
50248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50249cat >conftest.$ac_ext <<_ACEOF
50250/* confdefs.h.  */
50251_ACEOF
50252cat confdefs.h >>conftest.$ac_ext
50253cat >>conftest.$ac_ext <<_ACEOF
50254/* end confdefs.h.  */
50255$ac_includes_default
50256#include <$ac_header>
50257_ACEOF
50258rm -f conftest.$ac_objext
50259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50260  (eval $ac_compile) 2>conftest.er1
50261  ac_status=$?
50262  grep -v '^ *+' conftest.er1 >conftest.err
50263  rm -f conftest.er1
50264  cat conftest.err >&5
50265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50266  (exit $ac_status); } &&
50267	 { ac_try='test -z "$ac_c_werror_flag"
50268			 || test ! -s conftest.err'
50269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50270  (eval $ac_try) 2>&5
50271  ac_status=$?
50272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50273  (exit $ac_status); }; } &&
50274	 { ac_try='test -s conftest.$ac_objext'
50275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50276  (eval $ac_try) 2>&5
50277  ac_status=$?
50278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50279  (exit $ac_status); }; }; then
50280  ac_header_compiler=yes
50281else
50282  echo "$as_me: failed program was:" >&5
50283sed 's/^/| /' conftest.$ac_ext >&5
50284
50285ac_header_compiler=no
50286fi
50287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50289echo "${ECHO_T}$ac_header_compiler" >&6
50290
50291# Is the header present?
50292echo "$as_me:$LINENO: checking $ac_header presence" >&5
50293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50294cat >conftest.$ac_ext <<_ACEOF
50295/* confdefs.h.  */
50296_ACEOF
50297cat confdefs.h >>conftest.$ac_ext
50298cat >>conftest.$ac_ext <<_ACEOF
50299/* end confdefs.h.  */
50300#include <$ac_header>
50301_ACEOF
50302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50303  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50304  ac_status=$?
50305  grep -v '^ *+' conftest.er1 >conftest.err
50306  rm -f conftest.er1
50307  cat conftest.err >&5
50308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50309  (exit $ac_status); } >/dev/null; then
50310  if test -s conftest.err; then
50311    ac_cpp_err=$ac_c_preproc_warn_flag
50312    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50313  else
50314    ac_cpp_err=
50315  fi
50316else
50317  ac_cpp_err=yes
50318fi
50319if test -z "$ac_cpp_err"; then
50320  ac_header_preproc=yes
50321else
50322  echo "$as_me: failed program was:" >&5
50323sed 's/^/| /' conftest.$ac_ext >&5
50324
50325  ac_header_preproc=no
50326fi
50327rm -f conftest.err conftest.$ac_ext
50328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50329echo "${ECHO_T}$ac_header_preproc" >&6
50330
50331# So?  What about this header?
50332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50333  yes:no: )
50334    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50336    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50338    ac_header_preproc=yes
50339    ;;
50340  no:yes:* )
50341    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50343    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
50344echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
50345    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50347    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
50348echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
50349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50351    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50353    (
50354      cat <<\_ASBOX
50355## -------------------------------------- ##
50356## Report this to heimdal-bugs@pdc.kth.se ##
50357## -------------------------------------- ##
50358_ASBOX
50359    ) |
50360      sed "s/^/$as_me: WARNING:     /" >&2
50361    ;;
50362esac
50363echo "$as_me:$LINENO: checking for $ac_header" >&5
50364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50365if eval "test \"\${$as_ac_Header+set}\" = set"; then
50366  echo $ECHO_N "(cached) $ECHO_C" >&6
50367else
50368  eval "$as_ac_Header=\$ac_header_preproc"
50369fi
50370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50372
50373fi
50374if test `eval echo '${'$as_ac_Header'}'` = yes; then
50375  cat >>confdefs.h <<_ACEOF
50376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50377_ACEOF
50378
50379fi
50380
50381done
50382
50383
50384
50385
50386for ac_func in sgi_getcapabilitybyname cap_set_proc
50387do
50388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50389echo "$as_me:$LINENO: checking for $ac_func" >&5
50390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50391if eval "test \"\${$as_ac_var+set}\" = set"; then
50392  echo $ECHO_N "(cached) $ECHO_C" >&6
50393else
50394  cat >conftest.$ac_ext <<_ACEOF
50395/* confdefs.h.  */
50396_ACEOF
50397cat confdefs.h >>conftest.$ac_ext
50398cat >>conftest.$ac_ext <<_ACEOF
50399/* end confdefs.h.  */
50400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50401   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50402#define $ac_func innocuous_$ac_func
50403
50404/* System header to define __stub macros and hopefully few prototypes,
50405    which can conflict with char $ac_func (); below.
50406    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50407    <limits.h> exists even on freestanding compilers.  */
50408
50409#ifdef __STDC__
50410# include <limits.h>
50411#else
50412# include <assert.h>
50413#endif
50414
50415#undef $ac_func
50416
50417/* Override any gcc2 internal prototype to avoid an error.  */
50418#ifdef __cplusplus
50419extern "C"
50420{
50421#endif
50422/* We use char because int might match the return type of a gcc2
50423   builtin and then its argument prototype would still apply.  */
50424char $ac_func ();
50425/* The GNU C library defines this for functions which it implements
50426    to always fail with ENOSYS.  Some functions are actually named
50427    something starting with __ and the normal name is an alias.  */
50428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50429choke me
50430#else
50431char (*f) () = $ac_func;
50432#endif
50433#ifdef __cplusplus
50434}
50435#endif
50436
50437int
50438main ()
50439{
50440return f != $ac_func;
50441  ;
50442  return 0;
50443}
50444_ACEOF
50445rm -f conftest.$ac_objext conftest$ac_exeext
50446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50447  (eval $ac_link) 2>conftest.er1
50448  ac_status=$?
50449  grep -v '^ *+' conftest.er1 >conftest.err
50450  rm -f conftest.er1
50451  cat conftest.err >&5
50452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453  (exit $ac_status); } &&
50454	 { ac_try='test -z "$ac_c_werror_flag"
50455			 || test ! -s conftest.err'
50456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50457  (eval $ac_try) 2>&5
50458  ac_status=$?
50459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50460  (exit $ac_status); }; } &&
50461	 { ac_try='test -s conftest$ac_exeext'
50462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50463  (eval $ac_try) 2>&5
50464  ac_status=$?
50465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50466  (exit $ac_status); }; }; then
50467  eval "$as_ac_var=yes"
50468else
50469  echo "$as_me: failed program was:" >&5
50470sed 's/^/| /' conftest.$ac_ext >&5
50471
50472eval "$as_ac_var=no"
50473fi
50474rm -f conftest.err conftest.$ac_objext \
50475      conftest$ac_exeext conftest.$ac_ext
50476fi
50477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50479if test `eval echo '${'$as_ac_var'}'` = yes; then
50480  cat >>confdefs.h <<_ACEOF
50481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50482_ACEOF
50483
50484fi
50485done
50486
50487
50488
50489
50490
50491
50492
50493echo "$as_me:$LINENO: checking for getpwnam_r" >&5
50494echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6
50495if test "${ac_cv_funclib_getpwnam_r+set}" = set; then
50496  echo $ECHO_N "(cached) $ECHO_C" >&6
50497else
50498
50499if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
50500	ac_save_LIBS="$LIBS"
50501	for ac_lib in "" c_r; do
50502		case "$ac_lib" in
50503		"") ;;
50504		yes) ac_lib="" ;;
50505		no) continue ;;
50506		-l*) ;;
50507		*) ac_lib="-l$ac_lib" ;;
50508		esac
50509		LIBS=" $ac_lib  $ac_save_LIBS"
50510		cat >conftest.$ac_ext <<_ACEOF
50511/* confdefs.h.  */
50512_ACEOF
50513cat confdefs.h >>conftest.$ac_ext
50514cat >>conftest.$ac_ext <<_ACEOF
50515/* end confdefs.h.  */
50516
50517int
50518main ()
50519{
50520getpwnam_r()
50521  ;
50522  return 0;
50523}
50524_ACEOF
50525rm -f conftest.$ac_objext conftest$ac_exeext
50526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50527  (eval $ac_link) 2>conftest.er1
50528  ac_status=$?
50529  grep -v '^ *+' conftest.er1 >conftest.err
50530  rm -f conftest.er1
50531  cat conftest.err >&5
50532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50533  (exit $ac_status); } &&
50534	 { ac_try='test -z "$ac_c_werror_flag"
50535			 || test ! -s conftest.err'
50536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50537  (eval $ac_try) 2>&5
50538  ac_status=$?
50539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50540  (exit $ac_status); }; } &&
50541	 { ac_try='test -s conftest$ac_exeext'
50542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50543  (eval $ac_try) 2>&5
50544  ac_status=$?
50545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50546  (exit $ac_status); }; }; then
50547  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
50548else
50549  echo "$as_me: failed program was:" >&5
50550sed 's/^/| /' conftest.$ac_ext >&5
50551
50552fi
50553rm -f conftest.err conftest.$ac_objext \
50554      conftest$ac_exeext conftest.$ac_ext
50555	done
50556	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
50557	LIBS="$ac_save_LIBS"
50558fi
50559
50560fi
50561
50562
50563eval "ac_res=\$ac_cv_funclib_getpwnam_r"
50564
50565if false; then
50566
50567for ac_func in getpwnam_r
50568do
50569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50570echo "$as_me:$LINENO: checking for $ac_func" >&5
50571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50572if eval "test \"\${$as_ac_var+set}\" = set"; then
50573  echo $ECHO_N "(cached) $ECHO_C" >&6
50574else
50575  cat >conftest.$ac_ext <<_ACEOF
50576/* confdefs.h.  */
50577_ACEOF
50578cat confdefs.h >>conftest.$ac_ext
50579cat >>conftest.$ac_ext <<_ACEOF
50580/* end confdefs.h.  */
50581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50582   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50583#define $ac_func innocuous_$ac_func
50584
50585/* System header to define __stub macros and hopefully few prototypes,
50586    which can conflict with char $ac_func (); below.
50587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50588    <limits.h> exists even on freestanding compilers.  */
50589
50590#ifdef __STDC__
50591# include <limits.h>
50592#else
50593# include <assert.h>
50594#endif
50595
50596#undef $ac_func
50597
50598/* Override any gcc2 internal prototype to avoid an error.  */
50599#ifdef __cplusplus
50600extern "C"
50601{
50602#endif
50603/* We use char because int might match the return type of a gcc2
50604   builtin and then its argument prototype would still apply.  */
50605char $ac_func ();
50606/* The GNU C library defines this for functions which it implements
50607    to always fail with ENOSYS.  Some functions are actually named
50608    something starting with __ and the normal name is an alias.  */
50609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50610choke me
50611#else
50612char (*f) () = $ac_func;
50613#endif
50614#ifdef __cplusplus
50615}
50616#endif
50617
50618int
50619main ()
50620{
50621return f != $ac_func;
50622  ;
50623  return 0;
50624}
50625_ACEOF
50626rm -f conftest.$ac_objext conftest$ac_exeext
50627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50628  (eval $ac_link) 2>conftest.er1
50629  ac_status=$?
50630  grep -v '^ *+' conftest.er1 >conftest.err
50631  rm -f conftest.er1
50632  cat conftest.err >&5
50633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50634  (exit $ac_status); } &&
50635	 { ac_try='test -z "$ac_c_werror_flag"
50636			 || test ! -s conftest.err'
50637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50638  (eval $ac_try) 2>&5
50639  ac_status=$?
50640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50641  (exit $ac_status); }; } &&
50642	 { ac_try='test -s conftest$ac_exeext'
50643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50644  (eval $ac_try) 2>&5
50645  ac_status=$?
50646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50647  (exit $ac_status); }; }; then
50648  eval "$as_ac_var=yes"
50649else
50650  echo "$as_me: failed program was:" >&5
50651sed 's/^/| /' conftest.$ac_ext >&5
50652
50653eval "$as_ac_var=no"
50654fi
50655rm -f conftest.err conftest.$ac_objext \
50656      conftest$ac_exeext conftest.$ac_ext
50657fi
50658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50660if test `eval echo '${'$as_ac_var'}'` = yes; then
50661  cat >>confdefs.h <<_ACEOF
50662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50663_ACEOF
50664
50665fi
50666done
50667
50668fi
50669# getpwnam_r
50670eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50671eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
50672eval "LIB_getpwnam_r=$ac_res"
50673
50674case "$ac_res" in
50675	yes)
50676	eval "ac_cv_func_getpwnam_r=yes"
50677	eval "LIB_getpwnam_r="
50678	cat >>confdefs.h <<_ACEOF
50679#define $ac_tr_func 1
50680_ACEOF
50681
50682	echo "$as_me:$LINENO: result: yes" >&5
50683echo "${ECHO_T}yes" >&6
50684	;;
50685	no)
50686	eval "ac_cv_func_getpwnam_r=no"
50687	eval "LIB_getpwnam_r="
50688	echo "$as_me:$LINENO: result: no" >&5
50689echo "${ECHO_T}no" >&6
50690	;;
50691	*)
50692	eval "ac_cv_func_getpwnam_r=yes"
50693	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
50694	cat >>confdefs.h <<_ACEOF
50695#define $ac_tr_func 1
50696_ACEOF
50697
50698	cat >>confdefs.h <<_ACEOF
50699#define $ac_tr_lib 1
50700_ACEOF
50701
50702	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
50703echo "${ECHO_T}yes, in $ac_res" >&6
50704	;;
50705esac
50706
50707
50708if test "$ac_cv_func_getpwnam_r" = yes; then
50709	echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5
50710echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6
50711if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then
50712  echo $ECHO_N "(cached) $ECHO_C" >&6
50713else
50714  ac_libs="$LIBS"
50715	LIBS="$LIBS $LIB_getpwnam_r"
50716	if test "$cross_compiling" = yes; then
50717  :
50718else
50719  cat >conftest.$ac_ext <<_ACEOF
50720/* confdefs.h.  */
50721_ACEOF
50722cat confdefs.h >>conftest.$ac_ext
50723cat >>conftest.$ac_ext <<_ACEOF
50724/* end confdefs.h.  */
50725
50726#include <pwd.h>
50727int main()
50728{
50729	struct passwd pw, *pwd;
50730	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
50731}
50732
50733_ACEOF
50734rm -f conftest$ac_exeext
50735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50736  (eval $ac_link) 2>&5
50737  ac_status=$?
50738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50739  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50741  (eval $ac_try) 2>&5
50742  ac_status=$?
50743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50744  (exit $ac_status); }; }; then
50745  ac_cv_func_getpwnam_r_posix=yes
50746else
50747  echo "$as_me: program exited with status $ac_status" >&5
50748echo "$as_me: failed program was:" >&5
50749sed 's/^/| /' conftest.$ac_ext >&5
50750
50751( exit $ac_status )
50752ac_cv_func_getpwnam_r_posix=no
50753fi
50754rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50755fi
50756LIBS="$ac_libs"
50757fi
50758echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5
50759echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6
50760if test "$ac_cv_func_getpwnam_r_posix" = yes; then
50761
50762cat >>confdefs.h <<\_ACEOF
50763#define POSIX_GETPWNAM_R 1
50764_ACEOF
50765
50766fi
50767fi
50768
50769
50770
50771
50772for ac_func in getudbnam setlim
50773do
50774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50775echo "$as_me:$LINENO: checking for $ac_func" >&5
50776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50777if eval "test \"\${$as_ac_var+set}\" = set"; then
50778  echo $ECHO_N "(cached) $ECHO_C" >&6
50779else
50780  cat >conftest.$ac_ext <<_ACEOF
50781/* confdefs.h.  */
50782_ACEOF
50783cat confdefs.h >>conftest.$ac_ext
50784cat >>conftest.$ac_ext <<_ACEOF
50785/* end confdefs.h.  */
50786/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50787   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50788#define $ac_func innocuous_$ac_func
50789
50790/* System header to define __stub macros and hopefully few prototypes,
50791    which can conflict with char $ac_func (); below.
50792    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50793    <limits.h> exists even on freestanding compilers.  */
50794
50795#ifdef __STDC__
50796# include <limits.h>
50797#else
50798# include <assert.h>
50799#endif
50800
50801#undef $ac_func
50802
50803/* Override any gcc2 internal prototype to avoid an error.  */
50804#ifdef __cplusplus
50805extern "C"
50806{
50807#endif
50808/* We use char because int might match the return type of a gcc2
50809   builtin and then its argument prototype would still apply.  */
50810char $ac_func ();
50811/* The GNU C library defines this for functions which it implements
50812    to always fail with ENOSYS.  Some functions are actually named
50813    something starting with __ and the normal name is an alias.  */
50814#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50815choke me
50816#else
50817char (*f) () = $ac_func;
50818#endif
50819#ifdef __cplusplus
50820}
50821#endif
50822
50823int
50824main ()
50825{
50826return f != $ac_func;
50827  ;
50828  return 0;
50829}
50830_ACEOF
50831rm -f conftest.$ac_objext conftest$ac_exeext
50832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50833  (eval $ac_link) 2>conftest.er1
50834  ac_status=$?
50835  grep -v '^ *+' conftest.er1 >conftest.err
50836  rm -f conftest.er1
50837  cat conftest.err >&5
50838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50839  (exit $ac_status); } &&
50840	 { ac_try='test -z "$ac_c_werror_flag"
50841			 || test ! -s conftest.err'
50842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50843  (eval $ac_try) 2>&5
50844  ac_status=$?
50845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50846  (exit $ac_status); }; } &&
50847	 { ac_try='test -s conftest$ac_exeext'
50848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50849  (eval $ac_try) 2>&5
50850  ac_status=$?
50851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50852  (exit $ac_status); }; }; then
50853  eval "$as_ac_var=yes"
50854else
50855  echo "$as_me: failed program was:" >&5
50856sed 's/^/| /' conftest.$ac_ext >&5
50857
50858eval "$as_ac_var=no"
50859fi
50860rm -f conftest.err conftest.$ac_objext \
50861      conftest$ac_exeext conftest.$ac_ext
50862fi
50863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50864echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50865if test `eval echo '${'$as_ac_var'}'` = yes; then
50866  cat >>confdefs.h <<_ACEOF
50867#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50868_ACEOF
50869
50870fi
50871done
50872
50873
50874
50875
50876
50877
50878echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5
50879echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6
50880if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then
50881  echo $ECHO_N "(cached) $ECHO_C" >&6
50882else
50883
50884cat >conftest.$ac_ext <<_ACEOF
50885/* confdefs.h.  */
50886_ACEOF
50887cat confdefs.h >>conftest.$ac_ext
50888cat >>conftest.$ac_ext <<_ACEOF
50889/* end confdefs.h.  */
50890#include <utmp.h>
50891int
50892main ()
50893{
50894struct utmp x; x.ut_addr;
50895  ;
50896  return 0;
50897}
50898_ACEOF
50899rm -f conftest.$ac_objext
50900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50901  (eval $ac_compile) 2>conftest.er1
50902  ac_status=$?
50903  grep -v '^ *+' conftest.er1 >conftest.err
50904  rm -f conftest.er1
50905  cat conftest.err >&5
50906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50907  (exit $ac_status); } &&
50908	 { ac_try='test -z "$ac_c_werror_flag"
50909			 || test ! -s conftest.err'
50910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50911  (eval $ac_try) 2>&5
50912  ac_status=$?
50913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50914  (exit $ac_status); }; } &&
50915	 { ac_try='test -s conftest.$ac_objext'
50916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50917  (eval $ac_try) 2>&5
50918  ac_status=$?
50919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50920  (exit $ac_status); }; }; then
50921  ac_cv_type_struct_utmp_ut_addr=yes
50922else
50923  echo "$as_me: failed program was:" >&5
50924sed 's/^/| /' conftest.$ac_ext >&5
50925
50926ac_cv_type_struct_utmp_ut_addr=no
50927fi
50928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50929fi
50930echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5
50931echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6
50932if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
50933
50934
50935cat >>confdefs.h <<\_ACEOF
50936#define HAVE_STRUCT_UTMP_UT_ADDR 1
50937_ACEOF
50938
50939
50940fi
50941
50942
50943
50944
50945echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5
50946echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6
50947if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then
50948  echo $ECHO_N "(cached) $ECHO_C" >&6
50949else
50950
50951cat >conftest.$ac_ext <<_ACEOF
50952/* confdefs.h.  */
50953_ACEOF
50954cat confdefs.h >>conftest.$ac_ext
50955cat >>conftest.$ac_ext <<_ACEOF
50956/* end confdefs.h.  */
50957#include <utmp.h>
50958int
50959main ()
50960{
50961struct utmp x; x.ut_host;
50962  ;
50963  return 0;
50964}
50965_ACEOF
50966rm -f conftest.$ac_objext
50967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50968  (eval $ac_compile) 2>conftest.er1
50969  ac_status=$?
50970  grep -v '^ *+' conftest.er1 >conftest.err
50971  rm -f conftest.er1
50972  cat conftest.err >&5
50973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50974  (exit $ac_status); } &&
50975	 { ac_try='test -z "$ac_c_werror_flag"
50976			 || test ! -s conftest.err'
50977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50978  (eval $ac_try) 2>&5
50979  ac_status=$?
50980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50981  (exit $ac_status); }; } &&
50982	 { ac_try='test -s conftest.$ac_objext'
50983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50984  (eval $ac_try) 2>&5
50985  ac_status=$?
50986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
50987  (exit $ac_status); }; }; then
50988  ac_cv_type_struct_utmp_ut_host=yes
50989else
50990  echo "$as_me: failed program was:" >&5
50991sed 's/^/| /' conftest.$ac_ext >&5
50992
50993ac_cv_type_struct_utmp_ut_host=no
50994fi
50995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50996fi
50997echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5
50998echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6
50999if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
51000
51001
51002cat >>confdefs.h <<\_ACEOF
51003#define HAVE_STRUCT_UTMP_UT_HOST 1
51004_ACEOF
51005
51006
51007fi
51008
51009
51010
51011
51012echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5
51013echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6
51014if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then
51015  echo $ECHO_N "(cached) $ECHO_C" >&6
51016else
51017
51018cat >conftest.$ac_ext <<_ACEOF
51019/* confdefs.h.  */
51020_ACEOF
51021cat confdefs.h >>conftest.$ac_ext
51022cat >>conftest.$ac_ext <<_ACEOF
51023/* end confdefs.h.  */
51024#include <utmp.h>
51025int
51026main ()
51027{
51028struct utmp x; x.ut_id;
51029  ;
51030  return 0;
51031}
51032_ACEOF
51033rm -f conftest.$ac_objext
51034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51035  (eval $ac_compile) 2>conftest.er1
51036  ac_status=$?
51037  grep -v '^ *+' conftest.er1 >conftest.err
51038  rm -f conftest.er1
51039  cat conftest.err >&5
51040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51041  (exit $ac_status); } &&
51042	 { ac_try='test -z "$ac_c_werror_flag"
51043			 || test ! -s conftest.err'
51044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51045  (eval $ac_try) 2>&5
51046  ac_status=$?
51047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51048  (exit $ac_status); }; } &&
51049	 { ac_try='test -s conftest.$ac_objext'
51050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51051  (eval $ac_try) 2>&5
51052  ac_status=$?
51053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51054  (exit $ac_status); }; }; then
51055  ac_cv_type_struct_utmp_ut_id=yes
51056else
51057  echo "$as_me: failed program was:" >&5
51058sed 's/^/| /' conftest.$ac_ext >&5
51059
51060ac_cv_type_struct_utmp_ut_id=no
51061fi
51062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51063fi
51064echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5
51065echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6
51066if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
51067
51068
51069cat >>confdefs.h <<\_ACEOF
51070#define HAVE_STRUCT_UTMP_UT_ID 1
51071_ACEOF
51072
51073
51074fi
51075
51076
51077
51078
51079echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5
51080echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6
51081if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then
51082  echo $ECHO_N "(cached) $ECHO_C" >&6
51083else
51084
51085cat >conftest.$ac_ext <<_ACEOF
51086/* confdefs.h.  */
51087_ACEOF
51088cat confdefs.h >>conftest.$ac_ext
51089cat >>conftest.$ac_ext <<_ACEOF
51090/* end confdefs.h.  */
51091#include <utmp.h>
51092int
51093main ()
51094{
51095struct utmp x; x.ut_pid;
51096  ;
51097  return 0;
51098}
51099_ACEOF
51100rm -f conftest.$ac_objext
51101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51102  (eval $ac_compile) 2>conftest.er1
51103  ac_status=$?
51104  grep -v '^ *+' conftest.er1 >conftest.err
51105  rm -f conftest.er1
51106  cat conftest.err >&5
51107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51108  (exit $ac_status); } &&
51109	 { ac_try='test -z "$ac_c_werror_flag"
51110			 || test ! -s conftest.err'
51111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51112  (eval $ac_try) 2>&5
51113  ac_status=$?
51114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51115  (exit $ac_status); }; } &&
51116	 { ac_try='test -s conftest.$ac_objext'
51117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51118  (eval $ac_try) 2>&5
51119  ac_status=$?
51120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51121  (exit $ac_status); }; }; then
51122  ac_cv_type_struct_utmp_ut_pid=yes
51123else
51124  echo "$as_me: failed program was:" >&5
51125sed 's/^/| /' conftest.$ac_ext >&5
51126
51127ac_cv_type_struct_utmp_ut_pid=no
51128fi
51129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51130fi
51131echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5
51132echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6
51133if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
51134
51135
51136cat >>confdefs.h <<\_ACEOF
51137#define HAVE_STRUCT_UTMP_UT_PID 1
51138_ACEOF
51139
51140
51141fi
51142
51143
51144
51145
51146echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5
51147echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6
51148if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then
51149  echo $ECHO_N "(cached) $ECHO_C" >&6
51150else
51151
51152cat >conftest.$ac_ext <<_ACEOF
51153/* confdefs.h.  */
51154_ACEOF
51155cat confdefs.h >>conftest.$ac_ext
51156cat >>conftest.$ac_ext <<_ACEOF
51157/* end confdefs.h.  */
51158#include <utmp.h>
51159int
51160main ()
51161{
51162struct utmp x; x.ut_type;
51163  ;
51164  return 0;
51165}
51166_ACEOF
51167rm -f conftest.$ac_objext
51168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51169  (eval $ac_compile) 2>conftest.er1
51170  ac_status=$?
51171  grep -v '^ *+' conftest.er1 >conftest.err
51172  rm -f conftest.er1
51173  cat conftest.err >&5
51174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51175  (exit $ac_status); } &&
51176	 { ac_try='test -z "$ac_c_werror_flag"
51177			 || test ! -s conftest.err'
51178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51179  (eval $ac_try) 2>&5
51180  ac_status=$?
51181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51182  (exit $ac_status); }; } &&
51183	 { ac_try='test -s conftest.$ac_objext'
51184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51185  (eval $ac_try) 2>&5
51186  ac_status=$?
51187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51188  (exit $ac_status); }; }; then
51189  ac_cv_type_struct_utmp_ut_type=yes
51190else
51191  echo "$as_me: failed program was:" >&5
51192sed 's/^/| /' conftest.$ac_ext >&5
51193
51194ac_cv_type_struct_utmp_ut_type=no
51195fi
51196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51197fi
51198echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5
51199echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6
51200if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
51201
51202
51203cat >>confdefs.h <<\_ACEOF
51204#define HAVE_STRUCT_UTMP_UT_TYPE 1
51205_ACEOF
51206
51207
51208fi
51209
51210
51211
51212
51213echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5
51214echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6
51215if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then
51216  echo $ECHO_N "(cached) $ECHO_C" >&6
51217else
51218
51219cat >conftest.$ac_ext <<_ACEOF
51220/* confdefs.h.  */
51221_ACEOF
51222cat confdefs.h >>conftest.$ac_ext
51223cat >>conftest.$ac_ext <<_ACEOF
51224/* end confdefs.h.  */
51225#include <utmp.h>
51226int
51227main ()
51228{
51229struct utmp x; x.ut_user;
51230  ;
51231  return 0;
51232}
51233_ACEOF
51234rm -f conftest.$ac_objext
51235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51236  (eval $ac_compile) 2>conftest.er1
51237  ac_status=$?
51238  grep -v '^ *+' conftest.er1 >conftest.err
51239  rm -f conftest.er1
51240  cat conftest.err >&5
51241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51242  (exit $ac_status); } &&
51243	 { ac_try='test -z "$ac_c_werror_flag"
51244			 || test ! -s conftest.err'
51245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51246  (eval $ac_try) 2>&5
51247  ac_status=$?
51248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51249  (exit $ac_status); }; } &&
51250	 { ac_try='test -s conftest.$ac_objext'
51251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51252  (eval $ac_try) 2>&5
51253  ac_status=$?
51254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51255  (exit $ac_status); }; }; then
51256  ac_cv_type_struct_utmp_ut_user=yes
51257else
51258  echo "$as_me: failed program was:" >&5
51259sed 's/^/| /' conftest.$ac_ext >&5
51260
51261ac_cv_type_struct_utmp_ut_user=no
51262fi
51263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51264fi
51265echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5
51266echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6
51267if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
51268
51269
51270cat >>confdefs.h <<\_ACEOF
51271#define HAVE_STRUCT_UTMP_UT_USER 1
51272_ACEOF
51273
51274
51275fi
51276
51277
51278
51279
51280echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5
51281echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6
51282if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then
51283  echo $ECHO_N "(cached) $ECHO_C" >&6
51284else
51285
51286cat >conftest.$ac_ext <<_ACEOF
51287/* confdefs.h.  */
51288_ACEOF
51289cat confdefs.h >>conftest.$ac_ext
51290cat >>conftest.$ac_ext <<_ACEOF
51291/* end confdefs.h.  */
51292#include <utmpx.h>
51293int
51294main ()
51295{
51296struct utmpx x; x.ut_exit;
51297  ;
51298  return 0;
51299}
51300_ACEOF
51301rm -f conftest.$ac_objext
51302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51303  (eval $ac_compile) 2>conftest.er1
51304  ac_status=$?
51305  grep -v '^ *+' conftest.er1 >conftest.err
51306  rm -f conftest.er1
51307  cat conftest.err >&5
51308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51309  (exit $ac_status); } &&
51310	 { ac_try='test -z "$ac_c_werror_flag"
51311			 || test ! -s conftest.err'
51312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51313  (eval $ac_try) 2>&5
51314  ac_status=$?
51315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51316  (exit $ac_status); }; } &&
51317	 { ac_try='test -s conftest.$ac_objext'
51318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51319  (eval $ac_try) 2>&5
51320  ac_status=$?
51321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51322  (exit $ac_status); }; }; then
51323  ac_cv_type_struct_utmpx_ut_exit=yes
51324else
51325  echo "$as_me: failed program was:" >&5
51326sed 's/^/| /' conftest.$ac_ext >&5
51327
51328ac_cv_type_struct_utmpx_ut_exit=no
51329fi
51330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51331fi
51332echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5
51333echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6
51334if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
51335
51336
51337cat >>confdefs.h <<\_ACEOF
51338#define HAVE_STRUCT_UTMPX_UT_EXIT 1
51339_ACEOF
51340
51341
51342fi
51343
51344
51345
51346
51347echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5
51348echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6
51349if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then
51350  echo $ECHO_N "(cached) $ECHO_C" >&6
51351else
51352
51353cat >conftest.$ac_ext <<_ACEOF
51354/* confdefs.h.  */
51355_ACEOF
51356cat confdefs.h >>conftest.$ac_ext
51357cat >>conftest.$ac_ext <<_ACEOF
51358/* end confdefs.h.  */
51359#include <utmpx.h>
51360int
51361main ()
51362{
51363struct utmpx x; x.ut_syslen;
51364  ;
51365  return 0;
51366}
51367_ACEOF
51368rm -f conftest.$ac_objext
51369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51370  (eval $ac_compile) 2>conftest.er1
51371  ac_status=$?
51372  grep -v '^ *+' conftest.er1 >conftest.err
51373  rm -f conftest.er1
51374  cat conftest.err >&5
51375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51376  (exit $ac_status); } &&
51377	 { ac_try='test -z "$ac_c_werror_flag"
51378			 || test ! -s conftest.err'
51379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51380  (eval $ac_try) 2>&5
51381  ac_status=$?
51382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51383  (exit $ac_status); }; } &&
51384	 { ac_try='test -s conftest.$ac_objext'
51385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51386  (eval $ac_try) 2>&5
51387  ac_status=$?
51388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51389  (exit $ac_status); }; }; then
51390  ac_cv_type_struct_utmpx_ut_syslen=yes
51391else
51392  echo "$as_me: failed program was:" >&5
51393sed 's/^/| /' conftest.$ac_ext >&5
51394
51395ac_cv_type_struct_utmpx_ut_syslen=no
51396fi
51397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51398fi
51399echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5
51400echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6
51401if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
51402
51403
51404cat >>confdefs.h <<\_ACEOF
51405#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
51406_ACEOF
51407
51408
51409fi
51410
51411
51412
51413echo "$as_me:$LINENO: checking for int8_t" >&5
51414echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
51415if test "${ac_cv_type_int8_t+set}" = set; then
51416  echo $ECHO_N "(cached) $ECHO_C" >&6
51417else
51418  cat >conftest.$ac_ext <<_ACEOF
51419/* confdefs.h.  */
51420_ACEOF
51421cat confdefs.h >>conftest.$ac_ext
51422cat >>conftest.$ac_ext <<_ACEOF
51423/* end confdefs.h.  */
51424
51425#ifdef HAVE_INTTYPES_H
51426#include <inttypes.h>
51427#endif
51428#ifdef HAVE_SYS_TYPES_H
51429#include <sys/types.h>
51430#endif
51431#ifdef HAVE_SYS_BITYPES_H
51432#include <sys/bitypes.h>
51433#endif
51434#ifdef HAVE_BIND_BITYPES_H
51435#include <bind/bitypes.h>
51436#endif
51437#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51438#include <netinet/in6_machtypes.h>
51439#endif
51440
51441
51442int
51443main ()
51444{
51445if ((int8_t *) 0)
51446  return 0;
51447if (sizeof (int8_t))
51448  return 0;
51449  ;
51450  return 0;
51451}
51452_ACEOF
51453rm -f conftest.$ac_objext
51454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51455  (eval $ac_compile) 2>conftest.er1
51456  ac_status=$?
51457  grep -v '^ *+' conftest.er1 >conftest.err
51458  rm -f conftest.er1
51459  cat conftest.err >&5
51460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51461  (exit $ac_status); } &&
51462	 { ac_try='test -z "$ac_c_werror_flag"
51463			 || test ! -s conftest.err'
51464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51465  (eval $ac_try) 2>&5
51466  ac_status=$?
51467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51468  (exit $ac_status); }; } &&
51469	 { ac_try='test -s conftest.$ac_objext'
51470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51471  (eval $ac_try) 2>&5
51472  ac_status=$?
51473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51474  (exit $ac_status); }; }; then
51475  ac_cv_type_int8_t=yes
51476else
51477  echo "$as_me: failed program was:" >&5
51478sed 's/^/| /' conftest.$ac_ext >&5
51479
51480ac_cv_type_int8_t=no
51481fi
51482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51483fi
51484echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
51485echo "${ECHO_T}$ac_cv_type_int8_t" >&6
51486if test $ac_cv_type_int8_t = yes; then
51487
51488cat >>confdefs.h <<_ACEOF
51489#define HAVE_INT8_T 1
51490_ACEOF
51491
51492
51493fi
51494echo "$as_me:$LINENO: checking for int16_t" >&5
51495echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
51496if test "${ac_cv_type_int16_t+set}" = set; then
51497  echo $ECHO_N "(cached) $ECHO_C" >&6
51498else
51499  cat >conftest.$ac_ext <<_ACEOF
51500/* confdefs.h.  */
51501_ACEOF
51502cat confdefs.h >>conftest.$ac_ext
51503cat >>conftest.$ac_ext <<_ACEOF
51504/* end confdefs.h.  */
51505
51506#ifdef HAVE_INTTYPES_H
51507#include <inttypes.h>
51508#endif
51509#ifdef HAVE_SYS_TYPES_H
51510#include <sys/types.h>
51511#endif
51512#ifdef HAVE_SYS_BITYPES_H
51513#include <sys/bitypes.h>
51514#endif
51515#ifdef HAVE_BIND_BITYPES_H
51516#include <bind/bitypes.h>
51517#endif
51518#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51519#include <netinet/in6_machtypes.h>
51520#endif
51521
51522
51523int
51524main ()
51525{
51526if ((int16_t *) 0)
51527  return 0;
51528if (sizeof (int16_t))
51529  return 0;
51530  ;
51531  return 0;
51532}
51533_ACEOF
51534rm -f conftest.$ac_objext
51535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51536  (eval $ac_compile) 2>conftest.er1
51537  ac_status=$?
51538  grep -v '^ *+' conftest.er1 >conftest.err
51539  rm -f conftest.er1
51540  cat conftest.err >&5
51541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51542  (exit $ac_status); } &&
51543	 { ac_try='test -z "$ac_c_werror_flag"
51544			 || test ! -s conftest.err'
51545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51546  (eval $ac_try) 2>&5
51547  ac_status=$?
51548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51549  (exit $ac_status); }; } &&
51550	 { ac_try='test -s conftest.$ac_objext'
51551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51552  (eval $ac_try) 2>&5
51553  ac_status=$?
51554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51555  (exit $ac_status); }; }; then
51556  ac_cv_type_int16_t=yes
51557else
51558  echo "$as_me: failed program was:" >&5
51559sed 's/^/| /' conftest.$ac_ext >&5
51560
51561ac_cv_type_int16_t=no
51562fi
51563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51564fi
51565echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
51566echo "${ECHO_T}$ac_cv_type_int16_t" >&6
51567if test $ac_cv_type_int16_t = yes; then
51568
51569cat >>confdefs.h <<_ACEOF
51570#define HAVE_INT16_T 1
51571_ACEOF
51572
51573
51574fi
51575echo "$as_me:$LINENO: checking for int32_t" >&5
51576echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
51577if test "${ac_cv_type_int32_t+set}" = set; then
51578  echo $ECHO_N "(cached) $ECHO_C" >&6
51579else
51580  cat >conftest.$ac_ext <<_ACEOF
51581/* confdefs.h.  */
51582_ACEOF
51583cat confdefs.h >>conftest.$ac_ext
51584cat >>conftest.$ac_ext <<_ACEOF
51585/* end confdefs.h.  */
51586
51587#ifdef HAVE_INTTYPES_H
51588#include <inttypes.h>
51589#endif
51590#ifdef HAVE_SYS_TYPES_H
51591#include <sys/types.h>
51592#endif
51593#ifdef HAVE_SYS_BITYPES_H
51594#include <sys/bitypes.h>
51595#endif
51596#ifdef HAVE_BIND_BITYPES_H
51597#include <bind/bitypes.h>
51598#endif
51599#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51600#include <netinet/in6_machtypes.h>
51601#endif
51602
51603
51604int
51605main ()
51606{
51607if ((int32_t *) 0)
51608  return 0;
51609if (sizeof (int32_t))
51610  return 0;
51611  ;
51612  return 0;
51613}
51614_ACEOF
51615rm -f conftest.$ac_objext
51616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51617  (eval $ac_compile) 2>conftest.er1
51618  ac_status=$?
51619  grep -v '^ *+' conftest.er1 >conftest.err
51620  rm -f conftest.er1
51621  cat conftest.err >&5
51622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51623  (exit $ac_status); } &&
51624	 { ac_try='test -z "$ac_c_werror_flag"
51625			 || test ! -s conftest.err'
51626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51627  (eval $ac_try) 2>&5
51628  ac_status=$?
51629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51630  (exit $ac_status); }; } &&
51631	 { ac_try='test -s conftest.$ac_objext'
51632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51633  (eval $ac_try) 2>&5
51634  ac_status=$?
51635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51636  (exit $ac_status); }; }; then
51637  ac_cv_type_int32_t=yes
51638else
51639  echo "$as_me: failed program was:" >&5
51640sed 's/^/| /' conftest.$ac_ext >&5
51641
51642ac_cv_type_int32_t=no
51643fi
51644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51645fi
51646echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
51647echo "${ECHO_T}$ac_cv_type_int32_t" >&6
51648if test $ac_cv_type_int32_t = yes; then
51649
51650cat >>confdefs.h <<_ACEOF
51651#define HAVE_INT32_T 1
51652_ACEOF
51653
51654
51655fi
51656echo "$as_me:$LINENO: checking for int64_t" >&5
51657echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
51658if test "${ac_cv_type_int64_t+set}" = set; then
51659  echo $ECHO_N "(cached) $ECHO_C" >&6
51660else
51661  cat >conftest.$ac_ext <<_ACEOF
51662/* confdefs.h.  */
51663_ACEOF
51664cat confdefs.h >>conftest.$ac_ext
51665cat >>conftest.$ac_ext <<_ACEOF
51666/* end confdefs.h.  */
51667
51668#ifdef HAVE_INTTYPES_H
51669#include <inttypes.h>
51670#endif
51671#ifdef HAVE_SYS_TYPES_H
51672#include <sys/types.h>
51673#endif
51674#ifdef HAVE_SYS_BITYPES_H
51675#include <sys/bitypes.h>
51676#endif
51677#ifdef HAVE_BIND_BITYPES_H
51678#include <bind/bitypes.h>
51679#endif
51680#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51681#include <netinet/in6_machtypes.h>
51682#endif
51683
51684
51685int
51686main ()
51687{
51688if ((int64_t *) 0)
51689  return 0;
51690if (sizeof (int64_t))
51691  return 0;
51692  ;
51693  return 0;
51694}
51695_ACEOF
51696rm -f conftest.$ac_objext
51697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51698  (eval $ac_compile) 2>conftest.er1
51699  ac_status=$?
51700  grep -v '^ *+' conftest.er1 >conftest.err
51701  rm -f conftest.er1
51702  cat conftest.err >&5
51703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51704  (exit $ac_status); } &&
51705	 { ac_try='test -z "$ac_c_werror_flag"
51706			 || test ! -s conftest.err'
51707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51708  (eval $ac_try) 2>&5
51709  ac_status=$?
51710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51711  (exit $ac_status); }; } &&
51712	 { ac_try='test -s conftest.$ac_objext'
51713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51714  (eval $ac_try) 2>&5
51715  ac_status=$?
51716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51717  (exit $ac_status); }; }; then
51718  ac_cv_type_int64_t=yes
51719else
51720  echo "$as_me: failed program was:" >&5
51721sed 's/^/| /' conftest.$ac_ext >&5
51722
51723ac_cv_type_int64_t=no
51724fi
51725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51726fi
51727echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
51728echo "${ECHO_T}$ac_cv_type_int64_t" >&6
51729if test $ac_cv_type_int64_t = yes; then
51730
51731cat >>confdefs.h <<_ACEOF
51732#define HAVE_INT64_T 1
51733_ACEOF
51734
51735
51736fi
51737echo "$as_me:$LINENO: checking for u_int8_t" >&5
51738echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
51739if test "${ac_cv_type_u_int8_t+set}" = set; then
51740  echo $ECHO_N "(cached) $ECHO_C" >&6
51741else
51742  cat >conftest.$ac_ext <<_ACEOF
51743/* confdefs.h.  */
51744_ACEOF
51745cat confdefs.h >>conftest.$ac_ext
51746cat >>conftest.$ac_ext <<_ACEOF
51747/* end confdefs.h.  */
51748
51749#ifdef HAVE_INTTYPES_H
51750#include <inttypes.h>
51751#endif
51752#ifdef HAVE_SYS_TYPES_H
51753#include <sys/types.h>
51754#endif
51755#ifdef HAVE_SYS_BITYPES_H
51756#include <sys/bitypes.h>
51757#endif
51758#ifdef HAVE_BIND_BITYPES_H
51759#include <bind/bitypes.h>
51760#endif
51761#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51762#include <netinet/in6_machtypes.h>
51763#endif
51764
51765
51766int
51767main ()
51768{
51769if ((u_int8_t *) 0)
51770  return 0;
51771if (sizeof (u_int8_t))
51772  return 0;
51773  ;
51774  return 0;
51775}
51776_ACEOF
51777rm -f conftest.$ac_objext
51778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51779  (eval $ac_compile) 2>conftest.er1
51780  ac_status=$?
51781  grep -v '^ *+' conftest.er1 >conftest.err
51782  rm -f conftest.er1
51783  cat conftest.err >&5
51784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51785  (exit $ac_status); } &&
51786	 { ac_try='test -z "$ac_c_werror_flag"
51787			 || test ! -s conftest.err'
51788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51789  (eval $ac_try) 2>&5
51790  ac_status=$?
51791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51792  (exit $ac_status); }; } &&
51793	 { ac_try='test -s conftest.$ac_objext'
51794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51795  (eval $ac_try) 2>&5
51796  ac_status=$?
51797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51798  (exit $ac_status); }; }; then
51799  ac_cv_type_u_int8_t=yes
51800else
51801  echo "$as_me: failed program was:" >&5
51802sed 's/^/| /' conftest.$ac_ext >&5
51803
51804ac_cv_type_u_int8_t=no
51805fi
51806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51807fi
51808echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
51809echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
51810if test $ac_cv_type_u_int8_t = yes; then
51811
51812cat >>confdefs.h <<_ACEOF
51813#define HAVE_U_INT8_T 1
51814_ACEOF
51815
51816
51817fi
51818echo "$as_me:$LINENO: checking for u_int16_t" >&5
51819echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
51820if test "${ac_cv_type_u_int16_t+set}" = set; then
51821  echo $ECHO_N "(cached) $ECHO_C" >&6
51822else
51823  cat >conftest.$ac_ext <<_ACEOF
51824/* confdefs.h.  */
51825_ACEOF
51826cat confdefs.h >>conftest.$ac_ext
51827cat >>conftest.$ac_ext <<_ACEOF
51828/* end confdefs.h.  */
51829
51830#ifdef HAVE_INTTYPES_H
51831#include <inttypes.h>
51832#endif
51833#ifdef HAVE_SYS_TYPES_H
51834#include <sys/types.h>
51835#endif
51836#ifdef HAVE_SYS_BITYPES_H
51837#include <sys/bitypes.h>
51838#endif
51839#ifdef HAVE_BIND_BITYPES_H
51840#include <bind/bitypes.h>
51841#endif
51842#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51843#include <netinet/in6_machtypes.h>
51844#endif
51845
51846
51847int
51848main ()
51849{
51850if ((u_int16_t *) 0)
51851  return 0;
51852if (sizeof (u_int16_t))
51853  return 0;
51854  ;
51855  return 0;
51856}
51857_ACEOF
51858rm -f conftest.$ac_objext
51859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51860  (eval $ac_compile) 2>conftest.er1
51861  ac_status=$?
51862  grep -v '^ *+' conftest.er1 >conftest.err
51863  rm -f conftest.er1
51864  cat conftest.err >&5
51865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51866  (exit $ac_status); } &&
51867	 { ac_try='test -z "$ac_c_werror_flag"
51868			 || test ! -s conftest.err'
51869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51870  (eval $ac_try) 2>&5
51871  ac_status=$?
51872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51873  (exit $ac_status); }; } &&
51874	 { ac_try='test -s conftest.$ac_objext'
51875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51876  (eval $ac_try) 2>&5
51877  ac_status=$?
51878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51879  (exit $ac_status); }; }; then
51880  ac_cv_type_u_int16_t=yes
51881else
51882  echo "$as_me: failed program was:" >&5
51883sed 's/^/| /' conftest.$ac_ext >&5
51884
51885ac_cv_type_u_int16_t=no
51886fi
51887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51888fi
51889echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
51890echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
51891if test $ac_cv_type_u_int16_t = yes; then
51892
51893cat >>confdefs.h <<_ACEOF
51894#define HAVE_U_INT16_T 1
51895_ACEOF
51896
51897
51898fi
51899echo "$as_me:$LINENO: checking for u_int32_t" >&5
51900echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
51901if test "${ac_cv_type_u_int32_t+set}" = set; then
51902  echo $ECHO_N "(cached) $ECHO_C" >&6
51903else
51904  cat >conftest.$ac_ext <<_ACEOF
51905/* confdefs.h.  */
51906_ACEOF
51907cat confdefs.h >>conftest.$ac_ext
51908cat >>conftest.$ac_ext <<_ACEOF
51909/* end confdefs.h.  */
51910
51911#ifdef HAVE_INTTYPES_H
51912#include <inttypes.h>
51913#endif
51914#ifdef HAVE_SYS_TYPES_H
51915#include <sys/types.h>
51916#endif
51917#ifdef HAVE_SYS_BITYPES_H
51918#include <sys/bitypes.h>
51919#endif
51920#ifdef HAVE_BIND_BITYPES_H
51921#include <bind/bitypes.h>
51922#endif
51923#ifdef HAVE_NETINET_IN6_MACHTYPES_H
51924#include <netinet/in6_machtypes.h>
51925#endif
51926
51927
51928int
51929main ()
51930{
51931if ((u_int32_t *) 0)
51932  return 0;
51933if (sizeof (u_int32_t))
51934  return 0;
51935  ;
51936  return 0;
51937}
51938_ACEOF
51939rm -f conftest.$ac_objext
51940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51941  (eval $ac_compile) 2>conftest.er1
51942  ac_status=$?
51943  grep -v '^ *+' conftest.er1 >conftest.err
51944  rm -f conftest.er1
51945  cat conftest.err >&5
51946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51947  (exit $ac_status); } &&
51948	 { ac_try='test -z "$ac_c_werror_flag"
51949			 || test ! -s conftest.err'
51950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51951  (eval $ac_try) 2>&5
51952  ac_status=$?
51953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51954  (exit $ac_status); }; } &&
51955	 { ac_try='test -s conftest.$ac_objext'
51956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51957  (eval $ac_try) 2>&5
51958  ac_status=$?
51959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
51960  (exit $ac_status); }; }; then
51961  ac_cv_type_u_int32_t=yes
51962else
51963  echo "$as_me: failed program was:" >&5
51964sed 's/^/| /' conftest.$ac_ext >&5
51965
51966ac_cv_type_u_int32_t=no
51967fi
51968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51969fi
51970echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
51971echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
51972if test $ac_cv_type_u_int32_t = yes; then
51973
51974cat >>confdefs.h <<_ACEOF
51975#define HAVE_U_INT32_T 1
51976_ACEOF
51977
51978
51979fi
51980echo "$as_me:$LINENO: checking for u_int64_t" >&5
51981echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
51982if test "${ac_cv_type_u_int64_t+set}" = set; then
51983  echo $ECHO_N "(cached) $ECHO_C" >&6
51984else
51985  cat >conftest.$ac_ext <<_ACEOF
51986/* confdefs.h.  */
51987_ACEOF
51988cat confdefs.h >>conftest.$ac_ext
51989cat >>conftest.$ac_ext <<_ACEOF
51990/* end confdefs.h.  */
51991
51992#ifdef HAVE_INTTYPES_H
51993#include <inttypes.h>
51994#endif
51995#ifdef HAVE_SYS_TYPES_H
51996#include <sys/types.h>
51997#endif
51998#ifdef HAVE_SYS_BITYPES_H
51999#include <sys/bitypes.h>
52000#endif
52001#ifdef HAVE_BIND_BITYPES_H
52002#include <bind/bitypes.h>
52003#endif
52004#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52005#include <netinet/in6_machtypes.h>
52006#endif
52007
52008
52009int
52010main ()
52011{
52012if ((u_int64_t *) 0)
52013  return 0;
52014if (sizeof (u_int64_t))
52015  return 0;
52016  ;
52017  return 0;
52018}
52019_ACEOF
52020rm -f conftest.$ac_objext
52021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52022  (eval $ac_compile) 2>conftest.er1
52023  ac_status=$?
52024  grep -v '^ *+' conftest.er1 >conftest.err
52025  rm -f conftest.er1
52026  cat conftest.err >&5
52027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52028  (exit $ac_status); } &&
52029	 { ac_try='test -z "$ac_c_werror_flag"
52030			 || test ! -s conftest.err'
52031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52032  (eval $ac_try) 2>&5
52033  ac_status=$?
52034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52035  (exit $ac_status); }; } &&
52036	 { ac_try='test -s conftest.$ac_objext'
52037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52038  (eval $ac_try) 2>&5
52039  ac_status=$?
52040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52041  (exit $ac_status); }; }; then
52042  ac_cv_type_u_int64_t=yes
52043else
52044  echo "$as_me: failed program was:" >&5
52045sed 's/^/| /' conftest.$ac_ext >&5
52046
52047ac_cv_type_u_int64_t=no
52048fi
52049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52050fi
52051echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
52052echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
52053if test $ac_cv_type_u_int64_t = yes; then
52054
52055cat >>confdefs.h <<_ACEOF
52056#define HAVE_U_INT64_T 1
52057_ACEOF
52058
52059
52060fi
52061echo "$as_me:$LINENO: checking for uint8_t" >&5
52062echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
52063if test "${ac_cv_type_uint8_t+set}" = set; then
52064  echo $ECHO_N "(cached) $ECHO_C" >&6
52065else
52066  cat >conftest.$ac_ext <<_ACEOF
52067/* confdefs.h.  */
52068_ACEOF
52069cat confdefs.h >>conftest.$ac_ext
52070cat >>conftest.$ac_ext <<_ACEOF
52071/* end confdefs.h.  */
52072
52073#ifdef HAVE_INTTYPES_H
52074#include <inttypes.h>
52075#endif
52076#ifdef HAVE_SYS_TYPES_H
52077#include <sys/types.h>
52078#endif
52079#ifdef HAVE_SYS_BITYPES_H
52080#include <sys/bitypes.h>
52081#endif
52082#ifdef HAVE_BIND_BITYPES_H
52083#include <bind/bitypes.h>
52084#endif
52085#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52086#include <netinet/in6_machtypes.h>
52087#endif
52088
52089
52090int
52091main ()
52092{
52093if ((uint8_t *) 0)
52094  return 0;
52095if (sizeof (uint8_t))
52096  return 0;
52097  ;
52098  return 0;
52099}
52100_ACEOF
52101rm -f conftest.$ac_objext
52102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52103  (eval $ac_compile) 2>conftest.er1
52104  ac_status=$?
52105  grep -v '^ *+' conftest.er1 >conftest.err
52106  rm -f conftest.er1
52107  cat conftest.err >&5
52108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52109  (exit $ac_status); } &&
52110	 { ac_try='test -z "$ac_c_werror_flag"
52111			 || test ! -s conftest.err'
52112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52113  (eval $ac_try) 2>&5
52114  ac_status=$?
52115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52116  (exit $ac_status); }; } &&
52117	 { ac_try='test -s conftest.$ac_objext'
52118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52119  (eval $ac_try) 2>&5
52120  ac_status=$?
52121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52122  (exit $ac_status); }; }; then
52123  ac_cv_type_uint8_t=yes
52124else
52125  echo "$as_me: failed program was:" >&5
52126sed 's/^/| /' conftest.$ac_ext >&5
52127
52128ac_cv_type_uint8_t=no
52129fi
52130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52131fi
52132echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
52133echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
52134if test $ac_cv_type_uint8_t = yes; then
52135
52136cat >>confdefs.h <<_ACEOF
52137#define HAVE_UINT8_T 1
52138_ACEOF
52139
52140
52141fi
52142echo "$as_me:$LINENO: checking for uint16_t" >&5
52143echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
52144if test "${ac_cv_type_uint16_t+set}" = set; then
52145  echo $ECHO_N "(cached) $ECHO_C" >&6
52146else
52147  cat >conftest.$ac_ext <<_ACEOF
52148/* confdefs.h.  */
52149_ACEOF
52150cat confdefs.h >>conftest.$ac_ext
52151cat >>conftest.$ac_ext <<_ACEOF
52152/* end confdefs.h.  */
52153
52154#ifdef HAVE_INTTYPES_H
52155#include <inttypes.h>
52156#endif
52157#ifdef HAVE_SYS_TYPES_H
52158#include <sys/types.h>
52159#endif
52160#ifdef HAVE_SYS_BITYPES_H
52161#include <sys/bitypes.h>
52162#endif
52163#ifdef HAVE_BIND_BITYPES_H
52164#include <bind/bitypes.h>
52165#endif
52166#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52167#include <netinet/in6_machtypes.h>
52168#endif
52169
52170
52171int
52172main ()
52173{
52174if ((uint16_t *) 0)
52175  return 0;
52176if (sizeof (uint16_t))
52177  return 0;
52178  ;
52179  return 0;
52180}
52181_ACEOF
52182rm -f conftest.$ac_objext
52183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52184  (eval $ac_compile) 2>conftest.er1
52185  ac_status=$?
52186  grep -v '^ *+' conftest.er1 >conftest.err
52187  rm -f conftest.er1
52188  cat conftest.err >&5
52189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52190  (exit $ac_status); } &&
52191	 { ac_try='test -z "$ac_c_werror_flag"
52192			 || test ! -s conftest.err'
52193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52194  (eval $ac_try) 2>&5
52195  ac_status=$?
52196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52197  (exit $ac_status); }; } &&
52198	 { ac_try='test -s conftest.$ac_objext'
52199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52200  (eval $ac_try) 2>&5
52201  ac_status=$?
52202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52203  (exit $ac_status); }; }; then
52204  ac_cv_type_uint16_t=yes
52205else
52206  echo "$as_me: failed program was:" >&5
52207sed 's/^/| /' conftest.$ac_ext >&5
52208
52209ac_cv_type_uint16_t=no
52210fi
52211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52212fi
52213echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
52214echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
52215if test $ac_cv_type_uint16_t = yes; then
52216
52217cat >>confdefs.h <<_ACEOF
52218#define HAVE_UINT16_T 1
52219_ACEOF
52220
52221
52222fi
52223echo "$as_me:$LINENO: checking for uint32_t" >&5
52224echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
52225if test "${ac_cv_type_uint32_t+set}" = set; then
52226  echo $ECHO_N "(cached) $ECHO_C" >&6
52227else
52228  cat >conftest.$ac_ext <<_ACEOF
52229/* confdefs.h.  */
52230_ACEOF
52231cat confdefs.h >>conftest.$ac_ext
52232cat >>conftest.$ac_ext <<_ACEOF
52233/* end confdefs.h.  */
52234
52235#ifdef HAVE_INTTYPES_H
52236#include <inttypes.h>
52237#endif
52238#ifdef HAVE_SYS_TYPES_H
52239#include <sys/types.h>
52240#endif
52241#ifdef HAVE_SYS_BITYPES_H
52242#include <sys/bitypes.h>
52243#endif
52244#ifdef HAVE_BIND_BITYPES_H
52245#include <bind/bitypes.h>
52246#endif
52247#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52248#include <netinet/in6_machtypes.h>
52249#endif
52250
52251
52252int
52253main ()
52254{
52255if ((uint32_t *) 0)
52256  return 0;
52257if (sizeof (uint32_t))
52258  return 0;
52259  ;
52260  return 0;
52261}
52262_ACEOF
52263rm -f conftest.$ac_objext
52264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52265  (eval $ac_compile) 2>conftest.er1
52266  ac_status=$?
52267  grep -v '^ *+' conftest.er1 >conftest.err
52268  rm -f conftest.er1
52269  cat conftest.err >&5
52270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52271  (exit $ac_status); } &&
52272	 { ac_try='test -z "$ac_c_werror_flag"
52273			 || test ! -s conftest.err'
52274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52275  (eval $ac_try) 2>&5
52276  ac_status=$?
52277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52278  (exit $ac_status); }; } &&
52279	 { ac_try='test -s conftest.$ac_objext'
52280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52281  (eval $ac_try) 2>&5
52282  ac_status=$?
52283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52284  (exit $ac_status); }; }; then
52285  ac_cv_type_uint32_t=yes
52286else
52287  echo "$as_me: failed program was:" >&5
52288sed 's/^/| /' conftest.$ac_ext >&5
52289
52290ac_cv_type_uint32_t=no
52291fi
52292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52293fi
52294echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
52295echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
52296if test $ac_cv_type_uint32_t = yes; then
52297
52298cat >>confdefs.h <<_ACEOF
52299#define HAVE_UINT32_T 1
52300_ACEOF
52301
52302
52303fi
52304echo "$as_me:$LINENO: checking for uint64_t" >&5
52305echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
52306if test "${ac_cv_type_uint64_t+set}" = set; then
52307  echo $ECHO_N "(cached) $ECHO_C" >&6
52308else
52309  cat >conftest.$ac_ext <<_ACEOF
52310/* confdefs.h.  */
52311_ACEOF
52312cat confdefs.h >>conftest.$ac_ext
52313cat >>conftest.$ac_ext <<_ACEOF
52314/* end confdefs.h.  */
52315
52316#ifdef HAVE_INTTYPES_H
52317#include <inttypes.h>
52318#endif
52319#ifdef HAVE_SYS_TYPES_H
52320#include <sys/types.h>
52321#endif
52322#ifdef HAVE_SYS_BITYPES_H
52323#include <sys/bitypes.h>
52324#endif
52325#ifdef HAVE_BIND_BITYPES_H
52326#include <bind/bitypes.h>
52327#endif
52328#ifdef HAVE_NETINET_IN6_MACHTYPES_H
52329#include <netinet/in6_machtypes.h>
52330#endif
52331
52332
52333int
52334main ()
52335{
52336if ((uint64_t *) 0)
52337  return 0;
52338if (sizeof (uint64_t))
52339  return 0;
52340  ;
52341  return 0;
52342}
52343_ACEOF
52344rm -f conftest.$ac_objext
52345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52346  (eval $ac_compile) 2>conftest.er1
52347  ac_status=$?
52348  grep -v '^ *+' conftest.er1 >conftest.err
52349  rm -f conftest.er1
52350  cat conftest.err >&5
52351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52352  (exit $ac_status); } &&
52353	 { ac_try='test -z "$ac_c_werror_flag"
52354			 || test ! -s conftest.err'
52355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52356  (eval $ac_try) 2>&5
52357  ac_status=$?
52358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52359  (exit $ac_status); }; } &&
52360	 { ac_try='test -s conftest.$ac_objext'
52361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52362  (eval $ac_try) 2>&5
52363  ac_status=$?
52364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52365  (exit $ac_status); }; }; then
52366  ac_cv_type_uint64_t=yes
52367else
52368  echo "$as_me: failed program was:" >&5
52369sed 's/^/| /' conftest.$ac_ext >&5
52370
52371ac_cv_type_uint64_t=no
52372fi
52373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52374fi
52375echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
52376echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
52377if test $ac_cv_type_uint64_t = yes; then
52378
52379cat >>confdefs.h <<_ACEOF
52380#define HAVE_UINT64_T 1
52381_ACEOF
52382
52383
52384fi
52385
52386
52387
52388
52389
52390
52391echo "$as_me:$LINENO: checking for el_init" >&5
52392echo $ECHO_N "checking for el_init... $ECHO_C" >&6
52393if test "${ac_cv_funclib_el_init+set}" = set; then
52394  echo $ECHO_N "(cached) $ECHO_C" >&6
52395else
52396
52397if eval "test \"\$ac_cv_func_el_init\" != yes" ; then
52398	ac_save_LIBS="$LIBS"
52399	for ac_lib in "" edit; do
52400		case "$ac_lib" in
52401		"") ;;
52402		yes) ac_lib="" ;;
52403		no) continue ;;
52404		-l*) ;;
52405		*) ac_lib="-l$ac_lib" ;;
52406		esac
52407		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
52408		cat >conftest.$ac_ext <<_ACEOF
52409/* confdefs.h.  */
52410_ACEOF
52411cat confdefs.h >>conftest.$ac_ext
52412cat >>conftest.$ac_ext <<_ACEOF
52413/* end confdefs.h.  */
52414
52415int
52416main ()
52417{
52418el_init()
52419  ;
52420  return 0;
52421}
52422_ACEOF
52423rm -f conftest.$ac_objext conftest$ac_exeext
52424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52425  (eval $ac_link) 2>conftest.er1
52426  ac_status=$?
52427  grep -v '^ *+' conftest.er1 >conftest.err
52428  rm -f conftest.er1
52429  cat conftest.err >&5
52430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52431  (exit $ac_status); } &&
52432	 { ac_try='test -z "$ac_c_werror_flag"
52433			 || test ! -s conftest.err'
52434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52435  (eval $ac_try) 2>&5
52436  ac_status=$?
52437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52438  (exit $ac_status); }; } &&
52439	 { ac_try='test -s conftest$ac_exeext'
52440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52441  (eval $ac_try) 2>&5
52442  ac_status=$?
52443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52444  (exit $ac_status); }; }; then
52445  eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break
52446else
52447  echo "$as_me: failed program was:" >&5
52448sed 's/^/| /' conftest.$ac_ext >&5
52449
52450fi
52451rm -f conftest.err conftest.$ac_objext \
52452      conftest$ac_exeext conftest.$ac_ext
52453	done
52454	eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}"
52455	LIBS="$ac_save_LIBS"
52456fi
52457
52458fi
52459
52460
52461eval "ac_res=\$ac_cv_funclib_el_init"
52462
52463if false; then
52464
52465for ac_func in el_init
52466do
52467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52468echo "$as_me:$LINENO: checking for $ac_func" >&5
52469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52470if eval "test \"\${$as_ac_var+set}\" = set"; then
52471  echo $ECHO_N "(cached) $ECHO_C" >&6
52472else
52473  cat >conftest.$ac_ext <<_ACEOF
52474/* confdefs.h.  */
52475_ACEOF
52476cat confdefs.h >>conftest.$ac_ext
52477cat >>conftest.$ac_ext <<_ACEOF
52478/* end confdefs.h.  */
52479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52480   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52481#define $ac_func innocuous_$ac_func
52482
52483/* System header to define __stub macros and hopefully few prototypes,
52484    which can conflict with char $ac_func (); below.
52485    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52486    <limits.h> exists even on freestanding compilers.  */
52487
52488#ifdef __STDC__
52489# include <limits.h>
52490#else
52491# include <assert.h>
52492#endif
52493
52494#undef $ac_func
52495
52496/* Override any gcc2 internal prototype to avoid an error.  */
52497#ifdef __cplusplus
52498extern "C"
52499{
52500#endif
52501/* We use char because int might match the return type of a gcc2
52502   builtin and then its argument prototype would still apply.  */
52503char $ac_func ();
52504/* The GNU C library defines this for functions which it implements
52505    to always fail with ENOSYS.  Some functions are actually named
52506    something starting with __ and the normal name is an alias.  */
52507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52508choke me
52509#else
52510char (*f) () = $ac_func;
52511#endif
52512#ifdef __cplusplus
52513}
52514#endif
52515
52516int
52517main ()
52518{
52519return f != $ac_func;
52520  ;
52521  return 0;
52522}
52523_ACEOF
52524rm -f conftest.$ac_objext conftest$ac_exeext
52525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52526  (eval $ac_link) 2>conftest.er1
52527  ac_status=$?
52528  grep -v '^ *+' conftest.er1 >conftest.err
52529  rm -f conftest.er1
52530  cat conftest.err >&5
52531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52532  (exit $ac_status); } &&
52533	 { ac_try='test -z "$ac_c_werror_flag"
52534			 || test ! -s conftest.err'
52535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52536  (eval $ac_try) 2>&5
52537  ac_status=$?
52538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52539  (exit $ac_status); }; } &&
52540	 { ac_try='test -s conftest$ac_exeext'
52541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52542  (eval $ac_try) 2>&5
52543  ac_status=$?
52544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52545  (exit $ac_status); }; }; then
52546  eval "$as_ac_var=yes"
52547else
52548  echo "$as_me: failed program was:" >&5
52549sed 's/^/| /' conftest.$ac_ext >&5
52550
52551eval "$as_ac_var=no"
52552fi
52553rm -f conftest.err conftest.$ac_objext \
52554      conftest$ac_exeext conftest.$ac_ext
52555fi
52556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52558if test `eval echo '${'$as_ac_var'}'` = yes; then
52559  cat >>confdefs.h <<_ACEOF
52560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52561_ACEOF
52562
52563fi
52564done
52565
52566fi
52567# el_init
52568eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52569eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
52570eval "LIB_el_init=$ac_res"
52571
52572case "$ac_res" in
52573	yes)
52574	eval "ac_cv_func_el_init=yes"
52575	eval "LIB_el_init="
52576	cat >>confdefs.h <<_ACEOF
52577#define $ac_tr_func 1
52578_ACEOF
52579
52580	echo "$as_me:$LINENO: result: yes" >&5
52581echo "${ECHO_T}yes" >&6
52582	;;
52583	no)
52584	eval "ac_cv_func_el_init=no"
52585	eval "LIB_el_init="
52586	echo "$as_me:$LINENO: result: no" >&5
52587echo "${ECHO_T}no" >&6
52588	;;
52589	*)
52590	eval "ac_cv_func_el_init=yes"
52591	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
52592	cat >>confdefs.h <<_ACEOF
52593#define $ac_tr_func 1
52594_ACEOF
52595
52596	cat >>confdefs.h <<_ACEOF
52597#define $ac_tr_lib 1
52598_ACEOF
52599
52600	echo "$as_me:$LINENO: result: yes, in $ac_res" >&5
52601echo "${ECHO_T}yes, in $ac_res" >&6
52602	;;
52603esac
52604
52605
52606if test "$ac_cv_func_el_init" = yes ; then
52607	echo "$as_me:$LINENO: checking for four argument el_init" >&5
52608echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6
52609if test "${ac_cv_func_el_init_four+set}" = set; then
52610  echo $ECHO_N "(cached) $ECHO_C" >&6
52611else
52612
52613		cat >conftest.$ac_ext <<_ACEOF
52614/* confdefs.h.  */
52615_ACEOF
52616cat confdefs.h >>conftest.$ac_ext
52617cat >>conftest.$ac_ext <<_ACEOF
52618/* end confdefs.h.  */
52619#include <stdio.h>
52620			#include <histedit.h>
52621int
52622main ()
52623{
52624el_init("", NULL, NULL, NULL);
52625  ;
52626  return 0;
52627}
52628_ACEOF
52629rm -f conftest.$ac_objext
52630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52631  (eval $ac_compile) 2>conftest.er1
52632  ac_status=$?
52633  grep -v '^ *+' conftest.er1 >conftest.err
52634  rm -f conftest.er1
52635  cat conftest.err >&5
52636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52637  (exit $ac_status); } &&
52638	 { ac_try='test -z "$ac_c_werror_flag"
52639			 || test ! -s conftest.err'
52640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52641  (eval $ac_try) 2>&5
52642  ac_status=$?
52643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52644  (exit $ac_status); }; } &&
52645	 { ac_try='test -s conftest.$ac_objext'
52646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52647  (eval $ac_try) 2>&5
52648  ac_status=$?
52649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52650  (exit $ac_status); }; }; then
52651  ac_cv_func_el_init_four=yes
52652else
52653  echo "$as_me: failed program was:" >&5
52654sed 's/^/| /' conftest.$ac_ext >&5
52655
52656ac_cv_func_el_init_four=no
52657fi
52658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52659fi
52660echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5
52661echo "${ECHO_T}$ac_cv_func_el_init_four" >&6
52662	if test "$ac_cv_func_el_init_four" = yes; then
52663
52664cat >>confdefs.h <<\_ACEOF
52665#define HAVE_FOUR_VALUED_EL_INIT 1
52666_ACEOF
52667
52668	fi
52669fi
52670
52671
52672ac_foo=no
52673if test "$with_readline" = yes; then
52674	:
52675elif test "$ac_cv_func_readline" = yes; then
52676	:
52677elif test "$ac_cv_func_el_init" = yes; then
52678	ac_foo=yes
52679	LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)"
52680else
52681	LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)"
52682fi
52683
52684
52685if test "$ac_foo" = yes; then
52686  el_compat_TRUE=
52687  el_compat_FALSE='#'
52688else
52689  el_compat_TRUE='#'
52690  el_compat_FALSE=
52691fi
52692
52693
52694cat >>confdefs.h <<\_ACEOF
52695#define HAVE_READLINE 1
52696_ACEOF
52697
52698
52699
52700
52701
52702cat >>confdefs.h <<\_ACEOF
52703#define AUTHENTICATION 1
52704_ACEOF
52705
52706cat >>confdefs.h <<\_ACEOF
52707#define ENCRYPTION 1
52708_ACEOF
52709
52710cat >>confdefs.h <<\_ACEOF
52711#define DES_ENCRYPTION 1
52712_ACEOF
52713
52714cat >>confdefs.h <<\_ACEOF
52715#define DIAGNOSTICS 1
52716_ACEOF
52717
52718cat >>confdefs.h <<\_ACEOF
52719#define OLD_ENVIRON 1
52720_ACEOF
52721if false; then
52722
52723cat >>confdefs.h <<\_ACEOF
52724#define ENV_HACK 1
52725_ACEOF
52726
52727fi
52728
52729# Simple test for streamspty, based on the existance of getmsg(), alas
52730# this breaks on SunOS4 which have streams but BSD-like ptys
52731#
52732# And also something wierd has happend with dec-osf1, fallback to bsd-ptys
52733
52734case "$host" in
52735*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*)
52736	;;
52737*)
52738	echo "$as_me:$LINENO: checking for getmsg" >&5
52739echo $ECHO_N "checking for getmsg... $ECHO_C" >&6
52740if test "${ac_cv_func_getmsg+set}" = set; then
52741  echo $ECHO_N "(cached) $ECHO_C" >&6
52742else
52743  cat >conftest.$ac_ext <<_ACEOF
52744/* confdefs.h.  */
52745_ACEOF
52746cat confdefs.h >>conftest.$ac_ext
52747cat >>conftest.$ac_ext <<_ACEOF
52748/* end confdefs.h.  */
52749/* Define getmsg to an innocuous variant, in case <limits.h> declares getmsg.
52750   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52751#define getmsg innocuous_getmsg
52752
52753/* System header to define __stub macros and hopefully few prototypes,
52754    which can conflict with char getmsg (); below.
52755    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52756    <limits.h> exists even on freestanding compilers.  */
52757
52758#ifdef __STDC__
52759# include <limits.h>
52760#else
52761# include <assert.h>
52762#endif
52763
52764#undef getmsg
52765
52766/* Override any gcc2 internal prototype to avoid an error.  */
52767#ifdef __cplusplus
52768extern "C"
52769{
52770#endif
52771/* We use char because int might match the return type of a gcc2
52772   builtin and then its argument prototype would still apply.  */
52773char getmsg ();
52774/* The GNU C library defines this for functions which it implements
52775    to always fail with ENOSYS.  Some functions are actually named
52776    something starting with __ and the normal name is an alias.  */
52777#if defined (__stub_getmsg) || defined (__stub___getmsg)
52778choke me
52779#else
52780char (*f) () = getmsg;
52781#endif
52782#ifdef __cplusplus
52783}
52784#endif
52785
52786int
52787main ()
52788{
52789return f != getmsg;
52790  ;
52791  return 0;
52792}
52793_ACEOF
52794rm -f conftest.$ac_objext conftest$ac_exeext
52795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52796  (eval $ac_link) 2>conftest.er1
52797  ac_status=$?
52798  grep -v '^ *+' conftest.er1 >conftest.err
52799  rm -f conftest.er1
52800  cat conftest.err >&5
52801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52802  (exit $ac_status); } &&
52803	 { ac_try='test -z "$ac_c_werror_flag"
52804			 || test ! -s conftest.err'
52805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52806  (eval $ac_try) 2>&5
52807  ac_status=$?
52808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52809  (exit $ac_status); }; } &&
52810	 { ac_try='test -s conftest$ac_exeext'
52811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52812  (eval $ac_try) 2>&5
52813  ac_status=$?
52814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52815  (exit $ac_status); }; }; then
52816  ac_cv_func_getmsg=yes
52817else
52818  echo "$as_me: failed program was:" >&5
52819sed 's/^/| /' conftest.$ac_ext >&5
52820
52821ac_cv_func_getmsg=no
52822fi
52823rm -f conftest.err conftest.$ac_objext \
52824      conftest$ac_exeext conftest.$ac_ext
52825fi
52826echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5
52827echo "${ECHO_T}$ac_cv_func_getmsg" >&6
52828
52829	if test "$ac_cv_func_getmsg" = "yes"; then
52830		echo "$as_me:$LINENO: checking if getmsg works" >&5
52831echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6
52832if test "${ac_cv_func_getmsg_works+set}" = set; then
52833  echo $ECHO_N "(cached) $ECHO_C" >&6
52834else
52835  if test "$cross_compiling" = yes; then
52836  ac_cv_func_getmsg_works=no
52837else
52838  cat >conftest.$ac_ext <<_ACEOF
52839/* confdefs.h.  */
52840_ACEOF
52841cat confdefs.h >>conftest.$ac_ext
52842cat >>conftest.$ac_ext <<_ACEOF
52843/* end confdefs.h.  */
52844
52845			#include <stdio.h>
52846			#include <errno.h>
52847
52848			int main()
52849			{
52850			  int ret;
52851			  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
52852			  if(ret < 0 && errno == ENOSYS)
52853			    return 1;
52854			  return 0;
52855			}
52856
52857_ACEOF
52858rm -f conftest$ac_exeext
52859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52860  (eval $ac_link) 2>&5
52861  ac_status=$?
52862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52863  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52865  (eval $ac_try) 2>&5
52866  ac_status=$?
52867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52868  (exit $ac_status); }; }; then
52869  ac_cv_func_getmsg_works=yes
52870else
52871  echo "$as_me: program exited with status $ac_status" >&5
52872echo "$as_me: failed program was:" >&5
52873sed 's/^/| /' conftest.$ac_ext >&5
52874
52875( exit $ac_status )
52876ac_cv_func_getmsg_works=no
52877fi
52878rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52879fi
52880fi
52881echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5
52882echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6
52883		if test "$ac_cv_func_getmsg_works" = "yes"; then
52884
52885cat >>confdefs.h <<\_ACEOF
52886#define HAVE_GETMSG 1
52887_ACEOF
52888
52889
52890cat >>confdefs.h <<\_ACEOF
52891#define STREAMSPTY 1
52892_ACEOF
52893
52894		fi
52895	fi
52896	;;
52897esac
52898
52899
52900
52901
52902
52903
52904
52905# Extract the first word of "compile_et", so it can be a program name with args.
52906set dummy compile_et; ac_word=$2
52907echo "$as_me:$LINENO: checking for $ac_word" >&5
52908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52909if test "${ac_cv_prog_COMPILE_ET+set}" = set; then
52910  echo $ECHO_N "(cached) $ECHO_C" >&6
52911else
52912  if test -n "$COMPILE_ET"; then
52913  ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test.
52914else
52915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52916for as_dir in $PATH
52917do
52918  IFS=$as_save_IFS
52919  test -z "$as_dir" && as_dir=.
52920  for ac_exec_ext in '' $ac_executable_extensions; do
52921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52922    ac_cv_prog_COMPILE_ET="compile_et"
52923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52924    break 2
52925  fi
52926done
52927done
52928
52929fi
52930fi
52931COMPILE_ET=$ac_cv_prog_COMPILE_ET
52932if test -n "$COMPILE_ET"; then
52933  echo "$as_me:$LINENO: result: $COMPILE_ET" >&5
52934echo "${ECHO_T}$COMPILE_ET" >&6
52935else
52936  echo "$as_me:$LINENO: result: no" >&5
52937echo "${ECHO_T}no" >&6
52938fi
52939
52940
52941krb_cv_compile_et="no"
52942krb_cv_com_err_need_r=""
52943if test "${COMPILE_ET}" = "compile_et"; then
52944
52945echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5
52946echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6
52947cat > conftest_et.et <<'EOF'
52948error_table test conf
52949prefix CONFTEST
52950index 1
52951error_code CODE1, "CODE1"
52952index 128
52953error_code CODE2, "CODE2"
52954end
52955EOF
52956if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then
52957    save_CPPFLAGS="${CPPFLAGS}"
52958  if test -d "/usr/include/et"; then
52959    CPPFLAGS="-I/usr/include/et ${CPPFLAGS}"
52960  fi
52961    if test "$cross_compiling" = yes; then
52962  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
52963See \`config.log' for more details." >&5
52964echo "$as_me: error: cannot run test program while cross compiling
52965See \`config.log' for more details." >&2;}
52966   { (exit 1); exit 1; }; }
52967else
52968  cat >conftest.$ac_ext <<_ACEOF
52969/* confdefs.h.  */
52970_ACEOF
52971cat confdefs.h >>conftest.$ac_ext
52972cat >>conftest.$ac_ext <<_ACEOF
52973/* end confdefs.h.  */
52974
52975#include <com_err.h>
52976#include <string.h>
52977#include "conftest_et.h"
52978int main(){
52979#ifndef ERROR_TABLE_BASE_conf
52980#error compile_et does not handle error_table N M
52981#endif
52982return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;}
52983
52984_ACEOF
52985rm -f conftest$ac_exeext
52986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52987  (eval $ac_link) 2>&5
52988  ac_status=$?
52989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52990  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52992  (eval $ac_try) 2>&5
52993  ac_status=$?
52994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
52995  (exit $ac_status); }; }; then
52996  krb_cv_compile_et="yes"
52997else
52998  echo "$as_me: program exited with status $ac_status" >&5
52999echo "$as_me: failed program was:" >&5
53000sed 's/^/| /' conftest.$ac_ext >&5
53001
53002( exit $ac_status )
53003CPPFLAGS="${save_CPPFLAGS}"
53004fi
53005rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53006fi
53007fi
53008echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5
53009echo "${ECHO_T}${krb_cv_compile_et}" >&6
53010if test "${krb_cv_compile_et}" = "yes"; then
53011  echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5
53012echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6
53013  cat >conftest.$ac_ext <<_ACEOF
53014/* confdefs.h.  */
53015_ACEOF
53016cat confdefs.h >>conftest.$ac_ext
53017cat >>conftest.$ac_ext <<_ACEOF
53018/* end confdefs.h.  */
53019#include "conftest_et.c"
53020_ACEOF
53021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53022  $EGREP "initialize_error_table_r" >/dev/null 2>&1; then
53023  krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);"
53024fi
53025rm -f conftest*
53026
53027  if test X"$krb_cv_com_err_need_r" = X ; then
53028    echo "$as_me:$LINENO: result: no" >&5
53029echo "${ECHO_T}no" >&6
53030  else
53031    echo "$as_me:$LINENO: result: yes" >&5
53032echo "${ECHO_T}yes" >&6
53033  fi
53034fi
53035rm -fr conftest*
53036fi
53037
53038if test "${krb_cv_compile_et}" = "yes"; then
53039    krb_cv_save_LIBS="${LIBS}"
53040  LIBS="${LIBS} -lcom_err"
53041  echo "$as_me:$LINENO: checking for com_err" >&5
53042echo $ECHO_N "checking for com_err... $ECHO_C" >&6
53043  cat >conftest.$ac_ext <<_ACEOF
53044/* confdefs.h.  */
53045_ACEOF
53046cat confdefs.h >>conftest.$ac_ext
53047cat >>conftest.$ac_ext <<_ACEOF
53048/* end confdefs.h.  */
53049#include <com_err.h>
53050int
53051main ()
53052{
53053
53054    const char *p;
53055    p = error_message(0);
53056    $krb_cv_com_err_need_r
53057
53058  ;
53059  return 0;
53060}
53061_ACEOF
53062rm -f conftest.$ac_objext conftest$ac_exeext
53063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53064  (eval $ac_link) 2>conftest.er1
53065  ac_status=$?
53066  grep -v '^ *+' conftest.er1 >conftest.err
53067  rm -f conftest.er1
53068  cat conftest.err >&5
53069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53070  (exit $ac_status); } &&
53071	 { ac_try='test -z "$ac_c_werror_flag"
53072			 || test ! -s conftest.err'
53073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53074  (eval $ac_try) 2>&5
53075  ac_status=$?
53076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53077  (exit $ac_status); }; } &&
53078	 { ac_try='test -s conftest$ac_exeext'
53079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53080  (eval $ac_try) 2>&5
53081  ac_status=$?
53082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
53083  (exit $ac_status); }; }; then
53084  krb_cv_com_err="yes"
53085else
53086  echo "$as_me: failed program was:" >&5
53087sed 's/^/| /' conftest.$ac_ext >&5
53088
53089krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}"
53090fi
53091rm -f conftest.err conftest.$ac_objext \
53092      conftest$ac_exeext conftest.$ac_ext
53093  echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5
53094echo "${ECHO_T}${krb_cv_com_err}" >&6
53095  LIBS="${krb_cv_save_LIBS}"
53096else
53097    krb_cv_com_err="no"
53098fi
53099
53100if test "${krb_cv_com_err}" = "yes"; then
53101    DIR_com_err=""
53102    LIB_com_err="-lcom_err"
53103    LIB_com_err_a=""
53104    LIB_com_err_so=""
53105    { echo "$as_me:$LINENO: Using the already-installed com_err" >&5
53106echo "$as_me: Using the already-installed com_err" >&6;}
53107else
53108    COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et"
53109    DIR_com_err="com_err"
53110    LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la"
53111    LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a"
53112    LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so"
53113    { echo "$as_me:$LINENO: Using our own com_err" >&5
53114echo "$as_me: Using our own com_err" >&6;}
53115fi
53116
53117
53118
53119
53120
53121
53122
53123
53124echo "$as_me:$LINENO: checking which authentication modules should be built" >&5
53125echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6
53126
53127z='sia afskauthlib'
53128LIB_AUTH_SUBDIRS=
53129for i in $z; do
53130case $i in
53131sia)
53132if test "$ac_cv_header_siad_h" = yes; then
53133	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
53134fi
53135;;
53136pam)
53137case "${host}" in
53138*-*-freebsd*)	ac_cv_want_pam_krb4=no ;;
53139*)		ac_cv_want_pam_krb4=yes ;;
53140esac
53141
53142if test "$ac_cv_want_pam_krb4" = yes -a \
53143    "$ac_cv_header_security_pam_modules_h" = yes -a \
53144    "$enable_shared" = yes; then
53145	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
53146fi
53147;;
53148afskauthlib)
53149case "${host}" in
53150*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
53151esac
53152;;
53153esac
53154done
53155if test "$LIB_AUTH_SUBDIRS"; then
53156	echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5
53157echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6
53158else
53159	echo "$as_me:$LINENO: result: none" >&5
53160echo "${ECHO_T}none" >&6
53161fi
53162
53163
53164
53165
53166# This is done by AC_OUTPUT but we need the result here.
53167test "x$prefix" = xNONE && prefix=$ac_default_prefix
53168test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53169
53170
53171	x="${bindir}"
53172	eval y="$x"
53173	while test "x$y" != "x$x"; do
53174		x="$y"
53175		eval y="$x"
53176	done
53177
53178cat >>confdefs.h <<_ACEOF
53179#define BINDIR "$x"
53180_ACEOF
53181
53182	x="${libdir}"
53183	eval y="$x"
53184	while test "x$y" != "x$x"; do
53185		x="$y"
53186		eval y="$x"
53187	done
53188
53189cat >>confdefs.h <<_ACEOF
53190#define LIBDIR "$x"
53191_ACEOF
53192
53193	x="${libexecdir}"
53194	eval y="$x"
53195	while test "x$y" != "x$x"; do
53196		x="$y"
53197		eval y="$x"
53198	done
53199
53200cat >>confdefs.h <<_ACEOF
53201#define LIBEXECDIR "$x"
53202_ACEOF
53203
53204	x="${localstatedir}"
53205	eval y="$x"
53206	while test "x$y" != "x$x"; do
53207		x="$y"
53208		eval y="$x"
53209	done
53210
53211cat >>confdefs.h <<_ACEOF
53212#define LOCALSTATEDIR "$x"
53213_ACEOF
53214
53215	x="${sbindir}"
53216	eval y="$x"
53217	while test "x$y" != "x$x"; do
53218		x="$y"
53219		eval y="$x"
53220	done
53221
53222cat >>confdefs.h <<_ACEOF
53223#define SBINDIR "$x"
53224_ACEOF
53225
53226	x="${sysconfdir}"
53227	eval y="$x"
53228	while test "x$y" != "x$x"; do
53229		x="$y"
53230		eval y="$x"
53231	done
53232
53233cat >>confdefs.h <<_ACEOF
53234#define SYSCONFDIR "$x"
53235_ACEOF
53236
53237
53238
53239LTLIBOBJS=`echo "$LIBOBJS" |
53240	sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
53241
53242
53243
53244
53245
53246                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ac_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"
53247
53248
53249cat >confcache <<\_ACEOF
53250# This file is a shell script that caches the results of configure
53251# tests run on this system so they can be shared between configure
53252# scripts and configure runs, see configure's option --config-cache.
53253# It is not useful on other systems.  If it contains results you don't
53254# want to keep, you may remove or edit it.
53255#
53256# config.status only pays attention to the cache file if you give it
53257# the --recheck option to rerun configure.
53258#
53259# `ac_cv_env_foo' variables (set or unset) will be overridden when
53260# loading this file, other *unset* `ac_cv_foo' will be assigned the
53261# following values.
53262
53263_ACEOF
53264
53265# The following way of writing the cache mishandles newlines in values,
53266# but we know of no workaround that is simple, portable, and efficient.
53267# So, don't put newlines in cache variables' values.
53268# Ultrix sh set writes to stderr and can't be redirected directly,
53269# and sets the high bit in the cache file unless we assign to the vars.
53270{
53271  (set) 2>&1 |
53272    case `(ac_space=' '; set | grep ac_space) 2>&1` in
53273    *ac_space=\ *)
53274      # `set' does not quote correctly, so add quotes (double-quote
53275      # substitution turns \\\\ into \\, and sed turns \\ into \).
53276      sed -n \
53277	"s/'/'\\\\''/g;
53278	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53279      ;;
53280    *)
53281      # `set' quotes correctly as required by POSIX, so do not add quotes.
53282      sed -n \
53283	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
53284      ;;
53285    esac;
53286} |
53287  sed '
53288     t clear
53289     : clear
53290     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53291     t end
53292     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53293     : end' >>confcache
53294if diff $cache_file confcache >/dev/null 2>&1; then :; else
53295  if test -w $cache_file; then
53296    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53297    cat confcache >$cache_file
53298  else
53299    echo "not updating unwritable cache $cache_file"
53300  fi
53301fi
53302rm -f confcache
53303
53304test "x$prefix" = xNONE && prefix=$ac_default_prefix
53305# Let make expand exec_prefix.
53306test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53307
53308# VPATH may cause trouble with some makes, so we remove $(srcdir),
53309# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53310# trailing colons and then remove the whole line if VPATH becomes empty
53311# (actually we leave an empty line to preserve line numbers).
53312if test "x$srcdir" = x.; then
53313  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
53314s/:*\$(srcdir):*/:/;
53315s/:*\${srcdir}:*/:/;
53316s/:*@srcdir@:*/:/;
53317s/^\([^=]*=[	 ]*\):*/\1/;
53318s/:*$//;
53319s/^[^=]*=[	 ]*$//;
53320}'
53321fi
53322
53323DEFS=-DHAVE_CONFIG_H
53324
53325ac_libobjs=
53326ac_ltlibobjs=
53327for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53328  # 1. Remove the extension, and $U if already installed.
53329  ac_i=`echo "$ac_i" |
53330	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53331  # 2. Add them.
53332  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53333  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53334done
53335LIBOBJS=$ac_libobjs
53336
53337LTLIBOBJS=$ac_ltlibobjs
53338
53339
53340if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
53341  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
53342Usually this means the macro was only invoked conditionally." >&5
53343echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
53344Usually this means the macro was only invoked conditionally." >&2;}
53345   { (exit 1); exit 1; }; }
53346fi
53347if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then
53348  { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined.
53349Usually this means the macro was only invoked conditionally." >&5
53350echo "$as_me: error: conditional \"KRB4\" was never defined.
53351Usually this means the macro was only invoked conditionally." >&2;}
53352   { (exit 1); exit 1; }; }
53353fi
53354if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then
53355  { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined.
53356Usually this means the macro was only invoked conditionally." >&5
53357echo "$as_me: error: conditional \"KRB5\" was never defined.
53358Usually this means the macro was only invoked conditionally." >&2;}
53359   { (exit 1); exit 1; }; }
53360fi
53361if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then
53362  { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined.
53363Usually this means the macro was only invoked conditionally." >&5
53364echo "$as_me: error: conditional \"do_roken_rename\" was never defined.
53365Usually this means the macro was only invoked conditionally." >&2;}
53366   { (exit 1); exit 1; }; }
53367fi
53368if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then
53369  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined.
53370Usually this means the macro was only invoked conditionally." >&5
53371echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined.
53372Usually this means the macro was only invoked conditionally." >&2;}
53373   { (exit 1); exit 1; }; }
53374fi
53375if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then
53376  { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined.
53377Usually this means the macro was only invoked conditionally." >&5
53378echo "$as_me: error: conditional \"DCE\" was never defined.
53379Usually this means the macro was only invoked conditionally." >&2;}
53380   { (exit 1); exit 1; }; }
53381fi
53382if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then
53383  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined.
53384Usually this means the macro was only invoked conditionally." >&5
53385echo "$as_me: error: conditional \"HAVE_DB1\" was never defined.
53386Usually this means the macro was only invoked conditionally." >&2;}
53387   { (exit 1); exit 1; }; }
53388fi
53389if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then
53390  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined.
53391Usually this means the macro was only invoked conditionally." >&5
53392echo "$as_me: error: conditional \"HAVE_DB3\" was never defined.
53393Usually this means the macro was only invoked conditionally." >&2;}
53394   { (exit 1); exit 1; }; }
53395fi
53396if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then
53397  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined.
53398Usually this means the macro was only invoked conditionally." >&5
53399echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined.
53400Usually this means the macro was only invoked conditionally." >&2;}
53401   { (exit 1); exit 1; }; }
53402fi
53403if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then
53404  { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined.
53405Usually this means the macro was only invoked conditionally." >&5
53406echo "$as_me: error: conditional \"have_err_h\" was never defined.
53407Usually this means the macro was only invoked conditionally." >&2;}
53408   { (exit 1); exit 1; }; }
53409fi
53410if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then
53411  { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined.
53412Usually this means the macro was only invoked conditionally." >&5
53413echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined.
53414Usually this means the macro was only invoked conditionally." >&2;}
53415   { (exit 1); exit 1; }; }
53416fi
53417if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then
53418  { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined.
53419Usually this means the macro was only invoked conditionally." >&5
53420echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined.
53421Usually this means the macro was only invoked conditionally." >&2;}
53422   { (exit 1); exit 1; }; }
53423fi
53424if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then
53425  { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined.
53426Usually this means the macro was only invoked conditionally." >&5
53427echo "$as_me: error: conditional \"have_vis_h\" was never defined.
53428Usually this means the macro was only invoked conditionally." >&2;}
53429   { (exit 1); exit 1; }; }
53430fi
53431if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then
53432  { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined.
53433Usually this means the macro was only invoked conditionally." >&5
53434echo "$as_me: error: conditional \"have_glob_h\" was never defined.
53435Usually this means the macro was only invoked conditionally." >&2;}
53436   { (exit 1); exit 1; }; }
53437fi
53438if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then
53439  { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined.
53440Usually this means the macro was only invoked conditionally." >&5
53441echo "$as_me: error: conditional \"OTP\" was never defined.
53442Usually this means the macro was only invoked conditionally." >&2;}
53443   { (exit 1); exit 1; }; }
53444fi
53445if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then
53446  { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined.
53447Usually this means the macro was only invoked conditionally." >&5
53448echo "$as_me: error: conditional \"CATMAN\" was never defined.
53449Usually this means the macro was only invoked conditionally." >&2;}
53450   { (exit 1); exit 1; }; }
53451fi
53452if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then
53453  { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined.
53454Usually this means the macro was only invoked conditionally." >&5
53455echo "$as_me: error: conditional \"AIX\" was never defined.
53456Usually this means the macro was only invoked conditionally." >&2;}
53457   { (exit 1); exit 1; }; }
53458fi
53459if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then
53460  { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined.
53461Usually this means the macro was only invoked conditionally." >&5
53462echo "$as_me: error: conditional \"AIX4\" was never defined.
53463Usually this means the macro was only invoked conditionally." >&2;}
53464   { (exit 1); exit 1; }; }
53465fi
53466if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then
53467  { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined.
53468Usually this means the macro was only invoked conditionally." >&5
53469echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined.
53470Usually this means the macro was only invoked conditionally." >&2;}
53471   { (exit 1); exit 1; }; }
53472fi
53473if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then
53474  { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53475Usually this means the macro was only invoked conditionally." >&5
53476echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined.
53477Usually this means the macro was only invoked conditionally." >&2;}
53478   { (exit 1); exit 1; }; }
53479fi
53480if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then
53481  { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined.
53482Usually this means the macro was only invoked conditionally." >&5
53483echo "$as_me: error: conditional \"IRIX\" was never defined.
53484Usually this means the macro was only invoked conditionally." >&2;}
53485   { (exit 1); exit 1; }; }
53486fi
53487if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then
53488  { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined.
53489Usually this means the macro was only invoked conditionally." >&5
53490echo "$as_me: error: conditional \"HAVE_X\" was never defined.
53491Usually this means the macro was only invoked conditionally." >&2;}
53492   { (exit 1); exit 1; }; }
53493fi
53494if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then
53495  { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined.
53496Usually this means the macro was only invoked conditionally." >&5
53497echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined.
53498Usually this means the macro was only invoked conditionally." >&2;}
53499   { (exit 1); exit 1; }; }
53500fi
53501if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then
53502  { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined.
53503Usually this means the macro was only invoked conditionally." >&5
53504echo "$as_me: error: conditional \"el_compat\" was never defined.
53505Usually this means the macro was only invoked conditionally." >&2;}
53506   { (exit 1); exit 1; }; }
53507fi
53508
53509: ${CONFIG_STATUS=./config.status}
53510ac_clean_files_save=$ac_clean_files
53511ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53512{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53513echo "$as_me: creating $CONFIG_STATUS" >&6;}
53514cat >$CONFIG_STATUS <<_ACEOF
53515#! $SHELL
53516# Generated by $as_me.
53517# Run this file to recreate the current configuration.
53518# Compiler output produced by configure, useful for debugging
53519# configure, is in config.log if it exists.
53520
53521debug=false
53522ac_cs_recheck=false
53523ac_cs_silent=false
53524SHELL=\${CONFIG_SHELL-$SHELL}
53525_ACEOF
53526
53527cat >>$CONFIG_STATUS <<\_ACEOF
53528## --------------------- ##
53529## M4sh Initialization.  ##
53530## --------------------- ##
53531
53532# Be Bourne compatible
53533if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53534  emulate sh
53535  NULLCMD=:
53536  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53537  # is contrary to our usage.  Disable this feature.
53538  alias -g '${1+"$@"}'='"$@"'
53539elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53540  set -o posix
53541fi
53542DUALCASE=1; export DUALCASE # for MKS sh
53543
53544# Support unset when possible.
53545if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53546  as_unset=unset
53547else
53548  as_unset=false
53549fi
53550
53551
53552# Work around bugs in pre-3.0 UWIN ksh.
53553$as_unset ENV MAIL MAILPATH
53554PS1='$ '
53555PS2='> '
53556PS4='+ '
53557
53558# NLS nuisances.
53559for as_var in \
53560  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53561  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53562  LC_TELEPHONE LC_TIME
53563do
53564  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53565    eval $as_var=C; export $as_var
53566  else
53567    $as_unset $as_var
53568  fi
53569done
53570
53571# Required to use basename.
53572if expr a : '\(a\)' >/dev/null 2>&1; then
53573  as_expr=expr
53574else
53575  as_expr=false
53576fi
53577
53578if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53579  as_basename=basename
53580else
53581  as_basename=false
53582fi
53583
53584
53585# Name of the executable.
53586as_me=`$as_basename "$0" ||
53587$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53588	 X"$0" : 'X\(//\)$' \| \
53589	 X"$0" : 'X\(/\)$' \| \
53590	 .     : '\(.\)' 2>/dev/null ||
53591echo X/"$0" |
53592    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53593  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
53594  	  /^X\/\(\/\).*/{ s//\1/; q; }
53595  	  s/.*/./; q'`
53596
53597
53598# PATH needs CR, and LINENO needs CR and PATH.
53599# Avoid depending upon Character Ranges.
53600as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53601as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53602as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53603as_cr_digits='0123456789'
53604as_cr_alnum=$as_cr_Letters$as_cr_digits
53605
53606# The user is always right.
53607if test "${PATH_SEPARATOR+set}" != set; then
53608  echo "#! /bin/sh" >conf$$.sh
53609  echo  "exit 0"   >>conf$$.sh
53610  chmod +x conf$$.sh
53611  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53612    PATH_SEPARATOR=';'
53613  else
53614    PATH_SEPARATOR=:
53615  fi
53616  rm -f conf$$.sh
53617fi
53618
53619
53620  as_lineno_1=$LINENO
53621  as_lineno_2=$LINENO
53622  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53623  test "x$as_lineno_1" != "x$as_lineno_2" &&
53624  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53625  # Find who we are.  Look in the path if we contain no path at all
53626  # relative or not.
53627  case $0 in
53628    *[\\/]* ) as_myself=$0 ;;
53629    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53630for as_dir in $PATH
53631do
53632  IFS=$as_save_IFS
53633  test -z "$as_dir" && as_dir=.
53634  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53635done
53636
53637       ;;
53638  esac
53639  # We did not find ourselves, most probably we were run as `sh COMMAND'
53640  # in which case we are not to be found in the path.
53641  if test "x$as_myself" = x; then
53642    as_myself=$0
53643  fi
53644  if test ! -f "$as_myself"; then
53645    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53646echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53647   { (exit 1); exit 1; }; }
53648  fi
53649  case $CONFIG_SHELL in
53650  '')
53651    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53652for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53653do
53654  IFS=$as_save_IFS
53655  test -z "$as_dir" && as_dir=.
53656  for as_base in sh bash ksh sh5; do
53657	 case $as_dir in
53658	 /*)
53659	   if ("$as_dir/$as_base" -c '
53660  as_lineno_1=$LINENO
53661  as_lineno_2=$LINENO
53662  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53663  test "x$as_lineno_1" != "x$as_lineno_2" &&
53664  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53665	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53666	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53667	     CONFIG_SHELL=$as_dir/$as_base
53668	     export CONFIG_SHELL
53669	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53670	   fi;;
53671	 esac
53672       done
53673done
53674;;
53675  esac
53676
53677  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53678  # uniformly replaced by the line number.  The first 'sed' inserts a
53679  # line-number line before each line; the second 'sed' does the real
53680  # work.  The second script uses 'N' to pair each line-number line
53681  # with the numbered line, and appends trailing '-' during
53682  # substitution so that $LINENO is not a special case at line end.
53683  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53684  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53685  sed '=' <$as_myself |
53686    sed '
53687      N
53688      s,$,-,
53689      : loop
53690      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53691      t loop
53692      s,-$,,
53693      s,^['$as_cr_digits']*\n,,
53694    ' >$as_me.lineno &&
53695  chmod +x $as_me.lineno ||
53696    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53697echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53698   { (exit 1); exit 1; }; }
53699
53700  # Don't try to exec as it changes $[0], causing all sort of problems
53701  # (the dirname of $[0] is not the place where we might find the
53702  # original and so on.  Autoconf is especially sensible to this).
53703  . ./$as_me.lineno
53704  # Exit status is that of the last command.
53705  exit
53706}
53707
53708
53709case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53710  *c*,-n*) ECHO_N= ECHO_C='
53711' ECHO_T='	' ;;
53712  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53713  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53714esac
53715
53716if expr a : '\(a\)' >/dev/null 2>&1; then
53717  as_expr=expr
53718else
53719  as_expr=false
53720fi
53721
53722rm -f conf$$ conf$$.exe conf$$.file
53723echo >conf$$.file
53724if ln -s conf$$.file conf$$ 2>/dev/null; then
53725  # We could just check for DJGPP; but this test a) works b) is more generic
53726  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53727  if test -f conf$$.exe; then
53728    # Don't use ln at all; we don't have any links
53729    as_ln_s='cp -p'
53730  else
53731    as_ln_s='ln -s'
53732  fi
53733elif ln conf$$.file conf$$ 2>/dev/null; then
53734  as_ln_s=ln
53735else
53736  as_ln_s='cp -p'
53737fi
53738rm -f conf$$ conf$$.exe conf$$.file
53739
53740if mkdir -p . 2>/dev/null; then
53741  as_mkdir_p=:
53742else
53743  test -d ./-p && rmdir ./-p
53744  as_mkdir_p=false
53745fi
53746
53747as_executable_p="test -f"
53748
53749# Sed expression to map a string onto a valid CPP name.
53750as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53751
53752# Sed expression to map a string onto a valid variable name.
53753as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53754
53755
53756# IFS
53757# We need space, tab and new line, in precisely that order.
53758as_nl='
53759'
53760IFS=" 	$as_nl"
53761
53762# CDPATH.
53763$as_unset CDPATH
53764
53765exec 6>&1
53766
53767# Open the log real soon, to keep \$[0] and so on meaningful, and to
53768# report actual input values of CONFIG_FILES etc. instead of their
53769# values after options handling.  Logging --version etc. is OK.
53770exec 5>>config.log
53771{
53772  echo
53773  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53774## Running $as_me. ##
53775_ASBOX
53776} >&5
53777cat >&5 <<_CSEOF
53778
53779This file was extended by Heimdal $as_me 0.6.1, which was
53780generated by GNU Autoconf 2.59.  Invocation command line was
53781
53782  CONFIG_FILES    = $CONFIG_FILES
53783  CONFIG_HEADERS  = $CONFIG_HEADERS
53784  CONFIG_LINKS    = $CONFIG_LINKS
53785  CONFIG_COMMANDS = $CONFIG_COMMANDS
53786  $ $0 $@
53787
53788_CSEOF
53789echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53790echo >&5
53791_ACEOF
53792
53793# Files that config.status was made for.
53794if test -n "$ac_config_files"; then
53795  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53796fi
53797
53798if test -n "$ac_config_headers"; then
53799  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53800fi
53801
53802if test -n "$ac_config_links"; then
53803  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53804fi
53805
53806if test -n "$ac_config_commands"; then
53807  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53808fi
53809
53810cat >>$CONFIG_STATUS <<\_ACEOF
53811
53812ac_cs_usage="\
53813\`$as_me' instantiates files from templates according to the
53814current configuration.
53815
53816Usage: $0 [OPTIONS] [FILE]...
53817
53818  -h, --help       print this help, then exit
53819  -V, --version    print version number, then exit
53820  -q, --quiet      do not print progress messages
53821  -d, --debug      don't remove temporary files
53822      --recheck    update $as_me by reconfiguring in the same conditions
53823  --file=FILE[:TEMPLATE]
53824		   instantiate the configuration file FILE
53825  --header=FILE[:TEMPLATE]
53826		   instantiate the configuration header FILE
53827
53828Configuration files:
53829$config_files
53830
53831Configuration headers:
53832$config_headers
53833
53834Report bugs to <bug-autoconf@gnu.org>."
53835_ACEOF
53836
53837cat >>$CONFIG_STATUS <<_ACEOF
53838ac_cs_version="\\
53839Heimdal config.status 0.6.1
53840configured by $0, generated by GNU Autoconf 2.59,
53841  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53842
53843Copyright (C) 2003 Free Software Foundation, Inc.
53844This config.status script is free software; the Free Software Foundation
53845gives unlimited permission to copy, distribute and modify it."
53846srcdir=$srcdir
53847INSTALL="$INSTALL"
53848_ACEOF
53849
53850cat >>$CONFIG_STATUS <<\_ACEOF
53851# If no file are specified by the user, then we need to provide default
53852# value.  By we need to know if files were specified by the user.
53853ac_need_defaults=:
53854while test $# != 0
53855do
53856  case $1 in
53857  --*=*)
53858    ac_option=`expr "x$1" : 'x\([^=]*\)='`
53859    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53860    ac_shift=:
53861    ;;
53862  -*)
53863    ac_option=$1
53864    ac_optarg=$2
53865    ac_shift=shift
53866    ;;
53867  *) # This is not an option, so the user has probably given explicit
53868     # arguments.
53869     ac_option=$1
53870     ac_need_defaults=false;;
53871  esac
53872
53873  case $ac_option in
53874  # Handling of the options.
53875_ACEOF
53876cat >>$CONFIG_STATUS <<\_ACEOF
53877  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53878    ac_cs_recheck=: ;;
53879  --version | --vers* | -V )
53880    echo "$ac_cs_version"; exit 0 ;;
53881  --he | --h)
53882    # Conflict between --help and --header
53883    { { echo "$as_me:$LINENO: error: ambiguous option: $1
53884Try \`$0 --help' for more information." >&5
53885echo "$as_me: error: ambiguous option: $1
53886Try \`$0 --help' for more information." >&2;}
53887   { (exit 1); exit 1; }; };;
53888  --help | --hel | -h )
53889    echo "$ac_cs_usage"; exit 0 ;;
53890  --debug | --d* | -d )
53891    debug=: ;;
53892  --file | --fil | --fi | --f )
53893    $ac_shift
53894    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53895    ac_need_defaults=false;;
53896  --header | --heade | --head | --hea )
53897    $ac_shift
53898    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53899    ac_need_defaults=false;;
53900  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53901  | -silent | --silent | --silen | --sile | --sil | --si | --s)
53902    ac_cs_silent=: ;;
53903
53904  # This is an error.
53905  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53906Try \`$0 --help' for more information." >&5
53907echo "$as_me: error: unrecognized option: $1
53908Try \`$0 --help' for more information." >&2;}
53909   { (exit 1); exit 1; }; } ;;
53910
53911  *) ac_config_targets="$ac_config_targets $1" ;;
53912
53913  esac
53914  shift
53915done
53916
53917ac_configure_extra_args=
53918
53919if $ac_cs_silent; then
53920  exec 6>/dev/null
53921  ac_configure_extra_args="$ac_configure_extra_args --silent"
53922fi
53923
53924_ACEOF
53925cat >>$CONFIG_STATUS <<_ACEOF
53926if \$ac_cs_recheck; then
53927  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53928  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53929fi
53930
53931_ACEOF
53932
53933
53934
53935
53936
53937cat >>$CONFIG_STATUS <<\_ACEOF
53938for ac_config_target in $ac_config_targets
53939do
53940  case "$ac_config_target" in
53941  # Handling of arguments.
53942  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53943  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
53944  "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;;
53945  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
53946  "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;;
53947  "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
53948  "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;;
53949  "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;;
53950  "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;;
53951  "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;;
53952  "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;;
53953  "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;;
53954  "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;;
53955  "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;;
53956  "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;;
53957  "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;;
53958  "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;;
53959  "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;;
53960  "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;;
53961  "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;;
53962  "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;;
53963  "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;;
53964  "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;;
53965  "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;;
53966  "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;;
53967  "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;;
53968  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
53969  "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;;
53970  "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;;
53971  "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;;
53972  "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;;
53973  "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;;
53974  "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;;
53975  "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;;
53976  "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;;
53977  "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;;
53978  "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;;
53979  "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;;
53980  "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;;
53981  "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;;
53982  "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;;
53983  "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;;
53984  "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;;
53985  "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;;
53986  "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;;
53987  "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;;
53988  "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;;
53989  "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;;
53990  "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;;
53991  "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;;
53992  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
53993  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
53994  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
53995  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53996echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53997   { (exit 1); exit 1; }; };;
53998  esac
53999done
54000
54001# If the user did not use the arguments to specify the items to instantiate,
54002# then the envvar interface is used.  Set only those that are not.
54003# We use the long form for the default assignment because of an extremely
54004# bizarre bug on SunOS 4.1.3.
54005if $ac_need_defaults; then
54006  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54007  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54008fi
54009
54010# Have a temporary directory for convenience.  Make it in the build tree
54011# simply because there is no reason to put it here, and in addition,
54012# creating and moving files from /tmp can sometimes cause problems.
54013# Create a temporary directory, and hook for its removal unless debugging.
54014$debug ||
54015{
54016  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
54017  trap '{ (exit 1); exit 1; }' 1 2 13 15
54018}
54019
54020# Create a (secure) tmp directory for tmp files.
54021
54022{
54023  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
54024  test -n "$tmp" && test -d "$tmp"
54025}  ||
54026{
54027  tmp=./confstat$$-$RANDOM
54028  (umask 077 && mkdir $tmp)
54029} ||
54030{
54031   echo "$me: cannot create a temporary directory in ." >&2
54032   { (exit 1); exit 1; }
54033}
54034
54035_ACEOF
54036
54037cat >>$CONFIG_STATUS <<_ACEOF
54038
54039#
54040# CONFIG_FILES section.
54041#
54042
54043# No need to generate the scripts if there are no CONFIG_FILES.
54044# This happens for instance when ./config.status config.h
54045if test -n "\$CONFIG_FILES"; then
54046  # Protect against being on the right side of a sed subst in config.status.
54047  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
54048   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
54049s,@SHELL@,$SHELL,;t t
54050s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
54051s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
54052s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
54053s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
54054s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
54055s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
54056s,@exec_prefix@,$exec_prefix,;t t
54057s,@prefix@,$prefix,;t t
54058s,@program_transform_name@,$program_transform_name,;t t
54059s,@bindir@,$bindir,;t t
54060s,@sbindir@,$sbindir,;t t
54061s,@libexecdir@,$libexecdir,;t t
54062s,@datadir@,$datadir,;t t
54063s,@sysconfdir@,$sysconfdir,;t t
54064s,@sharedstatedir@,$sharedstatedir,;t t
54065s,@localstatedir@,$localstatedir,;t t
54066s,@libdir@,$libdir,;t t
54067s,@includedir@,$includedir,;t t
54068s,@oldincludedir@,$oldincludedir,;t t
54069s,@infodir@,$infodir,;t t
54070s,@mandir@,$mandir,;t t
54071s,@build_alias@,$build_alias,;t t
54072s,@host_alias@,$host_alias,;t t
54073s,@target_alias@,$target_alias,;t t
54074s,@DEFS@,$DEFS,;t t
54075s,@ECHO_C@,$ECHO_C,;t t
54076s,@ECHO_N@,$ECHO_N,;t t
54077s,@ECHO_T@,$ECHO_T,;t t
54078s,@LIBS@,$LIBS,;t t
54079s,@CC@,$CC,;t t
54080s,@CFLAGS@,$CFLAGS,;t t
54081s,@LDFLAGS@,$LDFLAGS,;t t
54082s,@CPPFLAGS@,$CPPFLAGS,;t t
54083s,@ac_ct_CC@,$ac_ct_CC,;t t
54084s,@EXEEXT@,$EXEEXT,;t t
54085s,@OBJEXT@,$OBJEXT,;t t
54086s,@CPP@,$CPP,;t t
54087s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
54088s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
54089s,@INSTALL_DATA@,$INSTALL_DATA,;t t
54090s,@CYGPATH_W@,$CYGPATH_W,;t t
54091s,@PACKAGE@,$PACKAGE,;t t
54092s,@VERSION@,$VERSION,;t t
54093s,@ACLOCAL@,$ACLOCAL,;t t
54094s,@AUTOCONF@,$AUTOCONF,;t t
54095s,@AUTOMAKE@,$AUTOMAKE,;t t
54096s,@AUTOHEADER@,$AUTOHEADER,;t t
54097s,@MAKEINFO@,$MAKEINFO,;t t
54098s,@AMTAR@,$AMTAR,;t t
54099s,@install_sh@,$install_sh,;t t
54100s,@STRIP@,$STRIP,;t t
54101s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
54102s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
54103s,@AWK@,$AWK,;t t
54104s,@SET_MAKE@,$SET_MAKE,;t t
54105s,@am__leading_dot@,$am__leading_dot,;t t
54106s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
54107s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
54108s,@MAINT@,$MAINT,;t t
54109s,@build@,$build,;t t
54110s,@build_cpu@,$build_cpu,;t t
54111s,@build_vendor@,$build_vendor,;t t
54112s,@build_os@,$build_os,;t t
54113s,@host@,$host,;t t
54114s,@host_cpu@,$host_cpu,;t t
54115s,@host_vendor@,$host_vendor,;t t
54116s,@host_os@,$host_os,;t t
54117s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t
54118s,@YACC@,$YACC,;t t
54119s,@LEX@,$LEX,;t t
54120s,@LEXLIB@,$LEXLIB,;t t
54121s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
54122s,@LN_S@,$LN_S,;t t
54123s,@EGREP@,$EGREP,;t t
54124s,@ECHO@,$ECHO,;t t
54125s,@AR@,$AR,;t t
54126s,@ac_ct_AR@,$ac_ct_AR,;t t
54127s,@RANLIB@,$RANLIB,;t t
54128s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
54129s,@CXX@,$CXX,;t t
54130s,@CXXFLAGS@,$CXXFLAGS,;t t
54131s,@ac_ct_CXX@,$ac_ct_CXX,;t t
54132s,@CXXCPP@,$CXXCPP,;t t
54133s,@F77@,$F77,;t t
54134s,@FFLAGS@,$FFLAGS,;t t
54135s,@ac_ct_F77@,$ac_ct_F77,;t t
54136s,@LIBTOOL@,$LIBTOOL,;t t
54137s,@WFLAGS@,$WFLAGS,;t t
54138s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t
54139s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t
54140s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t
54141s,@LIB_openldap@,$LIB_openldap,;t t
54142s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t
54143s,@LIB_krb4@,$LIB_krb4,;t t
54144s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t
54145s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t
54146s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t
54147s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t
54148s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t
54149s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t
54150s,@KRB4_TRUE@,$KRB4_TRUE,;t t
54151s,@KRB4_FALSE@,$KRB4_FALSE,;t t
54152s,@KRB5_TRUE@,$KRB5_TRUE,;t t
54153s,@KRB5_FALSE@,$KRB5_FALSE,;t t
54154s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t
54155s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t
54156s,@LIB_kdb@,$LIB_kdb,;t t
54157s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t
54158s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t
54159s,@DIR_des@,$DIR_des,;t t
54160s,@INCLUDE_des@,$INCLUDE_des,;t t
54161s,@LIB_des@,$LIB_des,;t t
54162s,@LIB_des_a@,$LIB_des_a,;t t
54163s,@LIB_des_so@,$LIB_des_so,;t t
54164s,@LIB_des_appl@,$LIB_des_appl,;t t
54165s,@DCE_TRUE@,$DCE_TRUE,;t t
54166s,@DCE_FALSE@,$DCE_FALSE,;t t
54167s,@dpagaix_cflags@,$dpagaix_cflags,;t t
54168s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t
54169s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t
54170s,@LIB_db_create@,$LIB_db_create,;t t
54171s,@LIB_dbopen@,$LIB_dbopen,;t t
54172s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t
54173s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t
54174s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t
54175s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t
54176s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t
54177s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t
54178s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t
54179s,@DBLIB@,$DBLIB,;t t
54180s,@LIB_NDBM@,$LIB_NDBM,;t t
54181s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t
54182s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t
54183s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t
54184s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t
54185s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t
54186s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t
54187s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t
54188s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t
54189s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t
54190s,@LIB_socket@,$LIB_socket,;t t
54191s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t
54192s,@LIB_syslog@,$LIB_syslog,;t t
54193s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t
54194s,@LIB_res_search@,$LIB_res_search,;t t
54195s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t
54196s,@LIB_dn_expand@,$LIB_dn_expand,;t t
54197s,@LIBOBJS@,$LIBOBJS,;t t
54198s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t
54199s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t
54200s,@LIB_getsockopt@,$LIB_getsockopt,;t t
54201s,@LIB_setsockopt@,$LIB_setsockopt,;t t
54202s,@LIB_hstrerror@,$LIB_hstrerror,;t t
54203s,@LIB_bswap16@,$LIB_bswap16,;t t
54204s,@LIB_bswap32@,$LIB_bswap32,;t t
54205s,@LIB_pidfile@,$LIB_pidfile,;t t
54206s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t
54207s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t
54208s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t
54209s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t
54210s,@LIB_crypt@,$LIB_crypt,;t t
54211s,@DIR_roken@,$DIR_roken,;t t
54212s,@LIB_roken@,$LIB_roken,;t t
54213s,@INCLUDES_roken@,$INCLUDES_roken,;t t
54214s,@LIB_otp@,$LIB_otp,;t t
54215s,@OTP_TRUE@,$OTP_TRUE,;t t
54216s,@OTP_FALSE@,$OTP_FALSE,;t t
54217s,@LIB_security@,$LIB_security,;t t
54218s,@NROFF@,$NROFF,;t t
54219s,@GROFF@,$GROFF,;t t
54220s,@CATMAN@,$CATMAN,;t t
54221s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t
54222s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t
54223s,@CATMANEXT@,$CATMANEXT,;t t
54224s,@INCLUDE_readline@,$INCLUDE_readline,;t t
54225s,@LIB_readline@,$LIB_readline,;t t
54226s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t
54227s,@LIB_hesiod@,$LIB_hesiod,;t t
54228s,@AIX_TRUE@,$AIX_TRUE,;t t
54229s,@AIX_FALSE@,$AIX_FALSE,;t t
54230s,@AIX4_TRUE@,$AIX4_TRUE,;t t
54231s,@AIX4_FALSE@,$AIX4_FALSE,;t t
54232s,@LIB_dlopen@,$LIB_dlopen,;t t
54233s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t
54234s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t
54235s,@LIB_loadquery@,$LIB_loadquery,;t t
54236s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t
54237s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t
54238s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t
54239s,@IRIX_TRUE@,$IRIX_TRUE,;t t
54240s,@IRIX_FALSE@,$IRIX_FALSE,;t t
54241s,@X_CFLAGS@,$X_CFLAGS,;t t
54242s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
54243s,@X_LIBS@,$X_LIBS,;t t
54244s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
54245s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t
54246s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t
54247s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t
54248s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t
54249s,@LIB_XauFileName@,$LIB_XauFileName,;t t
54250s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t
54251s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t
54252s,@LIB_logwtmp@,$LIB_logwtmp,;t t
54253s,@LIB_logout@,$LIB_logout,;t t
54254s,@LIB_openpty@,$LIB_openpty,;t t
54255s,@LIB_tgetent@,$LIB_tgetent,;t t
54256s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t
54257s,@LIB_el_init@,$LIB_el_init,;t t
54258s,@el_compat_TRUE@,$el_compat_TRUE,;t t
54259s,@el_compat_FALSE@,$el_compat_FALSE,;t t
54260s,@COMPILE_ET@,$COMPILE_ET,;t t
54261s,@DIR_com_err@,$DIR_com_err,;t t
54262s,@LIB_com_err@,$LIB_com_err,;t t
54263s,@LIB_com_err_a@,$LIB_com_err_a,;t t
54264s,@LIB_com_err_so@,$LIB_com_err_so,;t t
54265s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t
54266s,@LTLIBOBJS@,$LTLIBOBJS,;t t
54267CEOF
54268
54269_ACEOF
54270
54271  cat >>$CONFIG_STATUS <<\_ACEOF
54272  # Split the substitutions into bite-sized pieces for seds with
54273  # small command number limits, like on Digital OSF/1 and HP-UX.
54274  ac_max_sed_lines=48
54275  ac_sed_frag=1 # Number of current file.
54276  ac_beg=1 # First line for current file.
54277  ac_end=$ac_max_sed_lines # Line after last line for current file.
54278  ac_more_lines=:
54279  ac_sed_cmds=
54280  while $ac_more_lines; do
54281    if test $ac_beg -gt 1; then
54282      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54283    else
54284      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
54285    fi
54286    if test ! -s $tmp/subs.frag; then
54287      ac_more_lines=false
54288    else
54289      # The purpose of the label and of the branching condition is to
54290      # speed up the sed processing (if there are no `@' at all, there
54291      # is no need to browse any of the substitutions).
54292      # These are the two extra sed commands mentioned above.
54293      (echo ':t
54294  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
54295      if test -z "$ac_sed_cmds"; then
54296	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
54297      else
54298	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
54299      fi
54300      ac_sed_frag=`expr $ac_sed_frag + 1`
54301      ac_beg=$ac_end
54302      ac_end=`expr $ac_end + $ac_max_sed_lines`
54303    fi
54304  done
54305  if test -z "$ac_sed_cmds"; then
54306    ac_sed_cmds=cat
54307  fi
54308fi # test -n "$CONFIG_FILES"
54309
54310_ACEOF
54311cat >>$CONFIG_STATUS <<\_ACEOF
54312for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
54313  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54314  case $ac_file in
54315  - | *:- | *:-:* ) # input from stdin
54316	cat >$tmp/stdin
54317	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54318	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54319  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54320	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54321  * )   ac_file_in=$ac_file.in ;;
54322  esac
54323
54324  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
54325  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54326$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54327	 X"$ac_file" : 'X\(//\)[^/]' \| \
54328	 X"$ac_file" : 'X\(//\)$' \| \
54329	 X"$ac_file" : 'X\(/\)' \| \
54330	 .     : '\(.\)' 2>/dev/null ||
54331echo X"$ac_file" |
54332    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54333  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54334  	  /^X\(\/\/\)$/{ s//\1/; q; }
54335  	  /^X\(\/\).*/{ s//\1/; q; }
54336  	  s/.*/./; q'`
54337  { if $as_mkdir_p; then
54338    mkdir -p "$ac_dir"
54339  else
54340    as_dir="$ac_dir"
54341    as_dirs=
54342    while test ! -d "$as_dir"; do
54343      as_dirs="$as_dir $as_dirs"
54344      as_dir=`(dirname "$as_dir") 2>/dev/null ||
54345$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54346	 X"$as_dir" : 'X\(//\)[^/]' \| \
54347	 X"$as_dir" : 'X\(//\)$' \| \
54348	 X"$as_dir" : 'X\(/\)' \| \
54349	 .     : '\(.\)' 2>/dev/null ||
54350echo X"$as_dir" |
54351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54352  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54353  	  /^X\(\/\/\)$/{ s//\1/; q; }
54354  	  /^X\(\/\).*/{ s//\1/; q; }
54355  	  s/.*/./; q'`
54356    done
54357    test ! -n "$as_dirs" || mkdir $as_dirs
54358  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54359echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54360   { (exit 1); exit 1; }; }; }
54361
54362  ac_builddir=.
54363
54364if test "$ac_dir" != .; then
54365  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54366  # A "../" for each directory in $ac_dir_suffix.
54367  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54368else
54369  ac_dir_suffix= ac_top_builddir=
54370fi
54371
54372case $srcdir in
54373  .)  # No --srcdir option.  We are building in place.
54374    ac_srcdir=.
54375    if test -z "$ac_top_builddir"; then
54376       ac_top_srcdir=.
54377    else
54378       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54379    fi ;;
54380  [\\/]* | ?:[\\/]* )  # Absolute path.
54381    ac_srcdir=$srcdir$ac_dir_suffix;
54382    ac_top_srcdir=$srcdir ;;
54383  *) # Relative path.
54384    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54385    ac_top_srcdir=$ac_top_builddir$srcdir ;;
54386esac
54387
54388# Do not use `cd foo && pwd` to compute absolute paths, because
54389# the directories may not exist.
54390case `pwd` in
54391.) ac_abs_builddir="$ac_dir";;
54392*)
54393  case "$ac_dir" in
54394  .) ac_abs_builddir=`pwd`;;
54395  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54396  *) ac_abs_builddir=`pwd`/"$ac_dir";;
54397  esac;;
54398esac
54399case $ac_abs_builddir in
54400.) ac_abs_top_builddir=${ac_top_builddir}.;;
54401*)
54402  case ${ac_top_builddir}. in
54403  .) ac_abs_top_builddir=$ac_abs_builddir;;
54404  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54405  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54406  esac;;
54407esac
54408case $ac_abs_builddir in
54409.) ac_abs_srcdir=$ac_srcdir;;
54410*)
54411  case $ac_srcdir in
54412  .) ac_abs_srcdir=$ac_abs_builddir;;
54413  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54414  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54415  esac;;
54416esac
54417case $ac_abs_builddir in
54418.) ac_abs_top_srcdir=$ac_top_srcdir;;
54419*)
54420  case $ac_top_srcdir in
54421  .) ac_abs_top_srcdir=$ac_abs_builddir;;
54422  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54423  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54424  esac;;
54425esac
54426
54427
54428  case $INSTALL in
54429  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54430  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54431  esac
54432
54433  if test x"$ac_file" != x-; then
54434    { echo "$as_me:$LINENO: creating $ac_file" >&5
54435echo "$as_me: creating $ac_file" >&6;}
54436    rm -f "$ac_file"
54437  fi
54438  # Let's still pretend it is `configure' which instantiates (i.e., don't
54439  # use $as_me), people would be surprised to read:
54440  #    /* config.h.  Generated by config.status.  */
54441  if test x"$ac_file" = x-; then
54442    configure_input=
54443  else
54444    configure_input="$ac_file.  "
54445  fi
54446  configure_input=$configure_input"Generated from `echo $ac_file_in |
54447				     sed 's,.*/,,'` by configure."
54448
54449  # First look for the input files in the build tree, otherwise in the
54450  # src tree.
54451  ac_file_inputs=`IFS=:
54452    for f in $ac_file_in; do
54453      case $f in
54454      -) echo $tmp/stdin ;;
54455      [\\/$]*)
54456	 # Absolute (can't be DOS-style, as IFS=:)
54457	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54458echo "$as_me: error: cannot find input file: $f" >&2;}
54459   { (exit 1); exit 1; }; }
54460	 echo "$f";;
54461      *) # Relative
54462	 if test -f "$f"; then
54463	   # Build tree
54464	   echo "$f"
54465	 elif test -f "$srcdir/$f"; then
54466	   # Source tree
54467	   echo "$srcdir/$f"
54468	 else
54469	   # /dev/null tree
54470	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54471echo "$as_me: error: cannot find input file: $f" >&2;}
54472   { (exit 1); exit 1; }; }
54473	 fi;;
54474      esac
54475    done` || { (exit 1); exit 1; }
54476_ACEOF
54477cat >>$CONFIG_STATUS <<_ACEOF
54478  sed "$ac_vpsub
54479$extrasub
54480_ACEOF
54481cat >>$CONFIG_STATUS <<\_ACEOF
54482:t
54483/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54484s,@configure_input@,$configure_input,;t t
54485s,@srcdir@,$ac_srcdir,;t t
54486s,@abs_srcdir@,$ac_abs_srcdir,;t t
54487s,@top_srcdir@,$ac_top_srcdir,;t t
54488s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54489s,@builddir@,$ac_builddir,;t t
54490s,@abs_builddir@,$ac_abs_builddir,;t t
54491s,@top_builddir@,$ac_top_builddir,;t t
54492s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54493s,@INSTALL@,$ac_INSTALL,;t t
54494" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54495  rm -f $tmp/stdin
54496  if test x"$ac_file" != x-; then
54497    mv $tmp/out $ac_file
54498  else
54499    cat $tmp/out
54500    rm -f $tmp/out
54501  fi
54502
54503done
54504_ACEOF
54505cat >>$CONFIG_STATUS <<\_ACEOF
54506
54507#
54508# CONFIG_HEADER section.
54509#
54510
54511# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54512# NAME is the cpp macro being defined and VALUE is the value it is being given.
54513#
54514# ac_d sets the value in "#define NAME VALUE" lines.
54515ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
54516ac_dB='[	 ].*$,\1#\2'
54517ac_dC=' '
54518ac_dD=',;t'
54519# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54520ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
54521ac_uB='$,\1#\2define\3'
54522ac_uC=' '
54523ac_uD=',;t'
54524
54525for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54526  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54527  case $ac_file in
54528  - | *:- | *:-:* ) # input from stdin
54529	cat >$tmp/stdin
54530	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54531	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54532  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54533	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54534  * )   ac_file_in=$ac_file.in ;;
54535  esac
54536
54537  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54538echo "$as_me: creating $ac_file" >&6;}
54539
54540  # First look for the input files in the build tree, otherwise in the
54541  # src tree.
54542  ac_file_inputs=`IFS=:
54543    for f in $ac_file_in; do
54544      case $f in
54545      -) echo $tmp/stdin ;;
54546      [\\/$]*)
54547	 # Absolute (can't be DOS-style, as IFS=:)
54548	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54549echo "$as_me: error: cannot find input file: $f" >&2;}
54550   { (exit 1); exit 1; }; }
54551	 # Do quote $f, to prevent DOS paths from being IFS'd.
54552	 echo "$f";;
54553      *) # Relative
54554	 if test -f "$f"; then
54555	   # Build tree
54556	   echo "$f"
54557	 elif test -f "$srcdir/$f"; then
54558	   # Source tree
54559	   echo "$srcdir/$f"
54560	 else
54561	   # /dev/null tree
54562	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54563echo "$as_me: error: cannot find input file: $f" >&2;}
54564   { (exit 1); exit 1; }; }
54565	 fi;;
54566      esac
54567    done` || { (exit 1); exit 1; }
54568  # Remove the trailing spaces.
54569  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
54570
54571_ACEOF
54572
54573# Transform confdefs.h into two sed scripts, `conftest.defines' and
54574# `conftest.undefs', that substitutes the proper values into
54575# config.h.in to produce config.h.  The first handles `#define'
54576# templates, and the second `#undef' templates.
54577# And first: Protect against being on the right side of a sed subst in
54578# config.status.  Protect against being in an unquoted here document
54579# in config.status.
54580rm -f conftest.defines conftest.undefs
54581# Using a here document instead of a string reduces the quoting nightmare.
54582# Putting comments in sed scripts is not portable.
54583#
54584# `end' is used to avoid that the second main sed command (meant for
54585# 0-ary CPP macros) applies to n-ary macro definitions.
54586# See the Autoconf documentation for `clear'.
54587cat >confdef2sed.sed <<\_ACEOF
54588s/[\\&,]/\\&/g
54589s,[\\$`],\\&,g
54590t clear
54591: clear
54592s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54593t end
54594s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54595: end
54596_ACEOF
54597# If some macros were called several times there might be several times
54598# the same #defines, which is useless.  Nevertheless, we may not want to
54599# sort them, since we want the *last* AC-DEFINE to be honored.
54600uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54601sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54602rm -f confdef2sed.sed
54603
54604# This sed command replaces #undef with comments.  This is necessary, for
54605# example, in the case of _POSIX_SOURCE, which is predefined and required
54606# on some systems where configure will not decide to define it.
54607cat >>conftest.undefs <<\_ACEOF
54608s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54609_ACEOF
54610
54611# Break up conftest.defines because some shells have a limit on the size
54612# of here documents, and old seds have small limits too (100 cmds).
54613echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54614echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54615echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54616echo '  :' >>$CONFIG_STATUS
54617rm -f conftest.tail
54618while grep . conftest.defines >/dev/null
54619do
54620  # Write a limited-size here document to $tmp/defines.sed.
54621  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54622  # Speed up: don't consider the non `#define' lines.
54623  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
54624  # Work around the forget-to-reset-the-flag bug.
54625  echo 't clr' >>$CONFIG_STATUS
54626  echo ': clr' >>$CONFIG_STATUS
54627  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54628  echo 'CEOF
54629  sed -f $tmp/defines.sed $tmp/in >$tmp/out
54630  rm -f $tmp/in
54631  mv $tmp/out $tmp/in
54632' >>$CONFIG_STATUS
54633  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54634  rm -f conftest.defines
54635  mv conftest.tail conftest.defines
54636done
54637rm -f conftest.defines
54638echo '  fi # grep' >>$CONFIG_STATUS
54639echo >>$CONFIG_STATUS
54640
54641# Break up conftest.undefs because some shells have a limit on the size
54642# of here documents, and old seds have small limits too (100 cmds).
54643echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54644rm -f conftest.tail
54645while grep . conftest.undefs >/dev/null
54646do
54647  # Write a limited-size here document to $tmp/undefs.sed.
54648  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54649  # Speed up: don't consider the non `#undef'
54650  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
54651  # Work around the forget-to-reset-the-flag bug.
54652  echo 't clr' >>$CONFIG_STATUS
54653  echo ': clr' >>$CONFIG_STATUS
54654  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54655  echo 'CEOF
54656  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54657  rm -f $tmp/in
54658  mv $tmp/out $tmp/in
54659' >>$CONFIG_STATUS
54660  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54661  rm -f conftest.undefs
54662  mv conftest.tail conftest.undefs
54663done
54664rm -f conftest.undefs
54665
54666cat >>$CONFIG_STATUS <<\_ACEOF
54667  # Let's still pretend it is `configure' which instantiates (i.e., don't
54668  # use $as_me), people would be surprised to read:
54669  #    /* config.h.  Generated by config.status.  */
54670  if test x"$ac_file" = x-; then
54671    echo "/* Generated by configure.  */" >$tmp/config.h
54672  else
54673    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54674  fi
54675  cat $tmp/in >>$tmp/config.h
54676  rm -f $tmp/in
54677  if test x"$ac_file" != x-; then
54678    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54679      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54680echo "$as_me: $ac_file is unchanged" >&6;}
54681    else
54682      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54683$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54684	 X"$ac_file" : 'X\(//\)[^/]' \| \
54685	 X"$ac_file" : 'X\(//\)$' \| \
54686	 X"$ac_file" : 'X\(/\)' \| \
54687	 .     : '\(.\)' 2>/dev/null ||
54688echo X"$ac_file" |
54689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54690  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54691  	  /^X\(\/\/\)$/{ s//\1/; q; }
54692  	  /^X\(\/\).*/{ s//\1/; q; }
54693  	  s/.*/./; q'`
54694      { if $as_mkdir_p; then
54695    mkdir -p "$ac_dir"
54696  else
54697    as_dir="$ac_dir"
54698    as_dirs=
54699    while test ! -d "$as_dir"; do
54700      as_dirs="$as_dir $as_dirs"
54701      as_dir=`(dirname "$as_dir") 2>/dev/null ||
54702$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54703	 X"$as_dir" : 'X\(//\)[^/]' \| \
54704	 X"$as_dir" : 'X\(//\)$' \| \
54705	 X"$as_dir" : 'X\(/\)' \| \
54706	 .     : '\(.\)' 2>/dev/null ||
54707echo X"$as_dir" |
54708    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54709  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54710  	  /^X\(\/\/\)$/{ s//\1/; q; }
54711  	  /^X\(\/\).*/{ s//\1/; q; }
54712  	  s/.*/./; q'`
54713    done
54714    test ! -n "$as_dirs" || mkdir $as_dirs
54715  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54716echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54717   { (exit 1); exit 1; }; }; }
54718
54719      rm -f $ac_file
54720      mv $tmp/config.h $ac_file
54721    fi
54722  else
54723    cat $tmp/config.h
54724    rm -f $tmp/config.h
54725  fi
54726# Compute $ac_file's index in $config_headers.
54727_am_stamp_count=1
54728for _am_header in $config_headers :; do
54729  case $_am_header in
54730    $ac_file | $ac_file:* )
54731      break ;;
54732    * )
54733      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54734  esac
54735done
54736echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54737$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54738	 X$ac_file : 'X\(//\)[^/]' \| \
54739	 X$ac_file : 'X\(//\)$' \| \
54740	 X$ac_file : 'X\(/\)' \| \
54741	 .     : '\(.\)' 2>/dev/null ||
54742echo X$ac_file |
54743    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54744  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54745  	  /^X\(\/\/\)$/{ s//\1/; q; }
54746  	  /^X\(\/\).*/{ s//\1/; q; }
54747  	  s/.*/./; q'`/stamp-h$_am_stamp_count
54748done
54749_ACEOF
54750
54751cat >>$CONFIG_STATUS <<\_ACEOF
54752
54753{ (exit 0); exit 0; }
54754_ACEOF
54755chmod +x $CONFIG_STATUS
54756ac_clean_files=$ac_clean_files_save
54757
54758
54759# configure is writing to config.log, and then calls config.status.
54760# config.status does its own redirection, appending to config.log.
54761# Unfortunately, on DOS this fails, as config.log is still kept open
54762# by configure, so config.status won't be able to write to it; its
54763# output is simply discarded.  So we exec the FD to /dev/null,
54764# effectively closing config.log, so it can be properly (re)opened and
54765# appended to by config.status.  When coming back to configure, we
54766# need to make the FD available again.
54767if test "$no_create" != yes; then
54768  ac_cs_success=:
54769  ac_config_status_args=
54770  test "$silent" = yes &&
54771    ac_config_status_args="$ac_config_status_args --quiet"
54772  exec 5>/dev/null
54773  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54774  exec 5>>config.log
54775  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54776  # would make configure fail if this is the last instruction.
54777  $ac_cs_success || { (exit 1); exit 1; }
54778fi
54779
54780
54781
54782cat > include/newversion.h.in <<EOF
54783const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
54784const char *heimdal_version = "Heimdal 0.6.1";
54785EOF
54786
54787if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then
54788	echo "include/version.h is unchanged"
54789	rm -f include/newversion.h.in
54790else
54791 	echo "creating include/version.h"
54792 	User=${USER-${LOGNAME}}
54793 	Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q`
54794 	Date=`date`
54795	mv -f include/newversion.h.in include/version.h.in
54796	sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h
54797fi
54798